Files
Grenzland-Zine/Makefile
Laurens Kils-Hütten a1e63de8c2 added a pink cover
2022-09-24 13:48:48 +02:00

41 lines
793 B
Makefile

PDF=Grenzland1.pdf
GENPNG=Grenzland-postapo.gen.png Grenzland-praeapo.gen.png\
Grenzland-Startarea.gen.png Inseln-Startarea.gen.png
.PRECIOUS: $(GENPNG)
all: $(PDF)
%.pdf: %.tex License.tex $(GENPNG) Coverimage.png
pdflatex $<
%.gen.png: %.gen.svg Makefile
inkscape -D -o $@ $<
coverart.png: coverart.cfdg Makefile
cfdg $< > $@
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 &
clean:
rm -f *~ *.log *.aux *.toc
realclean: clean
rm -f *.pdf *.gen.png coverart.png License.tex