Run from the source directory without installing
[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 # We need to compile schemas at make time
19 # to run from source tree
20 gschemas.compiled: $(gsettings_SCHEMAS:.xml=.valid)
21         $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --targetdir=. .
22
23 all-local: gschemas.compiled
24
25 convertdir = $(datarootdir)/GConf/gsettings
26 convert_DATA = \
27         empathy.convert
28
29 servicefiledir = $(datadir)/dbus-1/services
30 servicefile_in_files = \
31         org.freedesktop.Telepathy.Client.Empathy.Chat.service.in \
32         org.freedesktop.Telepathy.Client.Empathy.Auth.service.in \
33         org.freedesktop.Telepathy.Client.Empathy.Call.service.in \
34         org.freedesktop.Telepathy.Client.Empathy.FileTransfer.service.in
35
36 if HAVE_EMPATHY_AV
37 servicefile_in_files += \
38         org.freedesktop.Telepathy.Client.Empathy.AudioVideo.service.in
39 endif
40
41 servicefile_DATA = $(servicefile_in_files:.service.in=.service)
42
43 org.freedesktop.Telepathy.Client.Empathy.Chat.service: org.freedesktop.Telepathy.Client.Empathy.Chat.service.in
44         $(AM_V_GEN)sed -e "s|[@]libexecdir[@]|$(libexecdir)|" $< > $@
45
46 org.freedesktop.Telepathy.Client.Empathy.AudioVideo.service: org.freedesktop.Telepathy.Client.Empathy.AudioVideo.service.in
47         $(AM_V_GEN)sed -e "s|[@]libexecdir[@]|$(libexecdir)|" $< > $@
48
49 org.freedesktop.Telepathy.Client.Empathy.Auth.service: org.freedesktop.Telepathy.Client.Empathy.Auth.service.in
50         $(AM_V_GEN)sed -e "s|[@]libexecdir[@]|$(libexecdir)|" $< > $@
51
52 org.freedesktop.Telepathy.Client.Empathy.Call.service: org.freedesktop.Telepathy.Client.Empathy.Call.service.in
53         $(AM_V_GEN)sed -e "s|[@]libexecdir[@]|$(libexecdir)|" $< > $@
54
55 org.freedesktop.Telepathy.Client.Empathy.FileTransfer.service: org.freedesktop.Telepathy.Client.Empathy.FileTransfer.service.in
56         $(AM_V_GEN)sed -e "s|[@]bindir[@]|$(bindir)|" $< > $@
57
58 clientfiledir = $(datarootdir)/telepathy/clients
59 clientfile_DATA = \
60         Empathy.Chat.client \
61         Empathy.Auth.client \
62         Empathy.Call.client \
63         Empathy.FileTransfer.client
64
65 if HAVE_EMPATHY_AV
66 clientfile_DATA += \
67         Empathy.AudioVideo.client
68 endif
69
70 htmldir = $(datadir)/empathy
71 html_DATA = \
72         Template.html \
73         empathy-log-window.html \
74         $(NULL)
75
76 EXTRA_DIST =                            \
77         $(convert_DATA)                 \
78         $(desktop_in_files)             \
79         $(desktop_DATA)                 \
80         $(schemas_DATA)                 \
81         $(html_DATA)                    \
82         $(clientfile_DATA)              \
83         $(servicefile_in_files)         \
84         $(gsettings_files)              \
85         $(NULL)
86
87 DISTCLEANFILES =                \
88         $(desktop_DATA)         \
89         $(schemas_DATA)         \
90         $(servicefile_DATA)     \
91         $(gsettings_SCHEMAS)    \
92         gschemas.compiled       \
93         $(NULL)