efl: use autotools testsuite for running tests
[platform/upstream/efl.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2 AM_MAKEFLAGS = --no-print-directory
3 AM_DISTCHECK_CONFIGURE_FLAGS = --with-tests=regular --enable-always-build-examples
4
5 SUBDIRS = src data doc
6
7 if HAVE_PO
8
9 SUBDIRS += po
10
11 endif
12
13 MAINTAINERCLEANFILES = \
14 Makefile.in \
15 aclocal.m4 \
16 compile \
17 config.cache-env \
18 config.guess \
19 config.h.in \
20 config.h.in~ \
21 config.sub \
22 configure \
23 depcomp \
24 install-sh \
25 ltmain.sh \
26 missing \
27 m4/libtool.m4 \
28 m4/lt~obsolete.m4 \
29 m4/ltoptions.m4 \
30 m4/ltsugar.m4 \
31 m4/ltversion.m4
32
33 EXTRA_DIST =  \
34 m4/ac_path_generic.m4 \
35 m4/efl_attribute.m4 \
36 m4/efl_check_funcs.m4 \
37 m4/efl_compiler.m4 \
38 m4/efl_doxygen.m4 \
39 m4/efl_path_max.m4 \
40 m4/efl_threads.m4 \
41 m4/evil_windows.m4 \
42 m4/eina_check.m4 \
43 m4/eina_config.m4 \
44 m4/evas_check_engine.m4 \
45 m4/evas_check_loader.m4 \
46 m4/ecore_check_c_extension.m4 \
47 m4/ecore_check_module.m4 \
48 m4/eio_check_options.m4
49
50 EXTRA_DIST += \
51 autogen.sh \
52 licenses/COPYING.LGPL \
53 licenses/COPYING.GPL \
54 licenses/COPYING.BSD \
55 licenses/COPYING.SMALL \
56 old/ChangeLog.ecore \
57 old/ChangeLog.edje \
58 old/ChangeLog.eet \
59 old/ChangeLog.eeze \
60 old/ChangeLog.efreet \
61 old/ChangeLog.eina \
62 old/ChangeLog.eio \
63 old/ChangeLog.embryo \
64 old/ChangeLog.emotion \
65 old/ChangeLog.escape \
66 old/ChangeLog.ethumb \
67 old/ChangeLog.evas \
68 old/ChangeLog.evil \
69 old/ChangeLog.evil.0 \
70 old/NEWS.ecore \
71 old/NEWS.edje \
72 old/NEWS.eet \
73 old/NEWS.eeze \
74 old/NEWS.efreet \
75 old/NEWS.eina \
76 old/NEWS.eio \
77 old/NEWS.embryo \
78 old/NEWS.emotion \
79 old/NEWS.escape \
80 old/NEWS.ethumb \
81 old/NEWS.evas \
82 old/NEWS.evil \
83 old/README.ecore \
84 old/README.edbus \
85 old/README.edje \
86 old/README.eet \
87 old/README.eeze \
88 old/README.efreet \
89 old/README.eina \
90 old/README.eio \
91 old/README.embryo \
92 old/README.emotion \
93 old/README.ephysics \
94 old/README.escape \
95 old/README.ethumb \
96 old/README.evas \
97 old/README.evil \
98 spec/efl.spec
99
100 pkgconfigdir = $(libdir)/pkgconfig
101 pkgconfig_DATA =
102
103 if HAVE_WINDOWS
104 pkgconfig_DATA += pc/evil.pc
105 endif
106
107 if HAVE_PS3
108 pkgconfig_DATA += pc/escape.pc
109 endif
110
111 pkgconfig_DATA += \
112 pc/eina.pc \
113 pc/eo.pc \
114 pc/eet.pc \
115 pc/evas.pc \
116 pc/ecore.pc \
117 pc/ecore-con.pc \
118 pc/ecore-ipc.pc \
119 pc/ecore-file.pc \
120 pc/ecore-input.pc \
121 pc/ecore-input-evas.pc \
122 pc/ecore-imf.pc \
123 pc/ecore-imf-evas.pc \
124 pc/ecore-evas.pc \
125 pc/embryo.pc \
126 pc/eio.pc \
127 pc/edbus2.pc \
128 pc/efreet.pc \
129 pc/efreet-mime.pc \
130 pc/efreet-trash.pc \
131 pc/edje.pc \
132 pc/emotion.pc \
133 pc/ethumb.pc \
134 pc/ethumb_client.pc
135
136 if BUILD_ENGINE_SOFTWARE_X11
137 pkgconfig_DATA += pc/evas-software-x11.pc
138 endif
139
140 if BUILD_ENGINE_FB
141 pkgconfig_DATA += pc/evas-fb.pc
142 endif
143
144 if BUILD_ENGINE_BUFFER
145 pkgconfig_DATA += pc/evas-software-buffer.pc
146 endif
147
148 if BUILD_ENGINE_GL_X11
149 pkgconfig_DATA += pc/evas-opengl-x11.pc
150 endif
151
152 if BUILD_ENGINE_GL_SDL
153 pkgconfig_DATA += pc/evas-opengl-sdl.pc
154 endif
155
156 if BUILD_ENGINE_GL_COCOA
157 pkgconfig_DATA += pc/evas-opengl-cocoa.pc
158 endif
159
160 if BUILD_ENGINE_SOFTWARE_GDI
161 pkgconfig_DATA += pc/evas-software-gdi.pc
162 endif
163
164 if BUILD_ENGINE_SOFTWARE_DDRAW
165 pkgconfig_DATA += pc/evas-software-ddraw.pc
166 endif
167
168 if BUILD_ENGINE_PSL1GHT
169 pkgconfig_DATA += pc/evas-psl1ght.pc
170 endif
171
172 if BUILD_ENGINE_WAYLAND_SHM
173 pkgconfig_DATA += pc/evas-wayland-shm.pc
174 endif
175
176 if BUILD_ENGINE_WAYLAND_EGL
177 pkgconfig_DATA += pc/evas-wayland-egl.pc
178 endif
179
180 if HAVE_ECORE_COCOA
181 pkgconfig_DATA += pc/ecore-cocoa.pc
182 endif
183
184 if HAVE_ECORE_FB
185 pkgconfig_DATA += pc/ecore-fb.pc
186 endif
187
188 if HAVE_PS3
189 pkgconfig_DATA += pc/ecore-psl1ght.pc
190 endif
191
192 if HAVE_ECORE_SDL
193 pkgconfig_DATA += pc/ecore-sdl.pc
194 endif
195
196 if HAVE_ECORE_WAYLAND
197 pkgconfig_DATA += pc/ecore-wayland.pc
198 endif
199
200 if HAVE_WIN32
201 pkgconfig_DATA += pc/ecore-win32.pc
202 endif
203
204 if HAVE_WINCE
205 pkgconfig_DATA += pc/ecore-wince.pc
206 endif
207
208 if HAVE_ECORE_X
209 pkgconfig_DATA += pc/ecore-x.pc
210 endif
211
212 if HAVE_EEZE
213 pkgconfig_DATA += pc/eeze.pc
214 endif
215
216 if HAVE_EPHYSICS
217 pkgconfig_DATA += pc/ephysics.pc
218 endif
219
220
221 # D-Bus services:
222
223 servicedir = @dbusservicedir@
224 service_DATA = \
225 dbus-services/org.enlightenment.Efreet.service \
226 dbus-services/org.enlightenment.Ethumb.service
227
228
229
230 .PHONY: doc benchmark examples install-examples
231
232 # Documentation
233
234 doc:
235         @echo "entering doc/"
236         $(MAKE) $(AM_MAKEFLAGS) -C doc doc
237
238 # Unit tests
239
240 if EFL_ENABLE_COVERAGE
241
242 lcov-reset:
243         @rm -rf $(top_builddir)/coverage
244         @find $(top_builddir) -name "*.gcda" -delete
245         @lcov --zerocounters --directory $(top_builddir)
246
247 lcov-report:
248         @mkdir $(top_builddir)/coverage
249         lcov --capture --compat-libtool --output-file $(top_builddir)/coverage/coverage.info --directory $(top_builddir) --base-directory $(top_srcdir)/src/
250         lcov --remove $(top_builddir)/coverage/coverage.info '*.h' --output-file $(top_builddir)/coverage/coverage.cleaned.info
251         genhtml -t "$(PACKAGE_STRING)" -o $(top_builddir)/coverage/html $(top_builddir)/coverage/coverage.cleaned.info
252         @echo "Coverage Report at $(top_builddir)/coverage/html"
253
254 endif
255
256 if EFL_ENABLE_TESTS
257
258 lcov-check:
259 if EFL_ENABLE_COVERAGE
260         @$(MAKE) $(AM_MAKEFLAGS) lcov-reset
261 endif
262         @$(MAKE) $(AM_MAKEFLAGS) check
263 if EFL_ENABLE_COVERAGE
264         @$(MAKE) $(AM_MAKEFLAGS) lcov-report
265 endif
266 endif
267
268 # benchmark
269
270 benchmark:
271         @$(MAKE) $(AM_MAKEFLAGS) -C src benchmark
272         @mkdir benchmark || true
273         @cd benchmark && ../src/benchmarks/eo/eo_bench$(EXEEXT) `date +%F_%s`
274
275 # examples
276
277 examples:
278         @$(MAKE) $(AM_MAKEFLAGS) -C src examples
279
280 install-examples:
281         @$(MAKE) $(AM_MAKEFLAGS) -C src install-examples
282
283 # cleaning
284
285 clean-local:
286         rm -rf benchmark coverage