chiark / gitweb /
nicer printing arrangements
[trains.git] / spice / Makefile
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)