File: rules

package info (click to toggle)
traitlets 5.14.3%2Breally5.14.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,180 kB
  • sloc: python: 10,581; makefile: 176
file content (28 lines) | stat: -rwxr-xr-x 738 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
22
23
24
25
26
27
28
#!/usr/bin/make -f

#export DH_VERBOSE=1
export PYBUILD_NAME=traitlets
export LC_ALL=C.UTF-8

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

ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
execute_after_dh_auto_build:
	PYTHONPATH=$$(pwd) make -C docs html
endif

override_dh_installdocs:
	dh_installdocs -ppython-traitlets-doc --doc-main-package=python3-traitlets
	dh_installdocs --remaining-packages

override_dh_installexamples:
	dh_installexamples -ppython-traitlets-doc --doc-main-package=python3-traitlets
	dh_installexamples --remaining-packages

override_dh_compress:
	dh_compress -ppython-traitlets-doc -X.ttf -X.eot
	dh_compress --remaining-packages

execute_after_dh_auto_clean:
	rm -rf docs/build docs/source/changelog.md