Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 # Uncomment this to turn on verbose mode.
5 #export DH_VERBOSE=1
6
7 PKG3=python3-hpilo
8 PKGD=python-hpilo-doc
9
10 # https://github.com/seveas/python-hpilo/issues/272
11 export PYBUILD_DISABLE=test
12
13 export PYBUILD_NAME=hpilo
14
15 %:
16 dh $@ --with sphinxdoc --buildsystem=pybuild
17
18 override_dh_auto_build:
19 dh_auto_build
20 $(MAKE) -C docs html
21
22 override_dh_install:
23 python3 setup.py install --root=$(CURDIR)/debian/$(PKG3)/ --install-layout=deb
24
25 # move generated doc in its own package
26 mkdir -p $(CURDIR)/debian/$(PKGD)/usr/share/doc/$(PKGD)
27 cp -arp docs/_build/html $(CURDIR)/debian/$(PKGD)/usr/share/doc/$(PKGD)
28
29 override_dh_auto_clean:
30 rm docs/_build -rf
31 rm examples/elasticsearch/.gitignore
32 dh_auto_clean