diff options
author | Peter Ludikovsky <peter@ludikovsky.name> | 2017-03-09 14:16:51 +0100 |
---|---|---|
committer | Peter Ludikovsky <peter@ludikovsky.name> | 2017-03-09 14:16:51 +0100 |
commit | 7ae1e1be88e3f903dbd77110183c9debaea19b27 (patch) | |
tree | 5f8cb5174c7ad401ce5db56b6141d22b062db687 /dsg2000/Makefile | |
parent | 1f16ae7a3c06940828511df1e0d8a2d076c58b62 (diff) |
kindlegen gegen Calibre ausgetauscht, PDF als Format dazu
Diffstat (limited to 'dsg2000/Makefile')
-rw-r--r-- | dsg2000/Makefile | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/dsg2000/Makefile b/dsg2000/Makefile index 9dff22d..247f524 100644 --- a/dsg2000/Makefile +++ b/dsg2000/Makefile @@ -1,16 +1,22 @@ META = title.yml -OUTPUT = dsg2000.epub +OUTPUT = dsg2000.epub dsg2000.pdf dsg2000.mobi dsg2000.azw3 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) +dsg2000.epub: $(INPUT) $(META) + pandoc -f markdown+fancy_lists -t epub3 -o $@ --smart --toc \ + --toc-depth=2 --epub-chapter-level=1 $(META) $(INPUT) -mobi: $(OUTPUT) - kindlegen $(OUTPUT) -c2 -o $(OUTPUT:.epub=.mobi) +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) $(OUTPUT:.epub=.mobi) + rm -rf $(OUTPUT) |