#!/usr/bin/make -f # See debhelper(7) (uncomment to enable) # output every command that modifies files on the build system. export DH_VERBOSE = 1 export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk include /usr/share/dpkg/buildtools.mk CC_FOR_BUILD ?= cc %: dh $@ override_dh_auto_build: dh_auto_build --buildsystem=makefile -- -f unix.mak override_dh_auto_install: mv passwordmaker debian/passwordmaker-cli/usr/bin override_dh_auto_clean: dh_auto_clean $(MAKE) -f unix.mak clean DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^+]+).*,\1,p') get-orig-source: uscan --noconf --force-download --rename --download-current-version --destdir=. rm -rf passwordmaker-cli-$(DEB_UPSTREAM_VERSION) tar -xf passwordmaker-cli_$(DEB_UPSTREAM_VERSION).orig.tar.gz rm passwordmaker-cli_$(DEB_UPSTREAM_VERSION).orig.tar.gz rm passwordmaker-cli-$(DEB_UPSTREAM_VERSION)/*.exe rm passwordmaker-cli-$(DEB_UPSTREAM_VERSION)/*.dll rm -r passwordmaker-cli-$(DEB_UPSTREAM_VERSION)/shared/3rdparty mv passwordmaker-cli-$(DEB_UPSTREAM_VERSION) passwordmaker-cli-$(DEB_UPSTREAM_VERSION).orig GZIP=--best tar -cz --owner root --group root --mode a+rX \ -f passwordmaker-cli_$(DEB_UPSTREAM_VERSION)+dfsg.orig.tar.gz \ passwordmaker-cli-$(DEB_UPSTREAM_VERSION).orig rm -r passwordmaker-cli-$(DEB_UPSTREAM_VERSION).orig