Nyllify the Makefile more.

This commit is contained in:
Joachim Desroches 2021-02-22 17:32:49 +01:00
parent 28d5cf8f6c
commit dda9b335c5
Signed by untrusted user who does not match committer: jdesroches
GPG Key ID: 6778C9C29C02D691
1 changed files with 4 additions and 5 deletions

View File

@ -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