]> git.0d.be Git - empathy.git/blob - data/Makefile.am
Don't install Call service files if empathy-call is not built
[empathy.git] / data / Makefile.am
1 SUBDIRS = icons
2
3 desktopdir = $(datadir)/applications
4 desktop_in_files = \
5         empathy.desktop.in \
6         empathy-accounts.desktop.in \
7         $(NULL)
8 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
9 @INTLTOOL_DESKTOP_RULE@
10
11 gsettings_files = \
12         org.gnome.Empathy.gschema.xml.in \
13         $(NULL)
14 gsettings_SCHEMAS = $(gsettings_files:.xml.in=.xml)
15 @INTLTOOL_XML_NOMERGE_RULE@
16 @GSETTINGS_RULES@
17
18 convertdir = $(datarootdir)/GConf/gsettings
19 convert_DATA = \
20         empathy.convert
21
22 streamingprefsdir =  $(datadir)/empathy
23 streamingprefs_DATA =           \
24         codec-preferences       \
25         element-properties
26
27 servicefiledir = $(datadir)/dbus-1/services
28 servicefile_in_files = \
29         org.freedesktop.Telepathy.Client.Empathy.Chat.service.in \
30         org.freedesktop.Telepathy.Client.Empathy.AudioVideo.service.in \
31         org.freedesktop.Telepathy.Client.Empathy.Auth.service.in \
32         org.freedesktop.Telepathy.Client.Empathy.FileTransfer.service.in
33
34 if HAVE_CALL
35 servicefile_in_files += \
36         org.freedesktop.Telepathy.Client.Empathy.Call.service.in
37 endif
38
39 servicefile_DATA = $(servicefile_in_files:.service.in=.service)
40
41 org.freedesktop.Telepathy.Client.Empathy.Chat.service: org.freedesktop.Telepathy.Client.Empathy.Chat.service.in
42         $(AM_V_GEN)sed -e "s|[@]libexecdir[@]|$(libexecdir)|" $< > $@
43
44 org.freedesktop.Telepathy.Client.Empathy.AudioVideo.service: org.freedesktop.Telepathy.Client.Empathy.AudioVideo.service.in
45         $(AM_V_GEN)sed -e "s|[@]libexecdir[@]|$(libexecdir)|" $< > $@
46
47 org.freedesktop.Telepathy.Client.Empathy.Auth.service: org.freedesktop.Telepathy.Client.Empathy.Auth.service.in
48         $(AM_V_GEN)sed -e "s|[@]libexecdir[@]|$(libexecdir)|" $< > $@
49
50 org.freedesktop.Telepathy.Client.Empathy.Call.service: org.freedesktop.Telepathy.Client.Empathy.Call.service.in
51         $(AM_V_GEN)sed -e "s|[@]libexecdir[@]|$(libexecdir)|" $< > $@
52
53 org.freedesktop.Telepathy.Client.Empathy.FileTransfer.service: org.freedesktop.Telepathy.Client.Empathy.FileTransfer.service.in
54         $(AM_V_GEN)sed -e "s|[@]bindir[@]|$(bindir)|" $< > $@
55
56 clientfiledir = $(datarootdir)/telepathy/clients
57 clientfile_DATA = \
58         Empathy.Chat.client \
59         Empathy.AudioVideo.client \
60         Empathy.Auth.client \
61         Empathy.FileTransfer.client
62
63 if HAVE_CALL
64 clientfile_DATA += \
65         Empathy.Call.client
66 endif
67
68 htmldir = $(datadir)/empathy
69 html_DATA = \
70         Template.html \
71         empathy-log-window.html \
72         $(NULL)
73
74 EXTRA_DIST =                            \
75         $(convert_DATA)                 \
76         $(desktop_in_files)             \
77         $(desktop_DATA)                 \
78         $(schemas_DATA)                 \
79         $(streamingprefs_DATA)          \
80         $(html_DATA)                    \
81         $(clientfile_DATA)              \
82         $(servicefile_in_files)         \
83         $(gsettings_files)              \
84         $(NULL)
85
86 DISTCLEANFILES =                \
87         $(desktop_DATA)         \
88         $(schemas_DATA)         \
89         $(servicefile_DATA)     \
90         $(gsettings_SCHEMAS)    \
91         $(NULL)