File: rules

package info (click to toggle)
terminado 0.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 260 kB
  • sloc: python: 712; makefile: 159; javascript: 44; sh: 2
file content (22 lines) | stat: -rwxr-xr-x 864 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
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

#export DH_VERBOSE=1
export DH_ALWAYS_EXCLUDE=terminado/tests
export PYBUILD_NAME=terminado
export PYBUILD_SYSTEM=custom
export PYBUILD_DISABLE=configure build clean
export PYBUILD_INSTALL_ARGS=mkdir -p {destdir}/usr/lib/python{version}/dist-packages/ && \
  cp -R $(PYBUILD_NAME) {destdir}/usr/lib/python{version}/dist-packages/ && \
  sed -e 's/VERSION/$(DEB_VERSION_UPSTREAM)/g' debian/$(PYBUILD_NAME).egg-info > \
    {destdir}/usr/lib/python{version}/dist-packages/$(PYBUILD_NAME)-$(DEB_VERSION_UPSTREAM).egg-info

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

override_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=. python3 -m sphinx -b html doc debian/python-terminado-doc/usr/share/doc/python-terminado-doc/html
	dh_sphinxdoc -O--buildsystem=pybuild
endif