summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2015-10-15 17:48:38 +0200
committerJonas Smedegaard <dr@jones.dk>2015-10-15 17:48:38 +0200
commit9a3eb10e24d3740b2d6c8d42bf5683224dfb450c (patch)
treefc023df6e280be02619c75f5af7e2992d1aa8a4d
parentc4551ed89b31a679ddaf66655e660aaca222e007 (diff)
Add targets update source. Build all targets except source in parallel.
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
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