diff options
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |