aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-11-09 11:48:12 +0100
committerlonkaars <loek@pipeframe.xyz>2022-11-09 11:48:12 +0100
commitffae2cb77bfb3263146a2de0deedf6528d4df461 (patch)
tree88e4b61087069f8ce5badadbc6264d20b8a051d5 /makefile
parentd797758769d033c64babdf77ea6b64262f792b23 (diff)
repository aanpassen voor oop2
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)