chiark / gitweb /
preview png, actually make it a png
[pandemic-rising-tide.git] / Makefile
index 0641673ae88d973f2f9b470f3a0ee1ea15197e76..97f112b4b8c828e7c62b8ecc535f34fca77096be 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -92,13 +92,15 @@ BOARDFILES=                                         \
        $(addprefix layout-test-,       b m t a1m)
 
 
-all:           all-ps all-pdf
+all:           all-ps all-pdf all-preview
 
 PSS=$(addsuffix .ps,  $(BOARDFILES))
 PDFS=$(addsuffix .pdf, $(BOARDFILES))
+PREVIEWS=maxprintable-a3-preview.png
 
 all-ps:        $(PSS)
 all-pdf:       $(PDFS)
+all-preview:   $(PREVIEWS)
 
 %.pdf: %.ps Makefile
        $(PS2PDF) $(PS2PDF_FLAGS) $< $@.tmp && $i
@@ -110,7 +112,7 @@ map.plag: generate-plag input-graph Parse.pm
 
 www=ianmdlvl@chiark:public-html/pandemic-rising-tide
 
-html: $(PDFS) README
+html: $(PDFS) $(PREVIEWS) README map.plag
        rm -rf $@ $@.tmp; mkdir $@.tmp
        cp $^ $@.tmp/ && $i
 
@@ -139,6 +141,9 @@ maxprintable-%.ps: $(BOARDDEPS)
 minprintable-%.ps: $(BOARDDEPS)
        ./generate-board -Xp$*,bPrintableAll faces.plag input-graph $o
 
+%-preview.png: %.pdf Makefile
+       gm convert -geometry 50% $< png:$@.tmp && $i
+
 boundings-%.ps: $(BOARDDEPS)
        ./generate-board -XB$* faces.plag input-graph $o