Date:2011-03-11 20:05:30 (8 years 9 months ago)
Author:Werner Almesberger
Commit:74ed5d87f98ad3b511236e3e47598a13cfdaa7ab
Message: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
Files: atben/Makefile (3 diffs)

Change Details

atben/Makefile
11PLOT_BRD = pcbnew --plot=ps_a4 --ps-pads-drill-opt=none --fill-all-zones
22
33NAME = atben
4VERSION = 110219
5DIR = $(NAME)
46
57.PHONY: all gen generate sch brd xpdf front back clean
68.PHONY: gerber gerbv
...... 
2830back: $(NAME)-Back.ps
2931        lpr $<
3032
31# this needs more work
33# this needs more work (--exclude-board-edges)
34
35PCB_FILES = README-PCB $(NAME)-PCB_Edges.dxf $(NAME).drl \
36            $(NAME)-SilkS_Front.gto $(NAME)-Mask_Front.gts \
37            $(NAME)-Front.gtl $(NAME)-Back.gbl $(NAME)-Mask_Back.gbs \
38            $(NAME)-PCB_Edges.gbr
3239
3340gerber:
3441        pcbnew --plot=gerber \
3542          -l `pcbnew --list-layers atben.brd | tr '\012' ,` \
3643          --fill-all-zones $(NAME).brd
3744
45fab: gerber
46        pcbnew --plot=dxf -l PCB_Edges $(NAME).brd
47        pcbnew --drill $(NAME).brd
48        tar Ccfz .. $(NAME)-$(VERSION).tar.gz $(PCB_FILES:%=$(DIR)/%)
49        cd ..; zip -l $(DIR)$(NAME)-$(VERSION).zip \
50          $(PCB_FILES:%=$(DIR)/%)
51
3852gerbv:
3953        gerbv $(NAME)-Comments.gbr \
4054          $(NAME)-SilkS_Front.gto \
...... 
6377
6478clean:
6579        rm -f $(NAME)-Front.ps $(NAME)-Back.ps
66        rm -f $(NAME).drl $(NAME)-PCB_Edges.gbr
80        rm -f $(NAME).drl $(NAME)-PCB_Edges.gbr $(NAME)-PCB_Edges.dxf
6781        rm -f $(NAME)-Front.gtl $(NAME)-Mask_Front.gts
6882        rm -f $(NAME)-SilkS_Front.gto $(NAME)-SoldP_Front.gtp
6983        rm -f $(NAME)-Back.gbl $(NAME)-Mask_Back.gbs

Archive Download the corresponding diff file



interactive