#!/usr/bin/make -f

DEB_PYTHON_SYSTEM = pysupport

DEB_DIVERT_EXTENSION = .debathena

DEB_DIVERT_FILES_debathena-printing-config += \
	/usr/bin/lp.debathena \
	/usr/bin/lpq.debathena \
	/usr/bin/lpr.debathena \
	/usr/bin/lprm.debathena \
	\
	/usr/share/man/man1/lp.debathena.1.gz \
	/usr/share/man/man1/lpq.debathena.1.gz \
	/usr/share/man/man1/lpr.debathena.1.gz \
	/usr/share/man/man1/lprm.debathena.1.gz \

DEB_UNDIVERT_FILES_debathena-printing-config += \
	/usr/bin/cancel.debathena \
	/usr/sbin/lpc.debathena \
	/usr/share/man/man1/cancel.debathena.1.gz \
	/usr/share/man/man8/lpc.debathena.8.gz

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/config-package.mk
include /usr/share/cdbs/1/class/python-distutils.mk

ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
common-build-arch common-build-indep:: $(addprefix python-check-stamp-, $(cdbs_python_build_versions))
python-check-stamp-%: python-build-stamp-%
	$(call cdbs_python_binary,python$(cdbs_python_compile_version)) setup.py nosetests
	touch $@

clean::
	rm -rf python-check-stamp-* mox-*.egg .coverage
endif

clean::
	rm -rf debathena.printing.egg-info 
