#!/usr/bin/make -f
# -*- makefile -*-

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

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

# Overriding test to prevent FTBS (cf. #733168)
# http://bugs.debian.org/733168
override_dh_auto_test:

override_dh_installdocs:
	dh_installdocs
	set -e && for docs in COPYING AUTHORS NEWS glances.conf; do \
                rm -f $(CURDIR)/debian/glances/usr/share/doc/glances/$$docs ; \
        done

override_dh_installchangelogs:
	dh_installchangelogs NEWS

override_dh_clean:
	rm -rf ./Glances.egg-info
	dh_clean

