chiark / gitweb /
board-mt and board-b.ps
[pandemic-rising-tide.git] / Makefile
1
2 i=mv -f $@.tmp $@
3 o= >$@.tmp && $i
4
5 export PERL_HASH_SEED=1
6
7 # PLAG_DEBUG   ?= $(PLAG)     # effectively
8 # PLAG_RELEASE ?= $(PLAG)     # ie caller may set these
9 PLAG_DIR     ?= ../plag-mangle
10
11 USE_PLAG_DEBUG   := $(shell ./find-plag \
12  debug:release "$(PLAG_DIR)" "$(PLAG_DEBUG)" "$(PLAG_RELEASE)" "$(PLAG)")
13 USE_PLAG_RELEASE := $(shell ./find-plag \
14  release:debug "$(PLAG_DIR)" "$(PLAG_RELEASE)" "$(PLAG_DEBUG)" "$(PLAG)")
15
16 # works with plag-mangle 16446a44d3f1f467765879492fa85a01222f8052
17
18 default: all
19
20 all: maxprintable.ps minprintable.ps boundings.ps \
21         board-b.ps board-mt.ps \
22         layout-test.ps \
23         $(addprefix a4-test-,$(addsuffix .ps, b m t)) \
24         $(addprefix layout-test-,$(addsuffix .ps, b m t))
25
26 map.plag: generate-plag input-graph Parse.pm 
27         ./$< input-graph $o
28
29 # create opt.plag.reuse to shortcut this
30 opt.plag: maybe-rerun-optim map.plag $(USE_PLAG_RELEASE) Makefile
31         ./$(filter-out Makefile, $^) $@ .opt.plag.sums \
32                 R                                       \
33                 DUAL                                    \
34                 OUTER-F2V OUTER-SPLIT                   \
35                 B T OUTER-F2V OUTER-F12VA               \
36                 PCO CP RAE                              \
37                 D 0 NLOPT                               \
38                 W $@.tmp
39
40 faces.plag: opt.plag $(USE_PLAG_DEBUG) Makefile
41         $(USE_PLAG_DEBUG) RF $< W-FACES $@.tmp && $i
42
43 maxprintable.ps: generate-board faces.plag input-graph misc-data.pl Parse.pm
44         ./generate-board faces.plag input-graph $o
45
46 minprintable.ps: generate-board faces.plag input-graph misc-data.pl Parse.pm
47         ./generate-board -XbPrintableAll faces.plag input-graph $o
48
49 boundings.ps: generate-board faces.plag input-graph misc-data.pl Parse.pm
50         ./generate-board -XB faces.plag input-graph $o
51
52 board-b.ps: generate-board faces.plag input-graph misc-data.pl Parse.pm
53         ./generate-board -XbPageB faces.plag input-graph $o
54
55 board-mt.ps: generate-board faces.plag input-graph misc-data.pl Parse.pm
56         ./generate-board -XbPageMT faces.plag input-graph $o
57
58 layout-test.ps: maxprintable.ps Makefile Parse.pm
59         ./generate-board -XW faces.plag input-graph $o
60
61 layout-test-%.ps: layout-test-prefix-%.ps layout-test.ps
62         cat $^ $o
63
64 a4-test-%.ps: layout-test-prefix-%.ps maxprintable.ps
65         cat $^ $o
66
67 #map.ps: map.dot
68 #       neato -Tps $^ $o