Makefile 15.2 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

Florent Lamiraux's avatar
Florent Lamiraux committed
16
17
18
# Whether to compute humanoid specific part
HUMANOID=TRUE

19
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

Florent Lamiraux's avatar
Florent Lamiraux committed
26
27
28
29
30
WGET=wget --quiet
UNZIP=unzip -qq
TAR=tar
GIT_QUIET=--quiet

Joseph Mirabel's avatar
Joseph Mirabel committed
31
hpp-fcl_branch=master
32
hpp-fcl_repository=${HPP_REPO}
33
hpp-fcl_extra_flags= -DCMAKE_BUILD_TYPE=Release
Florent Lamiraux's avatar
Florent Lamiraux committed
34

35
hpp-util_branch=master
Florent Lamiraux's avatar
Florent Lamiraux committed
36
37
hpp-util_repository=${HPP_REPO}

38
pinocchio_branch=hpp
39
40
41
42
43
44
pinocchio_repository=${SOT_REPO}
pinocchio_extra_flags= -DBUILD_PYTHON_INTERFACE=OFF

hpp-pinocchio_branch=master
hpp-pinocchio_repository=${HPP_REPO}

45
hpp-statistics_branch=master
46
hpp-statistics_repository=${HPP_REPO}
47

48
hpp-core_branch=master
49
hpp-core_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
50
hpp-core_extra_flags=-DRUN_TESTS=FALSE
Florent Lamiraux's avatar
Florent Lamiraux committed
51

52
hpp-template-corba_branch=master
Florent Lamiraux's avatar
Florent Lamiraux committed
53
54
hpp-template-corba_repository=${LAAS_REPO}

55
hpp-corbaserver_branch=master
56
hpp-corbaserver_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
57

58
59
60
qpOASES_branch=master
qpOASES_repository=${HPP_REPO}

61
hpp-constraints_branch=master
62
hpp-constraints_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
63

64
hpp-walkgen_branch=master
Joseph Mirabel's avatar
Joseph Mirabel committed
65
66
hpp-walkgen_repository=${HPP_REPO}

67
hpp-wholebody-step_branch=master
Florent Lamiraux's avatar
Florent Lamiraux committed
68
69
hpp-wholebody-step_repository=${HPP_REPO}

70
hpp-wholebody-step-corba_branch=master
Florent Lamiraux's avatar
Florent Lamiraux committed
71
72
hpp-wholebody-step-corba_repository=${HPP_REPO}

73
test-hpp_branch=master
74
test-hpp_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
75
76

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

79
hpp-hrp2_branch=master
80
hpp-hrp2_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
81

Florent Lamiraux's avatar
Florent Lamiraux committed
82
83
84
85
86
87
robot_capsule_urdf_branch=groovy
robot_capsule_urdf_repository=${LAAS_REPO}

robot_model_py_branch=groovy
robot_model_py_repository=${LAAS_REPO}

88
hpp-doc_branch=master
89
hpp-doc_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
90

91
hpp-manipulation_branch=master
92
hpp-manipulation_repository=${HPP_REPO}
93

94
95

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

98
hpp-manipulation-corba_branch=master
99
hpp-manipulation-corba_repository=${HPP_REPO}
100

101
102
103
104
105
106
robot_state_chain_publisher_branch=master
robot_state_chain_publisher_repository=${HPP_REPO}

iai_maps_branch=master
iai_maps_repository=${HPP_REPO}

107
hpp_tutorial_branch=master
108
hpp_tutorial_repository=${HPP_REPO}
109
110
111

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

113
114
115
collada-dom_branch=master
collada-dom_repository=${HPP_REPO}

116
117
118
OpenSceneGraph-dae-plugin_branch=master
OpenSceneGraph-dae-plugin_repository=${HPP_REPO}

119
gepetto-viewer_branch=master
120
121
gepetto-viewer_repository=${HPP_REPO}

122
gepetto-viewer-corba_branch=master
123
124
gepetto-viewer-corba_repository=${HPP_REPO}

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

Florent Lamiraux's avatar
Florent Lamiraux committed
128
129
130
131
132
pythonqt_branch=patched-5
pythonqt_repository=${HPP_REPO}
pythonqt_extra_flags= -DPythonQt_Wrap_QtAll=ON -DPythonQt_Extensions=ON

oqgv_branch=master
133
134
135
136
137
qgv_repository=${HPP_REPO}

hpp-environments_branch=master
hpp-environments_repository=${HPP_REPO}

Florent Lamiraux's avatar
Florent Lamiraux committed
138
139
140
141
universal_robot_branch=indigo-devel
universal_robot_repository=${HPP_REPO}

hpp_universal_robot_branch=devel
142
hpp_universal_robot_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
143

Florent Lamiraux's avatar
Florent Lamiraux committed
144
baxter_common_branch=master
145
baxter_common_repository=${RETHINK_ROBOTICS_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
146

147
148
149
hpp-baxter_branch=master
hpp-baxter_repository=${HPP_REPO}

Florent Lamiraux's avatar
Florent Lamiraux committed
150
151
152
153
154
155
hpp_romeo_branch=master
hpp_romeo_repository=${HPP_REPO}

romeo_branch=master
romeo_repository=${HPP_REPO}

156
OpenSceneGraph-dae-plugin_extra_flags= -DCOLLADA_DYNAMIC_LIBRARY=${INSTALL_DIR}/lib/libcollada14dom.so -DCOLLADA_INCLUDE_DIR=${INSTALL_DIR}/include/collada-dom
157

158
collada-dom_extra_flags=-DBUILD_SHARED_LIBS=TRUE -DOPT_COLLADA15=FALSE
Joseph Mirabel's avatar
Joseph Mirabel committed
159

Florent Lamiraux's avatar
Florent Lamiraux committed
160
roboptim-core-3.1_extra_flags= -DCMAKE_BUILD_TYPE=Release -DCXX_DISABLE_WERROR=ON
161

Florent Lamiraux's avatar
Florent Lamiraux committed
162
roboptim-trajectory-3.1_extra_flags= -DCMAKE_BUILD_TYPE=Release -DCXX_DISABLE_WERROR=ON
163
164
165

qpOASES_extra_flags= -DCMAKE_BUILD_TYPE=Release

Florent Lamiraux's avatar
Florent Lamiraux committed
166
ifeq (${HUMANOID}, TRUE)
Florent Lamiraux's avatar
Florent Lamiraux committed
167
168
  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
169
else
Florent Lamiraux's avatar
Florent Lamiraux committed
170
171
  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
172
173
endif

174
all: hpp_tutorial.install hpp-gepetto-viewer.install
175
	${MAKE} hpp-doc.install
Florent Lamiraux's avatar
Florent Lamiraux committed
176

Marine Heckler's avatar
Marine Heckler committed
177
# source $DEVEL_DIR/install/setup.bash before installing hrp2.
178
179
hrp2: test-hpp.install

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

status:
265
266
267
268
269
270
	@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"; \
271
		git --no-pager -c status.showUntrackedFiles=no status --short --branch; \
272
273
		cd ..; \
	done
274

Florent Lamiraux's avatar
Florent Lamiraux committed
275
276
277
278
279
280
281
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

282
update:
283
284
285
286
287
	@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
288
289
290

%.checkout:
	if [ -d $(@:.checkout=) ]; then \
291
		echo "$(@:.checkout=) already checkout out."; \
Florent Lamiraux's avatar
Florent Lamiraux committed
292
	else \
Florent Lamiraux's avatar
Florent Lamiraux committed
293
		git clone ${GIT_QUIET} --recursive -b ${$(@:.checkout=)_branch} ${$(@:.checkout=)_repository}/$(@:.checkout=); \
Florent Lamiraux's avatar
Florent Lamiraux committed
294
295
296
	fi \

%.update:
297
298
299
300
301
302
303
304
305
306
307
308
309
310
	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
311

Florent Lamiraux's avatar
Florent Lamiraux committed
312
313
%.configure: %.configure.dep
	${MAKE} $(@:.configure=).configure_nodep
314

Florent Lamiraux's avatar
Florent Lamiraux committed
315
316
317
318
%.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
319

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

Florent Lamiraux's avatar
Florent Lamiraux committed
323
324
%.install_nodep:%.configure_nodep
	${MAKE} -C ${SRC_DIR}/$(@:.install_nodep=)/${BUILD_FOLDER} install
Florent Lamiraux's avatar
Florent Lamiraux committed
325
326

%.uninstall:
327
	${MAKE} -C ${SRC_DIR}/$(@:.uninstall=)/${BUILD_FOLDER} uninstall
Florent Lamiraux's avatar
Florent Lamiraux committed
328
329

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

332
%.very-clean:
333
	rm -rf ${SRC_DIR}/$(@:.very-clean=)/${BUILD_FOLDER}/*
334

Florent Lamiraux's avatar
Florent Lamiraux committed
335
336
337
%.status:
	cd ${SRC_DIR}/$(@:.status=); git status

Florent Lamiraux's avatar
Florent Lamiraux committed
338
339
340
341
342
343
344
%.log:
	@cd ${SRC_DIR}/$(@:.log=); \
	if [ -f .git/refs/heads/${$(@:.log=)_branch} ]; then \
		echo -n "$(@:.log=): "; \
		cat .git/refs/heads/${$(@:.log=)_branch}; \
	fi

Florent Lamiraux's avatar
Florent Lamiraux committed
345
eigen3.checkout:
346
347
348
	if [ -d $(@:.checkout=) ]; then \
		echo "$(@:.checkout=) already checkout out."; \
	else \
Florent Lamiraux's avatar
Florent Lamiraux committed
349
		${WGET} -O - "http://bitbucket.org/eigen/eigen/get/3.2.4.tar.bz2" | ${TAR} -xj; \
350
		mv eigen-eigen-10219c95fe65 eigen3;\
351
	fi
Florent Lamiraux's avatar
Florent Lamiraux committed
352

353
eigen3.configure: eigen3.configure.dep
Florent Lamiraux's avatar
Florent Lamiraux committed
354
	cd ${SRC_DIR}/eigen3;\
355
356
	mkdir -p ${BUILD_FOLDER}; \
	cd ${SRC_DIR}/eigen3/${BUILD_FOLDER}; \
357
	cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} -DCMAKE_INSTALL_LIBDIR=lib -Dpkg_config_libdir=${INSTALL_DIR}/lib ..
Florent Lamiraux's avatar
Florent Lamiraux committed
358

Joseph Mirabel's avatar
Joseph Mirabel committed
359
360
361
362
roboptim-core-3.1.checkout:
	if [ -d $(@:.checkout=) ]; then \
		echo "$(@:.checkout=) already checkout out."; \
	else \
Florent Lamiraux's avatar
Florent Lamiraux committed
363
		${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
364
365
366
367
368
369
	fi

roboptim-trajectory-3.1.checkout:
	if [ -d $(@:.checkout=) ]; then \
		echo "$(@:.checkout=) already checkout out."; \
	else \
Florent Lamiraux's avatar
Florent Lamiraux committed
370
	  ${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
371
372
	fi

373
hrp2.configure: hrp2.configure.dep
374
	. ${INSTALL_DIR}/setup.sh; \
Florent Lamiraux's avatar
Florent Lamiraux committed
375
	cd ${SRC_DIR}/hrp2/hrp2_14_description;\
376
377
	mkdir -p ${BUILD_FOLDER}; \
	cd ${SRC_DIR}/hrp2/hrp2_14_description/${BUILD_FOLDER}; \
378
	cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ..
Florent Lamiraux's avatar
Florent Lamiraux committed
379

Florent Lamiraux's avatar
Florent Lamiraux committed
380
hrp2.install: hrp2.configure
381
	${MAKE} -C ${SRC_DIR}/hrp2/hrp2_14_description/${BUILD_FOLDER} install
Florent Lamiraux's avatar
Florent Lamiraux committed
382

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_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_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
400
401
402
403
404
405
406
407
408

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

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