summaryrefslogtreecommitdiff
path: root/xfconfd/Makefile.am
blob: 62174dc87e47f33c01d9a62a594068791b5a20dd (plain)
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71

bin_PROGRAMS = xfconfd

xfconf_backend_sources =

if BUILD_XFCONF_BACKEND_PERCHANNEL_XML
xfconf_backend_sources += \
	xfconf-backend-perchannel-xml.c \
	xfconf-backend-perchannel-xml.h
endif

xfconfd_SOURCES = \
	main.c \
	xfconf-backend-factory.c \
	xfconf-backend-factory.h \
	xfconf-backend.c \
	xfconf-backend.h \
	xfconf-daemon.c \
	xfconf-daemon.h \
	xfconf-dbus-server.h \
	$(xfconf_backend_sources)

xfconfd_CFLAGS = \
	-DLIBXFCONF_COMPILATION \
	-DBINDIR=\"$(bindir)\" \
	-DLOCALEDIR=\"$(localedir)\" \
	-I$(top_srcdir)/common \
	$(GLIB_CFLAGS) \
	$(DBUS_CFLAGS) \
	$(DBUS_GLIB_CFLAGS) \
	$(LIBXFCE4UTIL_CFLAGS)

xfconfd_LDADD = \
	$(top_builddir)/common/libxfconf-common.la \
	$(GLIB_LIBS) \
	$(DBUS_LIBS) \
	$(DBUS_GLIB_LIBS) \
	$(LIBXFCE4UTIL_LIBS)


servicedir = $(datadir)/dbus-1/services
service_in_files = org.xfce.Xfconf.service.in
service_DATA = $(service_in_files:.service.in=.service)

%.service: %.service.in
	sed -e "s,\@bindir\@,$(bindir),g" < $< > $@

DISTCLEANFILES = \
	$(service_DATA)

EXTRA_DIST = \
	xfconf-backend-perchannel-xml.c \
	xfconf-backend-perchannel-xml.h \
	$(service_in_files)


if MAINTAINER_MODE

xfconf_built_sources = \
	xfconf-dbus-server.h

DISTCLEANFILES += \
	$(xfconf_built_sources)

BUILT_SOURCES = \
	$(xfconf_built_sources)

xfconf-dbus-server.h: $(top_srcdir)/common/xfconf-dbus.xml
	dbus-binding-tool --mode=glib-server --prefix=xfconf $< > $@

endif