Makefile 13.6 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
12

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

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

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

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

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

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

37
hpp-model_branch=master
Florent Lamiraux's avatar
Florent Lamiraux committed
38
39
hpp-model_repository=${HPP_REPO}

40
41
42
43
44
45
46
47
pinocchio_branch=master
pinocchio_repository=${SOT_REPO}
pinocchio_extra_flags= -DBUILD_PYTHON_INTERFACE=OFF

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

hpp-model-urdf_branch=xxx
Florent Lamiraux's avatar
Florent Lamiraux committed
48
49
hpp-model-urdf_repository=${HPP_REPO}

50
hpp-statistics_branch=master
51
hpp-statistics_repository=${HPP_REPO}
52

53
hpp-core_branch=master
54
hpp-core_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
55
hpp-core_extra_flags=-DRUN_TESTS=FALSE
Florent Lamiraux's avatar
Florent Lamiraux committed
56

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

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

63
64
65
qpOASES_branch=master
qpOASES_repository=${HPP_REPO}

66
hpp-constraints_branch=master
67
hpp-constraints_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
68

69
hpp-walkgen_branch=master
Joseph Mirabel's avatar
Joseph Mirabel committed
70
71
hpp-walkgen_repository=${HPP_REPO}

72
hpp-wholebody-step_branch=master
Florent Lamiraux's avatar
Florent Lamiraux committed
73
74
hpp-wholebody-step_repository=${HPP_REPO}

75
hpp-wholebody-step-corba_branch=master
Florent Lamiraux's avatar
Florent Lamiraux committed
76
77
hpp-wholebody-step-corba_repository=${HPP_REPO}

78
test-hpp_branch=master
79
test-hpp_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
80
81

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

84
hpp-hrp2_branch=master
85
hpp-hrp2_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
86

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

robot_model_py_branch=groovy
robot_model_py_repository=${LAAS_REPO}

93
hpp-doc_branch=master
94
hpp-doc_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
95

96
hpp-manipulation_branch=master
97
hpp-manipulation_repository=${HPP_REPO}
98

99
100

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

103
hpp-manipulation-corba_branch=master
104
hpp-manipulation-corba_repository=${HPP_REPO}
105

106
107
108
109
110
111
robot_state_chain_publisher_branch=master
robot_state_chain_publisher_repository=${HPP_REPO}

iai_maps_branch=master
iai_maps_repository=${HPP_REPO}

112
hpp_tutorial_branch=master
113
hpp_tutorial_repository=${HPP_REPO}
114
115
116

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

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

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

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

127
gepetto-viewer-corba_branch=master
128
129
gepetto-viewer-corba_repository=${HPP_REPO}

130
hpp-gepetto-viewer_branch=master
131
hpp-gepetto-viewer_repository=${HPP_REPO}
132

Florent Lamiraux's avatar
Florent Lamiraux committed
133
134
135
136
137
pythonqt_branch=patched-5
pythonqt_repository=${HPP_REPO}
pythonqt_extra_flags= -DPythonQt_Wrap_QtAll=ON -DPythonQt_Extensions=ON

oqgv_branch=master
138
139
140
141
142
qgv_repository=${HPP_REPO}

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

Florent Lamiraux's avatar
Florent Lamiraux committed
143
144
145
146
147
148
universal_robot_branch=indigo-devel
universal_robot_repository=${HPP_REPO}

hpp_universal_robot_branch=devel
hpp_universal_robot_repository=${FLORENT_REPO}

149
150
151
hpp-baxter_branch=master
hpp-baxter_repository=${HPP_REPO}

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

Joseph Mirabel's avatar
Joseph Mirabel committed
154
155
doxygen-Release_1_8_10_extra_flags= -DCMAKE_BUILD_TYPE=Release

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

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

qpOASES_extra_flags= -DCMAKE_BUILD_TYPE=Release

Florent Lamiraux's avatar
Florent Lamiraux committed
162
163
164
165
166
167
168
169
170
ifeq (${HUMANOID}, TRUE)
  hpp-manipulation_extra_flags= -DHPP_MANIPULATION_HAS_WHOLEBODY=TRUE
  hpp-manipulation-corba_extra_flags-DHPP_MANIPULATION_HAS_WHOLEBODY=TRUE
else
  hpp-manipulation_extra_flags= -DHPP_MANIPULATION_HAS_WHOLEBODY=FALSE
  hpp-manipulation-corba_extra_flags-DHPP_MANIPULATION_HAS_WHOLEBODY=FALSE
endif

all: doxygen-1.8.10.install hpp_tutorial.install \
171
	hpp-manipulation-corba.install 	hpp-gepetto-viewer.install
172
	${MAKE} hpp-doc.install
Florent Lamiraux's avatar
Florent Lamiraux committed
173

Marine Heckler's avatar
Marine Heckler committed
174
# source $DEVEL_DIR/install/setup.bash before installing hrp2.
175
176
hrp2: test-hpp.install

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

status:
253
254
255
256
257
258
	@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"; \
259
		git --no-pager -c status.showUntrackedFiles=no status --short --branch; \
260
261
		cd ..; \
	done
262

Florent Lamiraux's avatar
Florent Lamiraux committed
263
264
265
266
267
268
269
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

270
update:
Florent Lamiraux's avatar
Florent Lamiraux committed
271
272
273
274
	for d in hpp-util hpp-pinocchio hpp-constraints hpp-core \
		hpp-template-corba hpp-corbaserver hpp-constraints \
		hpp-manipulation hpp-manipulation-urdf hpp-manipulation-corba \
		hpp-doc ; do \
275
	echo "Updating $$d";\
276
	${MAKE} $$d.update; done
Florent Lamiraux's avatar
Florent Lamiraux committed
277
278
279

%.checkout:
	if [ -d $(@:.checkout=) ]; then \
280
		echo "$(@:.checkout=) already checkout out."; \
Florent Lamiraux's avatar
Florent Lamiraux committed
281
	else \
Florent Lamiraux's avatar
Florent Lamiraux committed
282
		git clone ${GIT_QUIET} --recursive -b ${$(@:.checkout=)_branch} ${$(@:.checkout=)_repository}/$(@:.checkout=); \
Florent Lamiraux's avatar
Florent Lamiraux committed
283
284
285
286
	fi \

%.update:
	cd ${SRC_DIR}/$(@:.update=);\
287
288
	git remote rm origin;\
	git remote add origin ${$(@:.update=)_repository}/$(@:.update=);\
Florent Lamiraux's avatar
Florent Lamiraux committed
289
290
291
292
293
294
295
	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

Florent Lamiraux's avatar
Florent Lamiraux committed
296
297
%.configure: %.configure.dep
	${MAKE} $(@:.configure=).configure_nodep
298

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

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

Florent Lamiraux's avatar
Florent Lamiraux committed
307
308
%.install_nodep:%.configure_nodep
	${MAKE} -C ${SRC_DIR}/$(@:.install_nodep=)/${BUILD_FOLDER} install
Florent Lamiraux's avatar
Florent Lamiraux committed
309
310

%.uninstall:
311
	${MAKE} -C ${SRC_DIR}/$(@:.uninstall=)/${BUILD_FOLDER} uninstall
Florent Lamiraux's avatar
Florent Lamiraux committed
312
313

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

316
%.very-clean:
317
	rm -rf ${SRC_DIR}/$(@:.very-clean=)/${BUILD_FOLDER}/*
318

Florent Lamiraux's avatar
Florent Lamiraux committed
319
320
321
%.status:
	cd ${SRC_DIR}/$(@:.status=); git status

Florent Lamiraux's avatar
Florent Lamiraux committed
322
323
324
325
326
327
328
329
%.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
330
hpp-doc.configure: hpp-doc.checkout
Florent Lamiraux's avatar
Florent Lamiraux committed
331
332
	cd ${SRC_DIR}/$(@:.configure=);\
	./bootstrap;\
333
334
	mkdir -p ${BUILD_FOLDER}; \
	cd ${SRC_DIR}/$(@:.configure=)/${BUILD_FOLDER}; \
335
	../configure --prefix=${INSTALL_DIR}
Florent Lamiraux's avatar
Florent Lamiraux committed
336
337

eigen3.checkout:
338
339
340
	if [ -d $(@:.checkout=) ]; then \
		echo "$(@:.checkout=) already checkout out."; \
	else \
Florent Lamiraux's avatar
Florent Lamiraux committed
341
		${WGET} -O - "http://bitbucket.org/eigen/eigen/get/3.2.4.tar.bz2" | ${TAR} -xj; \
342
		mv eigen-eigen-10219c95fe65 eigen3;\
343
	fi
Florent Lamiraux's avatar
Florent Lamiraux committed
344

345
eigen3.configure: eigen3.configure.dep
Florent Lamiraux's avatar
Florent Lamiraux committed
346
	cd ${SRC_DIR}/eigen3;\
347
348
	mkdir -p ${BUILD_FOLDER}; \
	cd ${SRC_DIR}/eigen3/${BUILD_FOLDER}; \
349
	cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} -DCMAKE_INSTALL_LIBDIR=lib -Dpkg_config_libdir=${INSTALL_DIR}/lib ..
Florent Lamiraux's avatar
Florent Lamiraux committed
350

Joseph Mirabel's avatar
Joseph Mirabel committed
351
352
353
354
roboptim-core-3.1.checkout:
	if [ -d $(@:.checkout=) ]; then \
		echo "$(@:.checkout=) already checkout out."; \
	else \
Florent Lamiraux's avatar
Florent Lamiraux committed
355
		${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
356
357
358
359
360
361
	fi

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

Florent Lamiraux's avatar
Florent Lamiraux committed
365
doxygen-1.8.10.checkout:
Joseph Mirabel's avatar
Joseph Mirabel committed
366
367
368
	if [ -d $(@:.checkout=) ]; then \
		echo "$(@:.checkout=) already checkout out."; \
	else \
Florent Lamiraux's avatar
Florent Lamiraux committed
369
	  ${WGET} -O - "ftp://ftp.stack.nl/pub/users/dimitri/doxygen-1.8.10.linux.bin.tar.gz" | ${TAR} -xz;\
Joseph Mirabel's avatar
Joseph Mirabel committed
370
371
	fi

Florent Lamiraux's avatar
Florent Lamiraux committed
372
373
374
375
376
377
378
379
doxygen-1.8.10.configure: doxygen-1.8.10.configure.dep
	@ :

doxygen-1.8.10.install: doxygen-1.8.10.configure
	cd ${SRC_DIR}/doxygen-1.8.10;\
  mkdir -p ${DEVEL_DIR}/install/bin;\
  install --mode=755 -t ${DEVEL_DIR}/install/bin bin/doxygen

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

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

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

Florent Lamiraux's avatar
Florent Lamiraux committed
400
robot_model_py.install: robot_model_py.configure
401
402
	${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
403
404
405
406
407
408
409
410
411
412
413
414
415

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