Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4 include /usr/share/dpkg/pkg-info.mk
5 # Increase optimisation level for better performance
6 export DEB_CFLAGS_MAINT_APPEND = -O3
7
8 %:
9 dh $@
10
11 override_dh_auto_build:
12 # Enforce Debian's CFLAGS and LDFLAGS in build, as there's no configure pass
13 dh_auto_build -- \
14 CFLAGS="$(shell dpkg-buildflags --get CFLAGS)" \
15 LDFLAGS="$(shell dpkg-buildflags --get LDFLAGS)" \
16
17 override_dh_auto_install:
18 # Pass PREFIX and LIBDIR that are not taken correctly from Makefile
19 dh_auto_install -- \
20 PREFIX=/usr \
21 LIBDIR=lib/${DEB_HOST_MULTIARCH}
22
23 MANPAGES=debian/openaptxenc.1 debian/openaptxdec.1
24
25 override_dh_installman: ${MANPAGES}
26 # Make sure the MANPAGES are installed
27 dh_installman -popenaptx-utils $^
28
29 debian/%.1:
30 # Generate a manpage from the executable
31 PATH=.:$$PATH \
32 LD_PRELOAD=./libopenaptx.so.0 \
33 help2man \
34 --section=1 \
35 --version-string=${DEB_VERSION_UPSTREAM} \
36 --source="Debian (help2man)" \
37 --name="aptX $(patsubst openaptx%,%,$*)oder utility ${DEB_VERSION_UPSTREAM} (using libopenaptx ${DEB_VERSION_UPSTREAM})" \
38 --no-info \
39 --no-discard-stderr \
40 -o$@ $*
41
42 execute_after_dh_clean:
43 rm -f ${MANPAGES}