Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 #export DH_VERBOSE=1
3
4 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
5 export DEB_CFLAGS_MAINT_APPEND = -Wall -Wextra
6 export DPKG_GENSYMBOLS_CHECK_LEVEL = 4
7
8 # To tun the test suite kernel needs some module
9 KCAPI_RNG ?= $(shell grep CONFIG_CRYPTO_USER_API_RNG /boot/config-$(shell uname -r) | cut -f2 -d=)
10
11 %:
12 dh $@
13
14 # --enable-kcapi-test Compile kcapi test program
15 # --enable-kcapi-speed Compile kcapi-speed test program
16 # --enable-kcapi-hasher Compile hasher application
17 # --enable-kcapi-rngapp Compile rng read application
18 # --enable-kcapi-encapp Compile enc application
19 # --enable-kcapi-dgstapp Compile dgst application
20
21 kcapi_tools = \
22 --enable-kcapi-rngapp \
23 --enable-kcapi-encapp \
24 --enable-kcapi-dgstapp
25
26 override_dh_auto_configure:
27 dh_auto_configure -- $(kcapi_tools)
28
29 override_dh_auto_build-indep:
30 dh_auto_build -- html
31 dh_auto_build -- man
32
33 override_dh_auto_install-indep:
34 dh_auto_install -- install-html
35
36 override_dh_install-indep:
37 find $(CURDIR)/debian/tmp -name "*.la" -delete
38 dh_install
39
40 # No tests needed for docs
41 override_dh_auto_test-indep:
42
43 override_dh_auto_build-arch:
44 dh_auto_build
45
46 override_dh_auto_install-arch:
47 dh_auto_install -- install-man
48
49 override_dh_install-arch:
50 find $(CURDIR)/debian/tmp -name "*.la" -delete
51 dh_install
52
53 override_dh_auto_test-arch:
54 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
55 ifeq ($(KCAPI_RNG), m)
56 # required to be run within 'test' subdir:
57 (cd test ; ENABLE_FUZZ_TEST=1 NO_32BIT_TEST=1 ./test-invocation.sh)
58 endif
59 endif
60
61 get-orig-source:
62 uscan --verbose --force-download --rename