#!/usr/bin/make -f
#export DH_VERBOSE = 1

export LC_ALL=C.UTF-8

DATE := $(shell date --date="$$(dpkg-parsechangelog --show-field Date)" +%F)

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_configure:
	cat debian/ctop.manpages | sed 's/$$/.ronn/' | xargs ronn --date=$(DATE) --roff
	dh_auto_configure

override_dh_clean:
	dh_clean
	rm -rf *.egg-info
