#!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 PKGNAME := drobo-utils build: build-stamp build-stamp: dh_testdir python setup.py build touch $@ clean: dh_testdir dh_testroot python setup.py clean --all [ ! -d build ] || rm -rf build find . -name "*\.pyc" -delete dh_clean *-stamp install: build dh_testdir dh_testroot dh_clean -k dh_installdirs make doc python setup.py install_lib -d $(CURDIR)/debian/$(PKGNAME)/usr/lib/python2.7/dist-packages find $(CURDIR)/debian/$(PKGNAME) -name "*\.pyc" -delete #python setup.py install_data -d $(CURDIR)/debian/$(PKGNAME)/usr/share/$(PKGNAME) cp Drobo-Front-0000.gif $(CURDIR)/debian/$(PKGNAME)/usr/share/pixmaps/ python setup.py install_scripts -d $(CURDIR)/debian/$(PKGNAME)/usr/sbin for s in $(CURDIR)/debian/$(PKGNAME)/usr/sbin/*; do \ sed -i '1s,#!.*python.*,#!/usr/bin/python,' $$s; \ done binary-arch: binary-indep: build install dh_testdir dh_testroot dh_installchangelogs CHANGES.txt dh_installdocs dh_python2 dh_installman dh_compress -X.py dh_fixperms dh_installdeb dh_gencontrol dh_md5sums dh_builddeb binary: binary-arch binary-indep get-orig-source: uscan --verbose --rename --repack --force-download .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure