From 20812a9feab7b88716f41491afa7606127d2c374 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 20 Mar 2019 23:24:18 +0000 Subject: [PATCH] preview png --- .gitignore | 1 + Makefile | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 20ea94f..017f1ce 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ a4-test-*.ps *.tmp.[0-9] *.pdf html +*-preview.png diff --git a/Makefile b/Makefile index d7c8f19..29f09bc 100644 --- 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 map.plag +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% $< $@.tmp && $i + boundings-%.ps: $(BOARDDEPS) ./generate-board -XB$* faces.plag input-graph $o -- 2.30.2