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
projects := $(filter-out _%, $(dir $(wildcard */Makefile)))
all: $(projects:%=%-build)
buildcheck: $(projects:%=%-buildcheck)
install: $(projects:%=%-install)
installcheck: $(projects:%=%-installcheck)
clean: $(projects:%=%-clean)
makefiledirs := $(filter-out _%, $(dir $(wildcard */Makefile)))
PDLIBBUILDER_DIR = ../
include $(PDLIBBUILDER_DIR)/Makefile.pdlibbuilder
buildcheck installcheck: $(makefiledirs)
projects:
@echo $(projects)
%-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
@echo $(makefiledirs)