Makefile 15.1 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
10
GEPETTO_REPO=https://github.com/Gepetto
Florent Lamiraux's avatar
Florent Lamiraux committed
11
RETHINK_ROBOTICS_REPO=https://github.com/RethinkRobotics
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

Florent Lamiraux's avatar
Florent Lamiraux committed
19
20
21
# Whether to compute humanoid specific part
HUMANOID=TRUE

22
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

Joseph Mirabel's avatar
Joseph Mirabel committed
29
OSG_PACKAGE=osg-dae
30
#OSG_PACKAGE=OpenSceneGraph-3.4.0
31

Florent Lamiraux's avatar
Florent Lamiraux committed
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
Florent Lamiraux's avatar
Florent Lamiraux committed
39

Joseph Mirabel's avatar
Joseph Mirabel committed
40
hpp-fcl_branch=master
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=master
Florent Lamiraux's avatar
Florent Lamiraux committed
53
54
hpp-util_repository=${HPP_REPO}

55
pinocchio_branch=hpp
56
57
58
59
60
pinocchio_repository=${SOT_REPO}
pinocchio_extra_flags= -DBUILD_PYTHON_INTERFACE=OFF

hpp-pinocchio_branch=master
hpp-pinocchio_repository=${HPP_REPO}
61
hpp-pinocchio_extra_flags=-DDISABLE_TESTS=ON
62

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

66
hpp-core_branch=master
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=master
71
hpp-template-corba_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
72

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

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

79
hpp-constraints_branch=master
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=master
Joseph Mirabel's avatar
Joseph Mirabel committed
84
85
hpp-walkgen_repository=${HPP_REPO}

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

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

92
test-hpp_branch=master
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=master
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=master
108
hpp-doc_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
109

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

113
114

hpp-manipulation-urdf_branch=master
115
hpp-manipulation-urdf_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
116

117
hpp-manipulation-corba_branch=master
118
hpp-manipulation-corba_repository=${HPP_REPO}
119

120
121
122
iai_maps_branch=master
iai_maps_repository=${HPP_REPO}

123
hpp_tutorial_branch=master
124
hpp_tutorial_repository=${HPP_REPO}
125
126
127

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

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

Joseph Mirabel's avatar
Joseph Mirabel committed
132
osg-dae_branch=master
133
osg-dae_repository=${GEPETTO_REPO}
134

135
gepetto-viewer_branch=master
136
gepetto-viewer_repository=${GEPETTO_REPO}
137

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

144
hpp-gepetto-viewer_branch=master
145
hpp-gepetto-viewer_repository=${HPP_REPO}
146

147
pythonqt_branch=qt${QT_VERSION}
Florent Lamiraux's avatar
Florent Lamiraux committed
148
149
150
pythonqt_repository=${HPP_REPO}
pythonqt_extra_flags= -DPythonQt_Wrap_QtAll=ON -DPythonQt_Extensions=ON

Florent Lamiraux's avatar
Florent Lamiraux committed
151
qgv_branch=master
152
153
qgv_repository=${HPP_REPO}

154
hpp-plot_branch=master
155
156
hpp-plot_repository=${HPP_REPO}

157
hpp-gui_branch=master
158
159
hpp-gui_repository=${HPP_REPO}

160
161
162
hpp-environments_branch=master
hpp-environments_repository=${HPP_REPO}

163
universal_robot_branch=kinetic
Florent Lamiraux's avatar
Florent Lamiraux committed
164
165
universal_robot_repository=${HPP_REPO}

166
hpp_universal_robot_branch=master
167
hpp_universal_robot_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
168

Florent Lamiraux's avatar
Florent Lamiraux committed
169
baxter_common_branch=master
170
baxter_common_repository=${RETHINK_ROBOTICS_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
171

172
173
174
hpp-baxter_branch=master
hpp-baxter_repository=${HPP_REPO}

Florent Lamiraux's avatar
Florent Lamiraux committed
175
176
177
178
179
180
hpp_romeo_branch=master
hpp_romeo_repository=${HPP_REPO}

romeo_branch=master
romeo_repository=${HPP_REPO}

Joseph Mirabel's avatar
Joseph Mirabel committed
181
osg-dae_extra_flags= -DCOLLADA_DYNAMIC_LIBRARY=${INSTALL_HPP_DIR}/lib/libcollada14dom.so -DCOLLADA_INCLUDE_DIR=${INSTALL_HPP_DIR}/include/collada-dom
182
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=""
183

184
collada-dom_extra_flags=-DBUILD_SHARED_LIBS=TRUE -DOPT_COLLADA15=FALSE
Joseph Mirabel's avatar
Joseph Mirabel committed
185

Florent Lamiraux's avatar
Florent Lamiraux committed
186
ifeq (${HUMANOID}, TRUE)
Florent Lamiraux's avatar
Florent Lamiraux committed
187
188
  hpp-manipulation_extra_flags=-DHPP_MANIPULATION_HAS_WHOLEBODY_STEP=TRUE
  hpp-manipulation-corba_extra_flags=-DHPP_MANIPULATION_HAS_WHOLEBODY_STEP=TRUE
Florent Lamiraux's avatar
Florent Lamiraux committed
189
else
Florent Lamiraux's avatar
Florent Lamiraux committed
190
191
  hpp-manipulation_extra_flags=-DHPP_MANIPULATION_HAS_WHOLEBODY_STEP=FALSE
  hpp-manipulation-corba_extra_flags=-DHPP_MANIPULATION_HAS_WHOLEBODY_STEP=FALSE
Florent Lamiraux's avatar
Florent Lamiraux committed
192
193
endif

194
all: hpp_tutorial.install hpp-gepetto-viewer.install
195
	${MAKE} hpp-doc.install
Florent Lamiraux's avatar
Florent Lamiraux committed
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 \
201
	hpp_universal_robot.install && \
202
203
204
205
	${MAKE} hpp-doc.install

# For benchmark, install robot packages first
benchmark: baxter_common.install romeo.install universal_robot.install \
206
	hpp-environments.install hrp2-14-description.install
207
	${MAKE} hpp_tutorial.install hpp-gepetto-viewer.install; \
208
	${MAKE} hpp-baxter.install hpp_romeo.install \
209
	hpp_universal_robot.install hpp-plot.install hpp-gui.install; \
210
	${MAKE} hpp_benchmark.checkout; \
211
	${MAKE} hpp-doc.install
212

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

status:
293
294
295
	@for child_dir in $$(ls ${SRC_DIR}); do \
		test -d "$$child_dir" || continue; \
		test -d "$$child_dir/.git" || continue; \
Florent Lamiraux's avatar
Florent Lamiraux committed
296
		${MAKE} "$$child_dir".status; \
297
	done
298

Florent Lamiraux's avatar
Florent Lamiraux committed
299
300
301
302
303
304
305
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

306
update:
307
308
309
310
311
	@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
312
313
314

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

%.update:
321
322
323
324
325
326
327
	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;\
Florent Lamiraux's avatar
Florent Lamiraux committed
328
329
330
		git checkout -q --detach;\
		git branch -f ${$(@:.update=)_branch} origin/${$(@:.update=)_branch};\
		git checkout -q ${$(@:.update=)_branch};\
331
332
333
		git submodule update; \
	fi

Florent Lamiraux's avatar
Florent Lamiraux committed
334

Florent Lamiraux's avatar
Florent Lamiraux committed
335
336
%.configure: %.configure.dep
	${MAKE} $(@:.configure=).configure_nodep
337

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

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

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

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

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

358
%.very-clean:
359
	rm -rf ${SRC_DIR}/$(@:.very-clean=)/${BUILD_FOLDER}/*
360

Florent Lamiraux's avatar
Florent Lamiraux committed
361
%.status:
Florent Lamiraux's avatar
Florent Lamiraux committed
362
363
364
365
	@cd ${SRC_DIR}/$(@:.status=); \
	echo \
	"\033[1;36m------- Folder $(@:.status=) ---------------\033[0m"; \
	git --no-pager -c status.showUntrackedFiles=no status --short --branch;\
Florent Lamiraux's avatar
Florent Lamiraux committed
366

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

374
375
376
377
378
379
380
381
382
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

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

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

universal_robot.configure_nodep:
	mkdir -p ${SRC_DIR}/$(@:.configure_nodep=)/ur_description/${BUILD_FOLDER}; \
	cd ${SRC_DIR}/$(@:.configure_nodep=)/ur_description/${BUILD_FOLDER}; \
400
	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
401
402
403
404
405
406
407
408

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
409
410
411
412

baxter_common.configure_nodep:
	mkdir -p ${SRC_DIR}/$(@:.configure_nodep=)/baxter_description/${BUILD_FOLDER}; \
	cd ${SRC_DIR}/$(@:.configure_nodep=)/baxter_description/${BUILD_FOLDER}; \
413
	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
414
415
	mkdir -p ${SRC_DIR}/$(@:.configure_nodep=)/rethink_ee_description/${BUILD_FOLDER}; \
	cd ${SRC_DIR}/$(@:.configure_nodep=)/rethink_ee_description/${BUILD_FOLDER}; \
416
	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
417
418
419
420
421
422
423
424
425
426
427
428
429
430

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
431
	. ${INSTALL_HPP_DIR}/setup.sh; \
Florent Lamiraux's avatar
Florent Lamiraux committed
432
433
434
	cd ${SRC_DIR}/romeo/romeo_description;\
	mkdir -p ${BUILD_FOLDER}; \
	cd ${SRC_DIR}/romeo/romeo_description/${BUILD_FOLDER}; \
435
	cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_HPP_DIR} -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ..
Florent Lamiraux's avatar
Florent Lamiraux committed
436
437
438

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