chiark / gitweb /
docs: for publication, etc.
[pandemic-rising-tide.git] / Makefile
index eb5bca9f74bbf8c3aa74b70306de771ef2ca193d..0641673ae88d973f2f9b470f3a0ee1ea15197e76 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -94,8 +94,11 @@ BOARDFILES=                                          \
 
 all:           all-ps all-pdf
 
-all-ps:        $(addsuffix .ps,  $(BOARDFILES))
-all-pdf:       $(addsuffix .pdf, $(BOARDFILES))
+PSS=$(addsuffix .ps,  $(BOARDFILES))
+PDFS=$(addsuffix .pdf, $(BOARDFILES))
+
+all-ps:        $(PSS)
+all-pdf:       $(PDFS)
 
 %.pdf: %.ps Makefile
        $(PS2PDF) $(PS2PDF_FLAGS) $< $@.tmp && $i
@@ -105,6 +108,15 @@ cmyk.pdf: PS2PDF_FLAGS += -dAutoRotatePages=/None
 map.plag: generate-plag input-graph Parse.pm 
        ./$< input-graph $o
 
+www=ianmdlvl@chiark:public-html/pandemic-rising-tide
+
+html: $(PDFS) README
+       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 \