File: rules

package info (click to toggle)
accountsservice 0.6.55-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,752 kB
  • sloc: ansic: 8,011; xml: 2,098; sh: 229; perl: 57; python: 54; makefile: 39; sed: 16
file content (35 lines) | stat: -rwxr-xr-x 731 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
#!/usr/bin/make -f
# -*- makefile -*-

export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed

binaries := $(shell dh_listpackages)
extra_meson_options =

ifneq ($(filter libaccountsservice-doc,$(binaries)),)
extra_meson_options += -Dgtk_doc=true
else
extra_meson_options += -Dgtk_doc=false
endif

ifeq ($(DEB_HOST_ARCH_OS),linux)
extra_meson_options += -Dsystemd=true
endif

%:
	dh $@ --with=gir

override_dh_makeshlibs:
	dh_makeshlibs -V -- -c4

override_dh_auto_configure:
	dh_auto_configure -- \
		-Ddocbook=true \
		-Dgdmconffile=/etc/gdm3/daemon.conf \
		-Dadmin_group=sudo \
		-Dsystemdsystemunitdir=/lib/systemd/system \
		-Dintrospection=true \
		$(extra_meson_options)

override_dh_installchangelogs:
	dh_installchangelogs NEWS