File: rules

package info (click to toggle)
checkbox-ng 0.23-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 464 kB
  • sloc: python: 2,033; makefile: 17
file content (26 lines) | stat: -rwxr-xr-x 969 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
#!/usr/bin/make -f
export PYBUILD_NAME=checkbox-ng

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

# Build sphinx html documentation. Generate manual pages for checkbox-ng
# console_scripts
override_dh_auto_build:
	dh_auto_build --buildsystem=pybuild
	python3 setup.py build_sphinx
	python3 setup.py build_sphinx -b man

# Override dh_install to ensure that console_scripts are in the
# checkbox-ng package and not in the python3-checkbox-ng package.
override_dh_install:
	dh_install
	mkdir -p debian/checkbox-ng/usr/bin
	mv debian/python3-checkbox-ng/usr/bin/checkbox debian/checkbox-ng/usr/bin
	mv debian/python3-checkbox-ng/usr/bin/checkbox-cli debian/checkbox-ng/usr/bin
	mv debian/python3-checkbox-ng/usr/bin/checkbox-launcher debian/checkbox-ng/usr/bin
	mv debian/python3-checkbox-ng/usr/bin/checkbox-submit debian/checkbox-ng/usr/bin
	find debian/python3-checkbox-ng -type d -empty -delete

override_dh_python3:
	dh_python3 --shebang=/usr/bin/python3