aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile19
1 files changed, 7 insertions, 12 deletions
diff --git a/makefile b/makefile
index 4e05b91..acb6c56 100644
--- a/makefile
+++ b/makefile
@@ -1,16 +1,11 @@
MK = make -j
-WEKEN = $(wildcard week-*)
+WEKEN := $(wildcard oop*w*)
+TARGETS := all clean compile_commands zip
-submake = $(foreach WEEK,$(WEKEN), $(MK) -C $(WEEK) $(1);)
+_: all
-all:
- $(call submake)
+.PHONY: $(TARGETS) $(WEKEN)
+$(TARGETS): $(WEKEN)
+$(WEKEN):
+ $(MK) -C $@ $(MAKECMDGOALS)
-clean:
- $(call submake, clean)
-
-compile_commands:
- $(call submake, compile_commands)
-
-zip:
- $(call submake, zip)