| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 |
|
| 5 |
export PYBUILD_NAME=evdev |
| 6 |
py3_builddir = $(shell pybuild --print build_dir --interpreter python3) |
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ --with=python3 --buildsystem=pybuild |
| 10 |
|
| 11 |
override_dh_auto_build-arch: |
| 12 |
dh_auto_build -- --build-args --config-setting=--build-option="'build_ecodes --reproducible'" |
| 13 |
|
| 14 |
override_dh_auto_build-indep: |
| 15 |
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 16 |
PYTHONPATH=$(py3_builddir) http_proxy='127.0.0.1:9' python3 -m sphinx -N -bhtml docs/ build/html |
| 17 |
PYTHONPATH=$(py3_builddir) http_proxy='127.0.0.1:9' python3 -m sphinx -N -bman docs/ build/man |
| 18 |
endif |
| 19 |
|
| 20 |
override_dh_auto_test-indep: |
| 21 |
|
| 22 |
# By default, changelog.html ends up being compressed |
| 23 |
override_dh_compress: |
| 24 |
dh_compress -X.html |