-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
33 lines (25 loc) · 822 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
VERSION?=0.1
NAME?=
DESIGNER?=Josh Johnson
prod-files:
make gerb
make pnp
make bom
new:
git submodule update --init --recursive --progress
cd josh-kicad-lib && git checkout master && git pull
cd josh-kicad-lib && bash setup.sh "$(VERSION)" "$(NAME)" "$(DESIGNER)"
gerb:
python3 scripts/plot_gerbers.py hardware/$(VERSION)/*.kicad_pcb
bom:
cd hardware/$(VERSION) && python3 ../../scripts/josh_bom.py *.xml bom/BOM.csv
pnp:
cd hardware/$(VERSION) && python3 "$(HOME)/.kicad_plugins/InteractiveHtmlBom/InteractiveHtmlBom/generate_interactive_bom.py" *.kicad_pcb
panel:
python3 scripts/panel.py hardware/$(VERSION)/panel/*.kicad_pcb
panel-gerb:
python3 scripts/plot_gerbers.py hardware/$(VERSION)/panel/output.*
init:
rm -rf .git
git init
git submodule add git@github.com:joshajohnson/josh-kicad-lib.git