Debian Codegraph @

debian/rules

raw
1 #! /usr/bin/make -f
2
3 # debian/rules
4 # Part of Debian ‘python-adventure’ package.
5 #
6 # This is free software, and you are welcome to redistribute it under
7 # certain conditions; see the end of this file for copyright
8 # information, grant of license, and disclaimer of warranty.
9
10 # Send HTTP traffic to the “discard” service during packaging actions.
11 export http_proxy = http://127.0.1.1:9/
12 export https_proxy = ${http_proxy}
13
14 APP_PACKAGE = colossal-cave-adventure
15 working_dir = debian/${APP_PACKAGE}
16
17 package_share_dir = usr/share/${APP_PACKAGE}
18 export PYBUILD_INSTALL_ARGS ?= \
19 --install-lib=${package_share_dir}/ \
20 --install-scripts=${package_share_dir}/
21
22
23 %:
24 dh $@ --with python3 --buildsystem=pybuild
25
26
27 .PHONY: override_dh_auto_clean
28 override_dh_auto_clean:
29 dh_auto_clean
30 $(RM) -r ${GENERATED_FILES}
31
32
33 .PHONY: override_dh_python3
34 override_dh_python3:
35 dh_python3 -p ${APP_PACKAGE} ${working_dir}/${package_share_dir}/
36 find ${working_dir}/${package_share_dir}/ \
37 -type d -name '__pycache__' -exec $(RM) -r \{} +
38
39
40 # Copyright © 2009–2023 Ben Finney <[email protected]>
41 # This is free software; you may copy, modify, and/or distribute this work
42 # under the terms of the GNU General Public License, version 3 or later.
43 # No warranty expressed or implied.
44 # See the file ‘/usr/share/common-licenses/GPL-3’ for details.
45
46
47 # Local Variables:
48 # mode: makefile
49 # coding: utf-8
50 # End:
51 # vim: filetype=make fileencoding=utf-8 :