summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-10-18 14:14:30 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2014-10-18 14:14:30 +0200
commitb944832d593683e54c216d23bb493b302b521e29 (patch)
tree6c4376d642e8245a6a41e44d4a8e090a481185bb /Makefile
parent80e38791f41cf326e43946e306157daa7d7e08e1 (diff)
downloadtheos-website-b944832d593683e54c216d23bb493b302b521e29.tar.xz
convert root page to reST like ~kyrias/
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 10 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index 7f975af..5fd4e32 100644
--- a/Makefile
+++ b/Makefile
@@ -1,27 +1,25 @@
HTML := index.html
CSS := style.css
-
-PARTIALS := $(addprefix partials/, meta.html nav.html footer.html)
WELLKNOWN := $(addprefix .well-known/, keybase.txt)
-FILES := $(HTML) $(CSS) robots.txt sitemap.xml sitemap1.xml
+FILES := $(HTML) $(CSS) robots.txt sitemap.xml sitemap1.xml \
+ $(WELLKNOWN)
+
+site: build/.well-known/ $(addprefix build/, $(FILES))
-site: $(addprefix build/, $(FILES) $(WELLKNOWN))
+build/%/:
+ mkdir -P $@
clean:
-rm $(addprefix build/, $(FILES))
-build/%.html: src/%.html $(PARTIALS)
- @./scripts/awink $< $@
- @echo Compiled $< → $@
-
-build/%.css: src/%.css
- @install -Dm644 $< $@
- @echo Compiled $< → $@
+build/%.html: src/%.rst
+ @./scripts/bupa $@
+ @echo Built $@ from $<
build/%: src/%
@install -Dm644 $< $@
- @echo Compiled $< → $@
+ @echo Copied $< → $@
build/.well-known/%: .well-known/%
@install -Dm644 $< $@