File: rules

package info (click to toggle)
debugedit 1%3A5.2-3
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 1,296 kB
  • sloc: sh: 11,149; ansic: 4,646; makefile: 101
file content (26 lines) | stat: -rwxr-xr-x 573 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
#!/usr/bin/make -f
#export DH_VERBOSE = 1


export DEB_BUILD_MAINT_OPTIONS = hardening=-all optimize=-lto

ifneq (,$(filter $(DEB_HOST_ARCH),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 '========== tests/testsuite.log =========='; \
	  cat tests/testsuite.log; \
	  exit 1; \
	fi