1 2 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
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
PKG3=python3-hpilo
PKGD=python-hpilo-doc
# https://github.com/seveas/python-hpilo/issues/272
export PYBUILD_DISABLE=test
export PYBUILD_NAME=hpilo
%:
dh $@ --with sphinxdoc --buildsystem=pybuild
override_dh_auto_build:
dh_auto_build
$(MAKE) -C docs html
override_dh_install:
python3 setup.py install --root=$(CURDIR)/debian/$(PKG3)/ --install-layout=deb
# move generated doc in its own package
mkdir -p $(CURDIR)/debian/$(PKGD)/usr/share/doc/$(PKGD)
cp -arp docs/_build/html $(CURDIR)/debian/$(PKGD)/usr/share/doc/$(PKGD)
|