summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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 $< $@