blob: a1ca7b93bf34746e4ff0b4325849588d565145fd (
plain)
- 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 $@))
- pandoc -f markdown -t html -o $@ $<
- clean:
- find -type f -name '*.html' -delete
- find -type d -empty -delete
- MAKEFLAGS += --jobs
- .PHONY: all update source clean
- .NOTPARALLEL: source
|