File: rules

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


export DEB_BUILD_MAINT_OPTIONS = hardening=-all optimize=-lto

%:
	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
	$(if $(filter $(DEB_HOST_ARCH),mips64el),-)\
	if dh_auto_test; then \
	  : ; \
	else \
	  cat tests/testsuite.log; \
	  exit 1; \
	fi