1 include $(top_srcdir)/tools/shave.mk
11 $(top_builddir)/libempathy-gtk/libempathy-gtk.la \
12 $(top_builddir)/libempathy/libempathy.la \
13 $(top_builddir)/extensions/libemp-extensions.la \
22 empathy-tube-dispatch-enumtypes.h \
23 empathy-tube-dispatch-enumtypes.c
25 empathy_handwritten_source = \
27 empathy-about-dialog.c empathy-about-dialog.h \
28 empathy-accounts-dialog.c empathy-accounts-dialog.h \
29 empathy-call-window.c empathy-call-window.h \
30 empathy-call-window-fullscreen.c empathy-call-window-fullscreen.h \
31 empathy-chatrooms-window.c empathy-chatrooms-window.h \
32 empathy-chat-window.c empathy-chat-window.h \
33 empathy-event-manager.c empathy-event-manager.h \
34 empathy-ft-manager.c empathy-ft-manager.h \
35 empathy-import-dialog.c empathy-import-dialog.h \
36 empathy-import-pidgin.c empathy-import-pidgin.h \
37 empathy-main-window.c empathy-main-window.h \
38 empathy-misc.c empathy-misc.h \
39 empathy-new-chatroom-dialog.c empathy-new-chatroom-dialog.h \
40 empathy-preferences.c empathy-preferences.h \
41 empathy-sidebar.c empathy-sidebar.h \
42 empathy-status-icon.c empathy-status-icon.h \
43 empathy-tube-dispatch.c empathy-tube-dispatch.h
46 $(empathy_handwritten_source) \
47 bacon-message-connection.c bacon-message-connection.h \
48 ephy-spinner.c ephy-spinner.h
50 nodist_empathy_SOURCES = $(BUILT_SOURCES)
52 empathy_logs_SOURCES = empathy-logs.c
55 $(empathy_handwritten_source) \
56 $(empathy_logs_SOURCES)
57 include $(top_srcdir)/tools/check-coding-style.mk
58 check-local: check-coding-style
60 uidir = $(datadir)/empathy
62 empathy-accounts-dialog.ui \
63 empathy-call-window.ui \
64 empathy-call-window-fullscreen.ui \
65 empathy-chatrooms-window.ui \
66 empathy-chat-window.ui \
67 empathy-ft-manager.ui \
68 empathy-import-dialog.ui \
69 empathy-main-window.ui \
70 empathy-new-chatroom-dialog.ui \
71 empathy-preferences.ui \
72 empathy-status-icon.ui
77 # rules for making the glib enum objects
78 %-enumtypes.h: %.h Makefile.in
79 $(QUIET_GEN)glib-mkenums \
80 --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" \
81 --fprod "/* enumerations from \"@filename@\" */\n" \
82 --vhead "GType @enum_name@_get_type (void);\n#define $(shell echo $* | tr [:lower:]- [:upper:]_ | sed 's/_.*//')_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
83 --ftail "G_END_DECLS\n\n#endif /* __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__ */" \
86 %-enumtypes.c: %.h Makefile.in
87 $(QUIET_GEN)glib-mkenums \
88 --fhead "#include <$*.h>\n#include <$*-enumtypes.h>" \
89 --fprod "\n/* enumerations from \"@filename@\" */" \
90 --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[] = {" \
91 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@VALUENAME@\" }," \
92 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
99 CLEANFILES = $(BUILT_SOURCES)