chiark / gitweb /
build system
[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
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
31         ./$^ $o
32
33 #map.ps: map.dot
34 #       neato -Tps $^ $o