#!/usr/bin/make -f built_binaries := $(shell dh_listpackages) export DEB_BUILD_MAINT_OPTIONS = hardening=+all # examples/Makefile is autogenerated before being shipped; we want to # make sure it picks a standard shell for reproducibility export CONFIG_SHELL = /bin/sh configure_flags := ifneq ($(filter %-doc,$(built_binaries)),) configure_flags += --enable-gtk-doc else configure_flags += --disable-gtk-doc endif override_dh_auto_configure: dh_auto_configure -- \ --enable-vala \ --enable-largefile \ --enable-introspection \ $(configure_flags) %: dh $@ --with=gir