From 74ed5d87f98ad3b511236e3e47598a13cfdaa7ab Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Fri, 11 Mar 2011 16:05:30 -0300 Subject: [PATCH] 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 --- atben/Makefile | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/atben/Makefile b/atben/Makefile index 7a423a4..29e3c61 100644 --- a/atben/Makefile +++ b/atben/Makefile @@ -1,6 +1,8 @@ PLOT_BRD = pcbnew --plot=ps_a4 --ps-pads-drill-opt=none --fill-all-zones NAME = atben +VERSION = 110219 +DIR = $(NAME) .PHONY: all gen generate sch brd xpdf front back clean .PHONY: gerber gerbv @@ -28,13 +30,25 @@ front: $(NAME)-Front.ps back: $(NAME)-Back.ps 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: pcbnew --plot=gerber \ -l `pcbnew --list-layers atben.brd | tr '\012' ,` \ --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 $(NAME)-Comments.gbr \ $(NAME)-SilkS_Front.gto \ @@ -63,7 +77,7 @@ gerbv: clean: 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)-SilkS_Front.gto $(NAME)-SoldP_Front.gtp rm -f $(NAME)-Back.gbl $(NAME)-Mask_Back.gbs