Request presence again when an account is enabled
[empathy.git] / src / Makefile.am
1 include $(top_srcdir)/tools/shave.mk
2 include $(top_srcdir)/tools/flymake.mk
3
4 AM_CPPFLAGS =                                           \
5         -I$(top_srcdir)                                 \
6         -DG_LOG_DOMAIN=\"empathy\"                      \
7         $(EMPATHY_CFLAGS)                               \
8         $(LIBNOTIFY_CFLAGS)                             \
9         $(LIBCHAMPLAIN_CFLAGS)                          \
10         $(DISABLE_DEPRECATED)                           \
11         $(WEBKIT_CFLAGS)                                \
12         $(WARN_CFLAGS)
13
14 LDADD =                                                         \
15         $(top_builddir)/libempathy-gtk/libempathy-gtk.la        \
16         $(top_builddir)/libempathy/libempathy.la                \
17         $(top_builddir)/extensions/libemp-extensions.la         \
18         $(LIBNOTIFY_LIBS)                                       \
19         $(EMPATHY_LIBS)                                         \
20         $(LIBCHAMPLAIN_LIBS)                                    \
21         $(WEBKIT_LIBS)
22
23 bin_PROGRAMS =                  \
24         empathy                 \
25         empathy-logs
26
27 BUILT_SOURCES= \
28         empathy-tube-dispatch-enumtypes.h \
29         empathy-tube-dispatch-enumtypes.c
30
31 empathy_handwritten_source = \
32         empathy.c                                                       \
33         empathy-about-dialog.c empathy-about-dialog.h                   \
34         empathy-account-assistant.c empathy-account-assistant.h         \
35         empathy-accounts-dialog.c empathy-accounts-dialog.h             \
36         empathy-call-window.c empathy-call-window.h                     \
37         empathy-call-window-fullscreen.c empathy-call-window-fullscreen.h                       \
38         empathy-chatrooms-window.c empathy-chatrooms-window.h           \
39         empathy-debug-dialog.c empathy-debug-dialog.h                   \
40         empathy-chat-window.c empathy-chat-window.h                     \
41         empathy-event-manager.c empathy-event-manager.h                 \
42         empathy-import-mc4-accounts.c empathy-import-mc4-accounts.h     \
43         empathy-ft-manager.c empathy-ft-manager.h                       \
44         empathy-import-dialog.c empathy-import-dialog.h                 \
45         empathy-import-widget.c empathy-import-widget.h                 \
46         empathy-import-pidgin.c empathy-import-pidgin.h                 \
47         empathy-import-utils.c empathy-import-utils.h                   \
48         empathy-main-window.c empathy-main-window.h                     \
49         empathy-misc.c empathy-misc.h                                   \
50         empathy-new-chatroom-dialog.c empathy-new-chatroom-dialog.h     \
51         empathy-preferences.c empathy-preferences.h                     \
52         empathy-sidebar.c empathy-sidebar.h                     \
53         empathy-status-icon.c empathy-status-icon.h                     \
54         empathy-tube-dispatch.c empathy-tube-dispatch.h
55
56 empathy_SOURCES =                                                       \
57         $(empathy_handwritten_source)                                   \
58         ephy-spinner.c ephy-spinner.h
59
60 nodist_empathy_SOURCES = $(BUILT_SOURCES)
61
62 empathy_logs_SOURCES = empathy-logs.c
63
64 check_c_sources = \
65     $(empathy_handwritten_source) \
66     $(empathy_logs_SOURCES)
67 include $(top_srcdir)/tools/check-coding-style.mk
68 check-local: check-coding-style
69
70 uidir = $(datadir)/empathy
71 ui_DATA =                                       \
72         empathy-accounts-dialog.ui              \
73         empathy-call-window.ui                  \
74         empathy-call-window-fullscreen.ui                       \
75         empathy-chatrooms-window.ui             \
76         empathy-chat-window.ui                  \
77         empathy-ft-manager.ui                   \
78         empathy-import-dialog.ui                \
79         empathy-main-window.ui                  \
80         empathy-new-chatroom-dialog.ui          \
81         empathy-preferences.ui                  \
82         empathy-status-icon.ui
83
84 EXTRA_DIST =                    \
85         $(autostart_DATA)       \
86         $(ui_DATA)
87
88 if HAVE_LIBCHAMPLAIN
89 empathy_handwritten_source +=                           \
90         empathy-map-view.c                      \
91         empathy-map-view.h
92
93 ui_DATA +=                                      \
94         empathy-map-view.ui
95 else
96 EXTRA_DIST +=                                   \
97         empathy-map-view.c                      \
98         empathy-map-view.h                      \
99         empathy-map-view.ui
100 endif
101
102 dist_man_MANS =                 \
103         empathy.1
104
105 # rules for making the glib enum objects
106 %-enumtypes.h: %.h Makefile.in
107         $(QUIET_GEN)glib-mkenums \
108         --fhead "#ifndef __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__\n#define __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
109         --fprod "/* enumerations from \"@filename@\" */\n" \
110         --vhead "GType @enum_name@_get_type (void);\n#define $(shell echo $* | tr [:lower:]- [:upper:]_ | sed 's/_.*//')_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n"         \
111         --ftail "G_END_DECLS\n\n#endif /* __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__ */" \
112         $< > $@
113
114 %-enumtypes.c: %.h Makefile.in
115         $(QUIET_GEN)glib-mkenums \
116         --fhead "#include <$*.h>\n#include <$*-enumtypes.h>" \
117         --fprod "\n/* enumerations from \"@filename@\" */" \
118         --vhead "GType\n@enum_name@_get_type (void)\n{\n  static GType etype = 0;\n  if (etype == 0) {\n    static const G@Type@Value values[] = {"     \
119         --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@VALUENAME@\" }," \
120         --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \
121         $< > $@
122
123 CLEANFILES = $(BUILT_SOURCES)
124