#!/usr/bin/make -f include /usr/share/dpkg/default.mk include /usr/share/rustc/architecture.mk export CFLAGS CXXFLAGS CPPFLAGS LDFLAGS export DEB_HOST_RUST_TYPE export DEB_HOST_GNU_TYPE export PATH := /usr/share/cargo/bin:$(PATH) export CARGO=/usr/share/cargo/bin/cargo export CARGO_HOME=$(CURDIR)/debian/cargo_home export DEB_CARGO_CRATE=$(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM) export DEB_BUILD_MAINT_OPTIONS=hardening=+bindnow %: dh $@ --buildsystem=cargo --with shell_completions override_dh_auto_clean: dh_auto_clean rm -rf debian/cargo_registry rm -f debian/cargo-checksum.json override_dh_auto_configure: $(CARGO) prepare-debian debian/cargo_registry --link-from-system rm -f Cargo.lock touch debian/cargo-checksum.json $(CARGO) build --release -p prs-cli # Unfortunately we need to hack around the installation like this override_dh_auto_install: dh_auto_install || true mkdir -p $(CURDIR)/debian/prs/usr/bin cp $(CURDIR)/target/$(DEB_HOST_RUST_TYPE)/release/prs $(CURDIR)/debian/prs/usr/bin/prs