mirror of
https://git.ludikovsky.name/git/gesetze.git
synced 2024-09-28 23:35:27 +02:00
17 lines
374 B
Makefile
17 lines
374 B
Makefile
|
META = title.yml
|
||
|
OUTPUT = dsg2000.epub
|
||
|
INPUT = $(sort $(wildcard art??-par*.md))
|
||
|
|
||
|
all: $(OUTPUT)
|
||
|
|
||
|
$(OUTPUT): $(INPUT) $(META)
|
||
|
pandoc -f markdown+fancy_lists -t epub3 -o $(OUTPUT) --smart --toc \
|
||
|
--toc-depth=2 --epub-chapter-level=2 $(META) $(INPUT)
|
||
|
|
||
|
mobi: $(OUTPUT)
|
||
|
kindlegen $(OUTPUT) -c2 -o $(OUTPUT:.epub=.mobi)
|
||
|
|
||
|
|
||
|
clean:
|
||
|
rm -rf $(OUTPUT) $(OUTPUT:.epub=.mobi)
|