diff options
author | Jonas Smedegaard <dr@jones.dk> | 2015-10-15 17:48:38 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2015-10-15 17:48:38 +0200 |
commit | 9a3eb10e24d3740b2d6c8d42bf5683224dfb450c (patch) | |
tree | fc023df6e280be02619c75f5af7e2992d1aa8a4d | |
parent | c4551ed89b31a679ddaf66655e660aaca222e007 (diff) |
Add targets update source. Build all targets except source in parallel.
-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 |