bavbavhaus.net/Makefile

34 lines
765 B
Makefile
Raw Normal View History

2024-04-12 22:28:47 +02:00
SHELL = /bin/sh
.SUFFIXES:
2024-05-21 00:58:38 +02:00
.PHONY: all
all: bavbavhaus.mk
2024-05-17 15:35:32 +02:00
2024-05-21 00:58:38 +02:00
bavbavhaus.mk:
pandoc lua pandoc/bavbavhaus.lua index.md $@
2024-04-12 22:28:47 +02:00
2024-05-21 00:58:38 +02:00
include bavbavhaus.mk
BAVBAVHAUSFLAGS = --data-dir pandoc -M slug=$*
LINKPARTFLAGS = $(patsubst %,-M parts=%,$(filter-out $<,$^))
2024-05-04 19:25:10 +02:00
2024-05-21 00:58:38 +02:00
public_html/%.html:
pandoc $(BAVBAVHAUSFLAGS) -d bavbavhaus.net.yaml $(LINKPARTFLAGS) -o $@ $<
2024-04-12 22:28:47 +02:00
2024-05-02 20:10:51 +02:00
public_html/%.html.part: %.md
2024-05-21 00:58:38 +02:00
pandoc $(BAVBAVHAUSFLAGS) -d bavbavhaus.net.part.yaml --id-prefix $* -o $@ $<
2024-05-16 23:05:10 +02:00
2024-05-21 00:58:38 +02:00
public_html/sitemap.html.part:
2024-05-16 23:05:10 +02:00
pandoc lua pandoc/sitemap.lua index.md $@
dest/%.docx: %.md
test -d dest || mkdir dest
2024-05-21 00:58:38 +02:00
pandoc $(PANDOCFLAGS) --resource-path pandoc -d docx.yaml -o $@ $<
2024-04-12 22:28:47 +02:00
2024-04-22 15:16:39 +02:00
.PHONY: clean
2024-05-02 20:10:51 +02:00
clean:
2024-05-21 00:58:38 +02:00
$(RM) bavbavhaus.mk
2024-05-02 20:10:51 +02:00
$(RM) public_html/*.html
2024-05-21 00:58:38 +02:00
$(RM) public_html/*.html.part
2024-05-16 23:05:10 +02:00
$(RM) -r dest