2
# Sample debian/rules that uses debhelper.
3
# GNU copyright 1997 to 1999 by Joey Hess.
5
# Uncomment this to turn on verbose mode.
8
# This is the debhelper compatibility version to use.
13
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
16
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
20
configure: configure-stamp
23
# Add here commands to configure the package.
30
build-stamp: configure-stamp
34
# Add here commands to compile the package.
36
python2.3 setup.py build
44
rm -f build-stamp configure-stamp
46
# Add here commands to clean up after the build process.
59
# Add here commands to install the package into debian/duplicity.
61
python2.3 setup.py install --prefix=$(CURDIR)/debian/duplicity/usr --no-compile
63
# remove GnuPGInterface.py as we already have it in
64
# python-gnupginterface
65
rm -f $(CURDIR)/debian/duplicity/usr/lib/python2.3/site-packages/duplicity/GnuPGInterface.py
67
# fix permission for tarfile.py
68
chmod 755 $(CURDIR)/debian/duplicity/usr/lib/python2.3/site-packages/duplicity/tarfile.py
70
# remove docs as we create them with debhelper
71
rm -rf $(CURDIR)/debian/duplicity/usr/share/doc/duplicity-0.4.1
74
# Build architecture-independent files here.
75
binary-indep: build install
76
# We have nothing to do by default.
78
# Build architecture-dependent files here.
79
binary-arch: build install
95
dh_installchangelogs CHANGELOG
108
binary: binary-indep binary-arch
109
.PHONY: build clean binary-indep binary-arch binary install configure