2010-12-28 18:05:44 +02:00
|
|
|
PLOT_BRD = pcbnew --plot=ps_a4 --ps-pads-drill-opt=none --fill-all-zones
|
2010-12-28 18:02:43 +02:00
|
|
|
|
2011-01-18 03:35:55 +02:00
|
|
|
NAME = atusb
|
|
|
|
|
2010-12-28 04:50:00 +02:00
|
|
|
.PHONY: all gen generate sch brd xpdf front back clean
|
2010-08-22 22:06:43 +03:00
|
|
|
|
|
|
|
all:
|
2010-12-28 04:50:00 +02:00
|
|
|
@echo "make what ? target: gen sch brd xpdf front back clean"
|
2010-08-22 22:06:43 +03:00
|
|
|
@exit 1
|
|
|
|
|
|
|
|
gen generate:
|
2011-01-18 03:35:55 +02:00
|
|
|
eeschema --plot `pwd`/$(NAME).sch
|
2010-08-22 22:06:43 +03:00
|
|
|
# need scripts
|
|
|
|
|
|
|
|
sch:
|
2011-01-18 03:35:55 +02:00
|
|
|
eeschema `pwd`/$(NAME).sch
|
2010-08-22 22:06:43 +03:00
|
|
|
|
|
|
|
brd:
|
2011-01-18 03:35:55 +02:00
|
|
|
pcbnew `pwd`/$(NAME).brd
|
2010-08-22 22:06:43 +03:00
|
|
|
|
|
|
|
xpdf:
|
2011-01-18 03:35:55 +02:00
|
|
|
xpdf $(NAME).pdf
|
2010-12-28 04:20:42 +02:00
|
|
|
|
2011-01-18 03:35:55 +02:00
|
|
|
front: $(NAME)-Front.ps
|
2010-12-28 04:20:42 +02:00
|
|
|
lpr $<
|
|
|
|
|
2011-01-18 03:35:55 +02:00
|
|
|
back: $(NAME)-Back.ps
|
2010-12-28 04:20:42 +02:00
|
|
|
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.
|
|
|
|
#
|
|
|
|
|
2011-01-18 03:35:55 +02:00
|
|
|
%-Front.ps: %.brd
|
2010-12-28 18:02:43 +02:00
|
|
|
$(PLOT_BRD) -l Front --mirror $<
|
2010-12-28 04:20:42 +02:00
|
|
|
|
2011-01-18 03:35:55 +02:00
|
|
|
%-Back.ps: %.brd
|
2010-12-28 18:02:43 +02:00
|
|
|
$(PLOT_BRD) -l Back $<
|
2010-12-28 04:50:00 +02:00
|
|
|
|
|
|
|
clean:
|
2011-01-18 03:35:55 +02:00
|
|
|
rm -f $(NAME)-Front.ps $(NAME)-Back.ps
|
|
|
|
rm -f $(NAME).drl $(NAME)-PCB_Edges.gbr
|
2011-01-18 03:40:15 +02:00
|
|
|
rm -f $(NAME)-Front.gtl $(NAME)-Mask_Front.gts
|
|
|
|
rm -f $(NAME)-SilkS_Front.gto $(NAME)-SoldP_Front.gtp
|
|
|
|
rm -f $(NAME)-Back.gbl $(NAME)-Mask_Back.gbs
|
|
|
|
rm -f $(NAME)-SilkS_Back.gbo $(NAME)-SoldP_Back.gbp
|
|
|
|
rm -f $(NAME)-Comments.gbr
|