#!/usr/bin/make -f # Sample debian/rules that uses debhelper. # GNU copyright 1997 to 1999 by Joey Hess. # # adapted by Logilab for automatic generation by debianize # (part of the devtools project, http://www.logilab.org/projects/devtools) # # Copyright (c) 2003-2012 LOGILAB S.A. (Paris, FRANCE). # http://www.logilab.fr/ -- mailto:contact@logilab.fr # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 export PYBUILD_NAME=hgview export PYBUILD_DESTDIR_python3= %: dh $@ --buildsystem=pybuild --with python3 clean: dh_python3 clean rm -f build-stamp configure-stamp rm -rf build python3 setup.py clean rm -f hgviewlib/qt5/*_ui.py hgviewlib/qt5/hgqv_rc.py make -C doc clean find . -name "*.pyc" -delete rm -f changelog.gz override_dh_python3: # avoid conflict with mercurial's own hgext3rd/__init__.py find debian -path '*/hgext3rd/__init__.py' -delete dh_python3 override_dh_install: dh_install --fail-missing override_dh_compress: dh_compress -X.py -X.ini -X.xml -Xtest