File: rules

package info (click to toggle)
libotr 4.1.1-6.1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,168 kB
  • sloc: sh: 22,154; ansic: 11,887; makefile: 125
file content (21 lines) | stat: -rwxr-xr-x 518 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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

NO_MAKE_CHECK_ARCHS := hppa mips mipsel powerpc ppc64 ppc64el s390x

%:
	dh $@ --with autoreconf

# Enable the test suite only for architectures where it is reliable
override_dh_auto_test:
ifeq (,$(filter $(DEB_BUILD_ARCH),$(NO_MAKE_CHECK_ARCHS)))
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	find tests -name \*.sh -exec chmod +x {} \;
	dh_auto_test
endif
endif