Date:2013-11-29 13:18:33 (5 years 10 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
11#
22# Makefile.kicad - Makefile template for KiCAD projects
33#
4# Written 2011 by Werner Almesberger
5# Copyright 2011 Werner Almesberger
4# Written 2011, 2013 by Werner Almesberger
5# Copyright 2011, 2013 Werner Almesberger
66#
77# This program is free software; you can redistribute it and/or modify
88# it under the terms of the GNU General Public License as published by
...... 
8282
8383# --- Industrial production ---------------------------------------------------
8484
85GERBERS = $(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
87choose = $(if $(wildcard $(1)-$(3)), $(1)-$(3), $(1)-$(2))
88
89GERBERS = $(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)
8896
8997PCB_FILES = README-PCB $(NAME)-front.png $(NAME)-back.png \
9098        $(NAME)-PCB_Edges.dxf $(NAME).drl $(GERBERS)

Archive Download the corresponding diff file



interactive