File: rules

package info (click to toggle)
binoculars 0.0.19-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 616 kB
  • sloc: python: 8,647; makefile: 157; sh: 44
file content (21 lines) | stat: -rwxr-xr-x 603 bytes parent folder | download | duplicates (2)
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 DH_VERBOSE=1
export PYBUILD_NAME=binoculars

PYVERS_DEFAULT := $(shell py3versions --default --version)

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_install:
# move entry points in the right package
	mkdir -p debian/binoculars/usr
	mv debian/python3-binoculars/usr/bin debian/binoculars/usr/

override_dh_sphinxdoc:
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
	pybuild --build -i python{version} -p $(PYVERS_DEFAULT) --system=custom --build-args="$(MAKE) -C doc html"
	dh_installdocs -p binoculars-doc "doc/build/html"
	dh_sphinxdoc -O--buildsystem=pybuild
endif