On 29/09/17 12:08, PICCA Frederic-Emmanuel wrote:
override_dh_sphinxdoc:
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
                                 ^^^^
nodocs or nodoc

I alsa do something like this when there is extensions.

override_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
        PYBUILD_SYSTEM=custom \
        PYBUILD_BUILD_ARGS="cd docs && PYTHONPATH={build_dir} 
http_proxy='127.0.0.1:9' {interpreter} -m sphinx -N -bhtml source build/html" dh_auto_build  
# HTML generator
        dh_installdocs "docs/build/html" -p python-gpyfft-doc
        dh_sphinxdoc -O--buildsystem=pybuild
endif

Or just use the sphinx-generated Makefile if there is one:

override_dh_auto_clean:
        dh_auto_clean
ifeq (,$(filter nodoc, $(DEB_BUILD_OPTIONS)))
        $(MAKE) -C docs clean
endif

override_dh_auto_build: export http_proxy=127.0.0.1:9
override_dh_auto_build: export https_proxy=127.0.0.1:9
override_dh_auto_build:
        dh_auto_build
ifeq (,$(filter nodoc, $(DEB_BUILD_OPTIONS)))
        PYTHONPATH=$(CURDIR) $(MAKE) -C docs html
endif

And you're done. The intent is also clearer.

Ghis

Reply via email to