File: rules

package info (click to toggle)
xfce4-session 4.12.1-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,616 kB
  • ctags: 1,554
  • sloc: ansic: 20,356; sh: 4,506; makefile: 538; xml: 131
file content (34 lines) | stat: -rwxr-xr-x 889 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

# get the various DEB_BUILD/DEB_HOST variables
include /usr/share/dpkg/architecture.mk

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

override_dh_install:
	chmod 755 debian/tmp/etc/xdg/xfce4/xinitrc
	dh_install --fail-missing -X .la

override_dh_strip:
	dh_strip --dbg-package=xfce4-session-dbg

# default backend for Linux and Hurd
BACKEND=linux
ifeq ($(DEB_BUILD_ARCH_OS),kfreebsd)
	BACKEND=freebsd
endif

override_dh_auto_configure:
	dh_auto_configure -- --disable-silent-rules --disable-legacy-sm --with-backend=$(BACKEND)

override_dh_autoreconf:
	NOCONFIGURE=1 dh_autoreconf xdt-autogen

override_dh_auto_clean:
	dh_auto_clean
	rm -f $$(find -name 'Makefile.in*') INSTALL ltmain.sh depcomp
	rm -f aclocal.m4 config.guess config.h.in config.sub configure

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