#!/usr/bin/make -f include /usr/share/dpkg/architecture.mk export DEB_BUILD_MAINT_OPTIONS := hardening=+all export DEB_CFLAGS_MAINT_APPEND := -Wall -Wno-format-contains-nul export LC_COLLATE=C undefine LC_ALL include /usr/share/dpkg/pkg-info.mk # Used by 10_libopts_tarball_perms.diff export MAN_PAGE_DATE = $(shell env LC_ALL=C date -u \ -d '@$(SOURCE_DATE_EPOCH)' +%Y-%m-%d) ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) export libopts_cv_with_libregex=yes endif override_dh_auto_configure: dh_auto_configure --verbose -- \ --disable-silent-rules \ --enable-timeout=78 \ --with-libxml2-libs="$(shell $(DEB_HOST_GNU_TYPE)-pkg-config --libs libxml-2.0)" \ --with-libxml2-cflags="$(shell $(DEB_HOST_GNU_TYPE)-pkg-config --cflags libxml-2.0)" \ GREP=/bin/grep POSIX_SHELL=/bin/sh SHELL=/bin/sh \ GUILE=/usr/bin/guile-3.0 override_dh_auto_build: dh_auto_build --verbose $(MAKE) -C doc info ifneq (,$(filter autogen-doc, $(shell dh_listpackages))) $(MAKE) -C doc pdf $(MAKE) -C doc html endif override_dh_auto_clean: rm -Rf doc/html rm -vf agen5/test/defs autoopts/test/*.o autoopts/test/*.c \ autoopts/test/*.h autoopts/test/getopt.def getdefs/opts.c \ snprintfv/snv.c snprintfv/snprintfv.h xml2ag/fork.c \ xml2ag/xmlopts.c xml2ag/xmlopts.h autoopts/autoopts.pc \ autoopts/pathfind.3 autoopts/*.tar.gz dh_auto_clean --verbose override_dh_auto_install: dh_auto_install --verbose rm -vf $(CURDIR)/debian/tmp/usr/share/info/dir \ $(CURDIR)/debian/tmp/usr/lib/*/libopts.la \ $(CURDIR)/debian/tmp/usr/share/autogen/tpl-config.tlib for i in $(CURDIR)/debian/tmp/usr/bin/* ; do \ if chrpath --list "$$i" ; then \ echo "removing rpath from $$i" ; \ chrpath --delete "$$i" ; else true ; \ fi ; done override_dh_missing: dh_missing --fail-missing %: dh $@