2010-12-28 04:20:42 +02:00
|
|
|
.PHONY: all gen generate sch brd xpdf front back
|
2010-08-22 22:06:43 +03:00
|
|
|
|
|
|
|
all:
|
2010-12-28 04:20:42 +02:00
|
|
|
@echo "make what ? target: gen sch brd xpdf front back"
|
2010-08-22 22:06:43 +03:00
|
|
|
@exit 1
|
|
|
|
|
|
|
|
gen generate:
|
2010-10-25 06:10:00 +03:00
|
|
|
eeschema --plot `pwd`/atusb.sch
|
2010-08-22 22:06:43 +03:00
|
|
|
# need scripts
|
|
|
|
|
|
|
|
sch:
|
2010-10-25 06:10:00 +03:00
|
|
|
eeschema `pwd`/atusb.sch
|
2010-08-22 22:06:43 +03:00
|
|
|
|
|
|
|
brd:
|
2010-10-25 06:10:00 +03:00
|
|
|
pcbnew `pwd`/atusb.brd
|
2010-08-22 22:06:43 +03:00
|
|
|
|
|
|
|
xpdf:
|
2010-10-25 06:10:00 +03:00
|
|
|
xpdf atusb.pdf
|
2010-12-28 04:20:42 +02:00
|
|
|
|
|
|
|
front: atusb-Front.ps
|
|
|
|
lpr $<
|
|
|
|
|
|
|
|
back: atusb-Back.ps
|
|
|
|
lpr $<
|
|
|
|
|
|
|
|
#
|
|
|
|
# Postscript for production of front/back layer, using the toner transfer
|
|
|
|
# method. Note that other artwork transfer methods may require different
|
|
|
|
# mirror settings.
|
|
|
|
#
|
|
|
|
# We use --ps-pads-drill-opt=none to avoid having any hole before drilling,
|
|
|
|
# which yields the best results with a CNC drill. For manual drilling, "real"
|
|
|
|
# would be preferrable. Do not use "small", for this created holes that are
|
|
|
|
# larger (!) than designed.
|
|
|
|
#
|
|
|
|
# Note: all this currenly only works properly if the board has been saved with
|
|
|
|
# all zones filled.
|
|
|
|
#
|
|
|
|
|
|
|
|
atusb-Front.ps: atusb.brd
|
|
|
|
pcbnew -p=ps_a4 -l Front --ps-pads-drill-opt=none --mirror $<
|
|
|
|
|
|
|
|
atusb-Back.ps: atusb.brd
|
|
|
|
pcbnew -p=ps_a4 -l Back --ps-pads-drill-opt=none $<
|