blob: 0199a0b31e9f9c2cd558af42dae3286c4db75cf4 (
plain)
- markdown := $(wildcard *.mdwn)
- hypertext = $(subst index/index,index,$(markdown:%.mdwn=%/index.html))
- all: $(hypertext)
- %.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
- .PHONY: all clean
|