File: rules

package info (click to toggle)
libmicrohttpd 0.9.66-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 9,596 kB
  • sloc: ansic: 57,262; sh: 5,547; makefile: 1,340; pascal: 1,060; sed: 16
file content (25 lines) | stat: -rwxr-xr-x 606 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
#!/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