simplified master-test Makefile with pd-lib-builder magic

This commit is contained in:
IOhannes m zmölnig 2020-03-04 23:06:29 +01:00 committed by katjav
parent 00dc51cc11
commit 12c0d1cc87

View file

@ -1,23 +1,12 @@
# recursively build all example projects in the subdirectories # recursively build all example projects in the subdirectories
projects := $(filter-out _%, $(dir $(wildcard */Makefile)))
all: $(projects:%=%-build) makefiledirs := $(filter-out _%, $(dir $(wildcard */Makefile)))
buildcheck: $(projects:%=%-buildcheck)
install: $(projects:%=%-install) PDLIBBUILDER_DIR = ../
installcheck: $(projects:%=%-installcheck) include $(PDLIBBUILDER_DIR)/Makefile.pdlibbuilder
clean: $(projects:%=%-clean)
buildcheck installcheck: $(makefiledirs)
projects: projects:
@echo $(projects) @echo $(makefiledirs)
%-build: %/Makefile
$(MAKE) -C $(<D)
%-clean: %/Makefile
$(MAKE) -C $(<D) clean
%-install: %/Makefile
$(MAKE) -C $(<D) install
%-buildcheck: %/Makefile %-build
$(MAKE) -C $(<D) buildcheck
%-installcheck: %/Makefile
$(MAKE) -C $(<D) installcheck