| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
|
| 4 |
# Uncomment this to turn on verbose mode. |
| 5 |
#export DH_VERBOSE=1 |
| 6 |
|
| 7 |
PYTHON3S:=$(shell py3versions -vr) |
| 8 |
SAMPLESDIR=$(CURDIR)/debian/python3-googleapi-samples/usr/share/doc/python3-googleapi-samples/examples/ |
| 9 |
|
| 10 |
export PYBUILD_NAME=googleapi |
| 11 |
|
| 12 |
override_dh_auto_install: |
| 13 |
dh_auto_install |
| 14 |
set -e && for pyvers in $(PYTHON3S); do \ |
| 15 |
python$$pyvers setup.py install --install-layout=deb \ |
| 16 |
--root $(CURDIR)/debian/python3-googleapi; \ |
| 17 |
done |
| 18 |
|
| 19 |
override_dh_fixperms: |
| 20 |
dh_fixperms |
| 21 |
chmod a-x $(SAMPLESDIR)/storage_serviceaccount_appengine/listing.xsl |
| 22 |
|
| 23 |
override_dh_clean: |
| 24 |
dh_clean -O--buildsystem=pybuild |
| 25 |
rm -rf $(CURDIR)/build |
| 26 |
|
| 27 |
override_dh_auto_test: |
| 28 |
@echo Self-testing is disabled. |
| 29 |
|
| 30 |
%: |
| 31 |
dh $@ --buildsystem=pybuild --with python3 |
| 32 |
|
| 33 |
.PHONY: override_dh_auto_install override_dh_fixperms override_dh_clean \ |
| 34 |
override_dh_auto_test |