31 lines
703 B
Makefile
31 lines
703 B
Makefile
# Stuff for make to work make magic.
|
|
.DEFAULT: all
|
|
.SUFFIXES: .part .html
|
|
.PHONY: all
|
|
.EXPORT_ALL_VARIABLES:
|
|
|
|
BASE_TITLE = Recycled Cloud
|
|
PAGES = index.html services.html manifesto.html contact.html
|
|
BLOBS = assets/
|
|
|
|
# Default target.
|
|
all: $(PAGES)
|
|
|
|
clean:
|
|
rm -rf $(PAGES)
|
|
|
|
# If you built it, flaunt it!
|
|
deploy: $(PAGES) $(BLOBS)
|
|
./deploy.sh $^
|
|
|
|
.part.html:
|
|
./page-template.sh $+ > $@
|
|
|
|
# Setup some common dependencies so updating targets work.
|
|
$(PAGES): page-template.sh assets
|
|
|
|
# Modify variables ?
|
|
index.html: TITLE = "$(BASE_TITLE) | Home"
|
|
services.html: TITLE = "$(BASE_TITLE) | Services"
|
|
manifesto.html: TITLE = "$(BASE_TITLE) | Manifesto"
|
|
contact.html: TITLE = "$(BASE_TITLE) | Contact"
|