#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs

%:
	dh $@ --with python3

override_dh_auto_configure:
	dh_auto_configure -- \
		-Dmanpage=enabled
	# Fix contents of manpage, can be dropped when newer argparse-manpage lands
	# in debian
	sed -i s,argparse-manpage,powerprofilesctl,g \
		$(CURDIR)/obj-$(DEB_HOST_GNU_TYPE)/src/powerprofilesctl.1
