Makefile to recursively build all subdirs
This commit is contained in:
parent
2da8d220ad
commit
968558f9f2
1 changed files with 16 additions and 0 deletions
16
tests/Makefile
Normal file
16
tests/Makefile
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# recursively build all example projects in the subdirectories
|
||||
|
||||
projects := $(filter-out _%, $(dir $(wildcard */Makefile)))
|
||||
|
||||
all: $(projects:%=%-build)
|
||||
clean: $(projects:%=%-clean)
|
||||
install: $(projects:%=%-install)
|
||||
projects:
|
||||
@echo $(projects)
|
||||
|
||||
%-build: %/Makefile
|
||||
$(MAKE) -C $(<D)
|
||||
%-clean: %/Makefile
|
||||
$(MAKE) -C $(<D) clean
|
||||
%-install: %/Makefile
|
||||
$(MAKE) -C $(<D) install
|
||||
Loading…
Reference in a new issue