aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
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 \