#!/usr/bin/make -f

# Hardening
export DEB_BUILD_MAINT_OPTIONS = hardening=+all reproducible=+all optimize=-lto
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

meson_opts = -Ddocs=enabled -Dtests=enabled -Dfrr=disabled

%:
	dh $@ --buildsystem=meson+ninja --with=bash-completion

override_dh_auto_configure:
	dh_auto_configure -- $(meson_opts)

override_dh_installsystemd:
	dh_installsystemd --no-start --no-stop-on-upgrade
