#! /usr/bin/make -f

# This is a regression test for LP: #2130706. It ensures that the files
# in /usr/share/rustc were installed correctly by attempting to use the
# architecture.mk file that should be installed there.

include /usr/share/rustc/architecture.mk

.PHONY: run-test
run-test:
ifeq ($(DEB_HOST_RUST_TYPE),)
	$(error DEB_HOST_RUST_TYPE is empty; /usr/share/rustc/architecture.mk is broken)
endif
