3 include /usr
/share
/dpkg
/pkg-info.mk
4 include /usr
/share
/dpkg
/architecture.mk
5 include /usr
/share
/dpkg
/buildflags.mk
6 include /usr
/share
/rustc
/architecture.mk
8 export DEB_HOST_RUST_TYPE DEB_HOST_GNU_TYPE
9 export CFLAGS CXXFLAGS CPPFLAGS LDFLAGS RUSTFLAGS
11 export CARGO_HOME
= $(CURDIR
)/debian
/cargo_home
12 CARGO
= $(CURDIR
)/debian
/bin
/cargo
13 export DEB_CARGO_PACKAGE
=cargo
14 export DEB_CARGO_CRATE
=cargo_
$(DEB_VERSION_UPSTREAM
)
16 # Disable tests on powerpc and powerpcspe for now.
17 # cbmuser requested this and will fix the errors later
18 # TODO: once powerpc powerpcspe test failures are fixed drop this
19 ifneq (,filter($(DEB_HOST_ARCH
), powerpc powerpcspe
))
24 dh
$@
--with bash-completion
26 override_dh_auto_configure
:
27 $(CARGO
) prepare-debian
$(CURDIR
)/vendor
29 override_dh_auto_build-arch
:
32 override_dh_auto_build-indep
:
35 override_dh_auto_test
:
36 CFG_DISABLE_CROSS_TESTS
=1 $(CARGO
) test $(POST_TEST
)
38 override_dh_auto_install
:
41 override_dh_auto_clean
:
45 # Upstream contains a lot of these
46 dh_clean
-XCargo.toml.orig