#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

LAST_CHANGE=$(shell dpkg-parsechangelog -S Date)
BUILD_TIMESTAMP=$(shell LC_ALL=C date -u "+%s" -d "$(LAST_CHANGE)")

export BUILD_TIMESTAMP

# This has to be exported to make some magic below work.
export DH_OPTIONS

%:
	dh $@  --with=python2,sphinxdoc

override_dh_auto_install:
	dh_auto_install
        # workaround a limitation in distutils, see
        # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=743150
	ln -sf monkeysign debian/tmp/usr/bin/monkeyscan
