#!/usr/bin/make -f
%:
	dh $@ --with python2

override_dh_auto_build:
	# Building docs
	sh debian/scripts/gendoc.sh

override_dh_install:
	dh_install
	dh_python2
	if [ -d "debian/makehuman-data" ]; then \
	    echo "Deleting redundant files"; \
	    rm -f $(CURDIR)/debian/makehuman-data/usr/share/makehuman/license.txt ; \
	fi

override_dh_auto_clean:
	rm -rf $(CURDIR)/docs/sphinx/build/*
	dh_auto_clean
