-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
55 lines (48 loc) · 1.33 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Master Makefile to compile all Lua/C++ libraries
CWD= $(shell pwd)
PWD= $(subst /,\/,$(CWD)/Player/Lib)
.PHONY: all none clean transform modules robots gazebo
all none: modules robots
%:
@cd Robots/Transform && make && cd $(CWD)
@printf " %s %s\n" Making $@;
@cd Robots/$@ && make && cd $(CWD)
@printf " %s %s\n" Configuring $@;
@rm -f $(CWD)/Config/Config.lua
@ln -s $(CWD)/Config/[email protected] $(CWD)/Config/Config.lua
#naoqi:
# @echo "Compiling Custom Naoqi Modules...\n"
# @echo $(PWD)
# sed -i -e 's/HOME/$(PWD)/g' $(NAOQIDIR)/src/dcmprocess.cpp
# cd $(NAOQIDIR) && make && cd $(CWD)
# sed -i -e 's/$(PWD)/HOME/g' $(NAOQIDIR)/src/dcmprocess.cpp
# @echo "\n"
modules:
@for dir in `ls Modules`; do \
printf " %b \n" $$dir ; \
$(MAKE) -C Modules/$$dir clean; \
$(MAKE) -C Modules/$$dir; \
done
# Must make transform first
robots:
@cd Robots/Transform && make && cd $(CWD)
@for dir in `ls Robots`; do \
printf " %b \n" $$dir ; \
$(MAKE) -C Robots/$$dir clean; \
$(MAKE) -C Robots/$$dir; \
done
gazebo:
@for dir in `ls Gazebo`; do \
printf " %b \n" $$dir ; \
$(MAKE) -C Gazebo/$$dir; \
done
clean:
@for dir in `ls Modules`; do \
printf " %b \n" $$dir ; \
$(MAKE) -C Modules/$$dir clean; \
done
@for dir in `ls Robots`; do \
printf " %b \n" $$dir ; \
$(MAKE) -C Robots/$$dir clean; \
done
@rm -f $(CWD)/Config/Config.lua