Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 # optimize=-lto because I use Meson's LTO
4 export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=-lto qa=+all
5
6 %:
7 dh $@ --buildsystem=meson
8
9 # Running Meson isn't needed when building the -doc package
10 %-indep:
11 dh $@ --buildsystem=none
12
13 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
14 test := true
15 else
16 test := false
17 endif
18
19 override_dh_auto_configure:
20 dh_auto_configure -- \
21 -Db_lto=true \
22 -Ddev_build=$(test) \
23 -Denable_opt=false
24
25 ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
26 # The sed call brutally removes every external stylesheet or font, as they
27 # automatically download things from the internet and trigger Lintian's
28 # privacy breach warnings.
29 execute_after_dh_auto_build-indep:
30 mkdocs build
31 find site -type f -exec sed -i 's|<link [^>]*href="http[^>]*>||g' '{}' ';'
32
33 # dh_mkdocs hangs when using --theme-package
34 execute_after_dh_installdocs-indep:
35 dh_mkdocs --indep #--theme-package=mkdocs-material
36 endif