summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-06-09 14:46:31 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2011-06-09 14:46:31 +0200
commit7eee083af5c4121ca74f3bbed23f04d3ca20d342 (patch)
tree4e00695841d48125649100c615c3c3f27d5cc140 /debian/rules
parent08c9b19106097fda61ab2df703c68a65131277a2 (diff)
do not hardcode the libnames
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules10
1 files changed, 7 insertions, 3 deletions
diff --git a/debian/rules b/debian/rules
index e67f17237..fd894b73b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -70,6 +70,10 @@ APT_UTILS=ftparchive sortpkgs extracttemplates
# Find the libapt-pkg major version for use in other control files
include buildlib/libversion.mak
+# Determine which library package names to use
+LIBAPT_PKG=libapt-pkg$(LIBAPTPKG_MAJOR)
+LIBAPT_INST=libapt-inst$(LIBAPTINST_MAJOR)
+
# do not fail as we are just experimenting with symbol files for now
export DPKG_GENSYMBOLS_CHECK_LEVEL=0
@@ -161,7 +165,7 @@ apt-doc: build-doc
# Build architecture-dependent files here.
-binary-arch: libapt-pkg4.10 libapt-inst1.2 apt libapt-pkg-dev apt-utils apt-transport-https
+binary-arch: $(LIBAPT_PKG) $(LIBAPT_INST) apt libapt-pkg-dev apt-utils apt-transport-https
apt_MANPAGES = apt-cache apt-cdrom apt-config apt-get apt-key apt-mark apt-secure apt apt.conf apt_preferences sources.list
apt: build build-doc
dh_testdir -p$@
@@ -253,7 +257,7 @@ apt-utils: build
dh_md5sums -p$@
dh_builddeb -p$@
-libapt-pkg4.10: build
+$(LIBAPT_PKG): build
dh_testdir -p$@
dh_testroot -p$@
dh_prep -p$@
@@ -272,7 +276,7 @@ libapt-pkg4.10: build
dh_md5sums -p$@
dh_builddeb -p$@
-libapt-inst1.2: build
+$(LIBAPT_INST): build
dh_testdir -p$@
dh_testroot -p$@
dh_prep -p$@