Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4
5 include /usr/share/dpkg/architecture.mk
6
7 ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
8 export _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata__$(DEB_HOST_ARCH_OS)_$(DEB_HOST_MULTIARCH)
9 endif
10
11 %:
12 dh $@ --buildsystem=meson
13
14 # Build for all supported python3 versions.
15 # for details, see https://bugs.debian.org/1055488
16 override_dh_auto_configure:
17 $(foreach PYVERSION,$(shell py3versions -s),dh_auto_configure --builddir=obj-$(PYVERSION) -- -Dpython=$(PYVERSION); )
18
19 override_dh_auto_build:
20 $(foreach PYVERSION,$(shell py3versions -s),dh_auto_build --builddir=obj-$(PYVERSION) -- ; )
21
22 override_dh_auto_install:
23 $(foreach PYVERSION,$(shell py3versions -s),dh_auto_install --builddir=obj-$(PYVERSION) -- ; )
24
25 # Doc-only build does not need tests
26 override_dh_auto_test-indep:
27
28 override_dh_auto_test:
29 $(foreach PYVERSION,$(shell py3versions -s),dh_auto_test --builddir=obj-$(PYVERSION) -- ; )
30
31 execute_after_dh_auto_build-indep:
32 python3 -m sphinx -bhtml docs debian/tmp-doc/html
33 # to fix lintian: privacy-breach-generic
34 sed -ir 's|src="https:[^"]*|src="|' debian/tmp-doc/html/index.html
35
36 execute_after_dh_auto_clean:
37 rm -rf debian/tmp-doc
38
39 # https://bugs.debian.org/1034520
40 override_dh_installchangelogs:
41 dh_installchangelogs -Xchangelog