Files
ki-story/Makefile

26 lines
535 B
Makefile

TITLE := KI Story
AUTHOR := Stefan Mühlinghaus
DOCKER_CMD := docker run --rm -v "$(shell pwd):/data" --user $(shell id -u):$(shell id -g) fpod/pandoc-weasyprint
.PHONY: all pdf epub clean
all: pdf epub
pdf:
$(DOCKER_CMD) akt*/*.md \
--metadata title="$(TITLE)" \
--metadata author="$(AUTHOR)" \
--pdf-engine=weasyprint \
--css=style.css \
-o buch.pdf
epub:
$(DOCKER_CMD) akt*/*.md \
--metadata title="$(TITLE)" \
--metadata author="$(AUTHOR)" \
--css=style.css \
-o buch.epub
clean:
rm -f buch.pdf buch.epub