$(addprefix layout-test-, b m t a1m)
-all: all-ps all-pdf
+all: all-ps all-pdf all-preview
-all-ps: $(addsuffix .ps, $(BOARDFILES))
-all-pdf: $(addsuffix .pdf, $(BOARDFILES))
+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
map.plag: generate-plag input-graph Parse.pm
./$< input-graph $o
+www=ianmdlvl@chiark:public-html/pandemic-rising-tide
+
+html: $(PDFS) $(PREVIEWS) README map.plag
+ rm -rf $@ $@.tmp; mkdir $@.tmp
+ cp $^ $@.tmp/ && $i
+
+to-www: html
+ rsync -aH --delete html/. $(www)/.
+
# create opt.plag.reuse to shortcut this
opt.plag: maybe-rerun-optim map.plag $(USE_PLAG_RELEASE) Makefile
./$(filter-out Makefile, $^) $@ .opt.plag.sums \
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