summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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