#!/usr/bin/make -f CFLAGS+=-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wl,-z,defs LDFLAGS+=-Wl,--as-needed %: dh $@ --parallel override_dh_auto_configure: [ -f config/config.guess.orig ] || mv -f config/config.guess config/config.guess.orig [ -f config/config.sub.orig ] || mv -f config/config.sub config/config.sub.orig ln -sf /usr/share/misc/config.guess config/config.guess ln -sf /usr/share/misc/config.sub config/config.sub dh_auto_configure -- --with-etcdir=/etc/awffull override_dh_auto_clean: dh_testroot rm -f build-stamp rm -f src/awffull_lang.h rm -f debian/awffull_history_regen.1 [ ! -f config/config.guess.orig ] || mv -f config/config.guess.orig config/config.guess [ ! -f config/config.sub.orig ] || mv -f config/config.sub.orig config/config.sub dh_auto_clean override_dh_auto_install: $(MAKE) install DESTDIR=$(CURDIR)/debian/awffull cp contrib/awffull_history_regen.pl $(CURDIR)/debian/awffull/usr/sbin/awffull_history_regen cp sample.conf $(CURDIR)/debian/awffull/usr/share/awffull/sample.conf override_dh_installman: help2man $(CURDIR)/debian/awffull/usr/sbin/awffull_history_regen \ -n awffull_history_regen -s 1 \ -o $(CURDIR)/debian/awffull_history_regen.1 \ --version-string="$(shell dpkg-parsechangelog -SVersion | perl -pe chomp)" dh_installman debian/awffull_history_regen.1 .PHONY: override_dh_strip override_dh_strip: dh_strip