comport/tests/Makefile
2020-03-07 22:05:19 +01:00

17 lines
374 B
Makefile

# 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