File: rules

package info (click to toggle)
sensors-applet 3.0.0%2Bgit4-4
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,144 kB
  • ctags: 640
  • sloc: ansic: 6,784; xml: 647; makefile: 439; sh: 14
file content (33 lines) | stat: -rwxr-xr-x 1,093 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

# prevent 'installed' schemas from being registered on the build machine
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL := 1

# remove un-necessary dependencies
export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed

DEB_HOST_MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

# don't do scrollkeeper at build-time
confflags += --disable-scrollkeeper

# make build logs more useful
confflags += --disable-silent-rules

# debhelper v9 sets both libdir and libexecdir to /usr/lib/{arch}. the
# panel applet binary is installed to {libexecdir}/sensors-applet, but the
# plugins are installed to {libdir}/sensors-applet/plugins. override libexecdir
# to avoid this conflict.
confflags += --libexecdir='$${prefix}/lib/$(DEB_HOST_MULTIARCH)/sensors-applet'

%:
	dh $@ --with autoreconf

override_dh_autoreconf:
	dh_autoreconf --as-needed ./autogen.sh -- --version

override_dh_auto_configure:
	dh_auto_configure -- $(confflags)

override_dh_makeshlibs:
	dh_makeshlibs --exclude=/usr/lib/$(DEB_HOST_MULTIARCH)/sensors-applet/plugins/ -V'libsensors-applet-plugin0 (>> 3.0.0)'