i=mv -f $@.tmp $@ o= >$@.tmp && $i export PERL_HASH_SEED=1 # PLAG_DEBUG ?= $(PLAG) # effectively # PLAG_RELEASE ?= $(PLAG) # ie caller may set these PLAG_DIR ?= ../plag-mangle USE_PLAG_DEBUG := $(shell ./find-plag \ debug:release "$(PLAG_DIR)" "$(PLAG_DEBUG)" "$(PLAG_RELEASE)" "$(PLAG)") USE_PLAG_RELEASE := $(shell ./find-plag \ release:debug "$(PLAG_DIR)" "$(PLAG_RELEASE)" "$(PLAG_DEBUG)" "$(PLAG)") # works with plag-mangle 16446a44d3f1f467765879492fa85a01222f8052 default: all all: maxprintable.ps minprintable.ps layout-test.ps \ $(addprefix a4-test-,$(addsuffix .ps, b m t)) \ $(addprefix layout-test-,$(addsuffix .ps, b m t)) map.plag: generate-plag input-graph Parse.pm ./$< input-graph $o # create opt.plag.reuse to shortcut this opt.plag: maybe-rerun-optim map.plag $(USE_PLAG_RELEASE) Makefile ./$(filter-out Makefile, $^) $@ .opt.plag.sums \ R \ DUAL \ OUTER-F2V OUTER-SPLIT \ B T OUTER-F2V OUTER-F12VA \ PCO CP RAE \ D 0 NLOPT \ W $@.tmp faces.plag: opt.plag $(USE_PLAG_DEBUG) Makefile $(USE_PLAG_DEBUG) RF $< W-FACES $@.tmp && $i maxprintable.ps: generate-board faces.plag input-graph misc-data.pl Parse.pm ./generate-board faces.plag input-graph $o minprintable.ps: generate-board faces.plag input-graph misc-data.pl Parse.pm ./generate-board -XrPrintableAll faces.plag input-graph $o layout-test.ps: maxprintable.ps Makefile Parse.pm ./generate-board -XW faces.plag input-graph $o layout-test-%.ps: layout-test-prefix-%.ps layout-test.ps cat $^ $o a4-test-%.ps: layout-test-prefix-%.ps maxprintable.ps cat $^ $o #map.ps: map.dot # neato -Tps $^ $o