Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4 export DOCS_DIR = $(shell dh_assistant which-build-system | sed -e 's/.*"build-directory":"//' -e 's/".*//')/docs-gh
5 PY_VERS := $(filter-out $(shell py3versions -d),$(shell py3versions -r))
6
7 %:
8 dh $@
9
10 override_dh_auto_configure:
11 dh_auto_configure -Smeson+ninja -- --buildtype=debugoptimized -Ddefault_library=shared -Dtesting=enabled -Dpython=true -Ddocs=true
12 set -e; for py in $(PY_VERS); do \
13 D=debian/bin-$$py; \
14 mkdir -p $$D; \
15 ln -sf $$(which $$py) $$D/python3; \
16 echo '#!/bin/sh\nexec `dirname $$0`/python3 /usr/bin/meson "$$@"\n' >$$D/meson; \
17 chmod +x $$D/meson; \
18 PATH=$(CURDIR)/$$D:$$PATH \
19 dh_auto_configure -Smeson+ninja -Bbuild-$$py -- --buildtype=debugoptimized -Ddefault_library=shared -Dtesting=enabled -Dpython=true -Ddocs=true; \
20 done
21
22 execute_after_dh_auto_build:
23 set -e; for py in $(PY_VERS); do \
24 PATH=$(CURDIR)/debian/bin-$$py:$$PATH dh_auto_build -Bbuild-$$py; \
25 done
26
27 override_dh_auto_test:
28 dh_auto_test -a -- --timeout-multiplier 5
29
30 execute_after_dh_auto_install:
31 set -e; for py in $(PY_VERS); do \
32 PATH=$(CURDIR)/debian/bin-$$py:$$PATH dh_auto_install -Bbuild-$$py -- --tags python-bindings; \
33 done
34 cd $(CURDIR)/debian/tmp && LD_LIBRARY_PATH=usr/lib/$(DEB_HOST_MULTIARCH) help2man -n "SMT solver for bit vectors and arrays" usr/bin/bitwuzla >bitwuzla.1
35 find $(DOCS_DIR) -name '*kind.html' | xargs -r sed -i -e '/cdn.jsdelivr.net.*mathjax.*js/ { s_<script_<!--script_; s_/script>_/script-->_ }'
36 $(RM) -rf $(DOCS_DIR)/cli_usage.txt $(DOCS_DIR)/static/fonts $(DOCS_DIR)/static/jquery.js
37
38 execute_after_dh_auto_clean:
39 set -e; for py in $(PY_VERS); do dh_auto_clean -Bbuild-$$py; done
40 $(RM) -rf debian/bin-*