From b6b05ac5849ab8951eb9482808e180610d35ddfb Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Fri, 16 Oct 2015 13:49:34 +0200 Subject: Fix use updated Makefile in update target (by spawning sub-make). --- Makefile | 6 +++--- 1 file 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) -- cgit v1.2.3