#!/usr/bin/make -f

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

%:
	dh $@ --with python2

override_dh_auto_build:
	dh_auto_build
	cd debian/msg; make

override_dh_clean:
	cd debian/msg; make clean
	dh_clean

override_dh_install:
	dh_install
	cd debian/msg; make install DESTDIR=../cycle/usr/share/locale/

override_dh_python2:
	dh_python2
	# the code is installed to /usr/share/cycle - no idea why there is a copy of the main program in /usr/lib/python2.7
	rm -rf debian/*/usr/lib/python*
	find debian -name "lib" -type d -empty | xargs rmdir
