Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 #export DH_VERBOSE=1
4
5 include /usr/share/dpkg/pkg-info.mk
6
7 #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
8 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
9
10 arch = $(shell dpkg-architecture -qDEB_BUILD_ARCH)
11
12
13 %:
14 dh $@ --with autoreconf
15
16 override_dh_autoreconf:
17 echo $(DEB_VERSION_UPSTREAM) > .tarball-version
18 dh_autoreconf
19
20 override_dh_install:
21 dh_install
22 sed -i "/dependency_libs/ s/'.*'/''/" `find . -name '*.la'`
23
24 override_dh_clean:
25 dh_clean
26 rm -f tests/package.m4 tests/testsuite .version .tarball-version
27
28 # Print test results in case of a failure
29 # only s390x is a release architecture
30 override_dh_auto_test:
31 echo ${arch}
32 if [ "${arch}" = "s390x" ] || \
33 [ "${arch}" = "hppa" ] || \
34 [ "${arch}" = "powerpc" ] || \
35 [ "${arch}" = "ppc64" ] || \
36 [ "${arch}" = "sparc64" ] || \
37 [ "${arch}" = "mips" ] ; then \
38 echo "Do not care of test result on this architecture" ;\
39 else \
40 echo "Do make tests on this architecture" ;\
41 dh_auto_test || (find . -name testsuite.log -exec cat {} \; ; false) \
42 fi