File: rules

package info (click to toggle)
python-sphinx-examples 0.0.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 152 kB
  • sloc: python: 127; makefile: 22
file content (17 lines) | stat: -rwxr-xr-x 509 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /usr/bin/make -f

export PYBUILD_NAME=sphinx-examples
%:
	dh $@ --with python3,sphinxdoc --buildsystem=pybuild

execute_after_dh_auto_build-indep:
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
	cd docs && \
	PYTHONPATH=$(CURDIR) http_proxy='http://127.0.0.1:9/' https_proxy='https://127.0.0.1:9/' \
	sphinx-build -N -E -T -b html . $(CURDIR)/.pybuild/docs/html/
	rm -rf $(CURDIR)/.pybuild/docs/html/.doctrees
	rm -rf $(CURDIR)/.pybuild/docs/html/_static/__pycache__
endif

# no tests
override_dh_auto_test: