]> git.proxmox.com Git - rustc.git/blame - debian/architecture-test.mk
Update d/gbp.conf
[rustc.git] / debian / architecture-test.mk
CommitLineData
75be2bb3 1# Used for testing architecture.mk, and for make_orig-stage0_tarball.sh.
16dfb283
XL
2# Not for end users.
3#
4# Usage:
5# $ make -s --no-print-directory -f debian/architecture-test.mk rust-for-deb_arm64
6# arm64 aarch64-unknown-linux-gnu
7
8include debian/architecture.mk
9
10deb_arch_setvars = $(foreach var,ARCH ARCH_OS ARCH_CPU ARCH_BITS ARCH_ENDIAN GNU_CPU GNU_SYSTEM GNU_TYPE MULTIARCH,\
11 $(eval DEB_$(1)_$(var) = $(shell dpkg-architecture -a$(1) -qDEB_HOST_$(var) 2>/dev/null)))
12
13rust-for-deb_%:
14 $(eval $(call deb_arch_setvars,$*))
15 $(eval $(call rust_type_setvar,DEB_$*))
16 @echo $(DEB_$(*)_ARCH) $(DEB_$(*)_RUST_TYPE)