summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 6121614..0dfb3ff 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,9 @@
dirs := $(subst /Makefile,,$(wildcard */Makefile))
+.PHONY: clean default $(dirs)
default: $(dirs)
-%:
+$(dirs):
$(MAKE) -C $@
-.PHONY: clean default $(dirs)
clean:
for dir in $(dirs); do \
- $(MAKE) -C $(CODE_DIR) clean; \
+ $(MAKE) -C $$dir clean; \
done