Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4
5 %:
6 dh $@ --builddir=build
7
8 ifneq (,$(filter nopgo,$(DEB_BUILD_OPTIONS)))
9 DISABLE_PGO=1
10 endif
11 ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
12 DISABLE_PGO=1
13 endif
14
15
16 # PGO is enabled
17 ifneq (1,$(DISABLE_PGO))
18 # According to upstream's INSTALL.md, -O2 with PGO can create issues
19 export DEB_CFLAGS_MAINT_STRIP = -O2
20 # optimize=-lto because the pgo script handles lto by itself
21 export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=-lto
22 # meson setup is run by ./pgo/pgo.sh
23 override_dh_auto_configure:
24
25 override_dh_auto_build:
26 ./pgo/pgo.sh partial . build --prefix=/usr --wrap-mode=nodownload -Dterminfo-base-name=foot-extra
27 endif
28
29 execute_after_dh_auto_install:
30 rm debian/tmp/usr/share/doc/foot/LICENSE