mirror of
https://git.ludikovsky.name/git/gesetze.git
synced 2024-09-28 18:55:28 +02:00
23 lines
613 B
Makefile
23 lines
613 B
Makefile
META = title.yml
|
|
OUTPUT = dsg2000.epub dsg2000.pdf dsg2000.mobi dsg2000.azw3
|
|
INPUT = $(sort $(wildcard art??-par*.md))
|
|
|
|
all: $(OUTPUT)
|
|
|
|
dsg2000.epub: $(INPUT) $(META)
|
|
pandoc -f markdown+fancy_lists -t epub3 -o $@ --smart --toc \
|
|
--toc-depth=2 --epub-chapter-level=1 $(META) $(INPUT)
|
|
|
|
dsg2000.mobi: dsg2000.epub
|
|
ebook-convert $< $@ --mobi-file-type both
|
|
|
|
dsg2000.azw3: dsg2000.epub
|
|
ebook-convert $< $@
|
|
|
|
dsg2000.pdf: $(INPUT) $(META)
|
|
pandoc -f markdown+fancy_lists -t latex -o $@ --standalone --smart --toc \
|
|
--toc-depth=2 -Vfontsize=12pt -Vpapersize=a4wide $(META) $(INPUT)
|
|
|
|
clean:
|
|
rm -rf $(OUTPUT)
|