Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export LC_ALL=C.UTF-8
4
5 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
6
7 ifeq (alpha,$(DEB_HOST_ARCH))
8 export DEB_CFLAGS_MAINT_APPEND=-O1
9 endif
10
11
12 %:
13 dh $@
14
15 ifneq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
16 test := OFF
17 else
18 test := ON
19 endif
20
21 # -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON can be dropped with debhelper compat 14+
22 override_dh_auto_configure:
23 dh_auto_configure -- \
24 -DLIBDEFLATE_USE_SHARED_LIB=ON \
25 -DLIBDEFLATE_BUILD_TESTS=$(test) \
26 -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON
27
28 execute_after_dh_auto_test:
29 scripts/run_tests.sh regular
30
31 override_dh_installman:
32 ifeq ($(filter nodoc cross,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)),)
33 LD_LIBRARY_PATH=$(CURDIR)/debian/libdeflate0/usr/lib/$(DEB_HOST_MULTIARCH) \
34 help2man --no-info --help-option=-h --version-option=-V \
35 -n "Compress the specified FILEs" \
36 debian/libdeflate-tools/usr/bin/libdeflate-gzip --output debian/libdeflate-gzip.1
37 LD_LIBRARY_PATH=$(CURDIR)/debian/libdeflate0/usr/lib/$(DEB_HOST_MULTIARCH) \
38 help2man --no-info --help-option=-h --version-option=-V \
39 -n "Decompress the specified FILEs" \
40 debian/libdeflate-tools/usr/bin/libdeflate-gunzip --output debian/libdeflate-gunzip.1
41 dh_installman
42 endif