From 968558f9f2e30d133154b956669085d039e96b03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Wed, 4 Mar 2020 14:48:46 +0100 Subject: [PATCH] Makefile to recursively build all subdirs --- tests/Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/Makefile diff --git a/tests/Makefile b/tests/Makefile new file mode 100644 index 0000000..6226db3 --- /dev/null +++ b/tests/Makefile @@ -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 $(