Makefile 15.3 KB
Newer Older
Florent Lamiraux's avatar
Florent Lamiraux committed
1
2
3
4
5
6
#
# Copyright (c) 2014 CNRS-LAAS
# Author: Florent Lamiraux
#

FCL_REPO=https://github.com/flexible-collision-library
Florent Lamiraux's avatar
Florent Lamiraux committed
7
8
LAAS_REPO=https://github.com/laas
HPP_REPO=https://github.com/humanoid-path-planner
9
SOT_REPO=https://github.com/stack-of-tasks
Florent Lamiraux's avatar
Florent Lamiraux committed
10
RETHINK_ROBOTICS_REPO=https://github.com/RethinkRobotics
11
ROBOPTIM_REPO=https://github.com/roboptim
12
TRAC_REPO=ssh://trac.laas.fr/git/jrl/robots/ros-hrp2
Florent Lamiraux's avatar
Florent Lamiraux committed
13

14
15
16
17
SRC_DIR=${DEVEL_HPP_DIR}/src
ifndef INSTALL_HPP_DIR
INSTALL_HPP_DIR=${DEVEL_HPP_DIR}/install
endif
18

19
20
21
22
# Whether to compute humanoid specific part
HUMANOID=TRUE

BUILD_TYPE=Release
23
24
25
26
27
ifeq (${BUILD_TYPE},Debug)
  BUILD_FOLDER=build
else
  BUILD_FOLDER=build-rel
endif
Florent Lamiraux's avatar
Florent Lamiraux committed
28

29
30
OSG_PACKAGE=OpenSceneGraph-dae-plugin
#OSG_PACKAGE=OpenSceneGraph-3.4.0
31

32
33
34
35
WGET=wget --quiet
UNZIP=unzip -qq
TAR=tar
GIT_QUIET=--quiet
36
37
# Qt version should be either 4 or 5
QT_VERSION=4
38
INSTALL_DOCUMENTATION=ON
39

40
hpp-fcl_branch=devel
41
hpp-fcl_repository=${HPP_REPO}
42
hpp-fcl_extra_flags= -DCMAKE_BUILD_TYPE=Release
Florent Lamiraux's avatar
Florent Lamiraux committed
43

44
45
46
47
48
49
50
51
roboptim-core_branch=master
roboptim-core_repository=${ROBOPTIM_REPO}
roboptim-core_extra_flags= -DCMAKE_BUILD_TYPE=Release -DCXX_DISABLE_WERROR=ON

roboptim-trajectory_branch=master
roboptim-trajectory_repository=${ROBOPTIM_REPO}
roboptim-trajectory_extra_flags= -DCMAKE_BUILD_TYPE=Release -DCXX_DISABLE_WERROR=ON

52
hpp-util_branch=devel
Florent Lamiraux's avatar
Florent Lamiraux committed
53
54
hpp-util_repository=${HPP_REPO}

55
pinocchio_branch=devel
56
pinocchio_repository=${SOT_REPO}
57
pinocchio_extra_flags= -DBUILD_PYTHON_INTERFACE=OFF -DBUILD_UNIT_TESTS=OFF
58

59
hpp-pinocchio_branch=devel
60
hpp-pinocchio_repository=${HPP_REPO}
61
hpp-pinocchio_extra_flags=-DDISABLE_TESTS=ON
62

63
hpp-statistics_branch=devel
64
hpp-statistics_repository=${HPP_REPO}
65

66
hpp-core_branch=devel
67
hpp-core_repository=${HPP_REPO}
68
hpp-core_extra_flags=-DDISABLE_TESTS=ON
Florent Lamiraux's avatar
Florent Lamiraux committed
69

70
hpp-template-corba_branch=devel
71
hpp-template-corba_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
72

73
hpp-corbaserver_branch=devel
74
hpp-corbaserver_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
75

76
qpOASES_branch=devel
77
78
qpOASES_repository=${HPP_REPO}

79
hpp-constraints_branch=devel
80
hpp-constraints_repository=${HPP_REPO}
81
hpp-constraints_extra_flags=-DDISABLE_TESTS=ON
Florent Lamiraux's avatar
Florent Lamiraux committed
82

83
hpp-walkgen_branch=devel
Joseph Mirabel's avatar
Joseph Mirabel committed
84
85
hpp-walkgen_repository=${HPP_REPO}

86
hpp-wholebody-step_branch=devel
Florent Lamiraux's avatar
Florent Lamiraux committed
87
88
hpp-wholebody-step_repository=${HPP_REPO}

89
hpp-wholebody-step-corba_branch=devel
Florent Lamiraux's avatar
Florent Lamiraux committed
90
91
hpp-wholebody-step-corba_repository=${HPP_REPO}

92
test-hpp_branch=devel
93
test-hpp_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
94

95
96
hrp2-14-description_branch=master
hrp2-14-description_repository=${TRAC_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
97

98
hpp-hrp2_branch=devel
99
hpp-hrp2_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
100

Florent Lamiraux's avatar
Florent Lamiraux committed
101
102
103
104
105
106
robot_capsule_urdf_branch=groovy
robot_capsule_urdf_repository=${LAAS_REPO}

robot_model_py_branch=groovy
robot_model_py_repository=${LAAS_REPO}

107
hpp-doc_branch=devel
108
hpp-doc_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
109

110
hpp-manipulation_branch=devel
111
hpp-manipulation_repository=${HPP_REPO}
112

113
hpp-manipulation-urdf_branch=devel
114
hpp-manipulation-urdf_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
115

116
hpp-manipulation-corba_branch=devel
117
hpp-manipulation-corba_repository=${HPP_REPO}
118

119
iai_maps_branch=devel
120
121
iai_maps_repository=${HPP_REPO}

122
hpp_tutorial_branch=devel
123
hpp_tutorial_repository=${HPP_REPO}
124
125
126

hpp_benchmark_branch=master
hpp_benchmark_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
127

128
129
130
collada-dom_branch=master
collada-dom_repository=${HPP_REPO}

131
132
133
OpenSceneGraph-dae-plugin_branch=master
OpenSceneGraph-dae-plugin_repository=${HPP_REPO}

134
gepetto-viewer_branch=devel
135
136
gepetto-viewer_repository=${HPP_REPO}

137
gepetto-viewer-corba_branch=devel
138
gepetto-viewer-corba_repository=${HPP_REPO}
139
140
141
ifeq (${QT_VERSION}, 5)
  gepetto-viewer-corba_extra_flags= -DUSE_QT4=OFF
endif
142

143
hpp-gepetto-viewer_branch=devel
144
hpp-gepetto-viewer_repository=${HPP_REPO}
145

146
pythonqt_branch=qt${QT_VERSION}
147
148
149
150
pythonqt_repository=${HPP_REPO}
pythonqt_extra_flags= -DPythonQt_Wrap_QtAll=ON -DPythonQt_Extensions=ON

qgv_branch=devel
151
152
qgv_repository=${HPP_REPO}

153
hpp-environments_branch=devel
154
155
hpp-environments_repository=${HPP_REPO}

156
universal_robot_branch=kinetic
157
158
159
universal_robot_repository=${HPP_REPO}

hpp_universal_robot_branch=devel
160
hpp_universal_robot_repository=${HPP_REPO}
161

Florent Lamiraux's avatar
Florent Lamiraux committed
162
baxter_common_branch=master
163
baxter_common_repository=${RETHINK_ROBOTICS_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
164

165
hpp-baxter_branch=master
166
167
hpp-baxter_repository=${HPP_REPO}

Florent Lamiraux's avatar
Florent Lamiraux committed
168
169
170
171
172
173
hpp_romeo_branch=master
hpp_romeo_repository=${HPP_REPO}

romeo_branch=master
romeo_repository=${HPP_REPO}

174
175
OpenSceneGraph-dae-plugin_extra_flags= -DCOLLADA_DYNAMIC_LIBRARY=${INSTALL_HPP_DIR}/lib/libcollada14dom.so -DCOLLADA_INCLUDE_DIR=${INSTALL_HPP_DIR}/include/collada-dom
OpenSceneGraph-3.4.0_extra_flags= -DDESIRED_QT_VERSION=${QT_VERSION} -DCOLLADA_DYNAMIC_LIBRARY=${INSTALL_HPP_DIR}/lib/libcollada14dom.so -DCOLLADA_INCLUDE_DIR=${INSTALL_HPP_DIR}/include/collada-dom -DLIB_POSTFIX=""
176

177
178
collada-dom_extra_flags=-DBUILD_SHARED_LIBS=TRUE -DOPT_COLLADA15=FALSE

179
180
qpOASES_extra_flags= -DCMAKE_BUILD_TYPE=Release

181
ifeq (${HUMANOID}, TRUE)
Florent Lamiraux's avatar
Florent Lamiraux committed
182
183
  hpp-manipulation_extra_flags=-DHPP_MANIPULATION_HAS_WHOLEBODY_STEP=TRUE
  hpp-manipulation-corba_extra_flags=-DHPP_MANIPULATION_HAS_WHOLEBODY_STEP=TRUE
184
else
Florent Lamiraux's avatar
Florent Lamiraux committed
185
186
  hpp-manipulation_extra_flags=-DHPP_MANIPULATION_HAS_WHOLEBODY_STEP=FALSE
  hpp-manipulation-corba_extra_flags=-DHPP_MANIPULATION_HAS_WHOLEBODY_STEP=FALSE
187
188
endif

189
all: hpp_tutorial.install hpp-gepetto-viewer.install
190
	${MAKE} hpp-doc.install
Florent Lamiraux's avatar
Florent Lamiraux committed
191

192
193
194
195
196
197
198
199
200
# For test on gepgitlab, install robot packages first
test-ci: baxter_common.install romeo.install universal_robot.install \
	hpp-environments.install
	${MAKE} hpp_tutorial.install hpp-gepetto-viewer.install \
	hpp_universal_robot.install; \
	${MAKE} hpp-doc.install

# For benchmark, install robot packages first
benchmark: baxter_common.install romeo.install universal_robot.install \
201
	hpp-environments.install hrp2-14-description.install
202
	${MAKE} hpp_tutorial.install hpp-gepetto-viewer.install; \
203
204
205
	${MAKE} hpp-baxter.install hpp_romeo.install \
	hpp_universal_robot.install hpp-hrp2.install; \
	${MAKE} hpp_benchmark.checkout; \
206
	${MAKE} hpp-doc.install
207

208
hpp-doc.configure.dep: hpp-doc.checkout
209
hpp-fcl.configure.dep: hpp-fcl.checkout
210
211
212
roboptim-core.configure.dep: roboptim-core.checkout
roboptim-trajectory.configure.dep: roboptim-core.install \
	roboptim-trajectory.checkout
Joseph Mirabel's avatar
Joseph Mirabel committed
213
hpp-walkgen.configure.dep: hpp-util.install hpp-core.install \
214
        roboptim-trajectory.install hpp-walkgen.checkout
215
216
hpp-util.configure.dep: hpp-util.checkout
hpp-model-urdf.configure.dep: hpp-model.install hpp-model-urdf.checkout
217
pinocchio.configure.dep: hpp-fcl.install pinocchio.checkout
218
219
hpp-pinocchio.configure.dep: pinocchio.install hpp-util.install \
	hpp-pinocchio.checkout
220
hpp-statistics.configure.dep: hpp-util.install hpp-statistics.checkout
221
222
hpp-core.configure.dep: hpp-constraints.install hpp-statistics.install \
	hpp-core.checkout
223
qpOASES.configure.dep: qpOASES.checkout
224
hpp-constraints.configure.dep: qpOASES.install \
225
	hpp-pinocchio.install hpp-statistics.install hpp-constraints.checkout
Joseph Mirabel's avatar
Joseph Mirabel committed
226
hpp-wholebody-step.configure.dep: hpp-constraints.install hpp-walkgen.install \
227
	hpp-wholebody-step.checkout
228
229
230
231
232
233
ifeq (${HUMANOID}, TRUE)
hpp-manipulation.configure.dep: hpp-core.install hpp-constraints.install \
	hpp-wholebody-step.install hpp-manipulation.checkout
hpp-manipulation-corba.configure.dep: hpp-manipulation-urdf.install \
	hpp-wholebody-step-corba.install hpp-manipulation.install \
	hpp-manipulation-corba.checkout
Florent Lamiraux's avatar
Florent Lamiraux committed
234
235
236
hpp-plot.configure.dep: hpp-corbaserver.install hpp-manipulation-corba.install \
	hpp-wholebody-step-corba.install qgv.install \
	hpp-plot.checkout
237
else
238
hpp-manipulation.configure.dep: hpp-core.install hpp-constraints.install \
239
	hpp-manipulation.checkout
240
hpp-manipulation-corba.configure.dep: hpp-manipulation-urdf.install \
241
242
	hpp-manipulation.install hpp-corbaserver.install \
	hpp-template-corba.install hpp-manipulation-corba.checkout
Florent Lamiraux's avatar
Florent Lamiraux committed
243
244
hpp-plot.configure.dep: hpp-corbaserver.install hpp-manipulation-corba.install \
	qgv.install hpp-plot.checkout
245
endif
246
hpp-manipulation-urdf.configure.dep:hpp-manipulation.install \
247
248
	hpp-manipulation-urdf.checkout
hpp-corbaserver.configure.dep: hpp-core.install \
249
250
251
252
253
	hpp-constraints.install hpp-corbaserver.checkout
hpp-wholebody-step-corba.configure.dep: hpp-corbaserver.install \
	hpp-wholebody-step.install hpp-template-corba.install \
	hpp-wholebody-step-corba.checkout
hpp-template-corba.configure.dep: hpp-util.install hpp-template-corba.checkout
254
255
qgv.configure.dep: qgv.checkout
pythonqt.configure.dep: pythonqt.checkout
256
257
258
robot_model_py.configure.dep: robot_model_py.checkout
robot_capsule_urdf.configure.dep: robot_model_py.install \
	robot_capsule_urdf.checkout
259
260
261
262
hpp-hrp2.configure.dep: hrp2-14-description.install hpp-corbaserver.install \
	hpp-hrp2.checkout
hrp2-14-description.configure.dep: robot_capsule_urdf.install \
	robot_model_py.install hrp2-14-description.checkout
263
test-hpp.configure.dep: hpp-wholebody-step-corba.install \
264
	hpp-gepetto-viewer.install hpp-hrp2.install test-hpp.checkout
265
iai_maps.configure.dep: iai_maps.checkout
266
hpp_tutorial.configure.dep: hpp-gepetto-viewer.install iai_maps.install \
267
	hpp-manipulation-corba.install hpp_tutorial.checkout
268
hpp_benchmark.configure.dep: hpp_benchmark.checkout
269
collada-dom.configure.dep: collada-dom.checkout
270
271
OpenSceneGraph-dae-plugin.configure.dep: collada-dom.install \
	OpenSceneGraph-dae-plugin.checkout
272
273
274
OpenSceneGraph-3.4.0.configure.dep: collada-dom.install \
	OpenSceneGraph-3.4.0.checkout
gepetto-viewer.configure.dep: ${OSG_PACKAGE}.install \
275
276
277
278
	gepetto-viewer.checkout
gepetto-viewer-corba.configure.dep: gepetto-viewer.install \
	gepetto-viewer-corba.checkout
hpp-gepetto-viewer.configure.dep: gepetto-viewer-corba.install \
Florent Lamiraux's avatar
Florent Lamiraux committed
279
	hpp-corbaserver.install \
280
	hpp-gepetto-viewer.checkout
281
universal_robot.configure.dep: universal_robot.checkout
282
283
284
hpp_universal_robot.configure.dep: universal_robot.install \
	hpp_universal_robot.checkout
hpp-environments.configure.dep: hpp-environments.checkout
Florent Lamiraux's avatar
Florent Lamiraux committed
285
baxter_common.configure.dep: baxter_common.checkout
286
hpp-baxter.configure.dep: baxter_common.install hpp-baxter.checkout
287
pythonqt.configure.dep: pythonqt.checkout
Florent Lamiraux's avatar
Florent Lamiraux committed
288
289
hpp_romeo.configure.dep: romeo.install hpp_romeo.checkout
romeo.configure.dep: romeo.checkout
290
291

status:
292
293
294
295
296
297
	@for child_dir in $$(ls ${SRC_DIR}); do \
		test -d "$$child_dir" || continue; \
		test -d "$$child_dir/.git" || continue; \
		cd "$$child_dir";\
		echo \
		"\033[1;36m------- Folder $$child_dir ---------------\033[0m"; \
298
		git --no-pager -c status.showUntrackedFiles=no status --short --branch; \
299
300
		cd ..; \
	done
301

Florent Lamiraux's avatar
Florent Lamiraux committed
302
303
304
305
306
307
308
log:
	@for child_dir in $$(ls ${SRC_DIR}); do \
		test -d "$$child_dir" || continue; \
		test -d "$$child_dir/.git" || continue; \
		${MAKE} "$$child_dir".log; \
	done

309
update:
310
311
312
313
314
	@for child_dir in $$(ls ${SRC_DIR}); do \
		test -d "$$child_dir" || continue; \
		test -d "$$child_dir/.git" || continue; \
		${MAKE} "$$child_dir".update; \
	done
Florent Lamiraux's avatar
Florent Lamiraux committed
315
316
317

%.checkout:
	if [ -d $(@:.checkout=) ]; then \
318
		echo "$(@:.checkout=) already checkout out."; \
Florent Lamiraux's avatar
Florent Lamiraux committed
319
	else \
320
		git clone ${GIT_QUIET} --recursive -b ${$(@:.checkout=)_branch} ${$(@:.checkout=)_repository}/$(@:.checkout=); \
Florent Lamiraux's avatar
Florent Lamiraux committed
321
322
323
	fi \

%.update:
324
325
326
327
328
329
330
331
332
333
334
335
336
337
	if [ "${$(@:.update=)_repository}" = "" ]; then \
		echo "$(@:.update=) is not referenced"; \
	else \
		cd ${SRC_DIR}/$(@:.update=);\
		git remote rm origin;\
		git remote add origin ${$(@:.update=)_repository}/$(@:.update=);\
		git fetch origin;\
		git checkout -b bce46g origin/${$(@:.update=)_branch};\
		git branch -D ${$(@:.update=)_branch};\
		git checkout -b ${$(@:.update=)_branch} bce46g;\
		git branch -D bce46g;\
		git submodule update; \
	fi

Florent Lamiraux's avatar
Florent Lamiraux committed
338

339
%.configure: %.configure.dep
340
	${MAKE} $(@:.configure=).configure_nodep
341

342
343
344
%.configure_nodep:%.checkout
	mkdir -p ${SRC_DIR}/$(@:.configure_nodep=)/${BUILD_FOLDER}; \
	cd ${SRC_DIR}/$(@:.configure_nodep=)/${BUILD_FOLDER}; \
345
	cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_HPP_DIR} -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
346
347
348
			-DINSTALL_DOCUMENTATION=${INSTALL_DOCUMENTATION} \
			-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-g -O3 -DNDEBUG" \
			${$(@:.configure_nodep=)_extra_flags} ..
Florent Lamiraux's avatar
Florent Lamiraux committed
349

Florent Lamiraux's avatar
Florent Lamiraux committed
350
%.install:%.configure
351
352
	${MAKE} -C ${SRC_DIR}/$(@:.install=)/${BUILD_FOLDER} install

353
354
%.install_nodep:%.configure_nodep
	${MAKE} -C ${SRC_DIR}/$(@:.install_nodep=)/${BUILD_FOLDER} install
Florent Lamiraux's avatar
Florent Lamiraux committed
355
356

%.uninstall:
357
	${MAKE} -C ${SRC_DIR}/$(@:.uninstall=)/${BUILD_FOLDER} uninstall
Florent Lamiraux's avatar
Florent Lamiraux committed
358
359

%.clean:
360
	${MAKE} -C ${SRC_DIR}/$(@:.clean=)/${BUILD_FOLDER} clean
Florent Lamiraux's avatar
Florent Lamiraux committed
361

362
%.very-clean:
363
	rm -rf ${SRC_DIR}/$(@:.very-clean=)/${BUILD_FOLDER}/*
364

Florent Lamiraux's avatar
Florent Lamiraux committed
365
366
367
%.status:
	cd ${SRC_DIR}/$(@:.status=); git status

Florent Lamiraux's avatar
Florent Lamiraux committed
368
369
370
371
372
373
374
%.log:
	@cd ${SRC_DIR}/$(@:.log=); \
	if [ -f .git/refs/heads/${$(@:.log=)_branch} ]; then \
		echo -n "$(@:.log=): "; \
		cat .git/refs/heads/${$(@:.log=)_branch}; \
	fi

375
376
377
378
379
380
381
382
383
OpenSceneGraph-3.4.0.checkout:
	if [ -d $(@:.checkout=) ]; then \
		echo "$(@:.checkout=) already checkout out."; \
	else \
		wget http://www.openscenegraph.org/downloads/stable_releases/OpenSceneGraph-3.4.0/source/OpenSceneGraph-3.4.0.zip;\
		cd ${SRC_DIR}; unzip OpenSceneGraph-3.4.0.zip;\
		rm -f OpenSceneGraph-3.4.0.zip;\
	fi

384
robot_model_py.configure: robot_model_py.configure.dep
Florent Lamiraux's avatar
Florent Lamiraux committed
385
	cd ${SRC_DIR}/$(@:.configure=)/xml_reflection;\
386
387
	mkdir -p ${BUILD_FOLDER}; \
	cd ${BUILD_FOLDER}; \
388
	cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_HPP_DIR} -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ..
Florent Lamiraux's avatar
Florent Lamiraux committed
389
	cd ${SRC_DIR}/$(@:.configure=)/urdf_parser_py;\
390
391
	mkdir -p ${BUILD_FOLDER}; \
	cd ${BUILD_FOLDER}; \
392
	cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_HPP_DIR} -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ..
Marine Heckler's avatar
Marine Heckler committed
393

Florent Lamiraux's avatar
Florent Lamiraux committed
394
robot_model_py.install: robot_model_py.configure
395
396
	${MAKE} -C ${SRC_DIR}/$(@:.install=)/xml_reflection/${BUILD_FOLDER} install; \
	${MAKE} -C ${SRC_DIR}/$(@:.install=)/urdf_parser_py/${BUILD_FOLDER} install;
397
398
399
400

universal_robot.configure_nodep:
	mkdir -p ${SRC_DIR}/$(@:.configure_nodep=)/ur_description/${BUILD_FOLDER}; \
	cd ${SRC_DIR}/$(@:.configure_nodep=)/ur_description/${BUILD_FOLDER}; \
401
	cmake -DCMAKE_INSTALL_PREFIX=${DEVEL_HPP_DIR}/install -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-g -O3 -DNDEBUG" ${$(@:.configure_nodep=)_extra_flags} ..
402
403
404
405
406
407
408
409

universal_robot.install_nodep:universal_robot.configure_nodep
	cd ${SRC_DIR}/$(@:.install_nodep=)/ur_description/${BUILD_FOLDER};\
	make install

universal_robot.install:universal_robot.configure
	cd ${SRC_DIR}/$(@:.install=)/ur_description/${BUILD_FOLDER};\
	make install
Florent Lamiraux's avatar
Florent Lamiraux committed
410
411
412
413

baxter_common.configure_nodep:
	mkdir -p ${SRC_DIR}/$(@:.configure_nodep=)/baxter_description/${BUILD_FOLDER}; \
	cd ${SRC_DIR}/$(@:.configure_nodep=)/baxter_description/${BUILD_FOLDER}; \
414
	cmake -DCMAKE_INSTALL_PREFIX=${DEVEL_HPP_DIR}/install -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-g -O3 -DNDEBUG" ${$(@:.configure_nodep=)_extra_flags} ..; \
Florent Lamiraux's avatar
Florent Lamiraux committed
415
416
	mkdir -p ${SRC_DIR}/$(@:.configure_nodep=)/rethink_ee_description/${BUILD_FOLDER}; \
	cd ${SRC_DIR}/$(@:.configure_nodep=)/rethink_ee_description/${BUILD_FOLDER}; \
417
	cmake -DCMAKE_INSTALL_PREFIX=${DEVEL_HPP_DIR}/install -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-g -O3 -DNDEBUG" ${$(@:.configure_nodep=)_extra_flags} ..
Florent Lamiraux's avatar
Florent Lamiraux committed
418
419
420
421
422
423
424
425
426
427
428
429
430
431

baxter_common.install_nodep:baxter_common.configure_nodep
	cd ${SRC_DIR}/$(@:.install_nodep=)/baxter_description/${BUILD_FOLDER};\
	make install; \
	cd ${SRC_DIR}/$(@:.install_nodep=)/rethink_ee_description/${BUILD_FOLDER};\
	make install

baxter_common.install:baxter_common.configure
	cd ${SRC_DIR}/$(@:.install=)/baxter_description/${BUILD_FOLDER};\
	make install; \
	cd ${SRC_DIR}/$(@:.install=)/rethink_ee_description/${BUILD_FOLDER};\
	make install

romeo.configure: romeo.configure.dep
432
	. ${INSTALL_HPP_DIR}/setup.sh; \
Florent Lamiraux's avatar
Florent Lamiraux committed
433
434
435
	cd ${SRC_DIR}/romeo/romeo_description;\
	mkdir -p ${BUILD_FOLDER}; \
	cd ${SRC_DIR}/romeo/romeo_description/${BUILD_FOLDER}; \
436
	cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_HPP_DIR} -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ..
Florent Lamiraux's avatar
Florent Lamiraux committed
437
438
439

romeo.install: romeo.configure
	${MAKE} -C ${SRC_DIR}/romeo/romeo_description/${BUILD_FOLDER} install