1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-16 21:19:43 +02:00

atben/Makefile: added generation of some fab files (in progress)

- Makefile (VERSION): version for fab files
- Makefile (DIR): name of parent directory
- Makefile (fab) generate tar and zip files with files needed for PCB
  production
- Makefile (clean): remove also $(NAME)-PCB_Edges.dxf
This commit is contained in:
Werner Almesberger 2011-03-11 16:05:30 -03:00
parent b5fd6e3132
commit 74ed5d87f9

View File

@ -1,6 +1,8 @@
PLOT_BRD = pcbnew --plot=ps_a4 --ps-pads-drill-opt=none --fill-all-zones PLOT_BRD = pcbnew --plot=ps_a4 --ps-pads-drill-opt=none --fill-all-zones
NAME = atben NAME = atben
VERSION = 110219
DIR = $(NAME)
.PHONY: all gen generate sch brd xpdf front back clean .PHONY: all gen generate sch brd xpdf front back clean
.PHONY: gerber gerbv .PHONY: gerber gerbv
@ -28,13 +30,25 @@ front: $(NAME)-Front.ps
back: $(NAME)-Back.ps back: $(NAME)-Back.ps
lpr $< lpr $<
# this needs more work # this needs more work (--exclude-board-edges)
PCB_FILES = README-PCB $(NAME)-PCB_Edges.dxf $(NAME).drl \
$(NAME)-SilkS_Front.gto $(NAME)-Mask_Front.gts \
$(NAME)-Front.gtl $(NAME)-Back.gbl $(NAME)-Mask_Back.gbs \
$(NAME)-PCB_Edges.gbr
gerber: gerber:
pcbnew --plot=gerber \ pcbnew --plot=gerber \
-l `pcbnew --list-layers atben.brd | tr '\012' ,` \ -l `pcbnew --list-layers atben.brd | tr '\012' ,` \
--fill-all-zones $(NAME).brd --fill-all-zones $(NAME).brd
fab: gerber
pcbnew --plot=dxf -l PCB_Edges $(NAME).brd
pcbnew --drill $(NAME).brd
tar Ccfz .. $(NAME)-$(VERSION).tar.gz $(PCB_FILES:%=$(DIR)/%)
cd ..; zip -l $(DIR)$(NAME)-$(VERSION).zip \
$(PCB_FILES:%=$(DIR)/%)
gerbv: gerbv:
gerbv $(NAME)-Comments.gbr \ gerbv $(NAME)-Comments.gbr \
$(NAME)-SilkS_Front.gto \ $(NAME)-SilkS_Front.gto \
@ -63,7 +77,7 @@ gerbv:
clean: clean:
rm -f $(NAME)-Front.ps $(NAME)-Back.ps rm -f $(NAME)-Front.ps $(NAME)-Back.ps
rm -f $(NAME).drl $(NAME)-PCB_Edges.gbr rm -f $(NAME).drl $(NAME)-PCB_Edges.gbr $(NAME)-PCB_Edges.dxf
rm -f $(NAME)-Front.gtl $(NAME)-Mask_Front.gts rm -f $(NAME)-Front.gtl $(NAME)-Mask_Front.gts
rm -f $(NAME)-SilkS_Front.gto $(NAME)-SoldP_Front.gtp rm -f $(NAME)-SilkS_Front.gto $(NAME)-SoldP_Front.gtp
rm -f $(NAME)-Back.gbl $(NAME)-Mask_Back.gbs rm -f $(NAME)-Back.gbl $(NAME)-Mask_Back.gbs