M4INCS= parts.i4 E_TRACK= ArsCLMNo LAYOUTOPTS_ALL= -ep=*Cm LAYOUTOPTS= -E=*$(E_TRACK) $(LAYOUTOPTS_ALL) LAYERS_LS= 0 10 20 LAYERS_PS= $(addsuffix .ps, $(LAYERS_LS)) LAYERS_L= $(addprefix ours-l, $(LAYERS_PS)) LAYERS_E= $(addprefix ours-e, $(LAYERS_PS)) LAYERS= $(LAYERS_L) $(LAYERS_E) default: ours-a.ps ours-al.ps parts.ps layers: $(LAYERS) all: default layers o=>$@.new && mv -f $@.new $@ %.d4: %.m4 $(M4INCS) Makefile m4 -s <$< $o %-a.ps: %.d4 layout ./layout <$< $(LAYOUTOPTS) '-E*l' $o %-al.ps: %.d4 layout ./layout <$< $(LAYOUTOPTS) '-e*C' '-ep=rm' $o ours-l%.ps: ours.d4 layout ./layout <$< -l$* $(LAYOUTOPTS) \ -e'=5AN' -E'*~=5rsm' -e'p~=5r' -e'*~=9C' -e'*=*l' $o ours-e%.ps: ours.d4 layout ./layout <$< -l$* -E'=*aRsclMno' \ -e'p=*rm' -e'=5RN' -E'*~=5rsm' -e'p~=5r' -e'*=*l' $o parts.ps: showlib.d4 layout ./layout <$< $(LAYOUTOPTS_ALL) $o clean: -rm -f -- *.d4 *.ps