Nyllify the Makefile more.
This commit is contained in:
parent
28d5cf8f6c
commit
dda9b335c5
1 changed files with 4 additions and 5 deletions
9
Makefile
9
Makefile
|
@ -1,10 +1,9 @@
|
||||||
# Stuff for make to work make magic.
|
# Stuff for make to work make magic.
|
||||||
.DEFAULT: all
|
.DEFAULT: all
|
||||||
.SUFFIXES: .html
|
.PHONY: all clean deploy
|
||||||
.PHONY: all
|
|
||||||
.EXPORT_ALL_VARIABLES:
|
.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_FILE = data/$(shell ls -I activities.xml data/ | sort -r | head -n 1)
|
||||||
XML_ARTEFACT = data/activities.xml
|
XML_ARTEFACT = data/activities.xml
|
||||||
PAGES = index.html
|
PAGES = index.html
|
||||||
|
@ -19,9 +18,9 @@ deploy: $(PAGES) $(BLOBS)
|
||||||
./deploy.sh $^
|
./deploy.sh $^
|
||||||
|
|
||||||
$(XML_ARTEFACT):
|
$(XML_ARTEFACT):
|
||||||
cat "$(XML_FILE)" > $(XML_ARTEFACT)
|
cp '$(XML_FILE)' '$(XML_ARTEFACT)'
|
||||||
|
|
||||||
index.html: $(XML_ARTEFACT)
|
index.html: $(XML_ARTEFACT)
|
||||||
TITLE="Global Initiative | XML Sharing" ./index.html.sh > $@
|
./index.html.sh > $@
|
||||||
|
|
||||||
$(PAGES): index.html.sh assets
|
$(PAGES): index.html.sh assets
|
||||||
|
|
Loading…
Reference in a new issue