From ffae2cb77bfb3263146a2de0deedf6528d4df461 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Wed, 9 Nov 2022 11:48:12 +0100 Subject: repository aanpassen voor oop2 --- makefile | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'makefile') 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) -- cgit v1.2.3