globalinitiative-xml-sharing/Makefile

28 lines
571 B
Makefile
Raw Normal View History

2021-02-03 17:34:11 +01:00
# Stuff for make to work make magic.
.DEFAULT: all
.SUFFIXES: .html
.PHONY: all
.EXPORT_ALL_VARIABLES:
BASE_TITLE = Global Initiative
XML_FILE = data/$(shell ls -I activities.xml data/ | sort -r | head -n 1)
XML_ARTEFACT = data/activities.xml
PAGES = index.html
BLOBS = assets/ data/
all: $(PAGES) $(BLOBS)
clean:
rm -rf $(PAGES) $(XML_ARTEFACT)
deploy: $(PAGES) $(BLOBS)
./deploy.sh $^
$(XML_ARTEFACT):
cat "$(XML_FILE)" > $(XML_ARTEFACT)
index.html: $(XML_ARTEFACT)
TITLE="Global Initiative | XML Sharing" ./index.html.sh > $@
$(PAGES): index.html.sh assets