File: rules

package info (click to toggle)
libei 1.5.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,916 kB
  • sloc: ansic: 23,868; python: 2,712; xml: 1,243; sh: 142; makefile: 68; cpp: 12; lisp: 2
file content (38 lines) | stat: -rwxr-xr-x 927 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
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs
export DPKG_GENSYMBOLS_CHECK_LEVEL = 4

ifneq (,$(filter nocheck,$(DEB_BUILD_PROFILES) $(DEB_BUILD_OPTIONS)))
ifneq (,$(filter noinsttest,$(DEB_BUILD_PROFILES)))
TESTS = -Dtests=disabled
endif
endif

%:
	dh $@

override_dh_auto_clean:
	rm -f subprojects/munit

override_dh_auto_configure:
	ln -s ../munit subprojects/
	dh_auto_configure -- \
		-Dauto_features=enabled \
		-Dsd-bus-provider=libsystemd \
		$(TESTS)

override_dh_auto_test:
	dh_auto_test -- \
		--timeout-multiplier 2

override_dh_missing:
	dh_missing -Xusr/bin/ei-debug-events

# debhelper >= 13.4 makes all of /usr/libexec executable, which is not
# quite right for installed-tests
execute_after_dh_fixperms:
ifneq ($(filter %-tests,$(shell dh_listpackages)),)
	chmod --changes a+r,a-x,u+w,og-w debian/*-tests/usr/libexec/libei/*.so
endif