#!/usr/bin/make -f
export CARGO_VENDOR_DIR=$(CURDIR)/debian/vendor
export PATH:=$(CURDIR)/debian/bindgen/usr/bin:$(PATH)
export LLVM_CONFIG_PATH=/usr/bin/llvm-config-15
export LIBCLANG_PATH=/usr/lib/llvm-15/lib/

%:
	dh $@ --buildsystem cargo

execute_after_dh_auto_configure:
	if [ -d debian/cargo_registry ]; then rm -rf debian/cargo_registry; ln -s vendor debian/cargo_registry; fi

execute_after_dh_testdir:
	find . ! -newermt "jan 01, 2000" -exec touch {} +
