Makefile 15.5 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
JRL_REPO=https://github.com/jrl-umi3218
Florent Lamiraux's avatar
Florent Lamiraux committed
8
9
LAAS_REPO=https://github.com/laas
HPP_REPO=https://github.com/humanoid-path-planner
10
SOT_REPO=https://github.com/stack-of-tasks
Florent Lamiraux's avatar
Florent Lamiraux committed
11
RETHINK_ROBOTICS_REPO=https://github.com/RethinkRobotics
Florent Lamiraux's avatar
Florent Lamiraux committed
12
13

SRC_DIR=${DEVEL_DIR}/src
14
15
INSTALL_DIR=${DEVEL_DIR}/install

16
17
18
19
# Whether to compute humanoid specific part
HUMANOID=TRUE

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

26
27
28
#OSG_PACKAGE=OpenSceneGraph-dae-plugin
OSG_PACKAGE=OpenSceneGraph-3.4.0

29
30
31
32
WGET=wget --quiet
UNZIP=unzip -qq
TAR=tar
GIT_QUIET=--quiet
33
34
# Qt version should be either 4 or 5
QT_VERSION=4
35

36
hpp-fcl_branch=devel
37
hpp-fcl_repository=${HPP_REPO}
38
hpp-fcl_extra_flags= -DCMAKE_BUILD_TYPE=Release
Florent Lamiraux's avatar
Florent Lamiraux committed
39

40
hpp-util_branch=devel
Florent Lamiraux's avatar
Florent Lamiraux committed
41
42
hpp-util_repository=${HPP_REPO}

43
pinocchio_branch=devel
44
pinocchio_repository=${SOT_REPO}
45
pinocchio_extra_flags= -DBUILD_PYTHON_INTERFACE=OFF -DBUILD_UNIT_TESTS=OFF
46

47
hpp-pinocchio_branch=devel
48
hpp-pinocchio_repository=${HPP_REPO}
49
hpp-pinocchio_extra_flags=-DDISABLE_TESTS=ON
50

51
hpp-statistics_branch=devel
52
hpp-statistics_repository=${HPP_REPO}
53

54
hpp-core_branch=devel
55
hpp-core_repository=${HPP_REPO}
56
hpp-core_extra_flags=-DDISABLE_TESTS=ON
Florent Lamiraux's avatar
Florent Lamiraux committed
57

58
hpp-template-corba_branch=devel
Florent Lamiraux's avatar
Florent Lamiraux committed
59
60
hpp-template-corba_repository=${LAAS_REPO}

61
hpp-corbaserver_branch=devel
62
hpp-corbaserver_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
63

64
qpOASES_branch=devel
65
66
qpOASES_repository=${HPP_REPO}

67
hpp-constraints_branch=devel
68
hpp-constraints_repository=${HPP_REPO}
69
hpp-constraints_extra_flags=-DDISABLE_TESTS=ON
Florent Lamiraux's avatar
Florent Lamiraux committed
70

71
hpp-walkgen_branch=devel
Joseph Mirabel's avatar
Joseph Mirabel committed
72
73
hpp-walkgen_repository=${HPP_REPO}

74
hpp-wholebody-step_branch=devel
Florent Lamiraux's avatar
Florent Lamiraux committed
75
76
hpp-wholebody-step_repository=${HPP_REPO}

77
hpp-wholebody-step-corba_branch=devel
Florent Lamiraux's avatar
Florent Lamiraux committed
78
79
hpp-wholebody-step-corba_repository=${HPP_REPO}

80
test-hpp_branch=devel
81
test-hpp_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
82
83

hrp2_branch=groovy
Marine Heckler's avatar
Marine Heckler committed
84
hrp2_repository=${JRL_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
85

86
hpp-hrp2_branch=devel
87
hpp-hrp2_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
88

Florent Lamiraux's avatar
Florent Lamiraux committed
89
90
91
92
93
94
robot_capsule_urdf_branch=groovy
robot_capsule_urdf_repository=${LAAS_REPO}

robot_model_py_branch=groovy
robot_model_py_repository=${LAAS_REPO}

95
hpp-doc_branch=devel
96
hpp-doc_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
97

98
hpp-manipulation_branch=devel
99
hpp-manipulation_repository=${HPP_REPO}
100

101
hpp-manipulation-urdf_branch=devel
102
hpp-manipulation-urdf_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
103

104
hpp-manipulation-corba_branch=devel
105
hpp-manipulation-corba_repository=${HPP_REPO}
106

107
108
109
robot_state_chain_publisher_branch=master
robot_state_chain_publisher_repository=${HPP_REPO}

110
iai_maps_branch=devel
111
112
iai_maps_repository=${HPP_REPO}

113
hpp_tutorial_branch=devel
114
hpp_tutorial_repository=${HPP_REPO}
115
116
117

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

119
120
121
collada-dom_branch=master
collada-dom_repository=${HPP_REPO}

122
123
124
OpenSceneGraph-dae-plugin_branch=master
OpenSceneGraph-dae-plugin_repository=${HPP_REPO}

125
gepetto-viewer_branch=devel
126
127
gepetto-viewer_repository=${HPP_REPO}

128
gepetto-viewer-corba_branch=devel
129
gepetto-viewer-corba_repository=${HPP_REPO}
130
131
132
ifeq (${QT_VERSION}, 5)
  gepetto-viewer-corba_extra_flags= -DUSE_QT4=OFF
endif
133

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

137
pythonqt_branch=qt${QT_VERSION}
138
139
140
141
pythonqt_repository=${HPP_REPO}
pythonqt_extra_flags= -DPythonQt_Wrap_QtAll=ON -DPythonQt_Extensions=ON

qgv_branch=devel
142
143
qgv_repository=${HPP_REPO}

144
hpp-environments_branch=devel
145
146
hpp-environments_repository=${HPP_REPO}

147
148
149
150
universal_robot_branch=indigo-devel
universal_robot_repository=${HPP_REPO}

hpp_universal_robot_branch=devel
151
hpp_universal_robot_repository=${HPP_REPO}
152

Florent Lamiraux's avatar
Florent Lamiraux committed
153
baxter_common_branch=master
154
baxter_common_repository=${RETHINK_ROBOTICS_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
155

156
hpp-baxter_branch=master
157
158
hpp-baxter_repository=${HPP_REPO}

Florent Lamiraux's avatar
Florent Lamiraux committed
159
160
161
162
163
164
hpp_romeo_branch=master
hpp_romeo_repository=${HPP_REPO}

romeo_branch=master
romeo_repository=${HPP_REPO}

165
OpenSceneGraph-dae-plugin_extra_flags= -DCOLLADA_DYNAMIC_LIBRARY=${INSTALL_DIR}/lib/libcollada14dom.so -DCOLLADA_INCLUDE_DIR=${INSTALL_DIR}/include/collada-dom
166
OpenSceneGraph-3.4.0_extra_flags= -DDESIRED_QT_VERSION=${QT_VERSION} -DCOLLADA_DYNAMIC_LIBRARY=${INSTALL_DIR}/lib/libcollada14dom.so -DCOLLADA_INCLUDE_DIR=${INSTALL_DIR}/include/collada-dom -DLIB_POSTFIX=""
167

168
169
collada-dom_extra_flags=-DBUILD_SHARED_LIBS=TRUE -DOPT_COLLADA15=FALSE

170
roboptim-core-3.1_extra_flags= -DCMAKE_BUILD_TYPE=Release -DCXX_DISABLE_WERROR=ON
171

172
roboptim-trajectory-3.1_extra_flags= -DCMAKE_BUILD_TYPE=Release -DCXX_DISABLE_WERROR=ON
173
174
175

qpOASES_extra_flags= -DCMAKE_BUILD_TYPE=Release

176
ifeq (${HUMANOID}, TRUE)
Florent Lamiraux's avatar
Florent Lamiraux committed
177
178
  hpp-manipulation_extra_flags=-DHPP_MANIPULATION_HAS_WHOLEBODY_STEP=TRUE
  hpp-manipulation-corba_extra_flags=-DHPP_MANIPULATION_HAS_WHOLEBODY_STEP=TRUE
179
else
Florent Lamiraux's avatar
Florent Lamiraux committed
180
181
  hpp-manipulation_extra_flags=-DHPP_MANIPULATION_HAS_WHOLEBODY_STEP=FALSE
  hpp-manipulation-corba_extra_flags=-DHPP_MANIPULATION_HAS_WHOLEBODY_STEP=FALSE
182
183
endif

184
all: hpp_tutorial.install hpp-gepetto-viewer.install
185
	${MAKE} hpp-doc.install
Florent Lamiraux's avatar
Florent Lamiraux committed
186

Marine Heckler's avatar
Marine Heckler committed
187
# source $DEVEL_DIR/install/setup.bash before installing hrp2.
188
189
hrp2: test-hpp.install

190
hpp-doc.configure.dep: hpp-doc.checkout
191
192
hpp-fcl.configure.dep: hpp-fcl.checkout
roboptim-core-3.1.configure.dep: roboptim-core-3.1.checkout
Joseph Mirabel's avatar
Joseph Mirabel committed
193
roboptim-trajectory-3.1.configure.dep: roboptim-core-3.1.install \
194
	roboptim-trajectory-3.1.checkout
Joseph Mirabel's avatar
Joseph Mirabel committed
195
196
hpp-walkgen.configure.dep: hpp-util.install hpp-core.install \
        roboptim-trajectory-3.1.install hpp-walkgen.checkout
197
198
hpp-util.configure.dep: hpp-util.checkout
hpp-model-urdf.configure.dep: hpp-model.install hpp-model-urdf.checkout
199
pinocchio.configure.dep: hpp-fcl.install pinocchio.checkout
200
201
hpp-pinocchio.configure.dep: pinocchio.install hpp-util.install \
	hpp-pinocchio.checkout
202
hpp-statistics.configure.dep: hpp-util.install hpp-statistics.checkout
203
204
hpp-core.configure.dep: hpp-constraints.install hpp-statistics.install \
	hpp-core.checkout
205
qpOASES.configure.dep: qpOASES.checkout
206
hpp-constraints.configure.dep: qpOASES.install \
207
	hpp-pinocchio.install hpp-statistics.install hpp-constraints.checkout
Joseph Mirabel's avatar
Joseph Mirabel committed
208
hpp-wholebody-step.configure.dep: hpp-constraints.install hpp-walkgen.install \
209
	hpp-wholebody-step.checkout
210
211
212
213
214
215
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
216
217
218
hpp-plot.configure.dep: hpp-corbaserver.install hpp-manipulation-corba.install \
	hpp-wholebody-step-corba.install qgv.install \
	hpp-plot.checkout
219
else
220
hpp-manipulation.configure.dep: hpp-core.install hpp-constraints.install \
221
	hpp-manipulation.checkout
222
hpp-manipulation-corba.configure.dep: hpp-manipulation-urdf.install \
223
224
	hpp-manipulation.install hpp-corbaserver.install \
	hpp-template-corba.install hpp-manipulation-corba.checkout
Florent Lamiraux's avatar
Florent Lamiraux committed
225
226
hpp-plot.configure.dep: hpp-corbaserver.install hpp-manipulation-corba.install \
	qgv.install hpp-plot.checkout
227
endif
228
hpp-manipulation-urdf.configure.dep:hpp-manipulation.install \
229
230
	hpp-manipulation-urdf.checkout
hpp-corbaserver.configure.dep: hpp-core.install \
231
232
233
234
235
	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
236
237
qgv.configure.dep: qgv.checkout
pythonqt.configure.dep: pythonqt.checkout
238
239
240
241
242
243
244
robot_model_py.configure.dep: robot_model_py.checkout
robot_capsule_urdf.configure.dep: robot_model_py.install \
	robot_capsule_urdf.checkout
hpp-hrp2.configure.dep: hrp2.install hpp-corbaserver.install hpp-hrp2.checkout
hrp2.configure.dep: robot_capsule_urdf.install robot_model_py.install \
	hrp2.checkout
test-hpp.configure.dep: hpp-wholebody-step-corba.install \
245
	hpp-gepetto-viewer.install hpp-hrp2.install test-hpp.checkout
246
247
robot_state_chain_publisher.configure.dep: robot_state_chain_publisher.checkout
iai_maps.configure.dep: robot_state_chain_publisher.install iai_maps.checkout
248
hpp_tutorial.configure.dep: hpp-gepetto-viewer.install iai_maps.install \
249
	hpp-manipulation-corba.install hpp_tutorial.checkout
250
hpp_benchmark.configure.dep: hpp_benchmark.checkout
251
collada-dom.configure.dep: collada-dom.checkout
252
253
OpenSceneGraph-dae-plugin.configure.dep: collada-dom.install \
	OpenSceneGraph-dae-plugin.checkout
254
255
256
OpenSceneGraph-3.4.0.configure.dep: collada-dom.install \
	OpenSceneGraph-3.4.0.checkout
gepetto-viewer.configure.dep: ${OSG_PACKAGE}.install \
257
258
259
260
	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
261
	hpp-corbaserver.install \
262
	hpp-gepetto-viewer.checkout
263
264
265
266
267
universal_robot.configure.dep: universal_robot.install \
	universal_robot.checkout
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
268
baxter_common.configure.dep: baxter_common.checkout
269
hpp-baxter.configure.dep: baxter_common.install hpp-baxter.checkout
270
pythonqt.configure.dep: pythonqt.checkout
Florent Lamiraux's avatar
Florent Lamiraux committed
271
272
hpp_romeo.configure.dep: romeo.install hpp_romeo.checkout
romeo.configure.dep: romeo.checkout
273
274

status:
275
276
277
278
279
280
	@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"; \
281
		git --no-pager -c status.showUntrackedFiles=no status --short --branch; \
282
283
		cd ..; \
	done
284

Florent Lamiraux's avatar
Florent Lamiraux committed
285
286
287
288
289
290
291
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

292
update:
293
294
295
296
297
	@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
298
299
300

%.checkout:
	if [ -d $(@:.checkout=) ]; then \
301
		echo "$(@:.checkout=) already checkout out."; \
Florent Lamiraux's avatar
Florent Lamiraux committed
302
	else \
303
		git clone ${GIT_QUIET} --recursive -b ${$(@:.checkout=)_branch} ${$(@:.checkout=)_repository}/$(@:.checkout=); \
Florent Lamiraux's avatar
Florent Lamiraux committed
304
305
306
	fi \

%.update:
307
308
309
310
311
312
313
314
315
316
317
318
319
320
	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
321

322
%.configure: %.configure.dep
323
	${MAKE} $(@:.configure=).configure_nodep
324

325
326
327
328
%.configure_nodep:%.checkout
	mkdir -p ${SRC_DIR}/$(@:.configure_nodep=)/${BUILD_FOLDER}; \
	cd ${SRC_DIR}/$(@:.configure_nodep=)/${BUILD_FOLDER}; \
	cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} -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
329

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

333
334
%.install_nodep:%.configure_nodep
	${MAKE} -C ${SRC_DIR}/$(@:.install_nodep=)/${BUILD_FOLDER} install
Florent Lamiraux's avatar
Florent Lamiraux committed
335
336

%.uninstall:
337
	${MAKE} -C ${SRC_DIR}/$(@:.uninstall=)/${BUILD_FOLDER} uninstall
Florent Lamiraux's avatar
Florent Lamiraux committed
338
339

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

342
%.very-clean:
343
	rm -rf ${SRC_DIR}/$(@:.very-clean=)/${BUILD_FOLDER}/*
344

Florent Lamiraux's avatar
Florent Lamiraux committed
345
346
347
%.status:
	cd ${SRC_DIR}/$(@:.status=); git status

Florent Lamiraux's avatar
Florent Lamiraux committed
348
349
350
351
352
353
354
%.log:
	@cd ${SRC_DIR}/$(@:.log=); \
	if [ -f .git/refs/heads/${$(@:.log=)_branch} ]; then \
		echo -n "$(@:.log=): "; \
		cat .git/refs/heads/${$(@:.log=)_branch}; \
	fi

Joseph Mirabel's avatar
Joseph Mirabel committed
355
356
357
358
roboptim-core-3.1.checkout:
	if [ -d $(@:.checkout=) ]; then \
		echo "$(@:.checkout=) already checkout out."; \
	else \
359
		${WGET} -O - "https://github.com/roboptim/roboptim-core/releases/download/v3.1/roboptim-core-3.1.tar.bz2" | ${TAR} -xj; \
Joseph Mirabel's avatar
Joseph Mirabel committed
360
361
	fi

362
363
364
365
366
367
368
369
370
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

Joseph Mirabel's avatar
Joseph Mirabel committed
371
372
373
374
roboptim-trajectory-3.1.checkout:
	if [ -d $(@:.checkout=) ]; then \
		echo "$(@:.checkout=) already checkout out."; \
	else \
375
	  ${WGET} -O - "https://github.com/roboptim/roboptim-trajectory/releases/download/v3.1/roboptim-trajectory-3.1.tar.bz2" | ${TAR} -xj; \
Joseph Mirabel's avatar
Joseph Mirabel committed
376
377
	fi

378
hrp2.configure: hrp2.configure.dep
379
	. ${INSTALL_DIR}/setup.sh; \
Florent Lamiraux's avatar
Florent Lamiraux committed
380
	cd ${SRC_DIR}/hrp2/hrp2_14_description;\
381
382
	mkdir -p ${BUILD_FOLDER}; \
	cd ${SRC_DIR}/hrp2/hrp2_14_description/${BUILD_FOLDER}; \
383
	cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ..
Florent Lamiraux's avatar
Florent Lamiraux committed
384

Florent Lamiraux's avatar
Florent Lamiraux committed
385
hrp2.install: hrp2.configure
386
	${MAKE} -C ${SRC_DIR}/hrp2/hrp2_14_description/${BUILD_FOLDER} install
Florent Lamiraux's avatar
Florent Lamiraux committed
387

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

Florent Lamiraux's avatar
Florent Lamiraux committed
398
robot_model_py.install: robot_model_py.configure
399
400
	${MAKE} -C ${SRC_DIR}/$(@:.install=)/xml_reflection/${BUILD_FOLDER} install; \
	${MAKE} -C ${SRC_DIR}/$(@:.install=)/urdf_parser_py/${BUILD_FOLDER} install;
401
402
403
404
405
406
407
408
409
410
411
412
413

universal_robot.configure_nodep:
	mkdir -p ${SRC_DIR}/$(@:.configure_nodep=)/ur_description/${BUILD_FOLDER}; \
	cd ${SRC_DIR}/$(@:.configure_nodep=)/ur_description/${BUILD_FOLDER}; \
	cmake -DCMAKE_INSTALL_PREFIX=${DEVEL_DIR}/install -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-g -O3 -DNDEBUG" ${$(@:.configure_nodep=)_extra_flags} ..

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
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443

baxter_common.configure_nodep:
	mkdir -p ${SRC_DIR}/$(@:.configure_nodep=)/baxter_description/${BUILD_FOLDER}; \
	cd ${SRC_DIR}/$(@:.configure_nodep=)/baxter_description/${BUILD_FOLDER}; \
	cmake -DCMAKE_INSTALL_PREFIX=${DEVEL_DIR}/install -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-g -O3 -DNDEBUG" ${$(@:.configure_nodep=)_extra_flags} ..; \
	mkdir -p ${SRC_DIR}/$(@:.configure_nodep=)/rethink_ee_description/${BUILD_FOLDER}; \
	cd ${SRC_DIR}/$(@:.configure_nodep=)/rethink_ee_description/${BUILD_FOLDER}; \
	cmake -DCMAKE_INSTALL_PREFIX=${DEVEL_DIR}/install -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-g -O3 -DNDEBUG" ${$(@:.configure_nodep=)_extra_flags} ..

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
	. ${INSTALL_DIR}/setup.sh; \
	cd ${SRC_DIR}/romeo/romeo_description;\
	mkdir -p ${BUILD_FOLDER}; \
	cd ${SRC_DIR}/romeo/romeo_description/${BUILD_FOLDER}; \
	cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ..

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