Root/atusb-sil/Makefile

Source at commit 49e7c83796bc04941e9dbcec69bc0751563ff4d4 created 2 years 4 months ago.
By Werner Almesberger, atusb/: use ""VDD" symbol from kicad-libs
1PLOT_BRD = pcbnew --plot=ps_a4 --ps-pads-drill-opt=none --fill-all-zones
2
3NAME = atusb
4
5.PHONY: all gen generate sch brd xpdf front back clean
6
7all:
8        @echo "make what ? target: gen sch brd xpdf front back clean"
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        rm -f $(NAME)-Front.gtl $(NAME)-Mask_Front.gts
51        rm -f $(NAME)-SilkS_Front.gto $(NAME)-SoldP_Front.gtp
52        rm -f $(NAME)-Back.gbl $(NAME)-Mask_Back.gbs
53        rm -f $(NAME)-SilkS_Back.gbo $(NAME)-SoldP_Back.gbp
54        rm -f $(NAME)-Comments.gbr
55

Archive Download this file



interactive