File: Makefile

package info (click to toggle)
pysmbc 1.0.25.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 300 kB
  • sloc: ansic: 2,286; python: 786; makefile: 44
file content (31 lines) | stat: -rw-r--r-- 579 bytes parent folder | download
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