Root/atben/Makefile

Source at commit 319bd8345d03825471fa25af7533188a7455f948 created 13 years 2 months ago.
By Werner Almesberger, great atusd -> atben renaming: renamed design files and some references
1PLOT_BRD = pcbnew --plot=ps_a4 --ps-pads-drill-opt=none --fill-all-zones
2
3NAME = atben
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