From 9a3eb10e24d3740b2d6c8d42bf5683224dfb450c Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 15 Oct 2015 17:48:38 +0200 Subject: Add targets update source. Build all targets except source in parallel. --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0199a0b..a1ca7b9 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,10 @@ markdown := $(wildcard *.mdwn) hypertext = $(subst index/index,index,$(markdown:%.mdwn=%/index.html)) all: $(hypertext) +update: source all + +source: .git + git pull %.html %/index.html: %.mdwn $(if $(filter-out ./,$(dir $@)),mkdir -p $(dir $@)) @@ -11,4 +15,6 @@ clean: find -type f -name '*.html' -delete find -type d -empty -delete -.PHONY: all clean +MAKEFLAGS += --jobs +.PHONY: all update source clean +.NOTPARALLEL: source -- cgit v1.2.3