4
# Uncomment this to turn on verbose mode.
3
dh --with python-central $@
5
override_dh_auto_clean:
6
rm -f AptUrl/Version.py
8
override_dh_auto_install:
9
python ./setup.py install --prefix=$(CURDIR)/debian/tmp/usr
12
dh_install --sourcedir=debian/tmp --fail-missing
8
16
DEBVER=$(shell dpkg-parsechangelog |sed -n -e '/^Version:/s/^Version: //p')
9
17
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 {} \;
32
rm -f AptUrl/Version.py
42
# Add here commands to install the package into debian/apturl.
43
python ./setup.py install --prefix=$(CURDIR)/debian/tmp/usr
45
# Build architecture-independent files here.
46
binary-indep: build install
49
dh_install --sourcedir=debian/tmp --fail-missing
57
dh_installman apturl.8
61
# DH_PYCENTRAL=include-links dh_pycentral
70
20
rm -rf debian/arch-build
71
21
mkdir -p debian/arch-build/$(PKG)-$(DEBVER)
72
22
tar -c --exclude=arch-build --no-recursion -f - `bzr inventory` | (cd debian/arch-build/$(PKG)-$(DEBVER);tar xf -)
73
23
(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