diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 36 |
1 files changed, 24 insertions, 12 deletions
@@ -1,19 +1,31 @@ -HTML := index.html blog.html contact.html new_journal.html -OUT_HTML := $(addprefix build/, $(HTML)) +HTML := journal.html about.html +CSS := style.css +RESOURCES := glider.png -CSS := main.css new_journal.css -OUT_CSS := $(addprefix build/, $(CSS)) +PARTIALS := $(addprefix partials/, meta.html nav.html footer.html) -PARTIALS := $(addprefix partials/, head.html header.html footer.html) -RESOURCES := $(addprefix build/resources/, glider.png) +FILES := $(HTML) $(CSS) pgp-key.txt \ + $(addprefix resources/, $(RESOURCES)) -site : $(OUT_HTML) $(OUT_CSS) $(RESOURCES) +site: $(addprefix build/, $(FILES)) -build/%.html: %.html $(PARTIALS) $(OUT_CSS) - ./scripts/awink $< $@ +clean: + rm -rf build/* -build/%.css: %.css - ./scripts/awink $< $@ +build/%.html: src/%.html $(PARTIALS) + @./scripts/awink $< $@ + @echo Compiled $< → $@ + +build/%.css: src/%.css + @install -Dm644 $< $@ + @echo Compiled $< → $@ build/resources/%: resources/% - install -D $< $@ + @install -Dm644 $< $@ + @echo Compiled $< → $@ + +build/pgp-key.txt: src/pgp-key.txt + @install -Dm644 $< $@ + @echo Compiled $< → $@ + +partials/%: |