recycled.cloud/Makefile

28 lines
646 B
Makefile

# Stuff for make to work make magic.
.DEFAULT: all
.SUFFIXES: .part .html
.PHONY: all clean deploy
.EXPORT_ALL_VARIABLES:
BASE_TITLE = Recycled Cloud
PAGES = index.html services.html manifesto.html contact.html terms.html
BLOBS = assets/
all: $(PAGES)
clean:
rm -rf $(PAGES)
deploy: $(PAGES) $(BLOBS)
./deploy.sh $^
.part.html:
./page-template.sh $+ > $@
$(PAGES): page-template.sh assets
index.html: TITLE = "$(BASE_TITLE) | Home"
services.html: TITLE = "$(BASE_TITLE) | Services"
manifesto.html: TITLE = "$(BASE_TITLE) | Manifesto"
contact.html: TITLE = "$(BASE_TITLE) | Contact"
terms.html: TITLE = "$(BASE_TITLE) | Terms"