28 lines
611 B
Makefile
Executable File
28 lines
611 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
|
|
%:
|
|
dh $@ --with python3
|
|
|
|
override_dh_auto_clean:
|
|
find . -name "__pycache__" -type d -exec rm -rf {} + 2>/dev/null || true
|
|
|
|
override_dh_auto_build:
|
|
@true
|
|
|
|
override_dh_auto_install:
|
|
@true
|
|
|
|
override_dh_auto_test:
|
|
python3 -m pytest --help >/dev/null 2>&1 && python3 -m pytest -q || true
|
|
|
|
override_dh_install:
|
|
dh_install
|
|
mkdir -p debian/sshctl/usr/bin
|
|
printf '%s\n' \
|
|
'#!/usr/bin/python3' \
|
|
'import sys' \
|
|
'from sshctl.cli.app import serve' \
|
|
'if __name__ == "__main__":' \
|
|
' sys.exit(serve())' \
|
|
> debian/sshctl/usr/bin/sshctl
|
|
chmod 755 debian/sshctl/usr/bin/sshctl
|