Makefile.am 1.32 KB
Newer Older
Bastien Nocera's avatar
Bastien Nocera committed
1 2 3 4 5 6 7 8

dbus_servicesdir = $(datadir)/dbus-1/system-services
dbus_services_in_files = net.reactivated.Fprint.service.in
dbus_services_DATA = $(dbus_services_in_files:.service.in=.service)

$(dbus_services_DATA): $(dbus_services_in_files)
	sed -e "s|\@LIBEXECDIR\@|$(libexecdir)|" $< > $@

Bastien Nocera's avatar
Bastien Nocera committed
9
dbus_confdir = $(sysconfdir)/dbus-1/system.d
Bastien Nocera's avatar
Bastien Nocera committed
10 11
dbus_conf_DATA = net.reactivated.Fprint.conf

Colin Walters's avatar
Colin Walters committed
12 13 14 15 16 17
systemdservice_in_files = fprintd.service.in

if HAVE_SYSTEMD
systemdservicedir       = $(systemdsystemunitdir)
systemdservice_DATA     = $(systemdservice_in_files:.service.in=.service)
$(systemdservice_DATA): $(systemdservice_in_files) Makefile
18
	@sed -e "s|\@libexecdir\@|$(libexecdir)|" -e "s|\@localstatedir\@|$(localstatedir)|" $< > $@
Colin Walters's avatar
Colin Walters committed
19 20
endif

Matthias Clasen's avatar
Matthias Clasen committed
21
polkitdir = $(datadir)/polkit-1/actions
Bastien Nocera's avatar
Bastien Nocera committed
22 23 24 25 26
polkit_in_files = net.reactivated.fprint.device.policy.in

@INTLTOOL_POLICY_RULE@
polkit_DATA = $(polkit_in_files:.policy.in=.policy)

27 28 29
confdir = $(sysconfdir)/
conf_DATA = fprintd.conf

30 31 32 33
man_MANS =

if BUILD_MAN
man_MANS += fprintd.1
34 35
fprintd.1: fprintd.pod
	$(AM_V_GEN) pod2man -c "" -s 1 -q none -n fprintd -r freedesktop $< > $@
36
endif
37

38
EXTRA_DIST = $(dbus_services_in_files) $(dbus_conf_DATA) $(polkit_in_files) $(conf_DATA) $(systemdservice_in_files) fprintd.pod
39
CLEANFILES = $(polkit_DATA) $(dbus_services_DATA) $(systemdservice_DATA) fprintd.1
Bastien Nocera's avatar
Bastien Nocera committed
40

Bastien Nocera's avatar
Bastien Nocera committed
41
check:
42
	@$(XMLLINT) --noout $(polkit_DATA)
Bastien Nocera's avatar
Bastien Nocera committed
43 44