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
|
PYTHON=python3
NAME=pysmbc
VERSION:=$(shell $(PYTHON) setup.py --version)
_smbc.so: force
$(PYTHON) setup.py build
mv build/lib*/_smbc*.so .
doc: _smbc.so
rm -rf html
epydoc -o html --html $<
doczip: doc
cd html && zip ../smbc-html.zip *
clean:
-rm -rf build smbc.so *.pyc tests/*.pyc *~ tests/*~ _smbc*.so
dist:
$(PYTHON) setup.py sdist $(SDIST_ARGS)
upload:
twine upload `ls dist/*.tar.gz | tail -1`
install:
ROOT= ; \
if [ -n "$$DESTDIR" ]; then ROOT="--root $$DESTDIR"; fi; \
$(PYTHON) setup.py install $$ROOT
.PHONY: doc doczip clean dist install force
|