X-Git-Url: http://rtime.felk.cvut.cz/gitweb/pes-rpp/rpp-lib.git/blobdiff_plain/14b5523ab9c75f5302bc64ae8078db01ae05e4d3..5e5f1df1fad4674a87019fa6c72a2f2d2e0d8db0:/Makefile diff --git a/Makefile b/Makefile index e6aa2ab..62551c7 100644 --- a/Makefile +++ b/Makefile @@ -12,18 +12,21 @@ # Abstract: # This makefile tries to build all RPP projects in this repository. -include Makefile.config +TARGETS=$(sort $(notdir $(patsubst %/,%,$(dir $(wildcard build/*/Makefile.config))))) -SUBDIRS = Debug POSIX apps/rpp-test-suite/Debug apps/rpp-test-suite/POSIX +SUBDIRS = $(foreach t,$(TARGETS),build/$(t)/Debug build/$(t)/apps/helloworld build/$(t)/apps/rpp-test-suite) subdir-targets = $(SUBDIRS:%=subdir-%) all: $(subdir-targets) +print-targets: + @echo "Building for targets: $(TARGETS)" + clean: $(subdir-targets) lib: # Build only the library - $(MAKE) -C Debug + $(MAKE) -C build/tms570_hydctr/Debug doc: # Build API documentation (Doxygen) $(MAKE) -C rpp/doc/api/ @@ -37,7 +40,7 @@ doc: # Build API documentation (Doxygen) # parallel. .NOTPARALLEL: -subdir-% subdir-apps/%: +subdir-build/%: print-targets $(MAKE) -C $(@:subdir-%=%) $(MAKECMDGOALS) @@ -55,9 +58,9 @@ uncrustify: $(UNCRUSTIFY_ALL) -RELEASE_PREFIX = rpp-lib include common.mk +$(eval $(call release_rules,rpp-lib)) release: $(RELEASE_BASENAME).zip $(RELEASE_BASENAME)::