Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE = 1
5
6 include /usr/share/dpkg/architecture.mk
7
8 # Hardening flags.
9 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
10 export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
11
12 # Available precisions.
13 PRECISIONS = single double
14 ifneq (,$(findstring libnfft3-long4,$(shell dh_listpackages)))
15 PRECISIONS += long
16 endif
17
18 # Tested precisions.
19 # NOTE: Testing is temporarily restricted to single- and double-precision
20 # builds on powerpc architectures. See Bug-Debian #844403.
21 ifneq (,$(findstring $(DEB_HOST_ARCH_CPU),powerpc ppc64el))
22 TESTED_PRECISIONS = single double
23 else
24 TESTED_PRECISIONS = $(PRECISIONS)
25 endif
26
27 # Build options common to arch and indep targets.
28 BUILD_OPTIONS = \
29 --disable-applications \
30 --disable-doxygen-doc \
31 --disable-examples \
32 --disable-static \
33 --enable-all \
34 --enable-openmp
35
36 %:
37 dh $@
38
39 override_dh_auto_clean:
40 for p in $(PRECISIONS) ; do \
41 dh_auto_clean --builddirectory=build-$$p ; \
42 done
43
44 override_dh_auto_configure-arch:
45 dh_auto_configure --builddirectory=build-single -- \
46 $(BUILD_OPTIONS) \
47 --enable-single
48 dh_auto_configure --builddirectory=build-double -- \
49 $(BUILD_OPTIONS)
50 ifneq (,$(findstring long,$(PRECISIONS)))
51 dh_auto_configure --builddirectory=build-long -- \
52 $(BUILD_OPTIONS) \
53 --enable-long-double
54 endif
55
56 override_dh_auto_configure-indep:
57 dh_auto_configure --builddirectory=build-double -- \
58 $(BUILD_OPTIONS) \
59 --enable-doxygen-doc
60
61 override_dh_auto_build-arch:
62 for p in $(PRECISIONS) ; do \
63 dh_auto_build --builddirectory=build-$$p ; \
64 done
65
66 override_dh_auto_build-indep:
67 dh_auto_build --builddirectory=build-double -- doc
68
69 override_dh_auto_test-arch:
70 for p in $(TESTED_PRECISIONS) ; do \
71 dh_auto_test --builddirectory=build-$$p ; \
72 done
73
74 override_dh_auto_test-indep:
75 # No-op.
76
77 override_dh_auto_install-arch:
78 for p in $(PRECISIONS) ; do \
79 dh_auto_install --builddirectory=build-$$p ; \
80 done
81
82 override_dh_installdocs-indep:
83 dh_installdocs --indep
84 dh_doxygen --indep