3
dh --with python-central $@
5
override_dh_auto_clean:
4
# Uncomment this to turn on verbose mode.
8
DEBVER=$(shell dpkg-parsechangelog |sed -n -e '/^Version:/s/^Version: //p')
9
DEB_BUILD_PROG:=debuild --preserve-envvar PATH --preserve-envvar CCACHE_DIR -us -uc $(DEB_BUILD_PROG_OPTS)
11
configure: configure-stamp
18
build-stamp: configure-stamp
20
python ./setup.py build
26
rm -f build-stamp configure-stamp
28
python ./setup.py clean --all
29
find . -name "*.so" -exec rm {} \;
30
find . -name "*.o" -exec rm {} \;
31
find . -name "*.pyc" -exec rm {} \;
6
32
rm -f AptUrl/Version.py
8
override_dh_auto_install:
42
# Add here commands to install the package into debian/apturl.
9
43
python ./setup.py install --prefix=$(CURDIR)/debian/tmp/usr
45
# Build architecture-independent files here.
46
binary-indep: build install
12
49
dh_install --sourcedir=debian/tmp --fail-missing
16
DEBVER=$(shell dpkg-parsechangelog |sed -n -e '/^Version:/s/^Version: //p')
17
DEB_BUILD_PROG:=debuild --preserve-envvar PATH --preserve-envvar CCACHE_DIR -us -uc $(DEB_BUILD_PROG_OPTS)
57
dh_installman apturl.8
61
# DH_PYCENTRAL=include-links dh_pycentral
20
70
rm -rf debian/arch-build
21
71
mkdir -p debian/arch-build/$(PKG)-$(DEBVER)
22
72
tar -c --exclude=arch-build --no-recursion -f - `bzr inventory` | (cd debian/arch-build/$(PKG)-$(DEBVER);tar xf -)
23
73
(cd debian/arch-build/$(PKG)-$(DEBVER) && $(DEB_BUILD_PROG))
75
binary: binary-indep binary-arch
76
.PHONY: build clean binary-indep binary-arch binary install configure