File: rules

package info (click to toggle)
gnome-desktop3 3.30.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 10,680 kB
  • sloc: ansic: 11,896; sh: 5,268; makefile: 277; xml: 66; sed: 16
file content (34 lines) | stat: -rwxr-xr-x 835 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
#!/usr/bin/make -f

LIB_PKG := $(filter-out %-dev %-bin,$(filter lib%,$(shell awk '/^Package: / { print $$2 }' debian/control)))

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

%:
	dh $@ --with gnome,gir

override_dh_autoreconf:
	dh_autoreconf --as-needed

override_dh_auto_configure:
	dh_auto_configure -- \
		--libexecdir=\$${libdir}/$(LIB_PKG) \
		--with-gnome-distributor=$(shell dpkg-vendor --query vendor) \
		--disable-date-in-gnome-version \
		--enable-gtk-doc \
		--enable-desktop-docs \
		--enable-introspection

override_dh_installchangelogs:
	dh_installchangelogs -XChangeLog

override_dh_makeshlibs:
	dh_makeshlibs -- -c4

override_dh_install:
	find debian/tmp -name '*.la' -print -delete
	dh_install

override_dh_missing:
	dh_missing --fail-missing