File: rules

package info (click to toggle)
libmicrohttpd 0.9.51-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,868 kB
  • ctags: 2,483
  • sloc: ansic: 33,172; sh: 11,504; pascal: 1,060; makefile: 919
file content (28 lines) | stat: -rwxr-xr-x 688 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
23
24
25
26
27
28
#!/usr/bin/make -f

# test suite is known to fail on kfreebsd, hurd-i386, and hppa, don't fail build on that
TESTSUITE_FAIL_CMD=exit 1
ifneq ($(filter $(DEB_BUILD_ARCH), kfreebsd-amd64 kfreebsd-i386 hurd-i386 hppa),)
TESTSUITE_FAIL_CMD=exit 0
endif

# Enabling all hardening flags as MHD handles untrusted data
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh ${@} --with autoreconf

override_dh_auto_install:
	dh_auto_install

	# Removing useless files
	rm -f debian/tmp/usr/lib/*/*.la

override_dh_auto_test:
	dh_auto_test || $(TESTSUITE_FAIL_CMD)

override_dh_install:
	dh_install --fail-missing

override_dh_strip:
	dh_strip --dbgsym-migration='libmicrohttpd-dbg (<< 0.9.50~)'