forked from zanata/zanata-python-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (29 loc) · 885 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
# Makefile for python client
default: all
sdist: all lint test
python setup.py sdist
install:
python setup.py install
uninstall:
@/bin/echo "NB: if you don't have pip-python, try this: rm -rf /usr/bin/flies /usr/bin/zanata /usr/lib/python2.*/site-packages/zanata*"
pip-python uninstall zanata-python-client
clean:
python setup.py clean
rm -f zanataclient/VERSION-FILE
run:
python zanata help
lint:
pylint -E zanata zanataclient # NB: requires recent version of pylint
lint-report:
pylint --reports=n zanata zanataclient
test:
(cd test; python test_all.py)
all: zanataclient/VERSION-FILE
zanataclient/VERSION-FILE:
./VERSION-GEN
help:
@echo "Avail targets:"
@echo " all sdist install uninstall clean run lint lint-report test"
@echo ""
@echo "For help on zanata itself, use 'make run'"
.PHONY: all sdist install uninstall clean run lint lint-report test