forked from yaqwsx/KiKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (26 loc) · 857 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
.PHONY: doc clean package release test test-system test-unit
all: doc package test
doc: doc/panelization.md doc/examples.md
doc/panelization.md: kikit/panelize.py scripts/panelizeDoc.py
PYTHONPATH=`pwd` python3 scripts/panelizeDoc.py > $@
doc/resources/conn.png: doc/resources/conn.kicad_pcb
pcbdraw --silent $< $@
convert $@ -define png:include-chunk=none $@
doc/examples.md: scripts/exampleDoc.py doc/resources/conn.png
PYTHONPATH=`pwd` python3 scripts/exampleDoc.py > $@
package:
rm -f dist/*
python3 setup.py sdist bdist_wheel
install: package
pip3 install --no-deps --force dist/*.whl
release: package
twine upload dist/*
test: test-system test-unit
test-system: build/test $(shell find kikit -type f)
cd build/test && bats ../../test/system
test-unit:
cd test/units && pytest
build/test:
mkdir -p $@
clean:
rm -rf dist build