build: fix problems with coverage check build where some files are not found
[platform/upstream/efl.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2 AM_MAKEFLAGS = --no-print-directory
3 AM_DISTCHECK_CONFIGURE_FLAGS = \
4 --with-tests=regular
5
6 SUBDIRS = src data doc
7
8 if HAVE_PO
9
10 SUBDIRS += po
11
12 endif
13
14 MAINTAINERCLEANFILES = \
15 Makefile.in \
16 aclocal.m4 \
17 compile \
18 config.cache-env \
19 config.guess \
20 config.h.in \
21 config.h.in~ \
22 config.sub \
23 configure \
24 depcomp \
25 install-sh \
26 ltmain.sh \
27 missing \
28 m4/libtool.m4 \
29 m4/lt~obsolete.m4 \
30 m4/ltoptions.m4 \
31 m4/ltsugar.m4 \
32 m4/ltversion.m4
33
34 EXTRA_DIST =  \
35 m4/pkg_var.m4 \
36 m4/ac_path_generic.m4 \
37 m4/ecore_check_c_extension.m4 \
38 m4/ecore_check_module.m4 \
39 m4/efl_attribute.m4 \
40 m4/efl_check_funcs.m4 \
41 m4/efl_compiler.m4 \
42 m4/efl_doxygen.m4 \
43 m4/efl_path_max.m4 \
44 m4/efl_threads.m4 \
45 m4/eina_check.m4 \
46 m4/eina_config.m4 \
47 m4/eio_check_options.m4 \
48 m4/evas_check_engine.m4 \
49 m4/evas_check_loader.m4 \
50 m4/evil_windows.m4 \
51 m4/libgcrypt.m4 \
52 m4/gcc_check_builtin.m4
53
54 EXTRA_DIST += \
55 README \
56 AUTHORS \
57 COPYING \
58 COMPLIANCE \
59 licenses/COPYING.LGPL \
60 licenses/COPYING.GPL \
61 licenses/COPYING.BSD \
62 licenses/COPYING.SMALL \
63 licenses/COPYING.FTL \
64 licenses/COPYING.NGINX-MIT \
65 old/ChangeLog.ecore \
66 old/ChangeLog.edje \
67 old/ChangeLog.eet \
68 old/ChangeLog.eeze \
69 old/ChangeLog.efreet \
70 old/ChangeLog.eina \
71 old/ChangeLog.eio \
72 old/ChangeLog.embryo \
73 old/ChangeLog.emotion \
74 old/ChangeLog.escape \
75 old/ChangeLog.ethumb \
76 old/ChangeLog.evas \
77 old/ChangeLog.evil \
78 old/ChangeLog.evil.0 \
79 old/NEWS.ecore \
80 old/NEWS.edje \
81 old/NEWS.eet \
82 old/NEWS.eeze \
83 old/NEWS.efreet \
84 old/NEWS.eina \
85 old/NEWS.eio \
86 old/NEWS.embryo \
87 old/NEWS.emotion \
88 old/NEWS.escape \
89 old/NEWS.ethumb \
90 old/NEWS.evas \
91 old/NEWS.evil \
92 old/README.ecore \
93 old/README.eldbus \
94 old/README.edje \
95 old/README.eet \
96 old/README.eeze \
97 old/README.efreet \
98 old/README.eina \
99 old/README.eio \
100 old/README.embryo \
101 old/README.emotion \
102 old/README.ephysics \
103 old/README.escape \
104 old/README.ethumb \
105 old/README.evas \
106 old/README.evil \
107 spec/efl.spec \
108 pkgbuild/PKGBUILD \
109 pkgbuild/efl.install
110
111 if HAVE_FREEBSD
112 pkgconfigdir = $(libdir)data/pkgconfig
113 else
114 pkgconfigdir = $(libdir)/pkgconfig
115 endif
116
117 pkgconfig_DATA =
118
119 if HAVE_WINDOWS
120 pkgconfig_DATA += pc/evil.pc
121 endif
122
123 if HAVE_PS3
124 pkgconfig_DATA += pc/escape.pc
125 endif
126
127 pkgconfig_DATA += \
128 pc/eina.pc \
129 pc/eo.pc \
130 pc/eolian.pc \
131 pc/efl.pc \
132 pc/emile.pc \
133 pc/eet.pc \
134 pc/evas.pc \
135 pc/ecore.pc \
136 pc/ecore-con.pc \
137 pc/ecore-ipc.pc \
138 pc/ecore-file.pc \
139 pc/ecore-input.pc \
140 pc/ecore-input-evas.pc \
141 pc/ecore-imf.pc \
142 pc/ecore-imf-evas.pc \
143 pc/ecore-evas.pc \
144 pc/ecore-avahi.pc \
145 pc/ector.pc \
146 pc/embryo.pc \
147 pc/eio.pc \
148 pc/eldbus.pc \
149 pc/efreet.pc \
150 pc/efreet-mime.pc \
151 pc/efreet-trash.pc \
152 pc/edje.pc \
153 pc/emotion.pc \
154 pc/ethumb.pc \
155 pc/ethumb_client.pc \
156 pc/elocation.pc
157
158 if HAVE_CXX11
159 pkgconfig_DATA += \
160 pc/eina-cxx.pc \
161 pc/evas-cxx.pc \
162 pc/ecore-cxx.pc \
163 pc/efl-cxx.pc \
164 pc/eolian-cxx.pc \
165 pc/edje-cxx.pc \
166 pc/eet-cxx.pc \
167 pc/eo-cxx.pc \
168 pc/eio-cxx.pc
169 endif
170
171 if HAVE_ELUA
172 pkgconfig_DATA += pc/elua.pc
173 endif
174
175 if HAVE_JS
176 pkgconfig_DATA += \
177 pc/eolian-js.pc \
178 pc/efl-js.pc \
179 pc/eo-js.pc \
180 pc/eina-js.pc
181 endif
182
183 if BUILD_ENGINE_SOFTWARE_X11
184 pkgconfig_DATA += pc/evas-software-x11.pc
185 endif
186
187 if BUILD_ENGINE_FB
188 pkgconfig_DATA += pc/evas-fb.pc
189 endif
190
191 if BUILD_ENGINE_BUFFER
192 pkgconfig_DATA += pc/evas-software-buffer.pc
193 endif
194
195 if BUILD_ENGINE_GL_X11
196 pkgconfig_DATA += pc/evas-opengl-x11.pc
197 endif
198
199 if BUILD_ENGINE_GL_SDL
200 pkgconfig_DATA += pc/evas-opengl-sdl.pc
201 endif
202
203 if BUILD_ENGINE_GL_COCOA
204 pkgconfig_DATA += pc/evas-opengl-cocoa.pc
205 endif
206
207 if BUILD_ENGINE_SOFTWARE_GDI
208 pkgconfig_DATA += pc/evas-software-gdi.pc
209 endif
210
211 if BUILD_ENGINE_SOFTWARE_DDRAW
212 pkgconfig_DATA += pc/evas-software-ddraw.pc
213 endif
214
215 if BUILD_ENGINE_PSL1GHT
216 pkgconfig_DATA += pc/evas-psl1ght.pc
217 endif
218
219 if BUILD_ENGINE_WAYLAND_SHM
220 pkgconfig_DATA += pc/evas-wayland-shm.pc
221 endif
222
223 if BUILD_ENGINE_WAYLAND_EGL
224 pkgconfig_DATA += pc/evas-wayland-egl.pc
225 endif
226
227 if BUILD_ENGINE_DRM
228 pkgconfig_DATA += pc/evas-drm.pc
229 endif
230
231 if HAVE_ECORE_COCOA
232 pkgconfig_DATA += pc/ecore-cocoa.pc
233 endif
234
235 if HAVE_ECORE_FB
236 pkgconfig_DATA += pc/ecore-fb.pc
237 endif
238
239 if HAVE_ECORE_DRM
240 pkgconfig_DATA += pc/ecore-drm.pc
241 endif
242
243 if HAVE_PS3
244 pkgconfig_DATA += pc/ecore-psl1ght.pc
245 endif
246
247 if HAVE_ECORE_SDL
248 pkgconfig_DATA += pc/ecore-sdl.pc
249 endif
250
251 if HAVE_ECORE_WAYLAND
252 pkgconfig_DATA += pc/ecore-wayland.pc
253 endif
254
255 if HAVE_ECORE_WL2
256 pkgconfig_DATA += pc/ecore-wl2.pc
257 endif
258
259 if HAVE_WIN32
260 pkgconfig_DATA += pc/ecore-win32.pc
261 endif
262
263 if HAVE_ECORE_X
264 pkgconfig_DATA += pc/ecore-x.pc
265 endif
266
267 if HAVE_EEZE
268 pkgconfig_DATA += pc/eeze.pc
269 endif
270
271 if HAVE_EPHYSICS
272 pkgconfig_DATA += pc/ephysics.pc
273 endif
274
275 if HAVE_ECORE_AUDIO
276 pkgconfig_DATA += pc/ecore-audio.pc pc/ecore-audio-cxx.pc
277 endif
278
279 if HAVE_ECORE_BUFFER
280 pkgconfig_DATA += pc/ecore-buffer.pc
281 endif
282
283 # Cmake configs:
284 efl_cmakeconfigdir = $(libdir)/cmake/Efl/
285 efl_cmakeconfig_DATA = \
286 cmakeconfig/EflConfig.cmake \
287 cmakeconfig/EflConfigVersion.cmake
288
289 eina_cmakeconfigdir = $(libdir)/cmake/Eina/
290 eina_cmakeconfig_DATA = \
291 cmakeconfig/EinaConfig.cmake \
292 cmakeconfig/EinaConfigVersion.cmake
293
294 eio_cmakeconfigdir = $(libdir)/cmake/Eio/
295 eio_cmakeconfig_DATA = \
296 cmakeconfig/EioConfig.cmake \
297 cmakeconfig/EioConfigVersion.cmake
298
299 eeze_cmakeconfigdir = $(libdir)/cmake/Eeze/
300 eeze_cmakeconfig_DATA = \
301 cmakeconfig/EezeConfig.cmake \
302 cmakeconfig/EezeConfigVersion.cmake
303
304 eo_cmakeconfigdir = $(libdir)/cmake/Eo/
305 eo_cmakeconfig_DATA = \
306 cmakeconfig/EoConfig.cmake \
307 cmakeconfig/EoConfigVersion.cmake
308
309 eolian_cmakeconfigdir = $(libdir)/cmake/Eolian/
310 eolian_cmakeconfig_DATA = \
311 cmakeconfig/EolianConfig.cmake \
312 cmakeconfig/EolianConfigVersion.cmake \
313 cmakeconfig/EolianHelper.cmake
314
315 eolian_cxx_cmakeconfigdir = $(libdir)/cmake/EolianCxx/
316 eolian_cxx_cmakeconfig_DATA = \
317 cmakeconfig/EolianCxxConfig.cmake \
318 cmakeconfig/EolianCxxConfigVersion.cmake
319
320 eina_cxx_cmakeconfigdir = $(libdir)/cmake/EinaCxx/
321 eina_cxx_cmakeconfig_DATA = \
322 cmakeconfig/EinaCxxConfig.cmake \
323 cmakeconfig/EinaCxxConfigVersion.cmake
324
325 eo_cxx_cmakeconfigdir = $(libdir)/cmake/EoCxx/
326 eo_cxx_cmakeconfig_DATA = \
327 cmakeconfig/EoCxxConfig.cmake \
328 cmakeconfig/EoCxxConfigVersion.cmake
329
330 ecore_cxx_cmakeconfigdir = $(libdir)/cmake/EcoreCxx/
331 ecore_cxx_cmakeconfig_DATA = \
332 cmakeconfig/EcoreCxxConfig.cmake \
333 cmakeconfig/EcoreCxxConfigVersion.cmake
334
335 evas_cxx_cmakeconfigdir = $(libdir)/cmake/EvasCxx/
336 evas_cxx_cmakeconfig_DATA = \
337 cmakeconfig/EvasCxxConfig.cmake \
338 cmakeconfig/EvasCxxConfigVersion.cmake
339
340 eet_cxx_cmakeconfigdir = $(libdir)/cmake/EetCxx/
341 eet_cxx_cmakeconfig_DATA = \
342 cmakeconfig/EetCxxConfig.cmake \
343 cmakeconfig/EetCxxConfigVersion.cmake
344
345 eet_cmakeconfigdir = $(libdir)/cmake/Eet/
346 eet_cmakeconfig_DATA = \
347 cmakeconfig/EetConfig.cmake \
348 cmakeconfig/EetConfigVersion.cmake
349
350 evas_cmakeconfigdir =  $(libdir)/cmake/Evas/
351 evas_cmakeconfig_DATA = \
352 cmakeconfig/EvasConfig.cmake \
353 cmakeconfig/EvasConfigVersion.cmake
354
355 ecore_cmakeconfigdir =  $(libdir)/cmake/Ecore/
356 ecore_cmakeconfig_DATA = \
357 cmakeconfig/EcoreConfig.cmake \
358 cmakeconfig/EcoreConfigVersion.cmake
359
360 edje_cmakeconfigdir =  $(libdir)/cmake/Edje/
361 edje_cmakeconfig_DATA = \
362 cmakeconfig/EdjeConfig.cmake \
363 cmakeconfig/EdjeConfigVersion.cmake
364
365 eldbus_cmakeconfigdir = $(libdir)/cmake/Eldbus/
366 eldbus_cmakeconfig_DATA = \
367 cmakeconfig/EldbusConfig.cmake \
368 cmakeconfig/EldbusConfigVersion.cmake
369
370 efreet_cmakeconfigdir =  $(libdir)/cmake/Efreet/
371 efreet_cmakeconfig_DATA = \
372 cmakeconfig/EfreetConfig.cmake \
373 cmakeconfig/EfreetConfigVersion.cmake
374
375 ethumb_cmakeconfigdir =  $(libdir)/cmake/Ethumb/
376 ethumb_cmakeconfig_DATA = \
377 cmakeconfig/EthumbConfig.cmake \
378 cmakeconfig/EthumbConfigVersion.cmake
379
380 ethumbclient_cmakeconfigdir =  $(libdir)/cmake/EthumbClient/
381 ethumbclient_cmakeconfig_DATA = \
382 cmakeconfig/EthumbClientConfig.cmake \
383 cmakeconfig/EthumbClientConfigVersion.cmake
384
385 emotion_cmakeconfigdir =  $(libdir)/cmake/Emotion/
386 emotion_cmakeconfig_DATA = \
387 cmakeconfig/EmotionConfig.cmake \
388 cmakeconfig/EmotionConfigVersion.cmake
389
390 elua_cmakeconfigdir = $(libdir)/cmake/Elua
391 elua_cmakeconfig_DATA = \
392 cmakeconfig/EluaConfig.cmake \
393 cmakeconfig/EluaConfigVersion.cmake
394
395 emile_cmakeconfigdir = $(libdir)/cmake/Emile
396 emile_cmakeconfig_DATA = \
397 cmakeconfig/EmileConfig.cmake \
398 cmakeconfig/EmileConfigVersion.cmake
399
400 # D-Bus services:
401
402 servicedir = @dbusservicedir@
403 service_DATA = \
404 dbus-services/org.enlightenment.Ethumb.service
405
406 if HAVE_SYSTEMD_USER_SESSION
407 systemdunitsdir = @USER_SESSION_DIR@
408 systemdunits_DATA = \
409 systemd-services/ethumb.service
410 endif
411 EXTRA_DIST += $(systemdunits_DATA)
412
413
414 .PHONY: doc benchmark examples install-examples
415
416 # Documentation
417
418 doc:
419         @echo "entering doc/"
420         $(MAKE) $(AM_MAKEFLAGS) -C doc doc
421
422 # Unit tests
423
424 if EFL_ENABLE_COVERAGE
425
426 lcov-reset:
427         @rm -rf $(top_builddir)/coverage
428         @find $(top_builddir) -name "*.gcda" -delete
429         @lcov --zerocounters --directory $(top_builddir)
430
431 lcov-report:
432         $(MKDIR_P) $(top_builddir)/coverage
433         lcov --capture --compat-libtool --no-external --config-file .lcov-config --output-file $(top_builddir)/coverage/coverage.info --directory $(top_builddir)
434         lcov --remove $(top_builddir)/coverage/coverage.info '*.h' --output-file $(top_builddir)/coverage/coverage.cleaned.info
435         lcov --remove $(top_builddir)/coverage/coverage.cleaned.info '*/tests/*' --output-file $(top_builddir)/coverage/coverage.cleaned2.info
436         lcov --remove $(top_builddir)/coverage/coverage.cleaned2.info '*NONE*' --output-file $(top_builddir)/coverage/coverage.cleaned3.info
437         genhtml --legend -t "$(PACKAGE_STRING)" -o $(top_builddir)/coverage/html $(top_builddir)/coverage/coverage.cleaned3.info
438         @echo "Coverage Report at $(top_builddir)/coverage/html"
439
440 endif
441
442 if EFL_ENABLE_TESTS
443
444 lcov-check:
445 if EFL_ENABLE_COVERAGE
446         @$(MAKE) $(AM_MAKEFLAGS) lcov-reset
447 endif
448         @$(MAKE) $(AM_MAKEFLAGS) check
449 if EFL_ENABLE_COVERAGE
450         @$(MAKE) $(AM_MAKEFLAGS) lcov-report
451 endif
452
453 check-build:
454         @$(MAKE) $(AM_MAKEFLAGS) -C src check-build
455 endif
456
457 # benchmark
458
459 benchmark:
460         @$(MAKE) $(AM_MAKEFLAGS) -C src benchmark
461         $(MKDIR_P) benchmark
462         @cd benchmark && ../src/benchmarks/eo/eo_bench$(EXEEXT) `date +%F_%s`
463
464 # examples
465
466 examples:
467         @$(MAKE) $(AM_MAKEFLAGS) -C src examples
468
469 install-examples:
470         @$(MAKE) $(AM_MAKEFLAGS) -C src install-examples
471
472 pkgbuild::
473         @echo "making arch packages"
474         makepkg -f -p $(top_builddir)/pkgbuild/PKGBUILD
475
476 # cleaning
477
478 clean-local:
479         rm -rf benchmark coverage