bavbavhaus.net/makefile

27 lines
432 B
Makefile
Raw Normal View History

2024-09-08 02:44:12 +02:00
.POSIX:
.SUFFIXES:
.PHONY: all clean
PANDOC ::= pandoc --data-dir pandoc
MDFILES != find *.md 2>/dev/null
DOCXFILES ::= $(MDFILES:.md=.docx)
HTMLFILES ::= $(MDFILES:.md=.html)
all: $(HTMLFILES)
$(HTMLFILES): pandoc/templates/bavbavhaus.net.html5
.SUFFIXES: .md .html
.md.html:
$(PANDOC) -d html -o $@ $<
$(DOCXFILES):
.SUFFIXES: .md .docx
.md.docx:
$(PANDOC) -d docx -o $@ $<
clean:
rm -f $(HTMLFILES)
rm -f $(DOCXFILES)