#!/usr/bin/make -f DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk %: dh $@ # Refresh the build system. # # The build system is completely regenerated to ensure the tools used to # build the binary package are the ones shipped with Debian. override_dh_autoreconf: libtoolize -f aclocal autoheader -f autoconf -f automake -f -a --foreign # Install files. # # We use debian/tmp as a staging area so that we can skip files we don't # want ending up in the package without having to mess with the upstream # build system too much. dh_install and friends will later pick up the # interesting stuff. override_dh_auto_install: dh_auto_install --destdir=debian/tmp # Install changelogs. # # Upstream's NEWS.markdown is much more useful to end users than # upstream's ChangeLog, so install that as changelog instead. override_dh_installchangelogs: dh_installchangelogs NEWS.markdown # Rebuild the patches series by looking at the contents of the # debian/patches directory. # # Patches with names starting with D (Debian-specific) should be applied # after those with names starting with U (to be forwarded upstream). rebuild-patches-series: @( \ SERIES=debian/patches/series; \ { \ echo "# To rebuild this file, use \`debian/rules $@'"; \ for patch in debian/patches/U*.diff debian/patches/D*.diff; \ do \ test -f "$${patch}" || continue; \ patch=$$(basename "$${patch}"); \ echo "$${patch}"; \ done; \ } >"$${SERIES}"; \ ) .PHONY: rebuild-patches-series