From d797758769d033c64babdf77ea6b64262f792b23 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 3 Oct 2022 18:14:31 +0200 Subject: add zip make target and clean up global makefile --- makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index 71eabae..4e05b91 100644 --- a/makefile +++ b/makefile @@ -1,8 +1,16 @@ MK = make -j WEKEN = $(wildcard week-*) +submake = $(foreach WEEK,$(WEKEN), $(MK) -C $(WEEK) $(1);) + all: - $(foreach WEEK,$(WEKEN), $(MK) -C $(WEEK);) + $(call submake) clean: - $(foreach WEEK,$(WEKEN), $(MK) -C $(WEEK) clean;) + $(call submake, clean) + +compile_commands: + $(call submake, compile_commands) + +zip: + $(call submake, zip) -- cgit v1.2.3