-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathMakefile
executable file
·68 lines (42 loc) · 1.98 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
56
57
58
59
60
61
62
63
64
65
66
67
68
BASE = .
target: src
DEPEND = $(shell find rai -mindepth 1 -maxdepth 1 -printf "%f ")
################################################################################
src_paths = $(shell find rai -mindepth 1 -maxdepth 1 -type d -not -name 'retired' -printf "%f ")
test_paths = $(shell find test -maxdepth 3 -name 'Makefile' -printf "%h ")
bin_paths = $(shell find bin -maxdepth 2 -name 'Makefile' -printf "%h ")
################################################################################
initUbuntuPackages: force
@echo "##### calling make installUbuntu in each lib"
@find rai -mindepth 1 -maxdepth 1 -type d -exec make installUbuntu -C {} \;
printUbuntu: $(DEPEND:%=inPath_printUbuntuPackages/%) printUbuntuPackages
tests: $(test_paths:%=inPath_make/%)
bin: $(bin_paths:%=inPath_make/%)
src: $(src_paths:%=inPath_makeLib/%)
depend: $(src_paths:%=dependPath/%)
clean: $(src_paths:%=inPath_clean/%) cleanLocks
cleanStart: force
@read -p " *** WARNING: This will rm ALL local files/changes (e.g. project/temporary/data files) - abort if you don't want to continue" yn
git clean -f -d -x
cp build/config.mk.default build/config.mk
bin/createMakefileLinks.sh
################################################################################
# test: setConfigFlag $(exa_paths:%=inPath_clean/%) cleanLocks $(exa_paths:%=inPath_make/%)
# setConfigFlag: force
# echo "RAI_TESTS = 1" > build/z.mk
runTests: tests
@rm -f z.test-report
@find test -mindepth 2 -maxdepth 2 -type d \
-exec build/run-path.sh {} \;
################################################################################
doc:
cd doc; doxygen rai.doxy;
# $(MAKE) -w -C doc guide doxy
reformatSources:
astyle --options=rai/style.astyle "rai/MT/*.h" "rai/MT/*.cpp" "rai/MT/*.cxx"
cd rai; find MT/ \( -name "*.h" -or -name "*.cpp" -or -name "*.cxx" \) -exec ./style.sed.sh {} \;
%.tgz: force
bin/makeZip.sh $*
force:
################################################################################
include build/generic.mk