Root/atusb/Makefile

Source at commit 6ac916853526708980131b5f1410e48fc965b45c created 13 years 2 months ago.
By Werner Almesberger, atusd.brd: rearranged component references and values for printing/display
1PLOT_BRD = pcbnew --plot=ps_a4 --ps-pads-drill-opt=none --fill-all-zones
2
3.PHONY: all gen generate sch brd xpdf front back clean
4
5all:
6        @echo "make what ? target: gen sch brd xpdf front back clean"
7        @exit 1
8
9gen generate:
10        eeschema --plot `pwd`/atusb.sch
11        # need scripts
12
13sch:
14        eeschema `pwd`/atusb.sch
15
16brd:
17        pcbnew `pwd`/atusb.brd
18
19xpdf:
20        xpdf atusb.pdf
21
22front: atusb-Front.ps
23        lpr $<
24
25back: atusb-Back.ps
26        lpr $<
27
28#
29# Postscript for production of front/back layer, using the toner transfer
30# method. Note that other artwork transfer methods may require different
31# mirror settings.
32#
33# We use --ps-pads-drill-opt=none to avoid having any hole before drilling,
34# which yields the best results with a CNC drill. For manual drilling, "real"
35# would be preferrable. Do not use "small", for this created holes that are
36# larger (!) than designed.
37#
38
39atusb-Front.ps: atusb.brd
40        $(PLOT_BRD) -l Front --mirror $<
41
42atusb-Back.ps: atusb.brd
43        $(PLOT_BRD) -l Back $<
44
45clean:
46        rm -f atusb-Front.ps atusb-Back.ps
47        rm -f atusb.drl atusb-PCB_Edges.gbr
48

Archive Download this file



interactive