HTML := index.html journal.html about.html
CSS := style.css
RESOURCES := glider.png
PARTIALS := $(addprefix partials/, meta.html nav.html footer.html)
FILES := $(HTML) $(CSS) sitemap.xml pgp-key.txt \
$(addprefix resources/, $(RESOURCES))
site: $(addprefix build/, $(FILES))
clean:
-rm $(addprefix build/, $(FILES))
build/index.html: src/index.rst
@./scripts/bupa index.html
@echo Built index.html
build/about.html: src/about.rst
@./scripts/bupa about.html
@echo Built about.html
build/journal.html: $(shell find src/journal)
@./scripts/bupa journal.html
@echo Built journal
build/%.html: src/%.html $(PARTIALS)
@./scripts/awink $< $@
@echo Compiled $< → $@
build/%.css: src/%.css
@install -Dm644 $< $@
@echo Copied $< → $@
build/resources/%: src/resources/%
@install -Dm644 $< $@
@echo Copied $< → $@
build/sitemap.xml: src/sitemap.xml
@install -Dm644 $< $@
@echo Copied $< → $@
build/pgp-key.txt: src/pgp-key.txt
@install -Dm644 $< $@
@echo Copied $< → $@
partials/%: