#!/usr/bin/make -f
export DH_VERBOSE = 1
export DEB_BUILD_OPTIONS += noautodbgsym nocheck

include /usr/share/dpkg/default.mk

export PYBUILD_NAME = pydantic-core
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_clean:
	cargo clean
	rm -Rf target .cargo vendor
	dh_auto_clean

override_dh_auto_configure:
	tar xf vendor.tar
	dh_auto_configure
