chiark / gitweb /
nicer printing arrangements
authorian <ian>
Mon, 30 Aug 2004 00:11:29 +0000 (00:11 +0000)
committerian <ian>
Mon, 30 Aug 2004 00:11:29 +0000 (00:11 +0000)
.cvsignore
pcb/Makefile
pic.make
spice/Makefile

index c25d6b3f8c0f17a0a75ac647efcaf14a1b81905b..bca017464d8bfb78382d452b6df2502b051c56af 100644 (file)
@@ -32,3 +32,4 @@ detectors.pcb.output_*.*
 detectors.net
 detectors.net-info
 detectors.net-spec
+*.oprints
index 8df17f18869d62a9c0df63b85efb80f057c0e6f0..35e0d8501e1fbbfd10d83a64a8934e3f2d134fd6 100644 (file)
@@ -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)
index 8df17f18869d62a9c0df63b85efb80f057c0e6f0..35e0d8501e1fbbfd10d83a64a8934e3f2d134fd6 100644 (file)
--- 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)
index 8df17f18869d62a9c0df63b85efb80f057c0e6f0..35e0d8501e1fbbfd10d83a64a8934e3f2d134fd6 100644 (file)
@@ -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)