| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 |
export PYBUILD_NAME=drgn |
| 5 |
|
| 6 |
# tools and util.py do not get installed |
| 7 |
export PYBUILD_BEFORE_TEST=cp -pr {dir}/tools {dir}/util.py {build_dir} |
| 8 |
export PYBUILD_AFTER_TEST=rm -r {build_dir}/tools {build_dir}/util.py |
| 9 |
|
| 10 |
%: |
| 11 |
dh $@ --with python3,sphinxdoc --buildsystem=pybuild |
| 12 |
|
| 13 |
clean: |
| 14 |
dh $@ --with python3 --buildsystem=pybuild |
| 15 |
|
| 16 |
# need to override to get a verbose build |
| 17 |
override_dh_auto_build: |
| 18 |
V=1 dh_auto_build |
| 19 |
|
| 20 |
# force use of pybuild, otherwise dh_auto_clean will try to use |
| 21 |
# distutils which is no longer supported since compat 12 |
| 22 |
# since setup.py exists |
| 23 |
override_dh_auto_clean: |
| 24 |
dh_auto_clean --buildsystem=pybuild |
| 25 |
rm -f libdrgn/build-aux/tap-driver.sh |
| 26 |
rm -f libdrgn/build-aux/test-driver |
| 27 |
|
| 28 |
execute_after_dh_auto_build: export http_proxy=127.0.0.1:9 |
| 29 |
execute_after_dh_auto_build: export https_proxy=127.0.0.1:9 |
| 30 |
execute_after_dh_auto_build: |
| 31 |
PYTHONPATH=. python3 -m sphinx -N -bhtml \ |
| 32 |
docs/ build/html # HTML generator |
| 33 |
PYTHONPATH=. python3 -m sphinx -N -bman \ |
| 34 |
docs/ build/man # Manpage generator |