From db560a8f1398915fb8ea90ca349ccb4b91310b03 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Fri, 10 Oct 2014 01:27:31 +0200 Subject: redo website with the new_journal style --- Makefile | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 527d218..0148106 100644 --- a/Makefile +++ b/Makefile @@ -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/%: -- cgit v1.2.3-54-g00ecf