summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-10-10 22:39:48 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2014-10-10 22:39:48 +0200
commitb6e6cb61c6e9692e9706b0f27b2ec735218a0722 (patch)
tree34921e8fec1c6d3ccce0dd0cf90f010b404ec43f /Makefile
downloadtheos-website-b6e6cb61c6e9692e9706b0f27b2ec735218a0722.tar.xz
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..32b2e6d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,25 @@
+HTML := index.html
+CSS := style.css
+
+PARTIALS := $(addprefix partials/, meta.html nav.html footer.html)
+
+FILES := $(HTML) $(CSS) sitemap.xml
+
+site: $(addprefix build/, $(FILES))
+
+clean:
+ -rm $(addprefix build/, $(FILES))
+
+build/%.html: src/%.html $(PARTIALS)
+ @./scripts/awink $< $@
+ @echo Compiled $< → $@
+
+build/%.css: src/%.css
+ @install -Dm644 $< $@
+ @echo Compiled $< → $@
+
+build/sitemap.xml: src/sitemap.xml
+ @install -Dm644 $< $@
+ @echo Compiled $< → $@
+
+partials/%: