simplified master-test Makefile with pd-lib-builder magic
This commit is contained in:
parent
00dc51cc11
commit
12c0d1cc87
1 changed files with 7 additions and 18 deletions
|
|
@ -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
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue