#!/usr/bin/make -f PKG_NAME=inotifyx PKG_VER=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p') PYVERS=$(shell pyversions -vr) -include /usr/share/python/python.mk get-orig-source: uscan --force-download --rename --download-version=$(PKG_VER) --destdir=. build: build-arch build-indep build-arch: $(PYVERS:%=build-python%) touch $@ build-indep: $(PYVERS:%=build-python%) touch $@ build-python%: dh_testdir python$* setup.py build touch $@ clean: $(PYVERS:%=clean-python%) touch $@ clean-python%: dh_testdir dh_testroot python$* setup.py clean --all [ ! -e html ] || rm -rf html [ ! -f setuplib.pyc ] || rm -rf setuplib.pyc dh_clean install: $(PYVERS:%=install-python%) touch $@ install-python%: build dh_testdir dh_testroot dh_installdirs python$* setup.py install --root $(CURDIR)/debian/python-inotifyx ${py_setup_install_args} binary-indep: build install binary-arch: build install dh_testdir dh_testroot dh_installdocs dh_installchangelogs NEWS dh_python2 dh_compress dh_fixperms dh_strip dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install get-orig-source