forked from model-checking/cbmc-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
74 lines (53 loc) · 1.53 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
default:
@echo Nothing to make
SCRIPTS = \
cbmc-viewer \
make-coverage \
make-loop \
make-property \
make-reachable \
make-result \
make-source \
make-symbol \
make-trace \
pylint:
pylint \
--disable=duplicate-code \
--disable=fixme \
--disable=invalid-repr-returned \
--disable=too-few-public-methods \
--disable=too-many-arguments \
--disable=too-many-branches \
--module-rgx '[\w-]+' \
*.py cbmc_viewer/*.py
################################################################
pip:
./setup.py sdist bdist_wheel
unpip:
./setup.py clean --all
$(RM) -r dist cbmc_viewer.egg-info
################################################################
develop:
./setup.py develop --script-dir .
undevelop:
./setup.py develop --script-dir . --uninstall
$(RM) $(SCRIPTS) easy_install easy_install-3.8
$(RM) -r cbmc_viewer.egg-info
################################################################
test:
tox
################################################################
install: pip
cd .. && sudo python3 -m pip install $(abspath dist/cbmc_viewer-2.0-py3-none-any.whl)
uninstall:
cd .. && sudo python3 -m pip uninstall -y cbmc-viewer
################################################################
clean:
$(RM) *~
$(RM) *.pyc
$(RM) -r __pycache__
veryclean: clean undevelop unpip
################################################################
.PHONY: default pylint pip unpip develop undevelop clean veryclean