-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
69 lines (45 loc) · 969 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
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
62
63
64
65
66
67
68
# PCBOps Simple Template Makefile
# jobs underscored ci_ orchestrate automated builds,
# add cutom jobs below
#
PYTHON=python
ECHO=echo
EEPLOT=eeplot
PROJECT=example
PLOT_SCRIPT=kicad_cicd/plotter.py
OUTPUT_DIR=output
PROJECT_DIR=kicad
LIB_DIR=lib
INPUT_FILE=$(PROJECT_DIR)/$(PROJECT).kicad_pcb
PROJECT_FILE=$(PROJECT_DIR)/$(PROJECT).pro
all: ci_plot ci_sch
ci_plot:
$(PYTHON) $(PLOT_SCRIPT) $(INPUT_FILE) $(OUTPUT_DIR)/gerbers
ci_sch:
$(EEPLOT) $(LIB_DIR)/*.lib $(PROJECT_FILE) -o $(OUTPUT_DIR)/$(PROJECT).pdf
ci_drawings:
$(ECHO) "NYI"
ci_step:
$(ECHO) "NYI"
ci_pnp:
$(ECHO) "NYI"
ci_bom:
$(ECHO) "NYI"
ci_drc:
$(ECHO) "NYI"
ci_erc:
$(ECHO) "NYI"
ci_rfq:
$(ECHO) "NYI"
clean:
$(RM) -r $(OUTPUT_DIR)
ECHO:
@$(ECHO) <EOF
Python : $(PYTHON)
Plot Script : $(PLOT_SCRIPT)
Output Dir : $(OUTPUT_DIR)
Input Board : $(INPUT_FILE)
Echo cmd : $(ECHO)
Eeplot cmd : $(EEPLOT)
Project : $(PROJECT)
.PHONY: ci_plot ci_sch all ECHO