chiark / gitweb /
bc72f22c02abbcc2ef3d76a0e72d67be734b0146
[pandemic-rising-tide.git] / Makefile
1
2 i=mv -f $@.tmp $@
3 o= >$@.tmp && $i
4
5 export PERL_HASH_SEED=1
6
7 PLANAR_GRAPH=planar-graph
8
9 # with planar-graph 74bbc2b1da372d3456c00bcb07f3358c739e5721
10
11 default: all
12
13 all: whole.ps layout-test.ps \
14         $(addprefix a4-test-,$(addsuffix .ps, b m t)) \
15         $(addprefix layout-test-,$(addsuffix .ps, b m t))
16
17 map.plag: generate-plag input-graph Parse.pm 
18         ./$< input-graph $o
19
20 # create opt.plag.reuse to shortcut this
21 opt.plag: maybe-rerun-optim map.plag $(PLANAR_GRAPH) Makefile
22         ./$(filter-out Makefile, $^) $@ .opt.plag.sums \
23                 R                                       \
24                 DUAL                                    \
25                 OUTER-F2V OUTER-SPLIT                   \
26                 B T OUTER-F2V OUTER-F12VA               \
27                 PCO CP RAE                              \
28                 D 0 NLOPT                               \
29                 W $@.tmp
30
31 faces.plag: opt.plag $(PLANAR_GRAPH) Makefile
32         $(PLANAR_GRAPH) RF $< W-FACES $@.tmp && $i
33
34 whole.ps: generate-board faces.plag input-graph misc-data.pl Parse.pm
35         ./generate-board -XS faces.plag input-graph $o
36
37 layout-test.ps: whole.ps Makefile Parse.pm
38         ./generate-board -XW faces.plag input-graph $o
39
40 layout-test-%.ps: layout-test-prefix-%.ps layout-test.ps
41         cat $^ $o
42
43 a4-test-%.ps: layout-test-prefix-%.ps whole.ps
44         cat $^ $o
45
46 #map.ps: map.dot
47 #       neato -Tps $^ $o