diff options
author | Jonas Smedegaard <dr@jones.dk> | 2015-10-16 13:49:34 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2015-10-16 13:49:34 +0200 |
commit | b6b05ac5849ab8951eb9482808e180610d35ddfb (patch) | |
tree | 063b6c85881ce6fb56896cc0f5acdd52270c780e | |
parent | e6f07e6c65c08cdb24b203a6352b0c8067caf658 (diff) |
Fix use updated Makefile in update target (by spawning sub-make).
-rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |