| 1 |
#!/usr/bin/make -f |
| 2 |
#export DH_VERBOSE = 1 |
| 3 |
|
| 4 |
include /usr/share/dpkg/pkg-info.mk |
| 5 |
|
| 6 |
DESTDIR = debian/python3-http-relay |
| 7 |
CMD = http-relay |
| 8 |
_ENV = $(strip PATH="$(DESTDIR)/usr/bin:$(PATH)" PYTHONPATH="$(DESTDIR)/usr/lib/$(shell py3versions -d)/dist-packages") |
| 9 |
|
| 10 |
# generate manpage with help2man from --help option of python script |
| 11 |
_mkman = $(_ENV) help2man $(if $3,--name "$(strip $3)") --no-info --version-string $(DEB_VERSION_UPSTREAM) --output $2 $1 || { $(_ENV) $1 --help; false; } |
| 12 |
|
| 13 |
PYBUILD_TEST_PYTEST=1 |
| 14 |
export PYBUILD_SYSTEM=pyproject |
| 15 |
|
| 16 |
execute_after_dh_auto_install: |
| 17 |
$(call _mkman, $(CMD), debian/$(CMD).1, Relay HTTP requests from local host to a remote host.) |
| 18 |
|
| 19 |
%: |
| 20 |
dh $@ --buildsystem=pybuild |