File: rules

package info (click to toggle)
gnome-keyring 3.20.0-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 10,664 kB
  • ctags: 8,434
  • sloc: ansic: 74,259; sh: 4,232; makefile: 1,287; xml: 420; python: 400
file content (30 lines) | stat: -rwxr-xr-x 733 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
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk
include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND := -Wl,-O1 -Wl,-z,defs -Wl,--as-needed

%:
	dh $@ --parallel --with autoreconf,gnome

override_dh_auto_configure:
	dh_auto_configure -- \
		--with-pam-dir=/lib/$(DEB_HOST_MULTIARCH)/security \
		--enable-docs

override_dh_install:
	dh_install --list-missing

TESTHOMEDIR = $(CURDIR)/debian/testhome

override_dh_auto_test:
ifeq (, $(filter nocheck, $(DEB_BUILD_OPTIONS)))
	mkdir -p $(TESTHOMEDIR)
	env -u LD_PRELOAD HOME=$(TESTHOMEDIR) dbus-run-session -- $(MAKE) check
endif

override_dh_clean:
	rm -rf $(TESTHOMEDIR)
	dh_clean