summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2015-10-16 13:49:34 +0200
committerJonas Smedegaard <dr@jones.dk>2015-10-16 13:49:34 +0200
commitb6b05ac5849ab8951eb9482808e180610d35ddfb (patch)
tree063b6c85881ce6fb56896cc0f5acdd52270c780e
parente6f07e6c65c08cdb24b203a6352b0c8067caf658 (diff)
Fix use updated Makefile in update target (by spawning sub-make).
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 311a56a..1bc791f 100644
--- a/Makefile
+++ b/Makefile
@@ -4,10 +4,10 @@ markdown := $(filter-out $(markdown-snippets),$(wildcard *.mdwn))
hypertext = $(subst index/index,index,$(markdown:%.mdwn=%/index.html))
all: $(hypertext) style.css
-update: source all
-source: .git
+update: .git
git pull
+ $(MAKE) all
$(hypertext-snippets): %.html: %.mdwn Makefile
pandoc -f markdown -t html -o $@ $<
@@ -27,5 +27,5 @@ clean:
MAKEFLAGS += --jobs
.NOTPARALLEL: source
-.PHONY: all update source clean
+.PHONY: all update clean
.INTERMEDIATE: $(hypertext-snippets)