Merge branch 'master' into grch

This commit is contained in:
Peter 2017-03-09 14:18:14 +01:00
commit 3742ef42ab
3 changed files with 28 additions and 16 deletions

View File

@ -1,7 +1,7 @@
README
======
Dieses Repo enthält verschiedene Gesetzestexte im Markdown-Format (mit [Extras](http://pandoc.org/MANUAL.html#extension-fancy_lists)), plus Makefiles zur Erstellung von Formaten wie [EPUB](https://de.wikipedia.org/wiki/EPUB) und [MOBI](https://de.wikipedia.org/wiki/Mobipocket).
Dieses Repo enthält verschiedene Gesetzestexte im Markdown-Format (mit [Extras](http://pandoc.org/MANUAL.html#extension-fancy_lists)), plus Makefiles zur Erstellung von Formaten wie PDF, [EPUB](https://de.wikipedia.org/wiki/EPUB), und [MOBI](https://de.wikipedia.org/wiki/Mobipocket).
Vorhandene Texte
----------------
@ -20,4 +20,4 @@ Benötigte Software
------------------
- [Pandoc](http://pandoc.org/)
- [Kindlegen](https://www.amazon.com/gp/feature.html?docId=1000765211) für MOBI
- [Calibre](https://calibre-ebook.com/)

View File

@ -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)

View File

@ -1,5 +1,5 @@
META = title.yml
OUTPUT = dsgvo.epub
OUTPUT = dsgvo.epub dsgvo.pdf dsgvo.mobi dsgvo.azw3
INPUT = ch01/ch01.md $(sort $(wildcard ch01/ch01-art??.md))
INPUT += ch02/ch02.md $(sort $(wildcard ch02/ch02-art??.md))
INPUT += ch03/ch03.md $(sort $(wildcard ch03/ch03-art??.md))
@ -14,13 +14,19 @@ INPUT += ch11/ch11.md $(sort $(wildcard ch11/ch11-art??.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)
dsgvo.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)
dsgvo.mobi: dsgvo.epub
ebook-convert $< $@ --mobi-file-type both
dsgvo.azw3: dsgvo.epub
ebook-convert $< $@
dsgvo.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)