globalinitiative-xml-sharing/Makefile

27 lines
535 B
Makefile
Raw Permalink Normal View History

2021-02-03 17:34:11 +01:00
# Stuff for make to work make magic.
.DEFAULT: all
2021-02-22 17:32:49 +01:00
.PHONY: all clean deploy
2021-02-03 17:34:11 +01:00
.EXPORT_ALL_VARIABLES:
2021-02-22 17:32:49 +01:00
TITLE = Global Initiative | XML Sharing
2021-02-03 17:34:11 +01:00
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):
2021-02-22 17:32:49 +01:00
cp '$(XML_FILE)' '$(XML_ARTEFACT)'
2021-02-03 17:34:11 +01:00
index.html: $(XML_ARTEFACT)
2021-02-22 17:32:49 +01:00
./index.html.sh > $@
2021-02-03 17:34:11 +01:00
$(PAGES): index.html.sh assets