]> git.0d.be Git - empathy.git/blob - libempathy-gtk/Makefile.am
Updated Greek translation
[empathy.git] / libempathy-gtk / Makefile.am
1 SUBDIRS = egg-list-box
2
3 include $(top_srcdir)/tools/flymake.mk
4
5 AM_CPPFLAGS =                                           \
6         $(ERROR_CFLAGS)                                 \
7         -I.                                             \
8         -I$(top_srcdir)                                 \
9         -DDATADIR=\""$(datadir)"\"                      \
10         -DPKGDATADIR=\""$(pkgdatadir)"\"                \
11         -DGCR_API_SUBJECT_TO_CHANGE                     \
12         $(EMPATHY_CFLAGS)                               \
13         $(YELL_CFLAGS)                                  \
14         $(ENCHANT_CFLAGS)                               \
15         $(LIBCHAMPLAIN_CFLAGS)                          \
16         $(GEOCLUE_CFLAGS)                               \
17         $(GEOCODE_CFLAGS)                               \
18         $(MEEGO_CFLAGS)                                 \
19         $(CHEESE_CFLAGS)                                \
20         $(EGGLISTBOX_CFLAGS)                                    \
21         $(WARN_CFLAGS)                                  \
22         $(DISABLE_DEPRECATED)
23
24 BUILT_SOURCES =                                         \
25         empathy-gtk-enum-types.h                        \
26         empathy-gtk-enum-types.c
27
28 noinst_LTLIBRARIES = libempathy-gtk.la
29
30 libempathy_gtk_handwritten_source =             \
31         empathy-account-chooser.c               \
32         empathy-account-selector-dialog.c               \
33         empathy-account-widget-irc.c            \
34         empathy-account-widget-private.h        \
35         empathy-account-widget-sip.c            \
36         empathy-account-widget.c                \
37         empathy-avatar-chooser.c                \
38         empathy-avatar-image.c                  \
39         empathy-bad-password-dialog.c           \
40         empathy-base-password-dialog.c          \
41         empathy-calendar-button.c \
42         empathy-call-utils.c                    \
43         empathy-cell-renderer-activatable.c     \
44         empathy-cell-renderer-expander.c        \
45         empathy-cell-renderer-text.c            \
46         empathy-chat-text-view.c                \
47         empathy-chat-view.c                     \
48         empathy-chat.c                          \
49         empathy-contact-blocking-dialog.c       \
50         empathy-contact-dialogs.c               \
51         empathy-contact-chooser.c               \
52         empathy-contactinfo-utils.c             \
53         empathy-live-search.c                   \
54         empathy-contact-search-dialog.c         \
55         empathy-contact-widget.c                \
56         empathy-dialpad-widget.c                \
57         empathy-geometry.c                      \
58         empathy-groups-widget.c                 \
59         empathy-individual-dialogs.c            \
60         empathy-individual-edit-dialog.c        \
61         empathy-individual-information-dialog.c \
62         empathy-individual-menu.c               \
63         empathy-individual-store.c              \
64         empathy-individual-store-channel.c              \
65         empathy-individual-store-manager.c              \
66         empathy-individual-view.c               \
67         empathy-individual-widget.c             \
68         empathy-input-text-view.c               \
69         empathy-irc-network-chooser.c \
70         empathy-irc-network-chooser-dialog.c \
71         empathy-irc-network-dialog.c            \
72         empathy-local-xmpp-assistant-widget.c \
73         empathy-log-window.c                    \
74         empathy-new-account-dialog.c            \
75         empathy-new-message-dialog.c            \
76         empathy-new-call-dialog.c               \
77         empathy-notify-manager.c                \
78         empathy-password-dialog.c               \
79         empathy-presence-chooser.c              \
80         empathy-protocol-chooser.c              \
81         empathy-roster-contact.c                        \
82         empathy-roster-group.c                  \
83         empathy-roster-view.c                   \
84         empathy-search-bar.c                    \
85         empathy-share-my-desktop.c              \
86         empathy-smiley-manager.c                \
87         empathy-sound-manager.c                 \
88         empathy-spell.c                         \
89         empathy-status-preset-dialog.c          \
90         empathy-string-parser.c                 \
91         empathy-theme-boxes.c                   \
92         empathy-theme-irc.c                     \
93         empathy-theme-manager.c                 \
94         empathy-tls-dialog.c                    \
95         empathy-ui-utils.c                      \
96         empathy-plist.c                         \
97         empathy-theme-adium.c                   \
98         empathy-webkit-utils.c                  \
99         $(NULL)
100
101 libempathy_gtk_headers =                        \
102         empathy-account-chooser.h               \
103         empathy-account-selector-dialog.h               \
104         empathy-account-widget-irc.h            \
105         empathy-account-widget-sip.h            \
106         empathy-account-widget.h                \
107         empathy-avatar-chooser.h                \
108         empathy-avatar-image.h                  \
109         empathy-bad-password-dialog.h           \
110         empathy-base-password-dialog.h          \
111         empathy-calendar-button.h \
112         empathy-call-utils.h                    \
113         empathy-cell-renderer-activatable.h     \
114         empathy-cell-renderer-expander.h        \
115         empathy-cell-renderer-text.h            \
116         empathy-chat-text-view.h                \
117         empathy-chat-view.h                     \
118         empathy-chat.h                          \
119         empathy-contact-blocking-dialog.h       \
120         empathy-contact-dialogs.h               \
121         empathy-contact-chooser.h               \
122         empathy-live-search.h                   \
123         empathy-contact-search-dialog.h         \
124         empathy-contact-widget.h                \
125         empathy-contactinfo-utils.h             \
126         empathy-dialpad-widget.h                \
127         empathy-geometry.h                      \
128         empathy-groups-widget.h                 \
129         empathy-images.h                        \
130         empathy-individual-dialogs.h            \
131         empathy-individual-edit-dialog.h        \
132         empathy-individual-information-dialog.h \
133         empathy-individual-menu.h               \
134         empathy-individual-store.h              \
135         empathy-individual-store-channel.h              \
136         empathy-individual-store-manager.h              \
137         empathy-individual-view.h               \
138         empathy-individual-widget.h             \
139         empathy-input-text-view.h               \
140         empathy-irc-network-chooser.h \
141         empathy-irc-network-chooser-dialog.h \
142         empathy-irc-network-dialog.h            \
143         empathy-local-xmpp-assistant-widget.h \
144         empathy-log-window.h                    \
145         empathy-new-account-dialog.h            \
146         empathy-new-message-dialog.h            \
147         empathy-new-call-dialog.h               \
148         empathy-notify-manager.h                \
149         empathy-password-dialog.h               \
150         empathy-presence-chooser.h              \
151         empathy-protocol-chooser.h              \
152         empathy-roster-contact.h                        \
153         empathy-roster-group.h                  \
154         empathy-roster-view.h                   \
155         empathy-search-bar.h                    \
156         empathy-share-my-desktop.h              \
157         empathy-smiley-manager.h                \
158         empathy-sound-manager.h                 \
159         empathy-spell.h                         \
160         empathy-status-preset-dialog.h          \
161         empathy-string-parser.h                 \
162         empathy-theme-boxes.h                   \
163         empathy-theme-irc.h                     \
164         empathy-theme-manager.h                 \
165         empathy-tls-dialog.h                    \
166         empathy-ui-utils.h                      \
167         empathy-plist.h                         \
168         empathy-theme-adium.h                   \
169         empathy-webkit-utils.h                  \
170         $(NULL)
171
172
173 libempathy_gtk_la_SOURCES =                     \
174         $(libempathy_gtk_handwritten_source)    \
175         $(libempathy_gtk_headers)               \
176         totem-subtitle-encoding.c totem-subtitle-encoding.h
177
178 # do not distribute generated files
179 nodist_libempathy_gtk_la_SOURCES =\
180         $(BUILT_SOURCES)
181
182 libempathy_gtk_la_LIBADD =                      \
183         $(EMPATHY_LIBS)                 \
184         $(EMPATHY_LIBS)                 \
185         $(GTK_LIBS)                     \
186         $(LIBNOTIFY_LIBS)                       \
187         $(CANBERRA_LIBS) \
188         $(ENCHANT_LIBS)                         \
189         $(LIBCHAMPLAIN_LIBS)                    \
190         $(GEOCLUE_LIBS)                         \
191         $(GEOCODE_LIBS)                         \
192         $(GCR_LIBS)                             \
193         $(MEEGO_LIBS)                           \
194         $(CHEESE_LIBS)                          \
195         $(top_builddir)/libempathy-gtk/egg-list-box/libegglistbox.la \
196         $(top_builddir)/libempathy/libempathy.la
197
198 check_c_sources = \
199     $(libempathy_gtk_handwritten_source) \
200     $(libempathy_gtk_headers)
201 include $(top_srcdir)/tools/check-coding-style.mk
202 check-local: check-coding-style
203
204 uidir = $(datadir)/empathy
205 ui_DATA =                                       \
206         empathy-contact-widget.ui               \
207         empathy-contact-dialogs.ui              \
208         empathy-contact-blocking-dialog.ui      \
209         empathy-account-widget-generic.ui       \
210         empathy-account-widget-jabber.ui        \
211         empathy-account-widget-msn.ui           \
212         empathy-account-widget-sip.ui           \
213         empathy-account-widget-local-xmpp.ui    \
214         empathy-account-widget-irc.ui           \
215         empathy-account-widget-icq.ui           \
216         empathy-account-widget-yahoo.ui         \
217         empathy-account-widget-groupwise.ui     \
218         empathy-account-widget-aim.ui           \
219         empathy-status-preset-dialog.ui         \
220         empathy-log-window.ui                   \
221         empathy-chat.ui                         \
222         empathy-search-bar.ui                   \
223         empathy-individual-widget.ui
224
225 empathy-gtk-enum-types.h: stamp-empathy-gtk-enum-types.h
226         $(AM_V_GEN)true
227 stamp-empathy-gtk-enum-types.h: Makefile $(libempathy_gtk_headers)
228         $(AM_V_GEN)(cd $(srcdir) \
229         && glib-mkenums \
230                         --fhead "#ifndef __LIBEMPATHY_GTK_ENUM_TYPES_H__\n" \
231                         --fhead "#define __LIBEMPATHY_GTK_ENUM_TYPES_H__ 1\n\n" \
232                         --fhead "#include <glib-object.h>\n\n" \
233                         --fhead "G_BEGIN_DECLS\n\n" \
234                         --ftail "G_END_DECLS\n\n" \
235                         --ftail "#endif /* __LIBEMPATHY_GTK_ENUM_TYPES_H__ */\n" \
236                         --fprod "#include <libempathy-gtk/@filename@>\n" \
237                         --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
238                         --eprod "GType @enum_name@_get_type (void);\n" \
239                 $(libempathy_gtk_headers) ) > xgen-gth \
240         && (cmp -s xgen-gth empathy-gtk-enum-type.h || cp xgen-gth empathy-gtk-enum-types.h) \
241         && rm -f xgen-gth \
242         && echo timestamp > $(@F)
243
244 empathy-gtk-enum-types.c: Makefile $(libempathy_gtk_headers)
245         $(AM_V_GEN)(cd $(srcdir) \
246         && glib-mkenums \
247                         --fhead "#include <config.h>\n" \
248                         --fhead "#include <glib-object.h>\n" \
249                         --fhead "#include \"empathy-gtk-enum-types.h\"\n\n" \
250                         --fprod "\n/* enumerations from \"@filename@\" */" \
251                         --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
252                         --vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
253                         --vtail "  { 0, NULL, NULL }\n};\n\n" \
254                         --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
255                         --vtail "  static GType type = 0;\n\n" \
256                         --vtail "  if (!type)\n" \
257                         --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
258                         --vtail "  return type;\n}\n\n" \
259                 $(libempathy_gtk_headers) ) > xgen-gtc \
260         && cp xgen-gtc $(@F) \
261         && rm -f xgen-gtc
262
263 EXTRA_DIST =                    \
264         $(ui_DATA)
265
266 if HAVE_GEOCLUE
267 libempathy_gtk_handwritten_source +=            \
268         empathy-location-manager.c
269
270 libempathy_gtk_headers +=                       \
271         empathy-location-manager.h
272 else
273 EXTRA_DIST +=                                   \
274         empathy-location-manager.c              \
275         empathy-location-manager.h
276 endif
277
278 CLEANFILES =                            \
279         $(BUILT_SOURCES)                \
280         stamp-empathy-gtk-enum-types.h