fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40409?usp=email )
Change subject: Makefile: add global per-project clean target ......................................................................
Makefile: add global per-project clean target
Change-Id: I434ecbe3f3dd25ea770d8f2d7adfa62c67dc0c1d --- M Makefile 1 file changed, 7 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/09/40409/1
diff --git a/Makefile b/Makefile index c64e130..7a9ddb8 100644 --- a/Makefile +++ b/Makefile @@ -114,6 +114,12 @@ @git clean -fx "$(1)" endef
+define DIR_clean_template +.PHONY: $(1)/clean +$(1)/clean: + $(MAKE) -C $(BUILDDIR)/$(1) clean +endef + define DIR_all_template $(1): $(1)/all .PHONY: $(1)/all @@ -126,6 +132,7 @@ $(eval $(call DIR_Makefile_template,$(dir))) \ $(eval $(call DIR_compile_template,$(dir))) \ $(eval $(call DIR_clean_old_template,$(dir))) \ + $(eval $(call DIR_clean_template,$(dir))) \ $(eval $(call DIR_all_template,$(dir))) \ )