Add AM_GNU_GETTEXT_VERSION(0.17) to configure.in to fix build error
[profile/ivi/ecore.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 ACLOCAL_AMFLAGS = -I m4
4
5 SUBDIRS = doc src
6
7 if HAVE_PO
8
9 SUBDIRS += po
10
11 endif
12
13 MAINTAINERCLEANFILES = \
14 ABOUT-NLS \
15 Makefile.in \
16 aclocal.m4 \
17 config.guess \
18 config.h.in \
19 config.h.in~ \
20 config.rpath \
21 config.sub \
22 configure \
23 depcomp \
24 install-sh \
25 ltmain.sh \
26 missing \
27 mkinstalldirs \
28 $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz \
29 $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.bz2 \
30 $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-doc.tar.bz2 \
31 m4/libtool.m4 \
32 m4/lt~obsolete.m4 \
33 m4/ltoptions.m4 \
34 m4/ltsugar.m4 \
35 m4/ltversion.m4 \
36 m4/codeset.m4 \
37 m4/gettext.m4* \
38 m4/glibc2*.m4 \
39 m4/iconv.m4 \
40 m4/intdiv0.m4 \
41 m4/intldir.m4 \
42 m4/intl.m4 \
43 m4/intlmacosx.m4 \
44 m4/intmax.m4* \
45 m4/inttypes_h.m4 \
46 m4/inttypes.m4 \
47 m4/inttypes-pri.m4 \
48 m4/isc-posix.m4 \
49 m4/lcmessage.m4 \
50 m4/lib-ld.m4* \
51 m4/lib-link.m4 \
52 m4/lib-prefix.m4* \
53 m4/lock.m4 \
54 m4/longdouble.m4* \
55 m4/longlong.m4* \
56 m4/nls.m4 \
57 m4/po.m4* \
58 m4/printf-posix.m4* \
59 m4/progtest.m4 \
60 m4/signed.m4 \
61 m4/size_max.m4* \
62 m4/stdint_h.m4 \
63 m4/uintmax_t.m4 \
64 m4/ulonglong.m4* \
65 m4/visibility.m4 \
66 m4/wchar_t.m4 \
67 m4/wint_t.m4* \
68 m4/xsize.m4*
69
70 if HAVE_PO
71
72 MAINTAINERCLEANFILES += \
73 po/boldquot.sed \
74 po/en@boldquot.header \
75 po/en@quot.header \
76 po/insert-header.sin \
77 po/Makefile.in.in* \
78 po/Makevars.template \
79 po/quot.sed \
80 po/remove-potcdate.sin \
81 po/Rules-quot*
82
83 endif
84
85 bin_SCRIPTS = 
86
87 EXTRA_DIST = \
88 AUTHORS \
89 COPYING \
90 autogen.sh \
91 ecore.supp \
92 ecore.pc.in \
93 ecore-con.pc.in \
94 ecore-config.pc.in \
95 ecore-directfb.pc.in\
96 ecore-evas.pc.in \
97 ecore-fb.pc.in \
98 ecore-file.pc.in \
99 ecore-imf.pc.in \
100 ecore-imf-evas.pc.in \
101 ecore-ipc.pc.in \
102 ecore-x.pc.in \
103 ecore-win32.pc.in \
104 ecore-sdl.pc.in \
105 ecore-cocoa.pc.in \
106 ecore-psl1ght.pc.in \
107 ecore-input.pc.in \
108 ecore-wince.pc.in \
109 ecore-wayland.pc.in \
110 ecore.spec.in \
111 ecore.spec \
112 m4/ac_abstract_socket.m4 \
113 m4/ac_attribute.m4 \
114 m4/check_x_extension.m4 \
115 m4/ecore_check_module.m4 \
116 m4/ecore_check_options.m4 \
117 m4/efl_doxygen.m4 \
118 m4/efl_path_max.m4 \
119 m4/efl_shm_open.m4 \
120 m4/efl_coverage.m4 \
121 m4/efl_tests.m4 \
122 m4/efl_threads.m4
123
124
125 pkgconfigdir = $(libdir)/pkgconfig
126 pkgconfig_DATA = ecore.pc
127
128 if BUILD_ECORE_CON
129 pkgconfig_DATA += ecore-con.pc
130 endif
131
132 if BUILD_ECORE_CONFIG
133 pkgconfig_DATA += ecore-config.pc
134 endif
135
136 if BUILD_ECORE_DIRECTFB
137 pkgconfig_DATA += ecore-directfb.pc
138 endif
139
140 if BUILD_ECORE_EVAS
141 pkgconfig_DATA += ecore-evas.pc
142 endif
143
144 if BUILD_ECORE_FB
145 pkgconfig_DATA += ecore-fb.pc
146 endif
147
148 if BUILD_ECORE_FILE
149 pkgconfig_DATA += ecore-file.pc
150 endif
151
152 if BUILD_ECORE_IMF
153 pkgconfig_DATA += ecore-imf.pc
154 endif
155
156 if BUILD_ECORE_IMF_EVAS
157 pkgconfig_DATA += ecore-imf-evas.pc
158 endif
159
160 if BUILD_ECORE_INPUT
161 pkgconfig_DATA += ecore-input.pc
162 endif
163
164 if BUILD_ECORE_INPUT_EVAS
165 pkgconfig_DATA += ecore-input-evas.pc
166 endif
167
168 if BUILD_ECORE_IPC
169 pkgconfig_DATA += ecore-ipc.pc
170 endif
171
172 if BUILD_ECORE_X
173 pkgconfig_DATA += ecore-x.pc
174 endif
175
176 if BUILD_ECORE_WIN32
177 pkgconfig_DATA += ecore-win32.pc
178 endif
179
180 if BUILD_ECORE_WINCE
181 pkgconfig_DATA += ecore-wince.pc
182 endif
183
184 if BUILD_ECORE_SDL
185 pkgconfig_DATA += ecore-sdl.pc
186 endif
187
188 if BUILD_ECORE_COCOA
189 pkgconfig_DATA += ecore-cocoa.pc
190 endif
191
192 if BUILD_ECORE_PSL1GHT
193 pkgconfig_DATA += ecore-psl1ght.pc
194 endif
195
196 if BUILD_ECORE_WAYLAND
197 pkgconfig_DATA += ecore-wayland.pc
198 endif
199
200 .PHONY: doc coverage
201
202 # Documentation
203
204 doc:
205         @echo "entering doc/"
206         make -C doc doc
207
208 # Unit tests
209
210 if EFL_ENABLE_TESTS
211
212 check-local:
213         @./src/tests/ecore_suite
214
215 else
216
217 check-local:
218         @echo "reconfigure with --enable-tests"
219
220 endif
221
222 # Coverage report
223
224 if EFL_ENABLE_COVERAGE
225 lcov-reset:
226         @rm -rf $(top_builddir)/coverage
227         @find $(top_builddir) -name "*.gcda" -delete
228         @lcov --zerocounters --directory $(top_builddir)
229
230 lcov-report:
231         @mkdir $(top_builddir)/coverage
232         lcov --capture --compat-libtool --output-file $(top_builddir)/coverage/coverage.info --directory $(top_builddir)
233         lcov --remove $(top_builddir)/coverage/coverage.info '*.h' --output-file $(top_builddir)/coverage/coverage.cleaned.info
234         genhtml -t "$(PACKAGE_STRING)" -o $(top_builddir)/coverage/html $(top_builddir)/coverage/coverage.cleaned.info
235         @echo "Coverage Report at $(top_builddir)/coverage/html"
236
237 coverage:
238         @$(MAKE) lcov-reset
239         @$(MAKE) check
240         @$(MAKE) lcov-report
241 else
242 lcov-reset:
243         @echo "reconfigure with --enable-coverage"
244
245 lcov-report:
246         @echo "reconfigure with --enable-coverage"
247
248 coverage:
249         @echo "reconfigure with --enable-tests --enable-coverage"
250 endif