-
Notifications
You must be signed in to change notification settings - Fork 81
/
Makefile
39 lines (29 loc) · 606 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
.PHONY: doc
# No default for now.
all: build
build:
python setup.py build
install:
python setup.py install
lint:
pylint idstools
tox:
@if ! which tox 2>&1 > /dev/null; then \
echo "error: tox required to run tests"; \
exit 1; \
fi
test: tox
@tox
clean:
find . -name \*.pyc -print0 | xargs -0 rm -f
find . -name \*~ -print0 | xargs -0 rm -f
find . -name __pycache__ -type d -print0 | xargs -0 rm -rf
rm -rf idstools.egg*
rm -rf build dist MANIFEST
cd doc && $(MAKE) clean
doc:
cd doc && $(MAKE) clean html
sdist:
python setup.py sdist
sdist-upload:
python setup.py sdist upload