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