`pakk_logg`: Make it work on the mobile
[sunny256-utils.git] / Git / Makefile
blobe2efa35f037a4d5f27aae19212218ea9222cab23
1 # oyvholm/utils/Git/Makefile
2 # File ID: 83bbcb90-4aeb-11e6-b612-02010e0a6634
4 MAKEFILES = */Makefile
5 # FIXME: Make gpstools work
6 DIRS = $$(echo $? | fmt -1 | cut -f 1 -d / | grep -v gpstools | sort -u)
8 .PHONY: all
9 all: $(MAKEFILES)
10 for f in $(DIRS); do (cd $$f && $(MAKE)) || exit 1; done
12 .PHONY: clean
13 clean:
15 .PHONY: fullclean
16 fullclean: $(MAKEFILES)
17 $(MAKE) clean
18 for f in $(DIRS); do (cd $$f && $(MAKE) clean) || exit 1; done
20 .PHONY: test
21 test: $(MAKEFILES)
22 for f in $(DIRS); do (cd $$f && $(MAKE) test) || exit 1; done
24 .PHONY: testport
25 testport:
26 if test -f gpstools/Makefile; then \
27 cd gpstools/tests && \
28 ./addpoints.t && \
29 ./csv2gpx.t && \
30 ./gpst-file.t && \
31 ./roundgpx.t || exit 1; \
33 if test -f spar/Makefile; then cd spar && $(MAKE) test; fi
34 if test -f suuid/Makefile; then cd suuid && $(MAKE) test; fi
36 .PHONY: valgrind
37 valgrind: $(MAKEFILES)
38 for f in $(DIRS); do \
39 if grep -q ^valgrind: $$f/Makefile; then \
40 (cd $$f && $(MAKE) valgrind) || exit 1; \
41 fi \
42 done