#!/usr/bin/make -f

include /usr/share/rustc/architecture.mk

# A cross build compiles the translator for the host architecture.
ifneq ($(DEB_HOST_RUST_TYPE),$(DEB_BUILD_RUST_TYPE))
MAKE_ARGS = CARGO_TARGET=$(DEB_HOST_RUST_TYPE)
endif

%:
	dh $@

override_dh_auto_build:
	$(MAKE) $(MAKE_ARGS)

override_dh_auto_install:
	$(MAKE) $(MAKE_ARGS) install DESTDIR=$(CURDIR)/debian/eydos-enjarify PREFIX=/usr

# The upstream tests compare against hashes of reference outputs, not part of the package.
override_dh_auto_test:
