File: rules

package info (click to toggle)
ukwm 1.2.3-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 27,088 kB
  • sloc: ansic: 312,916; makefile: 2,648; sh: 616; xml: 603; ruby: 149; perl: 142; python: 63; sed: 16
file content (54 lines) | stat: -rwxr-xr-x 1,219 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/make -f

export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,--as-needed
export DEB_CFLAGS_MAINT_APPEND = -std=gnu17
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export DEB_BUILD_OPTIONS += nocheck

%:
	dh $@ --with gir,gnome --no-control

override_dh_autoreconf:
	dh_autoreconf --as-needed

ifeq ($(DEB_HOST_ARCH_OS),linux)
CONFFLAGS = \
	--enable-egl-device \
	--enable-wayland \
	--enable-native-backend
else
CONFFLAGS += \
	--disable-wayland-egl-platform \
	--disable-wayland-egl-server \
	--disable-kms-egl-platform \
	--disable-wayland \
	--disable-native-backend
endif

override_dh_auto_configure:
	dh_auto_configure -- \
		--libexecdir="\$${prefix}/lib/ukwm" \
		--enable-startup-notification \
		--enable-compile-warnings \
		$(CONFFLAGS)

# See https://bugs.debian.org/874077
# Ignore test failures on Debian and on s390x
override_dh_auto_test:
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
	xvfb-run dh_auto_test
endif

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

override_dh_missing:
	dh_missing --list-missing

override_dh_girepository:
	dh_girepository /usr/lib/$(DEB_HOST_MULTIARCH)/ukwm

override_dh_makeshlibs:
	dh_makeshlibs -V'libukwm-1-0 (>= 1.0.1)'