From 97094c6787d03f0e7910ad86d8c9680a38a8cc48 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Tue, 29 Nov 2022 12:48:23 +0100 Subject: include omitted subrepos in the `clean` rule --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1486e8e..2e448a9 100644 --- a/Makefile +++ b/Makefile @@ -126,8 +126,15 @@ build-hydrilla-json-schemas: clean-runner: rm -rf container-runner container-runner.touchfile +SUBREPOS_WITH_MAKEFILE = $$( \ + find subrepos/ -mindepth 2 -maxdepth 2 -name Makefile \ + | sed 's|^subrepos/\([^/]\+\)/Makefile$$|\1|' \ + ) + clean: clean-runner - $(MAKE) -C subrepos/koszko-org-website clean + for SUBREPO in $(SUBREPOS_WITH_MAKEFILE); do \ + $(MAKE) -C subrepos/"$$SUBREPO" clean; \ + done rm -rf log hosts schemas sample-malcontent .PHONY: all \ -- cgit v1.2.3