Makefile 16.8 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
14
15
16
SRC_DIR=${DEVEL_HPP_DIR}/src
ifndef INSTALL_HPP_DIR
INSTALL_HPP_DIR=${DEVEL_HPP_DIR}/install
endif
17

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

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

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

Florent Lamiraux's avatar
Florent Lamiraux committed
31
32
33
34
WGET=wget --quiet
UNZIP=unzip -qq
TAR=tar
GIT_QUIET=--quiet
35
36
# Qt version should be either 4 or 5
QT_VERSION=4
37
INSTALL_DOCUMENTATION=ON
Florent Lamiraux's avatar
Florent Lamiraux committed
38

Joseph Mirabel's avatar
Joseph Mirabel committed
39
hpp-fcl_branch=master
40
hpp-fcl_repository=${HPP_REPO}
41
hpp-fcl_extra_flags= -DCMAKE_BUILD_TYPE=Release
Florent Lamiraux's avatar
Florent Lamiraux committed
42

43
hpp-util_branch=master
Florent Lamiraux's avatar
Florent Lamiraux committed
44
45
hpp-util_repository=${HPP_REPO}

46
pinocchio_branch=hpp
47
48
49
50
51
pinocchio_repository=${SOT_REPO}
pinocchio_extra_flags= -DBUILD_PYTHON_INTERFACE=OFF

hpp-pinocchio_branch=master
hpp-pinocchio_repository=${HPP_REPO}
52
hpp-pinocchio_extra_flags=-DDISABLE_TESTS=ON
53

54
hpp-statistics_branch=master
55
hpp-statistics_repository=${HPP_REPO}
56

57
hpp-core_branch=master
58
hpp-core_repository=${HPP_REPO}
59
hpp-core_extra_flags=-DDISABLE_TESTS=ON
Florent Lamiraux's avatar
Florent Lamiraux committed
60

61
hpp-template-corba_branch=master
Florent Lamiraux's avatar
Florent Lamiraux committed
62
63
hpp-template-corba_repository=${LAAS_REPO}

64
hpp-corbaserver_branch=master
65
hpp-corbaserver_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
66

67
68
69
qpOASES_branch=master
qpOASES_repository=${HPP_REPO}

70
hpp-constraints_branch=master
71
hpp-constraints_repository=${HPP_REPO}
72
hpp-constraints_extra_flags=-DDISABLE_TESTS=ON
Florent Lamiraux's avatar
Florent Lamiraux committed
73

74
hpp-walkgen_branch=master
Joseph Mirabel's avatar
Joseph Mirabel committed
75
76
hpp-walkgen_repository=${HPP_REPO}

77
hpp-wholebody-step_branch=master
Florent Lamiraux's avatar
Florent Lamiraux committed
78
79
hpp-wholebody-step_repository=${HPP_REPO}

80
hpp-wholebody-step-corba_branch=master
Florent Lamiraux's avatar
Florent Lamiraux committed
81
82
hpp-wholebody-step-corba_repository=${HPP_REPO}

83
test-hpp_branch=master
84
test-hpp_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
85
86

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

89
hpp-hrp2_branch=master
90
hpp-hrp2_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
91

Florent Lamiraux's avatar
Florent Lamiraux committed
92
93
94
95
96
97
robot_capsule_urdf_branch=groovy
robot_capsule_urdf_repository=${LAAS_REPO}

robot_model_py_branch=groovy
robot_model_py_repository=${LAAS_REPO}

98
hpp-doc_branch=master
99
hpp-doc_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
100

101
hpp-manipulation_branch=master
102
hpp-manipulation_repository=${HPP_REPO}
103

104
105

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

108
hpp-manipulation-corba_branch=master
109
hpp-manipulation-corba_repository=${HPP_REPO}
110

111
112
113
114
115
116
robot_state_chain_publisher_branch=master
robot_state_chain_publisher_repository=${HPP_REPO}

iai_maps_branch=master
iai_maps_repository=${HPP_REPO}

117
hpp_tutorial_branch=master
118
hpp_tutorial_repository=${HPP_REPO}
119
120
121

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

123
124
125
collada-dom_branch=master
collada-dom_repository=${HPP_REPO}

126
127
128
OpenSceneGraph-dae-plugin_branch=master
OpenSceneGraph-dae-plugin_repository=${HPP_REPO}

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

132
gepetto-viewer-corba_branch=master
133
gepetto-viewer-corba_repository=${HPP_REPO}
134
135
136
ifeq (${QT_VERSION}, 5)
  gepetto-viewer-corba_extra_flags= -DUSE_QT4=OFF
endif
137

138
hpp-gepetto-viewer_branch=master
139
hpp-gepetto-viewer_repository=${HPP_REPO}
140

141
pythonqt_branch=qt${QT_VERSION}
Florent Lamiraux's avatar
Florent Lamiraux committed
142
143
144
145
pythonqt_repository=${HPP_REPO}
pythonqt_extra_flags= -DPythonQt_Wrap_QtAll=ON -DPythonQt_Extensions=ON

oqgv_branch=master
146
147
148
149
150
qgv_repository=${HPP_REPO}

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

Florent Lamiraux's avatar
Florent Lamiraux committed
151
152
153
154
universal_robot_branch=indigo-devel
universal_robot_repository=${HPP_REPO}

hpp_universal_robot_branch=devel
155
hpp_universal_robot_repository=${HPP_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
156

Florent Lamiraux's avatar
Florent Lamiraux committed
157
baxter_common_branch=master
158
baxter_common_repository=${RETHINK_ROBOTICS_REPO}
Florent Lamiraux's avatar
Florent Lamiraux committed
159

160
161
162
hpp-baxter_branch=master
hpp-baxter_repository=${HPP_REPO}

Florent Lamiraux's avatar
Florent Lamiraux committed
163
164
165
166
167
168
hpp_romeo_branch=master
hpp_romeo_repository=${HPP_REPO}

romeo_branch=master
romeo_repository=${HPP_REPO}

169
170
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=""
171

172
collada-dom_extra_flags=-DBUILD_SHARED_LIBS=TRUE -DOPT_COLLADA15=FALSE
Joseph Mirabel's avatar
Joseph Mirabel committed
173

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

Florent Lamiraux's avatar
Florent Lamiraux committed
176
roboptim-trajectory-3.1_extra_flags= -DCMAKE_BUILD_TYPE=Release -DCXX_DISABLE_WERROR=ON
177
178
179

qpOASES_extra_flags= -DCMAKE_BUILD_TYPE=Release

Florent Lamiraux's avatar
Florent Lamiraux committed
180
ifeq (${HUMANOID}, TRUE)
Florent Lamiraux's avatar
Florent Lamiraux committed
181
182
  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
183
else
Florent Lamiraux's avatar
Florent Lamiraux committed
184
185
  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
186
187
endif

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

191
# source $DEVEL_HPP_DIR/install/setup.bash before installing hrp2.
192
193
hrp2: test-hpp.install

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

status:
282
283
284
285
286
287
	@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"; \
288
		git --no-pager -c status.showUntrackedFiles=no status --short --branch; \
289
290
		cd ..; \
	done
291

Florent Lamiraux's avatar
Florent Lamiraux committed
292
293
294
295
296
297
298
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

299
update:
300
301
302
303
304
	@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
305
306
307

%.checkout:
	if [ -d $(@:.checkout=) ]; then \
308
		echo "$(@:.checkout=) already checkout out."; \
Florent Lamiraux's avatar
Florent Lamiraux committed
309
	else \
Florent Lamiraux's avatar
Florent Lamiraux committed
310
		git clone ${GIT_QUIET} --recursive -b ${$(@:.checkout=)_branch} ${$(@:.checkout=)_repository}/$(@:.checkout=); \
Florent Lamiraux's avatar
Florent Lamiraux committed
311
312
313
	fi \

%.update:
314
315
316
317
318
319
320
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;\
		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
328

Florent Lamiraux's avatar
Florent Lamiraux committed
329
330
%.configure: %.configure.dep
	${MAKE} $(@:.configure=).configure_nodep
331

Florent Lamiraux's avatar
Florent Lamiraux committed
332
333
334
%.configure_nodep:%.checkout
	mkdir -p ${SRC_DIR}/$(@:.configure_nodep=)/${BUILD_FOLDER}; \
	cd ${SRC_DIR}/$(@:.configure_nodep=)/${BUILD_FOLDER}; \
335
	cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_HPP_DIR} -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
336
337
338
			-DINSTALL_DOCUMENTATION=${INSTALL_DOCUMENTATION} \
			-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-g -O3 -DNDEBUG" \
			${$(@:.configure_nodep=)_extra_flags} ..
Florent Lamiraux's avatar
Florent Lamiraux committed
339

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

Florent Lamiraux's avatar
Florent Lamiraux committed
343
344
%.install_nodep:%.configure_nodep
	${MAKE} -C ${SRC_DIR}/$(@:.install_nodep=)/${BUILD_FOLDER} install
Florent Lamiraux's avatar
Florent Lamiraux committed
345
346

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

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

352
%.very-clean:
353
	rm -rf ${SRC_DIR}/$(@:.very-clean=)/${BUILD_FOLDER}/*
354

Florent Lamiraux's avatar
Florent Lamiraux committed
355
356
357
%.status:
	cd ${SRC_DIR}/$(@:.status=); git status

Florent Lamiraux's avatar
Florent Lamiraux committed
358
359
360
361
362
363
364
%.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
365
eigen3.checkout:
366
367
368
	if [ -d $(@:.checkout=) ]; then \
		echo "$(@:.checkout=) already checkout out."; \
	else \
Florent Lamiraux's avatar
Florent Lamiraux committed
369
		${WGET} -O - "http://bitbucket.org/eigen/eigen/get/3.2.4.tar.bz2" | ${TAR} -xj; \
370
		mv eigen-eigen-10219c95fe65 eigen3;\
371
	fi
Florent Lamiraux's avatar
Florent Lamiraux committed
372

373
eigen3.configure: eigen3.configure.dep
Florent Lamiraux's avatar
Florent Lamiraux committed
374
	cd ${SRC_DIR}/eigen3;\
375
376
	mkdir -p ${BUILD_FOLDER}; \
	cd ${SRC_DIR}/eigen3/${BUILD_FOLDER}; \
377
	cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_HPP_DIR} -DCMAKE_INSTALL_LIBDIR=lib -Dpkg_config_libdir=${INSTALL_HPP_DIR}/lib ..
Florent Lamiraux's avatar
Florent Lamiraux committed
378

Joseph Mirabel's avatar
Joseph Mirabel committed
379
380
381
382
roboptim-core-3.1.checkout:
	if [ -d $(@:.checkout=) ]; then \
		echo "$(@:.checkout=) already checkout out."; \
	else \
Florent Lamiraux's avatar
Florent Lamiraux committed
383
		${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
384
385
	fi

386
387
388
389
390
391
392
393
394
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
395
396
397
398
roboptim-trajectory-3.1.checkout:
	if [ -d $(@:.checkout=) ]; then \
		echo "$(@:.checkout=) already checkout out."; \
	else \
Florent Lamiraux's avatar
Florent Lamiraux committed
399
	  ${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
400
401
	fi

402
hrp2.configure: hrp2.configure.dep
403
	. ${INSTALL_HPP_DIR}/setup.sh; \
Florent Lamiraux's avatar
Florent Lamiraux committed
404
	cd ${SRC_DIR}/hrp2/hrp2_14_description;\
405
406
	mkdir -p ${BUILD_FOLDER}; \
	cd ${SRC_DIR}/hrp2/hrp2_14_description/${BUILD_FOLDER}; \
407
	cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_HPP_DIR} -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ..
Florent Lamiraux's avatar
Florent Lamiraux committed
408

Florent Lamiraux's avatar
Florent Lamiraux committed
409
hrp2.install: hrp2.configure
410
	${MAKE} -C ${SRC_DIR}/hrp2/hrp2_14_description/${BUILD_FOLDER} install
Florent Lamiraux's avatar
Florent Lamiraux committed
411

412
robot_model_py.configure: robot_model_py.configure.dep
Florent Lamiraux's avatar
Florent Lamiraux committed
413
	cd ${SRC_DIR}/$(@:.configure=)/xml_reflection;\
414
415
	mkdir -p ${BUILD_FOLDER}; \
	cd ${BUILD_FOLDER}; \
416
	cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_HPP_DIR} -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ..
Florent Lamiraux's avatar
Florent Lamiraux committed
417
	cd ${SRC_DIR}/$(@:.configure=)/urdf_parser_py;\
418
419
	mkdir -p ${BUILD_FOLDER}; \
	cd ${BUILD_FOLDER}; \
420
	cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_HPP_DIR} -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ..
Marine Heckler's avatar
Marine Heckler committed
421

Florent Lamiraux's avatar
Florent Lamiraux committed
422
robot_model_py.install: robot_model_py.configure
423
424
	${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
425
426
427
428

universal_robot.configure_nodep:
	mkdir -p ${SRC_DIR}/$(@:.configure_nodep=)/ur_description/${BUILD_FOLDER}; \
	cd ${SRC_DIR}/$(@:.configure_nodep=)/ur_description/${BUILD_FOLDER}; \
429
	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
430
431
432
433
434
435
436
437

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
438
439
440
441

baxter_common.configure_nodep:
	mkdir -p ${SRC_DIR}/$(@:.configure_nodep=)/baxter_description/${BUILD_FOLDER}; \
	cd ${SRC_DIR}/$(@:.configure_nodep=)/baxter_description/${BUILD_FOLDER}; \
442
	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
443
444
	mkdir -p ${SRC_DIR}/$(@:.configure_nodep=)/rethink_ee_description/${BUILD_FOLDER}; \
	cd ${SRC_DIR}/$(@:.configure_nodep=)/rethink_ee_description/${BUILD_FOLDER}; \
445
	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
446
447
448
449
450
451
452
453
454
455
456
457
458
459

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
460
	. ${INSTALL_HPP_DIR}/setup.sh; \
Florent Lamiraux's avatar
Florent Lamiraux committed
461
462
463
	cd ${SRC_DIR}/romeo/romeo_description;\
	mkdir -p ${BUILD_FOLDER}; \
	cd ${SRC_DIR}/romeo/romeo_description/${BUILD_FOLDER}; \
464
	cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_HPP_DIR} -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ..
Florent Lamiraux's avatar
Florent Lamiraux committed
465
466
467

romeo.install: romeo.configure
	${MAKE} -C ${SRC_DIR}/romeo/romeo_description/${BUILD_FOLDER} install
468
469
470
471
472
473
474
475
476
477
478
479
480

doxygen-1.8.10.checkout:
	if [ -d $(@:.checkout=) ]; then \
		echo "$(@:.checkout=) already checkout out."; \
	else \
		${WGET} -O - "ftp://ftp.stack.nl/pub/users/dimitri/doxygen-1.8.10.linux.bin.tar.gz" | ${TAR} -xz;\
	fi

doxygen-1.8.10.configure_nodep:
	@ :

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