summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-10-15 18:52:24 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2014-10-15 18:54:28 +0100
commiteb7f751cb8482aa1178e91e220aef378884cab96 (patch)
tree03b5a3f60f7c844b7d0661685695e64e5be7eee6
parenta80ab468f7a3a4130ee62f9537e9f0b0de0c2e1e (diff)
downloadwebsite-eb7f751cb8482aa1178e91e220aef378884cab96.tar.xz
Makefile: make needed dirs prereqs, fix clean target
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index db0853c..e893cab 100644
--- a/Makefile
+++ b/Makefile
@@ -5,10 +5,13 @@ RESOURCES := glider.png
FILES := $(HTML) $(CSS) sitemap.xml pgp-key.txt \
$(addprefix resources/, $(RESOURCES))
-site: $(addprefix build/, $(FILES))
+site: build/journal/ build/resources/ $(addprefix build/, $(FILES))
+
+build/%/:
+ mkdir $@
clean:
- -rm $(addprefix build/, $(FILES))
+ -rm -r $(addprefix build/, $(FILES)) build/journal build/resources
build/index.html: src/index.rst
@./scripts/bupa index.html
@@ -27,7 +30,7 @@ build/%.css: src/%.css
@echo Copied $< → $@
build/resources/%: src/resources/%
- @install -Dm644 $< $@
+ @install -m644 $< $@
@echo Copied $< → $@
build/sitemap.xml: src/sitemap.xml