# Don't print the ps, printers (eg ours!) don't always have the fonts
+o=>$@.new && mv -f $@.new $@
use_rsvg=rsvg-convert -f png -o $@.tmp.png $<
shell_pipe=set -o pipefail; set -e;
-make_pgm = pnmdepth 255 | pnmnoraw >$@.tmp.new; mv -f $@.tmp.new $@
+make_pnm = pnmdepth 255 | pnmnoraw $o
pumpkin-books.ps: pumpkin-books.ps.pl bag.pgm pot.pgm
- ./$< >$@.new && mv -f $@.new $@
+ ./$< $o
pumpkin-books.pdf: pumpkin-books.ps
gs -q -dNOPAUSE -dBATCH -dPDFSETTINGS=/prepress \
$(shell_pipe) \
pngtopnm <$@.tmp.png -mix -background 'white' \
| ppmtopgm \
- | $(make_pgm)
+ | $(make_pnm)
pot.pgm: 146_Kaldrono.svg Makefile
$(use_rsvg)
pngtopnm <$@.tmp.png \
| ppmtopgm \
| pnminvert \
- | $(make_pgm)
+ | $(make_pnm)
pubssh=c
pubpath=games-rules/quacks