5 export PERL_HASH_SEED=1
7 # PLAG_DEBUG ?= $(PLAG) # effectively
8 # PLAG_RELEASE ?= $(PLAG) # ie caller may set these
9 PLAG_DIR ?= ../plag-mangle
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)")
16 # works with plag-mangle 16446a44d3f1f467765879492fa85a01222f8052
20 all: maxprintable.ps minprintable.ps regions.ps layout-test.ps \
21 $(addprefix a4-test-,$(addsuffix .ps, b m t)) \
22 $(addprefix layout-test-,$(addsuffix .ps, b m t))
24 map.plag: generate-plag input-graph Parse.pm
27 # create opt.plag.reuse to shortcut this
28 opt.plag: maybe-rerun-optim map.plag $(USE_PLAG_RELEASE) Makefile
29 ./$(filter-out Makefile, $^) $@ .opt.plag.sums \
32 OUTER-F2V OUTER-SPLIT \
33 B T OUTER-F2V OUTER-F12VA \
38 faces.plag: opt.plag $(USE_PLAG_DEBUG) Makefile
39 $(USE_PLAG_DEBUG) RF $< W-FACES $@.tmp && $i
41 maxprintable.ps: generate-board faces.plag input-graph misc-data.pl Parse.pm
42 ./generate-board faces.plag input-graph $o
44 minprintable.ps: generate-board faces.plag input-graph misc-data.pl Parse.pm
45 ./generate-board -XrPrintableAll faces.plag input-graph $o
47 regions.ps: generate-board faces.plag input-graph misc-data.pl Parse.pm
48 ./generate-board -XR faces.plag input-graph $o
50 layout-test.ps: maxprintable.ps Makefile Parse.pm
51 ./generate-board -XW faces.plag input-graph $o
53 layout-test-%.ps: layout-test-prefix-%.ps layout-test.ps
56 a4-test-%.ps: layout-test-prefix-%.ps maxprintable.ps