From dda9b335c550c3387c072535ab7540c83c03325a Mon Sep 17 00:00:00 2001 From: Joachim Desroches Date: Mon, 22 Feb 2021 17:32:49 +0100 Subject: [PATCH] Nyllify the Makefile more. --- Makefile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 3702b93..87a7318 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,9 @@ # Stuff for make to work make magic. .DEFAULT: all -.SUFFIXES: .html -.PHONY: all +.PHONY: all clean deploy .EXPORT_ALL_VARIABLES: -BASE_TITLE = Global Initiative +TITLE = Global Initiative | XML Sharing XML_FILE = data/$(shell ls -I activities.xml data/ | sort -r | head -n 1) XML_ARTEFACT = data/activities.xml PAGES = index.html @@ -19,9 +18,9 @@ deploy: $(PAGES) $(BLOBS) ./deploy.sh $^ $(XML_ARTEFACT): - cat "$(XML_FILE)" > $(XML_ARTEFACT) + cp '$(XML_FILE)' '$(XML_ARTEFACT)' index.html: $(XML_ARTEFACT) - TITLE="Global Initiative | XML Sharing" ./index.html.sh > $@ + ./index.html.sh > $@ $(PAGES): index.html.sh assets