Root/atusd/Makefile

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

Archive Download this file



interactive