Use dpkg makefile to define architecture variables

This commit is contained in:
Ben Hutchings 2016-03-20 22:24:13 +00:00
parent c37225742b
commit f095f43522
2 changed files with 2 additions and 6 deletions

2
debian/rules.defs vendored
View File

@ -1,3 +1,5 @@
include /usr/share/dpkg/default.mk
BUILD_DIR = debian/build
STAMPS_DIR = debian/stamps

6
debian/rules.real vendored
View File

@ -6,12 +6,6 @@
# expected to be available (need to be exported from the parent process).
#
SHELL := bash -e
ifdef ARCH
DEB_HOST_ARCH := $(shell dpkg-architecture -a'$(ARCH)' -qDEB_HOST_ARCH)
DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -a'$(ARCH)' -qDEB_HOST_GNU_TYPE)
DEB_HOST_MULTIARCH:= $(shell dpkg-architecture -a'$(ARCH)' -qDEB_HOST_MULTIARCH)
DEB_BUILD_ARCH := $(shell dpkg-architecture -a'$(ARCH)' -qDEB_BUILD_ARCH)
endif
MAINTAINER := $(shell sed -ne 's,^Maintainer: .[^<]*<\([^>]*\)>,\1,p' debian/control)
SOURCE_PACKAGE_NAME := $(shell dpkg-parsechangelog -SSource)
DISTRIBUTION := $(shell dpkg-parsechangelog -SDistribution)