26 lines
535 B
Makefile
26 lines
535 B
Makefile
# Stuff for make to work make magic.
|
|
.DEFAULT: all
|
|
.PHONY: all clean deploy
|
|
.EXPORT_ALL_VARIABLES:
|
|
|
|
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
|
|
BLOBS = assets/ data/
|
|
|
|
all: $(PAGES) $(BLOBS)
|
|
|
|
clean:
|
|
rm -rf $(PAGES) $(XML_ARTEFACT)
|
|
|
|
deploy: $(PAGES) $(BLOBS)
|
|
./deploy.sh $^
|
|
|
|
$(XML_ARTEFACT):
|
|
cp '$(XML_FILE)' '$(XML_ARTEFACT)'
|
|
|
|
index.html: $(XML_ARTEFACT)
|
|
./index.html.sh > $@
|
|
|
|
$(PAGES): index.html.sh assets
|