From eb7f751cb8482aa1178e91e220aef378884cab96 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Wed, 15 Oct 2014 18:52:24 +0100 Subject: Makefile: make needed dirs prereqs, fix clean target --- Makefile | 9 ++++++--- 1 file 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 -- cgit v1.2.3-70-g09d2