Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 include /usr/share/rustc/architecture.mk
4 export DEB_HOST_RUST_TYPE DEB_HOST_GNU_TYPE
5 export PATH := /usr/share/cargo/bin:$(PATH)
6 export CARGO=/usr/share/cargo/bin/cargo
7 export CARGO_HOME=$(CURDIR)/debian/cargo_home
8 export DEB_CARGO_CRATE=$(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM)
9 export DEB_BUILD_MAINT_OPTIONS=hardening=+bindnow
10
11 %:
12 dh $@ --without single-binary
13
14 execute_after_dh_auto_clean:
15 rm -rf debian/cargo_registry
16
17 # Pass DEB_HOST_RUST type to meson to build
18 override_dh_auto_configure:
19 $(CARGO) prepare-debian debian/cargo_registry --link-from-system
20 rm -f Cargo.lock
21 dh_auto_configure -- \
22 -Dhost_arch="$(DEB_HOST_RUST_TYPE)" \
23 -Dprofile="default"