#!/usr/bin/make -f
# SPDX-FileCopyrightText: 2026 Jason Self <j@jxself.org>
# SPDX-License-Identifier: GPL-3.0-or-later

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/dpkg/pkg-info.mk

%:
	dh $@

# Upstream bakes the program version into the binary from -DTRIZBORT_VERSION
# (see the project's CMakeLists.txt).  Pass the changelog's upstream version so
# the reported version always matches the package and the build stays
# independent of the git checkout.
override_dh_auto_configure:
	dh_auto_configure -- -DTRIZBORT_VERSION=$(DEB_VERSION_UPSTREAM)
