#!/usr/bin/make -f #export DH_VERBOSE=1 export CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS) export CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) export CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) export LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) Description := $(shell sed -e ':a; N; s/\n/$${Newline}/; ta' < debian/Description) .PHONY: override_dh_gencontrol override_dh_gencontrol: dh_gencontrol -- '-VDescription=$(Description)' .PHONY: get-orig-source get-orig-source: uscan --verbose --force-download --destdir=.. PYVER = $(shell echo -e 'import sys\nprint(str(sys.version_info.major)+"."+str(sys.version_info.minor))' | /usr/bin/python) PYVERBDIR = $(wildcard ./build/lib.*-2.7) .PHONY: override_dh_auto_test override_dh_auto_test: PYTHONPATH=$(PYVERBDIR) ./test/test01.py %: dh $@ --with python2 --buildsystem=python_distutils