| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 
 | #!/usr/bin/make -f
export PYBUILD_NAME=macholib
export http_proxy = http://127.0.0.1:9
export https_proxy = https://127.0.0.1:9
%:
	dh $@ --buildsystem=pybuild --with python2,python3,sphinxdoc
override_dh_auto_build:
	dh_auto_build
	sphinx-build -bhtml doc build/html
override_dh_clean:
	dh_clean
	rm -rf $(CURDIR)/*.egg-info/
	rm -rf $(CURDIR)/build
override_dh_sphinxdoc:
	dh_sphinxdoc
	find debian/python-macholib-doc -name license.txt -delete
override_dh_auto_install:
	dh_auto_install
#remove deprecated binaries
	for f in dump find standalone; do rm debian/python*-macholib/usr/bin/macho_$$f; done
	rmdir --ignore-fail-on-non-empty --parents debian/python*-macholib/usr/bin
override_dh_auto_test:
	python3 setup.py egg_info
	dh_auto_test -- --system=custom --test-args='{interpreter} -m unittest discover -v'
 |