#!/usr/bin/make -f
# This file was adapted from the sample debian/rules generated by dh_make.
# original file: GNU copyright 1997 to 1999 by Joey Hess.
# adaptation: (c) 2002--2006 by Emmanuel Beffara.

POLICY_TARGETS := binary binary-arch binary-indep build build-arch \
  build-indep clean
.PHONY: $(POLICY_TARGETS)
$(POLICY_TARGETS):
	dh $@ --with python2

# Don't replace /usr/bin/python by /usr/bin/python2 in python scripts
#override_dh_auto_configure:
#	./configure --python=python --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info

$(POLICY_TARGETS): setup.cfg
setup.cfg:
	ln -s debian/$@
# This symlink is listed by debian/clean.

# Install NEWS as upstream changelog.
.PHONY: override_dh_installchangelogs
override_dh_installchangelogs:
	dh_installchangelogs NEWS
