diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2014-10-10 01:27:31 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2014-10-10 01:27:31 +0200 |
commit | db560a8f1398915fb8ea90ca349ccb4b91310b03 (patch) | |
tree | f99f6055249996abb2a6a1e6dd26d3fc8a7cf74a /Makefile | |
parent | 26cfd7a72c5f368670fffbe899da05ef3a5a2bc3 (diff) | |
download | website-db560a8f1398915fb8ea90ca349ccb4b91310b03.tar.xz |
redo website with the new_journal style
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/%: |