diff --git a/.gitignore b/.gitignore index 27f05a1..8148a41 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ *.pdf *.toc License.tex +Frontcover.png +Backcover.png diff --git a/Makefile b/Makefile index 78f93be..047f32a 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,13 @@ -all: Grenzland1.pdf +PDF=Grenzland1.pdf GENPNG=Grenzland-postapo.gen.png Grenzland-praeapo.gen.png\ Grenzland-Startarea.gen.png Inseln-Startarea.gen.png .PRECIOUS: $(GENPNG) -%.pdf: %.tex License.tex $(GENPNG) Coverimage.png Makefile +all: $(PDF) + +%.pdf: %.tex License.tex $(GENPNG) Coverimage.png pdflatex $< %.gen.png: %.gen.svg Makefile @@ -17,6 +19,17 @@ coverart.png: coverart.cfdg Makefile License.tex: License.md Makefile pandoc -o $@ $< +Frontcover.png: $(PDF) Makefile + pdftoppm -f 1 -l 1 $< > tmp.png + convert +level-colors "#000000","#ff00bb" \ + tmp.png $@ + +Backcover.png: $(PDF) Makefile + pdftoppm -f 1 -l 1 $< > tmp.png + convert +level-colors "#ff00bb","#ff00bb" \ + -fuzz 100% tmp.png $@ + rm -f tmp.png + view: all zathura *.pdf &