bavbavhaus.net/Makefile

27 lines
552 B
Makefile
Raw Normal View History

2024-04-12 22:28:47 +02:00
.SUFFIXES:
2024-06-21 15:28:35 +02:00
notes := $(wildcard *.md)
2024-06-26 16:01:51 +02:00
pages := $(patsubst %.md,public_html/%.html,$(notes))
static := public_html/index.html
2024-05-17 15:35:32 +02:00
2024-06-26 16:01:51 +02:00
all: $(pages)
2024-05-21 00:58:38 +02:00
BAVBAVHAUSFLAGS:= --data-dir pandoc -d bavbavhaus.net.yaml
2024-05-04 19:25:10 +02:00
2024-06-08 23:02:47 +02:00
public_html/%.html: %.md
pandoc $(BAVBAVHAUSFLAGS) -o $@ $<
2024-04-12 22:28:47 +02:00
$(pages): pandoc/templates/bavbavhaus.net.html5
2024-05-16 23:05:10 +02:00
clean: oldpages := $(filter-out $(static) $(pages),$(wildcard public_html/*.html))
2024-05-02 20:10:51 +02:00
clean:
$(if $(oldpages),$(RM) $(oldpages))
2024-06-21 15:28:35 +02:00
2024-06-26 16:01:51 +02:00
.PHONY: all clean
2024-06-21 15:28:35 +02:00
dest/%.docx: %.md
test -d dest || mkdir dest
pandoc $(PANDOCFLAGS) -d docx.yaml -o $@ $<