File: rules

package info (click to toggle)
glade 3.22.1-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 31,092 kB
  • sloc: ansic: 96,361; sh: 4,247; makefile: 1,288; xml: 1,284
file content (29 lines) | stat: -rwxr-xr-x 695 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
#!/usr/bin/make -f

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

ifneq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	ENABLE_DOCS = --enable-gtk-doc
endif

%:
	dh $@ --with gnome

override_dh_auto_configure:
	dh_auto_configure -- $(ENABLE_DOCS)

override_dh_autoreconf:
	dh_autoreconf --as-needed

override_dh_makeshlibs:
	dh_makeshlibs -- -c4

CHECK_RUNTIME_DIR= $(CURDIR)/debian/tmp/run

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	mkdir -p -m0700 $(CHECK_RUNTIME_DIR)
	HOME=$(CHECK_RUNTIME_DIR) XDG_RUNTIME_DIR=$(CHECK_RUNTIME_DIR) \
		dbus-run-session -- xvfb-run dh_auto_test || true
endif