chiark / gitweb /
ours-e*.ps
[trains.git] / pic.make
1
2 M4INCS=         parts.i4
3
4 E_TRACK=        ArsCLMNo
5 LAYOUTOPTS_ALL= -ep=*Cm
6 LAYOUTOPTS=     -E=*$(E_TRACK) $(LAYOUTOPTS_ALL)
7 LAYERS_LS=      0 10 20
8 LAYERS_PS=      $(addsuffix .ps, $(LAYERS_LS))
9 LAYERS_L=       $(addprefix ours-l, $(LAYERS_PS))
10 LAYERS_E=       $(addprefix ours-e, $(LAYERS_PS))
11 LAYERS=         $(LAYERS_L) $(LAYERS_E)
12
13 default:        ours-a.ps ours-al.ps parts.ps
14 layers:         $(LAYERS)
15
16 all:            default layers
17
18 o=>$@.new && mv -f $@.new $@
19
20 %.d4:           %.m4 $(M4INCS) Makefile
21                 m4 -s <$< $o
22
23 %-a.ps:         %.d4 layout
24                 ./layout <$< $(LAYOUTOPTS) '-E*l' $o
25
26 %-al.ps:        %.d4 layout
27                 ./layout <$< $(LAYOUTOPTS) '-e*C' '-ep=rm' $o
28
29 ours-l%.ps:     ours.d4 layout
30                 ./layout <$< -l$* $(LAYOUTOPTS) \
31                         -e'=5AN' -E'*~=5rsm' -e'p~=5r' -e'*~=9C' -e'*=*l' $o
32
33 ours-e%.ps:     ours.d4 layout
34                 ./layout <$< -l$* -E'=*aRsclMno' \
35                         -e'p=*rm' -e'=5RN' -E'*~=5rsm' -e'p~=5r' -e'*=*l' $o
36
37 parts.ps:       showlib.d4 layout
38                 ./layout <$< $(LAYOUTOPTS_ALL) $o
39
40 clean:
41                 -rm -f -- *.d4 *.ps