File: rules

package info (click to toggle)
debugedit 1%3A5.3-3
  • links: PTS
  • area: main
  • in suites: sid
  • size: 1,408 kB
  • sloc: sh: 12,042; ansic: 5,032; makefile: 115
file content (27 lines) | stat: -rwxr-xr-x 655 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/make -f
#export DH_VERBOSE = 1


export DEB_BUILD_MAINT_OPTIONS = hardening=-all optimize=-lto

ifneq (,$(filter $(DEB_HOST_ARCH),alpha arm64 hppa mips64el))
  ign_test_results = -
endif

%:
	dh $@

override_dh_auto_test:
	: # -ffile-prefix-map= isn't expected ...
	if [ ! -f tests/atlocal.orig ]; then \
	  cp -p tests/atlocal tests/atlocal.orig; \
	  sed -i 's/^\(C\|LD\)FLAGS=.*/\1FLAGS=""/' tests/atlocal; \
	fi
	$(ign_test_results)if dh_auto_test; then \
	  : ; \
	else \
	  echo '========== BEGIN tests/testsuite.log =========='; \
	  cat tests/testsuite.log; \
	  echo '========== END tests/testsuite.log =========='; \
	  exit 1; \
	fi