-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
43 lines (35 loc) · 863 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
42
43
VERSION=0.0.6
VPPCFG:=vppcfg
PYTHON?=python3
PIP?=pip
PIP_DEPENDS=build yamale netaddr pylint
PIP_DEPENDS+=argparse pyyaml ipaddress black
WIPE=dist $(VPPCFG).egg-info .pybuild debian/vppcfg debian/vppcfg.*.log
WIPE+=debian/vppcfg.*.debhelper debian/.debhelper debian/files
WIPE+=debian/vppcfg.substvars
WHL_INSTALL=dist/$(VPPCFG)-$(VERSION)-py3-none-any.whl
TESTS=tests.py
.PHONY: build
build:
$(PYTHON) -m build
.PHONY: install-deps
install-deps:
sudo $(PIP) install $(PIP_DEPENDS)
.PHONY: install
install:
sudo $(PIP) install $(WHL_INSTALL)
.PHONY: pkg-deb
pkg-deb:
dpkg-buildpackage -uc -us -b
.PHONY: check-style
check-style:
PYTHONPATH=./$(VPPCFG) pylint ./$(VPPCFG)
.PHONY: test
test:
@cd $(VPPCFG); PYTHONPATH=./$(VPPCFG) $(PYTHON) tests.py
.PHONY: uninstall
uninstall:
sudo $(PIP) uninstall $(VPPCFG)
.PHONY: wipe
wipe:
$(RM) -rf $(WIPE)