This repository has been archived by the owner on Jul 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Makefile
58 lines (48 loc) · 1.45 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
#
# Project: retdec-python
# Copyright: (c) 2015 by Petr Zemek <[email protected]> and contributors
# License: MIT, see the LICENSE file for more details
#
# A GNU Makefile for the project.
#
.PHONY: clean clean-pyc docs docs-coverage help lint tests tests-coverage tests-timings
help:
@echo "Use \`make <target>', where <target> is one of the following:"
@echo " clean - remove all generated files"
@echo " clean-pyc - remove just Python file artifacts"
@echo " docs - generate documentation"
@echo " docs-coverage - generate documentation coverage"
@echo " lint - check code style with flake8"
@echo " tests - run tests"
@echo " tests-coverage - obtain test coverage"
@echo " tests-timings - obtain test timings"
clean: clean-pyc
@rm -rf .coverage coverage
@rm -rf .tox retdec_python.egg-info
@rm -rf build dist
@$(MAKE) -C docs clean
clean-pyc:
@find . -name '__pycache__' -exec rm -rf {} +
@find . -name '*.py[co]' -exec rm -f {} +
docs:
@sphinx-apidoc --force -o docs retdec
@$(MAKE) -C docs html
docs-coverage:
@$(MAKE) -C docs coverage
lint:
@flake8 --max-line-length=100 --jobs=auto retdec tests setup.py
tests:
@nosetests tests \
--processes=-1
tests-coverage:
@nosetests tests \
--with-coverage \
--cover-package retdec \
--cover-erase \
--cover-html \
--cover-html-dir coverage
tests-timings:
@nosetests tests \
--with-timer \
--timer-ok=10ms \
--timer-warning=50ms