#!/usr/bin/make -f

# SPDX-FileCopyrightText: 2026 Univention GmbH
# SPDX-License-Identifier: AGPL-3.0-only

export PYBUILD_NAME=cerbos
export PYBUILD_SYSTEM=pyproject
export DH_VERBOSE=0

%:
	dh $@ --with python3 --buildsystem=pybuild --with quilt

override_dh_quilt_patch:
	make -C $(CURDIR) unpack
	dh_quilt_patch

override_dh_auto_clean:
	dh_quilt_unpatch || true
	make -C $(CURDIR) clean
	rm -rf .pc
	dh_auto_clean
