1 # This makefile tries to build all RPP projects in this repository.
3 SUBDIRS = Debug POSIX apps/rpp-test-suite/Debug apps/rpp-test-suite/POSIX
5 subdir-targets = $(SUBDIRS:%=subdir-%)
9 clean: $(subdir-targets)
11 lib: # Build only the library
14 doc: # Build API documentation (Doxygen)
15 $(MAKE) -C rpp/doc/api/
19 # Multiple submakes are invoked in the same directory - e.g.
20 # rpp-test-suite/Debug/GNUmakefile invokes Debug/GNUmakefile. We don't
21 # want these targets to be invoked twice so we forbid parallel
22 # invocation in this Makefile. Note that the submakes still run in
26 subdir-% subdir-apps/%:
27 $(MAKE) -C $(@:subdir-%=%) $(MAKECMDGOALS)
30 UNCRUSTIFY_FILES = $(shell git ls-files|git check-attr --stdin uncrustify|awk -F: '/uncrustify: set$$/ {print $$1}')
32 $(foreach i,$(UNCRUSTIFY_FILES),git show HEAD:$i | uncrustify -c etc/uncrustify.cfg -o $i
36 # Usage: Run 'make uncrustify' and then 'git add -p' to commit the
37 # changes you agree with.
39 git diff --quiet # Check that the tree is clean