Debian Codegraph @

Makefile

raw
1 PYTHON=python3
2 NAME=pysmbc
3 VERSION:=$(shell $(PYTHON) setup.py --version)
4
5 _smbc.so: force
6 $(PYTHON) setup.py build
7 mv build/lib*/_smbc*.so .
8
9 doc: _smbc.so
10 rm -rf html
11 epydoc -o html --html $<
12
13 doczip: doc
14 cd html && zip ../smbc-html.zip *
15
16 clean:
17 -rm -rf build smbc.so *.pyc tests/*.pyc *~ tests/*~ _smbc*.so
18
19 dist:
20 $(PYTHON) setup.py sdist $(SDIST_ARGS)
21
22 upload:
23 twine upload `ls dist/*.tar.gz | tail -1`
24
25 install:
26 ROOT= ; \
27 if [ -n "$$DESTDIR" ]; then ROOT="--root $$DESTDIR"; fi; \
28 $(PYTHON) setup.py install $$ROOT
29
30 .PHONY: doc doczip clean dist install force
31