| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
include /usr/share/dpkg/default.mk |
| 4 |
include /usr/share/rustc/architecture.mk |
| 5 |
|
| 6 |
export CFLAGS CXXFLAGS CPPFLAGS LDFLAGS |
| 7 |
export DEB_HOST_RUST_TYPE DEB_HOST_GNU_TYPE |
| 8 |
export PATH := /usr/share/cargo/bin:$(PATH) |
| 9 |
export CARGO = /usr/share/cargo/bin/cargo |
| 10 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 11 |
export CARGO_HOME = $(CURDIR)/debian/cargo_home |
| 12 |
export CARGO_REGISTRY = $(CURDIR)/debian/cargo_registry |
| 13 |
|
| 14 |
%: |
| 15 |
dh $@ --buildsystem=cargo |
| 16 |
|
| 17 |
execute_after_dh_auto_clean: |
| 18 |
rm -rf debian/cargo_home debian/cargo_registry |
| 19 |
|
| 20 |
override_dh_auto_build: |
| 21 |
dh_auto_build -- --release --all-features |
| 22 |
|
| 23 |
override_dh_auto_test: |
| 24 |
dh_auto_test -- test --release --all-features -- \ |
| 25 |
--skip test_exec_command_with_force_color_stdout_is_tty \ |
| 26 |
--skip test_exec_command_with_force_color_stdin_is_tty |