#!/usr/bin/make -f

PYTHONS:=$(shell pyversions -vr)

VERSION := $(shell dpkg-parsechangelog | sed -rne 's,^Version: ([0-9]:)*([^-]+).*,\2,p')
export OSLO_PACKAGE_VERSION=$(VERSION)

%:
	dh $@ --with python2

override_dh_auto_clean:
	dh_auto_clean

override_dh_auto_build:
	dh_auto_build

ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
	#python setup.py build_sphinx
endif

override_dh_install:
	dh_install


ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
	testr init && testr run || true
endif

get-orig-source:
	uscan --verbose --force-download --rename --destdir=../build-area
