From: ian Date: Mon, 30 Aug 2004 00:11:29 +0000 (+0000) Subject: nicer printing arrangements X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=2d48dd07b24cb0640609341de05f8eb45a4e29fc;p=trains.git nicer printing arrangements --- diff --git a/.cvsignore b/.cvsignore index c25d6b3..bca0174 100644 --- a/.cvsignore +++ b/.cvsignore @@ -32,3 +32,4 @@ detectors.pcb.output_*.* detectors.net detectors.net-info detectors.net-spec +*.oprints diff --git a/pcb/Makefile b/pcb/Makefile index 8df17f1..35e0d85 100644 --- a/pcb/Makefile +++ b/pcb/Makefile @@ -40,16 +40,19 @@ long2splita4=pstops -pa3 -d '0(-9cm,-10cm)+0(-0.5cm,-1cm)' <$< $o # ok # (If `... exists, use anyway?', Sequence OK) -pcboprints: reversers.oprint-back.ps \ - reversers.oprint-front.ps \ - reversers.oprint-fab.ps \ - reversers.oprint-frontsilk.ps \ - reversers.oprint-assembly.ps \ - detectors.oprint-back.ps \ - detectors.oprint-front.ps \ - detectors.oprint-fab.ps \ - detectors.oprint-frontsilk.ps \ - detectors.oprint-assembly.ps +OPRINTS= %.oprint-back.ps \ + %.oprint-front.ps \ + %.oprint-fab.ps \ + %.oprint-frontsilk.ps \ + %.oprint-assembly.ps + +%.oprints: $(OPRINTS) + echo $^ $o + +pcboprints: reversers.oprints detectors.oprints + +%.oprints-lpr: %.oprints + set -e; for f in `cat $^`; do echo lpr $$f; done %.oprint-back.ps: %.pcb.output_back.ps Makefile $(long2splita4) @@ -142,3 +145,4 @@ clean: -rm -f flasher.hex flasher.cod flasher.lst .PRECIOUS: %.net-info %.net-spec +.PRECIOUS: $(OPRINTS) diff --git a/pic.make b/pic.make index 8df17f1..35e0d85 100644 --- a/pic.make +++ b/pic.make @@ -40,16 +40,19 @@ long2splita4=pstops -pa3 -d '0(-9cm,-10cm)+0(-0.5cm,-1cm)' <$< $o # ok # (If `... exists, use anyway?', Sequence OK) -pcboprints: reversers.oprint-back.ps \ - reversers.oprint-front.ps \ - reversers.oprint-fab.ps \ - reversers.oprint-frontsilk.ps \ - reversers.oprint-assembly.ps \ - detectors.oprint-back.ps \ - detectors.oprint-front.ps \ - detectors.oprint-fab.ps \ - detectors.oprint-frontsilk.ps \ - detectors.oprint-assembly.ps +OPRINTS= %.oprint-back.ps \ + %.oprint-front.ps \ + %.oprint-fab.ps \ + %.oprint-frontsilk.ps \ + %.oprint-assembly.ps + +%.oprints: $(OPRINTS) + echo $^ $o + +pcboprints: reversers.oprints detectors.oprints + +%.oprints-lpr: %.oprints + set -e; for f in `cat $^`; do echo lpr $$f; done %.oprint-back.ps: %.pcb.output_back.ps Makefile $(long2splita4) @@ -142,3 +145,4 @@ clean: -rm -f flasher.hex flasher.cod flasher.lst .PRECIOUS: %.net-info %.net-spec +.PRECIOUS: $(OPRINTS) diff --git a/spice/Makefile b/spice/Makefile index 8df17f1..35e0d85 100644 --- a/spice/Makefile +++ b/spice/Makefile @@ -40,16 +40,19 @@ long2splita4=pstops -pa3 -d '0(-9cm,-10cm)+0(-0.5cm,-1cm)' <$< $o # ok # (If `... exists, use anyway?', Sequence OK) -pcboprints: reversers.oprint-back.ps \ - reversers.oprint-front.ps \ - reversers.oprint-fab.ps \ - reversers.oprint-frontsilk.ps \ - reversers.oprint-assembly.ps \ - detectors.oprint-back.ps \ - detectors.oprint-front.ps \ - detectors.oprint-fab.ps \ - detectors.oprint-frontsilk.ps \ - detectors.oprint-assembly.ps +OPRINTS= %.oprint-back.ps \ + %.oprint-front.ps \ + %.oprint-fab.ps \ + %.oprint-frontsilk.ps \ + %.oprint-assembly.ps + +%.oprints: $(OPRINTS) + echo $^ $o + +pcboprints: reversers.oprints detectors.oprints + +%.oprints-lpr: %.oprints + set -e; for f in `cat $^`; do echo lpr $$f; done %.oprint-back.ps: %.pcb.output_back.ps Makefile $(long2splita4) @@ -142,3 +145,4 @@ clean: -rm -f flasher.hex flasher.cod flasher.lst .PRECIOUS: %.net-info %.net-spec +.PRECIOUS: $(OPRINTS)