chiark / gitweb /
move stuff into Parse.pm; 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 map.plag: parse-input-graph input-graph Parse.pm 
10         ./$< input-graph $o
11
12 opt.plag: map.plag $(PLANAR_GRAPH)
13         sha256sum $^ >.opt.plag.sums.tmp
14         cmp .opt.plag.sums.tmp .opt.plag.sums || (      \
15         $(PLANAR_GRAPH) RF $<                           \
16                 DUAL                                    \
17                 OUTER-F2V OUTER-SPLIT                   \
18                 B T OUTER-F2V OUTER-F12VA               \
19                 PCO CP RAE                              \
20                 D 0 NLOPT                               \
21                 W $@.tmp                                \
22                 && $i                                   \
23                 && mv -vf .opt.plag.sums.tmp .opt.plag.sums )
24
25 #map.ps: map.dot
26 #       neato -Tps $^ $o