From 6e634a56bd87c8bfdce48b6ee8e246407e138320 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Wed, 11 Mar 2020 16:10:45 +0100 Subject: [PATCH] Add global publish --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b99aca2 --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ +SITES ?= $$(find . -maxdepth 2 -name "Makefile" -not -path "./Makefile" | xargs -I {} dirname {}) + +default: publish + +.PHONY: publish +publish: + for path in $(SITES) ; do \ + cd $$path && make publish; \ + done