Don't try to define $(DEB_HOST_ARCH) etc. if $(ARCH) is not defined
For arch-independent packages we don't need these, and the invocations of dpkg-architecture with empty $(ARCH) result in error messages. svn path=/dists/sid/linux/; revision=22033
This commit is contained in:
parent
cf4020e229
commit
8d627986a9
|
@ -6,10 +6,12 @@
|
|||
# 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)
|
||||
DISTRIBUTION := $(shell dpkg-parsechangelog | sed -ne 's,^Distribution: ,,p')
|
||||
SOURCE_DATE := $(shell dpkg-parsechangelog | sed -ne 's,^Date: ,,p')
|
||||
|
|
Loading…
Reference in New Issue