File: rules

package info (click to toggle)
md-toc 9.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,192 kB
  • sloc: python: 7,901; sh: 942; makefile: 21
file content (21 lines) | stat: -rwxr-xr-x 709 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f

export PYBUILD_NAME=md-toc

%:
	dh ${@} --buildsystem=pybuild --with sphinxdoc

override_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=src python3 -m sphinx -b html docs $(CURDIR)/debian/python-$(PYBUILD_NAME)-doc/usr/share/doc/python-$(PYBUILD_NAME)-doc/html
	dh_sphinxdoc

	# These files are empty..
	rm -f debian/python-md-toc-doc/usr/share/doc/python-md-toc-doc/html/.nojekyll debian/python-md-toc-doc/usr/share/doc/python-md-toc-doc/html/_static/_static

	# Remove compiled Python source file
	rm -rf debian/python-md-toc-doc/usr/share/doc/python-md-toc-doc/html/_static/__pycache__
endif

override_dh_auto_test:
	# disabled, testsuite doesn't work yet.