Nyllify the Makefile more.

This commit is contained in:
Joachim Desroches 2021-02-22 17:32:49 +01:00
parent 28d5cf8f6c
commit dda9b335c5
No known key found for this signature in database
GPG key ID: 6778C9C29C02D691

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