SHELL = /bin/sh .SUFFIXES: .PHONY: all all: bavbavhaus.mk bavbavhaus.mk: pandoc lua pandoc/bavbavhaus.lua index.md $@ include bavbavhaus.mk BAVBAVHAUSFLAGS = --data-dir pandoc -M slug=$* LINKPARTFLAGS = $(patsubst %,-M parts=%,$(filter-out $<,$^)) public_html/%.html: pandoc $(BAVBAVHAUSFLAGS) -d bavbavhaus.net.yaml $(LINKPARTFLAGS) -o $@ $< public_html/%.html.part: %.md pandoc $(BAVBAVHAUSFLAGS) -d bavbavhaus.net.part.yaml --id-prefix $* -o $@ $< public_html/sitemap.html.part: pandoc lua pandoc/sitemap.lua index.md $@ dest/%.docx: %.md test -d dest || mkdir dest pandoc $(PANDOCFLAGS) --resource-path pandoc -d docx.yaml -o $@ $< .PHONY: clean clean: $(RM) bavbavhaus.mk $(RM) public_html/*.html $(RM) public_html/*.html.part $(RM) -r dest