Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4 DPKG_EXPORT_BUILDFLAGS = 1
5 DPKG_EXPORT_BUILDTOOLS = 1
6 include /usr/share/dpkg/buildflags.mk
7 include /usr/share/dpkg/buildtools.mk
8 include /usr/share/dpkg/pkg-info.mk
9
10 MLTON_COMPILE_ARGS=-cc-opt '$(CFLAGS)' \
11 -link-opt '$(LDFLAGS)' \
12 -as-opt '$(ASFLAGS)'
13 COMMON_OPTS=CC="$(CC)" \
14 DESTDIR="$(CURDIR)/debian/tmp" \
15 MLTON_VERSION=$(DEB_VERSION) \
16 PREFIX=/usr \
17 CFLAGS="$(CFLAGS)" \
18 CPPFLAGS="$(CPPFLAGS)" \
19 LDFLAGS="$(LDFLAGS)" \
20 RUN_MLTON_RUNTIME_ARGS="ram-slop 0.5" \
21 MLTON_COMPILE_ARGS="$(MLTON_COMPILE_ARGS)"
22
23 %:
24 dh $@
25
26 override_dh_auto_build-arch:
27 $(MAKE) $(COMMON_OPTS)
28
29 override_dh_auto_build-indep:
30 $(MAKE) $(COMMON_OPTS) docs
31
32 override_dh_auto_install-arch:
33 $(MAKE) $(COMMON_OPTS) install-no-strip
34
35 override_dh_auto_install-indep:
36 $(MAKE) $(COMMON_OPTS) install-docs
37
38 override_dh_compress:
39 dh_compress -Xmlton/guide -X.sml
40
41 override_dh_strip:
42 dh_strip --no-automatic-dbgsym
43
44 override_dh_missing-indep:
45 # The files under usr/lib/mlton/targets/self get installed into
46 # the mlton-runtime-* packages, which are not arch-indep.
47 # Exclude / ignore them when building with only -A.
48 dh_missing -Xusr/lib/mlton/targets/self
49
50 # We do not need to test documentation
51 # and the call to $(MAKE) check fails because
52 # the binary build/bin/mlton only exists if
53 # we have called build-arch
54 override_dh_auto_test-indep:
55
56 override_dh_auto_test-arch:
57 $(MAKE) $(COMMON_OPTS) check
58 $(MAKE) $(COMMON_OPTS) basis-check
59 $(MAKE) $(COMMON_OPTS) libraries-check