#!/usr/bin/make -f # optimize=-lto because I use Meson's LTO export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=-lto qa=+all %: dh $@ --buildsystem=meson ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) test := true else test := false endif override_dh_auto_configure: dh_auto_configure -- \ -Db_lto=true \ -Dbuild_tests=$(test) \ -Dcompile_library=true \ -Duse_vendored_libs=true ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) execute_after_dh_auto_build: echo '' > README.html echo '' >> README.html echo '' >> README.html echo '' >> README.html echo '' >> README.html cmark-gfm --unsafe --extension table README.md >> README.html endif execute_after_dh_clean: $(RM) README.html