summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Ludikovsky <peter@ludikovsky.name>2017-03-27 11:15:41 +0200
committerPeter Ludikovsky <peter@ludikovsky.name>2017-03-27 11:15:41 +0200
commit1fe4e569c1dc660cefc236504f49ed83ccc1d8cb (patch)
tree3fbbda8c1143aa84b4d558652967a825e8b81545
parent0bd8200777fbfa880480c5208ea017a103d5b7e8 (diff)
Cleanup Makefiles
-rw-r--r--dsg2000/Makefile21
-rw-r--r--dsgvo/Makefile13
-rw-r--r--grch/Makefile21
3 files changed, 40 insertions, 15 deletions
diff --git a/dsg2000/Makefile b/dsg2000/Makefile
index 247f524..389d95f 100644
--- a/dsg2000/Makefile
+++ b/dsg2000/Makefile
@@ -2,7 +2,22 @@ META = title.yml
OUTPUT = dsg2000.epub dsg2000.pdf dsg2000.mobi dsg2000.azw3
INPUT = $(sort $(wildcard art??-par*.md))
-all: $(OUTPUT)
+.PHONY: pdf epub mobi azw3 clean all
+
+all: pdf epub mobi azw3
+
+pdf: dsg2000.pdf
+
+epub: dsg2000.epub
+
+mobi: dsg2000.mobi
+
+azw3: dsg2000.azw3
+
+dsg2000.pdf: $(INPUT) $(META)
+ pandoc -f markdown+fancy_lists -t latex -o $@ --toc --toc-depth=2 \
+ -Vgeometry:"a4paper,top=2cm,bottom=2cm,left=2cm,right=2cm" \
+ -Vlang=de --standalone --smart $(META) $(INPUT)
dsg2000.epub: $(INPUT) $(META)
pandoc -f markdown+fancy_lists -t epub3 -o $@ --smart --toc \
@@ -14,9 +29,5 @@ dsg2000.mobi: dsg2000.epub
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)
diff --git a/dsgvo/Makefile b/dsgvo/Makefile
index a66c6f2..2180cb5 100644
--- a/dsgvo/Makefile
+++ b/dsgvo/Makefile
@@ -12,7 +12,14 @@ INPUT += ch09/ch09.md $(sort $(wildcard ch09/ch09-art??.md))
INPUT += ch10/ch10.md $(sort $(wildcard ch10/ch10-art??.md))
INPUT += ch11/ch11.md $(sort $(wildcard ch11/ch11-art??.md))
-all: $(OUTPUT)
+.PHONY: pdf epub mobi azw3 clean all
+
+all: .PHONY: pdf epub mobi azw3
+
+dsgvo.pdf: $(INPUT) $(META)
+ pandoc -f markdown+fancy_lists -t latex -o $@ --toc --toc-depth=2 \
+ -Vgeometry:"a4paper,top=2cm,bottom=2cm,left=2cm,right=2cm" \
+ -Vlang=de --standalone --smart $(META) $(INPUT)
dsgvo.epub: $(INPUT) $(META)
pandoc -f markdown+fancy_lists -t epub3 -o $@ --smart --toc \
@@ -24,9 +31,5 @@ dsgvo.mobi: dsgvo.epub
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)
diff --git a/grch/Makefile b/grch/Makefile
index 90e2698..3477fcf 100644
--- a/grch/Makefile
+++ b/grch/Makefile
@@ -9,7 +9,22 @@ INPUT += tit05.md $(sort $(wildcard tit05-art??.md))
INPUT += tit06.md $(sort $(wildcard tit06-art??.md))
INPUT += tit07.md $(sort $(wildcard tit07-art??.md))
-all: $(OUTPUT)
+.PHONY: pdf epub mobi azw3 clean all
+
+all: pdf epub mobi azw3
+
+pdf: grch.pdf
+
+epub: grch.epub
+
+mobi: grch.mobi
+
+azw3: grch.azw3
+
+grch.pdf: $(INPUT) $(META)
+ pandoc -f markdown+fancy_lists -t latex -o $@ --toc --toc-depth=2 \
+ -Vgeometry:"a4paper,top=2cm,bottom=2cm,left=2cm,right=2cm" \
+ -Vlang=de --standalone --smart $(META) $(INPUT)
grch.epub: $(INPUT) $(META)
pandoc -f markdown+fancy_lists -t epub3 -o $@ --smart --toc \
@@ -21,9 +36,5 @@ grch.mobi: grch.epub
grch.azw3: grch.epub
ebook-convert $< $@
-grch.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)