aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-11-29 12:48:23 +0100
committerWojtek Kosior <koszko@koszko.org>2022-11-29 12:48:23 +0100
commit97094c6787d03f0e7910ad86d8c9680a38a8cc48 (patch)
tree09266cc60b4c29c4597f722377c162ff6e3e296f /Makefile
parent4adabde20760399ebf121b23572809bfc94c846e (diff)
downloadkoszko-org-server-97094c6787d03f0e7910ad86d8c9680a38a8cc48.tar.gz
koszko-org-server-97094c6787d03f0e7910ad86d8c9680a38a8cc48.zip
include omitted subrepos in the `clean` rule
Diffstat (limited to 'Makefile')
-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 \