IEEE 802.15.4 subsystem
Sign in or create your account | Project List | Help
IEEE 802.15.4 subsystem Commit Details
Date: | 2013-11-29 13:18:33 (10 years 3 months ago) |
---|---|
Author: | Werner Almesberger |
Commit: | 71ad8dae76d67bafc5ec9a63cd5280f115235d18 |
Message: | makefiles/Makefile.kicad (GERBERS): auto-choose between old and new
file names Recent versions of KiCAD use names like F_Cu.gtl, B_Mask.gbs, etc., while older versions used Front.gtl, Mask_Back.gbs |
Files: |
makefiles/Makefile.kicad (2 diffs) |
Change Details
makefiles/Makefile.kicad | ||
---|---|---|
1 | 1 | # |
2 | 2 | # Makefile.kicad - Makefile template for KiCAD projects |
3 | 3 | # |
4 | # Written 2011 by Werner Almesberger | |
5 | # Copyright 2011 Werner Almesberger | |
4 | # Written 2011, 2013 by Werner Almesberger | |
5 | # Copyright 2011, 2013 Werner Almesberger | |
6 | 6 | # |
7 | 7 | # This program is free software; you can redistribute it and/or modify |
8 | 8 | # it under the terms of the GNU General Public License as published by |
... | ... | |
82 | 82 | |
83 | 83 | # --- Industrial production --------------------------------------------------- |
84 | 84 | |
85 | GERBERS = $(NAME)-SilkS_Front.gto $(NAME)-Mask_Front.gts \ | |
86 | $(NAME)-Front.gtl $(NAME)-Back.gbl $(NAME)-Mask_Back.gbs \ | |
87 | $(NAME)-PCB_Edges.gbr $(NAME)-SoldP_Front.gtp | |
85 | # $(call choose, basename, old-suffix, new-suffix) | |
86 | ||
87 | choose = $(if $(wildcard $(1)-$(3)), $(1)-$(3), $(1)-$(2)) | |
88 | ||
89 | GERBERS = $(call choose, $(NAME),SilkS_Front.gto,F_SilkS.gto) \ | |
90 | $(call choose, $(NAME),Mask_Front.gts,F_Mask.gts) \ | |
91 | $(call choose, $(NAME),Front.gtl,F_Cu.gtl) \ | |
92 | $(call choose, $(NAME),Back.gbl,B_Cu.gbl) \ | |
93 | $(call choose, $(NAME),Mask_Back.gbs,B_Mask.gbs) \ | |
94 | $(call choose, $(NAME),PCB_Edges.gbr,Edge_Cuts.gbr) \ | |
95 | $(call choose, $(NAME),SoldP_Front.gtp,F_Paste.gtp) | |
88 | 96 | |
89 | 97 | PCB_FILES = README-PCB $(NAME)-front.png $(NAME)-back.png \ |
90 | 98 | $(NAME)-PCB_Edges.dxf $(NAME).drl $(GERBERS) |