File: rules

package info (click to toggle)
python-evdev 1.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 416 kB
  • sloc: python: 1,400; ansic: 739; makefile: 144; sh: 14
file content (24 lines) | stat: -rwxr-xr-x 749 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export PYBUILD_NAME=evdev
py3_builddir = $(shell pybuild --print build_dir --interpreter python3)

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

override_dh_auto_build-arch:
	dh_auto_build -- --build-args --config-setting=--build-option="'build_ecodes --reproducible'"

override_dh_auto_build-indep:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=$(py3_builddir) http_proxy='127.0.0.1:9' python3 -m sphinx -N -bhtml docs/ build/html
	PYTHONPATH=$(py3_builddir) http_proxy='127.0.0.1:9' python3 -m sphinx -N -bman docs/ build/man
endif

override_dh_auto_test-indep:

# By default, changelog.html ends up being compressed
override_dh_compress:
	dh_compress -X.html