mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-22 19:20:41 +02:00
makefiles/Makefile.kicad: fix dependency bugs
- Makefile.kicad (fab-pcb): add explicit dependency instead of "gerber" - Makefile.kicad (fab-smt): depend on all files, not just the .csv files - Makefile.kicad (clean): also remove $(NAME)-bom.csv
This commit is contained in:
parent
2e5329039c
commit
ef6dd28054
@ -99,7 +99,7 @@ $(GERBERS): $(NAME).brd Makefile
|
|||||||
|
|
||||||
fab: fab-pcb fab-smt
|
fab: fab-pcb fab-smt
|
||||||
|
|
||||||
fab-pcb: gerber
|
fab-pcb: $(PCB_FILES)
|
||||||
pcbnew --plot=dxf --origin=aux -l PCB_Edges $(BRD)
|
pcbnew --plot=dxf --origin=aux -l PCB_Edges $(BRD)
|
||||||
pcbnew --drill --origin=aux $(BRD)
|
pcbnew --drill --origin=aux $(BRD)
|
||||||
mkdir -p fab
|
mkdir -p fab
|
||||||
@ -129,7 +129,7 @@ $(NAME)-pos.csv: $(NAME)Front.pos $(NAME).cmp
|
|||||||
$(NAME)-bom.csv: ../bom/$(NAME)-bom.csv
|
$(NAME)-bom.csv: ../bom/$(NAME)-bom.csv
|
||||||
mv $< $@
|
mv $< $@
|
||||||
|
|
||||||
fab-smt: $(NAME)-pos.csv $(NAME)-bom.csv
|
fab-smt: $(SMT_FILES)
|
||||||
mkdir -p fab
|
mkdir -p fab
|
||||||
tar Ccfz .. fab/$(NAME)-smt-$(VERSION).tar.gz \
|
tar Ccfz .. fab/$(NAME)-smt-$(VERSION).tar.gz \
|
||||||
$(SMT_FILES:%=$(DIR)/%)
|
$(SMT_FILES:%=$(DIR)/%)
|
||||||
@ -167,6 +167,7 @@ clean::
|
|||||||
rm -f $(NAME)-Comments.gbr $(NAME)-Drawings.gbr
|
rm -f $(NAME)-Comments.gbr $(NAME)-Drawings.gbr
|
||||||
rm -f $(NAME)-overview.png $(NAME)-front.png $(NAME)-back.png
|
rm -f $(NAME)-overview.png $(NAME)-front.png $(NAME)-back.png
|
||||||
rm -f $(NAME)Front.pos $(NAME)-pos.csv
|
rm -f $(NAME)Front.pos $(NAME)-pos.csv
|
||||||
|
rm -f $(NAME)-bom.csv
|
||||||
|
|
||||||
spotless:: clean
|
spotless:: clean
|
||||||
rm -f '$$'savepcb.000 '$$'savepcb.brd
|
rm -f '$$'savepcb.000 '$$'savepcb.brd
|
||||||
|
Loading…
Reference in New Issue
Block a user