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