forked from markreidvfx/pyavb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (26 loc) · 867 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
CYTHON_SRC = $(shell find src/avb -maxdepth 1 -name "*.pyx")
C_SRC = $(CYTHON_SRC:%.pyx=build/cython/%.cpp)
MOD_SOS = $(CYTHON_SRC:%.pyx=%.so)
COVERAGE_EXEC := $(shell command -v coverage 2> /dev/null)
test: python-version
@python setup.py build_ext --inplace
@python -m unittest discover tests -v
python-version:
@python --version
clean:
- rm -rf build
- find src/avb -name '*.so' -delete
- find src/avb -name '*.dylib' -delete
- find src/avb -name '*.pyd' -delete
- find src/avb -name '*.dll' -delete
- find src/avb -name '*.pyc' -delete
- rm -f src/avb/_ext.cpp
- rm -f .coverage
doc:
@make -C docs html
coverage: python-version
ifndef COVERAGE_EXEC
$(error "coverage command missing: https://coverage.readthedocs.io/en/coverage-4.2/install.html")
endif
@${COVERAGE_EXEC} run --source=avb -m unittest discover tests
@${COVERAGE_EXEC} report -m