]>
git.proxmox.com Git - rustc.git/blob - debian/architecture.mk
1 # This Makefile snippet defines DEB_*_RUST_TYPE triples based on DEB_*_GNU_TYPE
3 include /usr
/share
/dpkg
/architecture.mk
5 rust_cpu
= $(subst i586
,i686
,$(if
$(findstring -armhf-
,-$(2)-),$(subst arm
,armv7
,$(1)),$(1)))
6 rust_type_setvar
= $(1)_RUST_TYPE ?
= $(call rust_cpu
,$($(1)_GNU_CPU
),$($(1)_ARCH
))-unknown-
$($(1)_GNU_SYSTEM
)
8 $(foreach machine
,BUILD HOST TARGET
,\
9 $(eval
$(call rust_type_setvar
,DEB_
$(machine
))))
11 # fallback for older dpkg versions
12 ifeq ($(DEB_TARGET_RUST_TYPE
),-unknown-
)
13 DEB_TARGET_RUST_TYPE
= $(DEB_HOST_RUST_TYPE
)