Use ?= for assignments to architecture variables.
Changes-By: lintian-brush
Fixes: lintian: debian-rules-sets-dpkg-architecture-variable
See-also: https://lintian.debian.org/tags/debian-rules-sets-dpkg-architecture-variable.html
Debian Janitor
2 years ago
2 | 2 | dh $@ |
3 | 3 | |
4 | 4 | DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH) |
5 | DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) | |
6 | DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) | |
5 | DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) | |
6 | DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) | |
7 | 7 | |
8 | 8 | ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) |
9 | 9 | CROSS := |