blob: 183f04a56a11e1753c7ac8c73ace39432e50ffd1 (
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
- .NOTPARALLEL: source
- .PHONY: all update source clean
|