forked from curtacircuitos/pcb-tools
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (35 loc) · 745 Bytes
/
Makefile
File metadata and controls
45 lines (35 loc) · 745 Bytes
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
PYTHON ?= python3
PIP ?= pip3
PYTEST ?= pytest
DOC_ROOT = doc
EXAMPLES = examples
.PHONY: clean
clean: doc-clean
find . -name '*.pyc' -delete
find . -name '*~' -delete
rm -rf *.egg-info
rm -f .coverage
rm -f coverage.xml
rm -rf build
.PHONY: test
test:
$(PYTEST)
.PHONY: test-coverage
test-coverage:
rm -f .coverage
rm -f coverage.xml
$(PYTEST) --cov=./ --cov-report=xml
.PHONY: install
install:
#PYTHONPATH=. $(PYTHON) setup.py install <-- wrong! Use newer tools!
$(PIP) install .
.PHONY: doc-html
doc-html:
(cd $(DOC_ROOT); make html)
.PHONY: doc-clean
doc-clean:
(cd $(DOC_ROOT); make clean)
.PHONY: examples
examples:
PYTHONPATH=. $(PYTHON) examples/cairo_example.py
PYTHONPATH=. $(PYTHON) examples/pcb_example.py