File: rules

package info (click to toggle)
python-ilorest 3.1.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,076 kB
  • sloc: python: 9,438; makefile: 286; sh: 3
file content (19 lines) | stat: -rwxr-xr-x 441 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

# export DH_VERBOSE=1

export PYBUILD_DESTDIR_python3=debian/python3-ilorest

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

override_dh_auto_build:
	rm -rf docs/themes
	mkdir docs/themes
	cd docs/themes && ln -s /usr/lib/python3/dist-packages/sphinx_rtd_theme
	dh_auto_build

override_dh_install:
	cd docs && make html
	dh_install
	mkdir debian/python-ilorest-doc/usr/share/doc/python-ilorest-doc/html/themes