File: rules

package info (click to toggle)
http-relay 2.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 152 kB
  • sloc: python: 478; makefile: 11
file content (20 lines) | stat: -rwxr-xr-x 695 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f
#export DH_VERBOSE = 1

include /usr/share/dpkg/pkg-info.mk

DESTDIR = debian/python3-http-relay
CMD = http-relay
_ENV = $(strip PATH="$(DESTDIR)/usr/bin:$(PATH)" PYTHONPATH="$(DESTDIR)/usr/lib/$(shell py3versions -d)/dist-packages")

# generate manpage with help2man from --help option of python script
_mkman = $(_ENV) help2man $(if $3,--name "$(strip $3)") --no-info --version-string $(DEB_VERSION_UPSTREAM) --output $2 $1 || { $(_ENV) $1 --help; false; }

PYBUILD_TEST_PYTEST=1
export PYBUILD_SYSTEM=pyproject

execute_after_dh_auto_install:
	$(call _mkman, $(CMD), debian/$(CMD).1, Relay HTTP requests from local host to a remote host.)

%:
	dh $@  --buildsystem=pybuild