]> git.0d.be Git - empathy.git/blob - libempathy/Makefile.am
Updated Norwegian bokmål translation.
[empathy.git] / libempathy / Makefile.am
1 AM_CPPFLAGS =                                           \
2         -I.                                             \
3         -I$(top_srcdir)                                 \
4         -I$(top_builddir)                               \
5         -DDATADIR=\""$(datadir)"\"                      \
6         -DLOCALEDIR=\""$(datadir)/locale"\"             \
7         $(LIBEMPATHY_CFLAGS)                            \
8         $(WARN_CFLAGS)
9
10 BUILT_SOURCES =                                         \
11         empathy-marshal.h                               \
12         empathy-marshal.c                               \
13         empathy-marshal.list                            \
14         empathy-enum-types.h                            \
15         empathy-enum-types.c
16
17 lib_LTLIBRARIES = libempathy.la
18
19 libempathy_la_SOURCES =                                 \
20         empathy-account-manager.c                       \
21         empathy-chatroom.c                              \
22         empathy-chatroom-manager.c                      \
23         empathy-call-factory.c                  \
24         empathy-call-handler.c                  \
25         empathy-contact.c                               \
26         empathy-contact-factory.c                       \
27         empathy-contact-groups.c                        \
28         empathy-contact-list.c                          \
29         empathy-contact-manager.c                       \
30         empathy-contact-monitor.c                       \
31         empathy-debug.c                                 \
32         empathy-dispatcher.c                            \
33         empathy-dispatch-operation.c                    \
34         empathy-idle.c                                  \
35         empathy-irc-network.c                           \
36         empathy-irc-network-manager.c                   \
37         empathy-irc-server.c                            \
38         empathy-log-manager.c                           \
39         empathy-message.c                               \
40         empathy-status-presets.c                        \
41         empathy-time.c                                  \
42         empathy-tp-call.c                               \
43         empathy-tp-chat.c                               \
44         empathy-tp-contact-factory.c                    \
45         empathy-tp-contact-list.c                       \
46         empathy-tp-file.c                               \
47         empathy-tp-group.c                              \
48         empathy-tp-roomlist.c                           \
49         empathy-tp-tube.c                               \
50         empathy-tube-handler.c                          \
51         empathy-utils.c
52
53 # do not distribute generated files
54 nodist_libempathy_la_SOURCES =\
55         $(BUILT_SOURCES)
56
57 libempathy_la_LIBADD =          \
58         $(top_builddir)/extensions/libemp-extensions.la \
59         $(LIBEMPATHY_LIBS)
60
61 libempathy_la_LDFLAGS =         \
62        -version-info ${LIBEMPATHY_CURRENT}:${LIBEMPATHY_REVISION}:${LIBEMPATHY_AGE} \
63        -export-symbols-regex ^empathy_
64
65 libempathy_headers =                            \
66         empathy-account-manager.h               \
67         empathy-chatroom.h                      \
68         empathy-chatroom-manager.h              \
69         empathy-call-factory.h                  \
70         empathy-call-handler.h                  \
71         empathy-contact.h                       \
72         empathy-contact-factory.h               \
73         empathy-contact-groups.h                \
74         empathy-contact-list.h                  \
75         empathy-contact-manager.h               \
76         empathy-contact-monitor.h               \
77         empathy-debug.h                         \
78         empathy-dispatcher.h                    \
79         empathy-dispatch-operation.h            \
80         empathy-idle.h                          \
81         empathy-irc-network.h                   \
82         empathy-irc-network-manager.h           \
83         empathy-irc-server.h                    \
84         empathy-log-manager.h                   \
85         empathy-message.h                       \
86         empathy-status-presets.h                \
87         empathy-time.h                          \
88         empathy-tp-call.h                       \
89         empathy-tp-chat.h                       \
90         empathy-tp-contact-factory.h            \
91         empathy-tp-contact-list.h               \
92         empathy-tp-file.h                       \
93         empathy-tp-group.h                      \
94         empathy-tp-roomlist.h                   \
95         empathy-tp-tube.h                       \
96         empathy-tube-handler.h                  \
97         empathy-types.h                         \
98         empathy-utils.h
99
100 libempathy_includedir = $(includedir)/libempathy/
101 libempathy_include_HEADERS =                    \
102         $(libempathy_headers)                   \
103         empathy-enum-types.h
104
105 empathy-marshal.list: $(libempathy_la_SOURCES) Makefile.am
106         ( cd $(srcdir) && \
107         sed -n -e 's/.*empathy_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \
108         $(libempathy_la_SOURCES) ) \
109         | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
110         if cmp -s $@.tmp $@; then \
111                 rm $@.tmp; \
112         else \
113                 mv $@.tmp $@; \
114         fi
115
116 %-marshal.h: %-marshal.list Makefile
117         $(GLIB_GENMARSHAL) --header --prefix=_$(subst -,_,$*)_marshal $< > $*-marshal.h
118
119 %-marshal.c: %-marshal.list Makefile
120         echo "#include \"empathy-marshal.h\"" > $@ && \
121         $(GLIB_GENMARSHAL) --body --prefix=_$(subst -,_,$*)_marshal $< >> $*-marshal.c
122
123 empathy-enum-types.h: stamp-empathy-enum-types.h
124         @true
125 stamp-empathy-enum-types.h: $(libempathy_headers) Makefile
126         (cd $(srcdir) \
127         && glib-mkenums \
128                         --fhead "#ifndef __LIBEMPATHY_ENUM_TYPES_H__\n" \
129                         --fhead "#define __LIBEMPATHY_ENUM_TYPES_H__ 1\n\n" \
130                         --fhead "#include <glib-object.h>\n\n" \
131                         --fhead "G_BEGIN_DECLS\n\n" \
132                         --ftail "G_END_DECLS\n\n" \
133                         --ftail "#endif /* __LIBEMPATHY_ENUM_TYPES_H__ */\n" \
134                         --fprod "#include <libempathy/@filename@>\n" \
135                         --eprod "#define EMPATHY_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
136                         --eprod "GType @enum_name@_get_type (void);\n" \
137                 $(libempathy_headers) ) > xgen-gth \
138         && (cmp -s xgen-gth empathy-enum-type.h || cp xgen-gth empathy-enum-types.h) \
139         && rm -f xgen-gth \
140         && echo timestamp > $(@F)
141
142 empathy-enum-types.c: $(libempathy_headers) Makefile
143         (cd $(srcdir) \
144         && glib-mkenums \
145                         --fhead "#include <config.h>\n" \
146                         --fhead "#include <glib-object.h>\n" \
147                         --fhead "#include \"empathy-enum-types.h\"\n\n" \
148                         --fprod "\n/* enumerations from \"@filename@\" */" \
149                         --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
150                         --vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
151                         --vtail "  { 0, NULL, NULL }\n};\n\n" \
152                         --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
153                         --vtail "  static GType type = 0;\n\n" \
154                         --vtail "  if (!type)\n" \
155                         --vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
156                         --vtail "  return type;\n}\n\n" \
157                 $(libempathy_headers) ) > xgen-gtc \
158         && cp xgen-gtc $(@F) \
159         && rm -f xgen-gtc
160
161 dtddir = $(datadir)/empathy
162 dtd_DATA =                                      \
163         empathy-status-presets.dtd              \
164         empathy-contact-groups.dtd              \
165         empathy-chatroom-manager.dtd            \
166         empathy-irc-networks.dtd
167
168 stylesheetdir = $(datadir)/empathy
169 stylesheet_DATA =               \
170         empathy-log-manager.xsl
171
172 ircnetworksdir = $(datadir)/empathy
173 ircnetworks_DATA =              \
174         irc-networks.xml
175
176 pkgconfigdir = $(libdir)/pkgconfig
177 pkgconfig_DATA = libempathy.pc
178
179 EXTRA_DIST =                    \
180         empathy-marshal.list    \
181         $(stylesheet_DATA)      \
182         $(dtd_DATA)             \
183         $(ircnetworks_DATA)
184
185 CLEANFILES =                            \
186         $(BUILT_SOURCES)                \
187         stamp-empathy-enum-types.h