-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (45 loc) · 1.63 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
.PHONY: all clean web
BOARDS = mPCIe-GNSS mPCIe-GNSS-panel
BOARDSFILES = $(addprefix build/, $(BOARDS:=.kicad_pcb))
SCHFILES = $(addprefix build/, $(BOARDS:=.sch))
GERBERS = $(addprefix build/, $(BOARDS:=-gerber.zip))
JLCGERBERS = $(addprefix build/, $(BOARDS:=-jlcpcb.zip))
JLCIGNORE = U1,PC1,J1,J2,BAT1
GITREPO = https://github.com/neg2led/mpcie-lea-m8t.git
RADIUS=0.75
all: $(GERBERS) $(JLCGERBERS) build/web/index.html
build/mPCIe-GNSS.kicad_pcb: mPCIe-GNSS/mPCIe-GNSS.kicad_pcb build
kikit panelize extractboard -s 125 75 30 50.95 $< $@
build/mPCIe-GNSS.sch: mPCIe-GNSS/mPCIe-GNSS.sch build
cp $< $@
build/mPCIe-GNSS-panel.kicad_pcb: build/mPCIe-GNSS.kicad_pcb
kikit panelize grid --space 3 --gridsize 1 2 \
--tabwidth 3 --tabheight 3 --htabs 2 --vtabs 1 \
--panelsize 77.5 67.5 --framecutV --fiducials 10 2.5 1 2 --tooling 5 2.5 1.5 \
--vcuts --radius $(RADIUS) $< $@
build/mPCIe-GNSS-panel.sch: mPCIe-GNSS/mPCIe-GNSS.sch
cp $< $@
%-gerber: %.kicad_pcb
kikit export gerber $< $@
%-gerber.zip: %-gerber
zip -j $@ `find $<`
%-jlcpcb: %.sch %.kicad_pcb
kikit fab jlcpcb --assembly --ignore $(JLCIGNORE) --schematic $^ $@
%-jlcpcb.zip: %-jlcpcb
zip -j $@ `find $<`
web: build/web/index.html
build:
mkdir -p build
build/web: build
mkdir -p build/web
build/web/index.html: build/web $(BOARDSFILES)
kikit present boardpage \
-d README.md \
--name "miniPCIe LEA-M8T GNSS Card" \
-b "mini-PCIe LEA-M8T GNSS Board" " " build/mPCIe-GNSS.kicad_pcb \
-b "mini-PCIe LEA-M8T GNSS Board Panelized" " " build/mPCIe-GNSS-panel.kicad_pcb \
-r "mPCIe-GNSS/mPCIe-GNSS.png" \
--repository "$(GITREPO)"\
build/web
clean:
rm -r build