#! /usr/bin/make -f export PYBUILD_NAME=ast_serialize export PYBUILD_TEST_ARGS=test_ast_serialize.py 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=pybuild execute_before_dh_auto_configure: cp Cargo.lock Cargo.lock.orig $(CARGO) prepare-debian debian/cargo_registry --link-from-system rm -f Cargo.lock # needed because we patch Cargo.toml cargo generate-lockfile --manifest-path Cargo.toml --offline execute_after_dh_auto_install: /usr/share/cargo/bin/dh-cargo-built-using python3-ast-serialize mv Cargo.lock.orig Cargo.lock