2018-06-17 14:55:13 -04:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
# See debhelper(7) (uncomment to enable)
|
|
|
|
# output every command that modifies files on the build system.
|
2021-06-23 04:08:02 -04:00
|
|
|
export DH_VERBOSE = 1
|
2018-06-17 14:55:13 -04:00
|
|
|
|
|
|
|
%:
|
2021-06-23 04:08:02 -04:00
|
|
|
dh $@ --with python3
|
|
|
|
|
|
|
|
override_dh_python3:
|
|
|
|
cd $(CURDIR)/client-cli; pybuild --system=distutils --dest-dir=../debian/pvc-client-cli/
|
|
|
|
mkdir -p debian/pvc-client-cli/usr/lib/python3
|
|
|
|
mv debian/pvc-client-cli/usr/lib/python3*/* debian/pvc-client-cli/usr/lib/python3/
|
|
|
|
rm -r $(CURDIR)/client-cli/.pybuild $(CURDIR)/client-cli/pvc.egg-info
|
2018-06-17 14:55:13 -04:00
|
|
|
|
2019-03-11 01:44:26 -04:00
|
|
|
override_dh_auto_clean:
|
2024-01-23 10:31:30 -05:00
|
|
|
find . -name "__pycache__" -o -name ".pybuild" -exec rm -fr {} + || true
|
2018-06-17 14:55:13 -04:00
|
|
|
|
|
|
|
# If you need to rebuild the Sphinx documentation
|
|
|
|
# Add spinxdoc to the dh --with line
|
|
|
|
#override_dh_auto_build:
|
|
|
|
# dh_auto_build
|
|
|
|
# PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml docs/ build/html # HTML generator
|
|
|
|
# PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bman docs/ build/man # Manpage generator
|
|
|
|
|