chiark / gitweb /
e8f3a45b076d968dcbba8beb36bcec4ec3042203
[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 default: all
10
11 all: test.ps layout-test.ps
12
13 map.plag: generate-plag input-graph Parse.pm 
14         ./$< input-graph $o
15
16 # create opt.plag.reuse to shortcut this
17 opt.plag: maybe-rerun-optim map.plag $(PLANAR_GRAPH) Makefile
18         ./$(filter-out Makefile, $^) $@ .opt.plag.sums \
19                 R                                       \
20                 DUAL                                    \
21                 OUTER-F2V OUTER-SPLIT                   \
22                 B T OUTER-F2V OUTER-F12VA               \
23                 PCO CP RAE                              \
24                 D 0 NLOPT                               \
25                 W $@.tmp                                \
26
27 faces.plag: opt.plag $(PLANAR_GRAPH) Makefile
28         $(PLANAR_GRAPH) RF $< W-FACES $@.tmp && $i
29
30 test.ps: generate-board faces.plag input-graph misc-data.pl
31         ./generate-board -XS faces.plag input-graph $o
32
33 layout-test.ps: test.ps Makefile
34         ./generate-board -XW faces.plag input-graph $o
35
36 #map.ps: map.dot
37 #       neato -Tps $^ $o