diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2014-10-15 18:52:24 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2014-10-15 18:54:28 +0100 |
commit | eb7f751cb8482aa1178e91e220aef378884cab96 (patch) | |
tree | 03b5a3f60f7c844b7d0661685695e64e5be7eee6 | |
parent | a80ab468f7a3a4130ee62f9537e9f0b0de0c2e1e (diff) | |
download | website-eb7f751cb8482aa1178e91e220aef378884cab96.tar.xz |
Makefile: make needed dirs prereqs, fix clean target
-rw-r--r-- | Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 |