forked from RobotLocomotion/director
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (21 loc) · 627 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
pod_dirs:=$(shell find distro/pods -maxdepth 2 -name pod-build -print0)
default:
@if [ -z $(pod_dirs) ]; then \
echo \\nOops! Please specify a target: $(MAKE) \<drc\|drake-distro\|superbuild\>\\n; \
else \
for d in $(pod_dirs); do \
$(MAKE) -C `dirname "$$d"`; \
done; \
fi
drc:
$(MAKE) -C distro/pods/drc
drake-distro:
$(MAKE) -C distro/pods/drake-distro
superbuild:
@mkdir -p build
@cd build && cmake ../distro/superbuild
$(MAKE) -C build
test:
@for pod in distro/pods/*/pod-build; do $(MAKE) -C $$pod test; done
clean:
@for pod in `ls distro/pods`; do $(MAKE) -C distro/pods/$$pod clean; done