summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-10-06 19:14:51 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2014-10-06 19:17:03 +0200
commitac2aa1fee5674584c58acfe9c5b47e188582b1ca (patch)
tree97f7fd713608428ba09eef61bac9d745570820e4 /Makefile
parent99250cae283c7483373eb5bbc9277137ced7a7ca (diff)
downloadwebsite-ac2aa1fee5674584c58acfe9c5b47e188582b1ca.tar.xz
holy massive dump
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..e40bd48
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+HTML := index.html blog.html contact.html new_journal.html
+OUT_HTML := $(addprefix build/, $(HTML))
+
+CSS := main.css new_journal.css
+OUT_CSS := $(addprefix build/, $(CSS))
+
+PARTIALS := $(addprefix partials/, head.html header.html footer.html)
+RESOURCES := $(addprefix build/resources/, glider.png)
+
+site : $(OUT_HTML) $(RESOURCES)
+
+build/%.html: %.html $(PARTIALS) $(OUT_CSS)
+ ./scripts/awink $< $@
+
+build/%.css: %.css
+ ./scripts/awink $< $@
+
+build/resources/%: resources/%
+ install -D $< $@