-M4INCS= parts.i4
+default: netlists
-E_TRACK= ArsCLMNo
-LAYOUTOPTS_ALL= -ep=*Cm
-LAYOUTOPTS= -E=*$(E_TRACK) $(LAYOUTOPTS_ALL)
-LAYOUTOPTS_PHYS= -S1.0 $(LAYOUTOPTS) '-e*A'
-XLAYOUTOPTS_LAYER= -e'=5AN' -E'*~=5rsm' -e'p~=5r' -e'*~=9C' -e'*=*l'
-
-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)
-
-LPAGES= $(foreach x, 0 1 2 3 4 5 6, $(foreach y, 1 2 3 4 5, ours-p0-$xx$y.ps))
-
-default: netlists picprogs
-layers: $(LAYERS)
-lpages: $(LPAGES)
-
-all: default layers bulkres.bom divider-tables \
- picprogs netlists panel3.pcb
+all: default layers panel3.pcb
o=>$@.new && mv -f $@.new $@
-CIRCUITPARTS= control.partlist circuit.partlist
-BULKRESPARTS= bulkres-select.partlist bulkres-items.partlist
-
-picprogs: flasher.hex
-
netlists: reversers.net detectors.net \
reversers.hole-rep detectors.hole-rep \
both.hole-rep panel3.hole-rep
%.net-spec: generate-netspec.pl
./$< $@ $o
-%.hex: %.asm
- gpasm -p 18f458 $<
-
-circuit.bom: farnell-find $(CIRCUITPARTS)
- ./farnell-find bom $(CIRCUITPARTS) $o
-
-bulkres.bom: farnell-find $(BULKRESPARTS)
- ./farnell-find bom $(BULKRESPARTS) $o
-
-bulkres-select.partlist: bulkres-select-gen.pl
- ./$^ $o
-
-bulkres-items.suggest:
- cat bulkres-searchout*[0-9] | ./farnell-resistor-convert.pl $o
-
-bulkres-items.descs: bulkres-items.suggest
- xargs ./farnell-find describe <$< $o
-
-bulkres-items.partlist:
- ./farnell-resistor-convert.pl <bulkres-items.descs MRS25 std $o
-
-divider-table.txt: divider-table.pl
- ./$< $o
-
-divider-tables: divider-table.ps divider-table.txt
-
-divider-table.ps: divider-table.txt Makefile
- a2ps -o- -R -1 --borders no -B -L"$$(wc -l <$<)" -l158 \
- --center-title='E24 resistor ratios and logarithms' <$< $o
-
-%.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
-
-%-ap.ps: %.d4 layout
- ./layout -S1.0 <$< $(LAYOUTOPTS) '-e*A' '-ep=rm' $o
-
-ours-l%.ps: ours.d4 layout
- ./layout <$< -l$* $(LAYOUTOPTS) $(XLAYOUTOPTS_LAYER) $o
-
-ours-e%.ps: ours.d4 layout
- ./layout <$< -l$* -E'=*aRsclMno' \
- -e'p=*rm' -e'=5RN' -E'*~=5rsm' -e'p~=5r' -e'*=*l' $o
-
-ours-p%.ps: ours.d4 layout
- ./layout <$< -l$$(printf %s "$*" | sed -e 's/-/ -P/') \
- $(LAYOUTOPTS_PHYS) $(XLAYOUTOPTS_LAYER) $o
-
-parts.ps: showlib.d4 layout
- ./layout <$< $(LAYOUTOPTS_ALL) $o
-
clean:
- -rm -f -- *.d4 farn.* *~ *.new
- -rm -f bulkres-*.partlist bulkres-items.suggest *.bom
- -rm -f t,*.gnuplot-data t,*.gnuplot-cmd t,gnuplot-fifo
- -rm -f t,gnuplots.sh reversers.net reversers.net-info
- -rm -f flasher.hex flasher.cod flasher.lst
- -rm -f ours-*.ps parts.ps
- -rm -f *.oprint-*.ps
+ -rm -f -- *~ *.new
+ -rm -f reversers.net reversers.net-info
.PRECIOUS: %.net-info %.net-spec
.PRECIOUS: $(OPRINTS)