build: Make sure xgettext_wrapper.sh gets packaged into the tarball
[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 old/ChangeLog.ecore \
64 old/ChangeLog.edje \
65 old/ChangeLog.eet \
66 old/ChangeLog.eeze \
67 old/ChangeLog.efreet \
68 old/ChangeLog.eina \
69 old/ChangeLog.eio \
70 old/ChangeLog.embryo \
71 old/ChangeLog.emotion \
72 old/ChangeLog.escape \
73 old/ChangeLog.ethumb \
74 old/ChangeLog.evas \
75 old/ChangeLog.evil \
76 old/ChangeLog.evil.0 \
77 old/NEWS.ecore \
78 old/NEWS.edje \
79 old/NEWS.eet \
80 old/NEWS.eeze \
81 old/NEWS.efreet \
82 old/NEWS.eina \
83 old/NEWS.eio \
84 old/NEWS.embryo \
85 old/NEWS.emotion \
86 old/NEWS.escape \
87 old/NEWS.ethumb \
88 old/NEWS.evas \
89 old/NEWS.evil \
90 old/README.ecore \
91 old/README.eldbus \
92 old/README.edje \
93 old/README.eet \
94 old/README.eeze \
95 old/README.efreet \
96 old/README.eina \
97 old/README.eio \
98 old/README.embryo \
99 old/README.emotion \
100 old/README.ephysics \
101 old/README.escape \
102 old/README.ethumb \
103 old/README.evas \
104 old/README.evil \
105 spec/efl.spec \
106 pkgbuild/PKGBUILD \
107 pkgbuild/efl.install \
108 po/xgettext_wrapper.sh \
109 po/Makevars.in
110
111 pkgconfigdir = $(libdir)/pkgconfig
112 pkgconfig_DATA =
113
114 if HAVE_WINDOWS
115 pkgconfig_DATA += pc/evil.pc
116 endif
117
118 if HAVE_PS3
119 pkgconfig_DATA += pc/escape.pc
120 endif
121
122 pkgconfig_DATA += \
123 pc/eina.pc \
124 pc/eo.pc \
125 pc/eolian.pc \
126 pc/eet.pc \
127 pc/evas.pc \
128 pc/ecore.pc \
129 pc/ecore-con.pc \
130 pc/ecore-ipc.pc \
131 pc/ecore-file.pc \
132 pc/ecore-input.pc \
133 pc/ecore-input-evas.pc \
134 pc/ecore-imf.pc \
135 pc/ecore-imf-evas.pc \
136 pc/ecore-evas.pc \
137 pc/ecore-avahi.pc \
138 pc/embryo.pc \
139 pc/eio.pc \
140 pc/eldbus.pc \
141 pc/efreet.pc \
142 pc/efreet-mime.pc \
143 pc/efreet-trash.pc \
144 pc/edje.pc \
145 pc/emotion.pc \
146 pc/ethumb.pc \
147 pc/ethumb_client.pc
148
149 if HAVE_CXX11
150 pkgconfig_DATA += \
151 pc/eina-cxx.pc \
152 pc/evas-cxx.pc \
153 pc/ecore-cxx.pc \
154 pc/eolian-cxx.pc \
155 pc/edje-cxx.pc \
156 pc/eet-cxx.pc \
157 pc/eo-cxx.pc
158 endif
159
160 if BUILD_ENGINE_SOFTWARE_X11
161 pkgconfig_DATA += pc/evas-software-x11.pc
162 endif
163
164 if BUILD_ENGINE_FB
165 pkgconfig_DATA += pc/evas-fb.pc
166 endif
167
168 if BUILD_ENGINE_BUFFER
169 pkgconfig_DATA += pc/evas-software-buffer.pc
170 endif
171
172 if BUILD_ENGINE_GL_X11
173 pkgconfig_DATA += pc/evas-opengl-x11.pc
174 endif
175
176 if BUILD_ENGINE_GL_SDL
177 pkgconfig_DATA += pc/evas-opengl-sdl.pc
178 endif
179
180 if BUILD_ENGINE_GL_COCOA
181 pkgconfig_DATA += pc/evas-opengl-cocoa.pc
182 endif
183
184 if BUILD_ENGINE_SOFTWARE_GDI
185 pkgconfig_DATA += pc/evas-software-gdi.pc
186 endif
187
188 if BUILD_ENGINE_SOFTWARE_DDRAW
189 pkgconfig_DATA += pc/evas-software-ddraw.pc
190 endif
191
192 if BUILD_ENGINE_PSL1GHT
193 pkgconfig_DATA += pc/evas-psl1ght.pc
194 endif
195
196 if BUILD_ENGINE_WAYLAND_SHM
197 pkgconfig_DATA += pc/evas-wayland-shm.pc
198 endif
199
200 if BUILD_ENGINE_WAYLAND_EGL
201 pkgconfig_DATA += pc/evas-wayland-egl.pc
202 endif
203
204 if BUILD_ENGINE_DRM
205 pkgconfig_DATA += pc/evas-drm.pc
206 endif
207
208 if HAVE_ECORE_COCOA
209 pkgconfig_DATA += pc/ecore-cocoa.pc
210 endif
211
212 if HAVE_ECORE_FB
213 pkgconfig_DATA += pc/ecore-fb.pc
214 endif
215
216 if HAVE_ECORE_DRM
217 pkgconfig_DATA += pc/ecore-drm.pc
218 endif
219
220 if HAVE_PS3
221 pkgconfig_DATA += pc/ecore-psl1ght.pc
222 endif
223
224 if HAVE_ECORE_SDL
225 pkgconfig_DATA += pc/ecore-sdl.pc
226 endif
227
228 if HAVE_ECORE_WAYLAND
229 pkgconfig_DATA += pc/ecore-wayland.pc
230 endif
231
232 if HAVE_WIN32
233 pkgconfig_DATA += pc/ecore-win32.pc
234 endif
235
236 if HAVE_ECORE_X
237 pkgconfig_DATA += pc/ecore-x.pc
238 endif
239
240 if HAVE_EEZE
241 pkgconfig_DATA += pc/eeze.pc
242 endif
243
244 if HAVE_EPHYSICS
245 pkgconfig_DATA += pc/ephysics.pc
246 endif
247
248 if HAVE_ECORE_AUDIO
249 pkgconfig_DATA += pc/ecore-audio.pc pc/ecore-audio-cxx.pc
250 endif
251
252 # Cmake configs:
253 eina_cmakeconfigdir = $(libdir)/cmake/Eina/
254 eina_cmakeconfig_DATA = \
255 cmakeconfig/EinaConfig.cmake \
256 cmakeconfig/EinaConfigVersion.cmake
257
258 eeze_cmakeconfigdir = $(libdir)/cmake/Eeze/
259 eeze_cmakeconfig_DATA = \
260 cmakeconfig/EezeConfig.cmake \
261 cmakeconfig/EezeConfigVersion.cmake
262
263 eo_cmakeconfigdir = $(libdir)/cmake/Eo/
264 eo_cmakeconfig_DATA = \
265 cmakeconfig/EoConfig.cmake \
266 cmakeconfig/EoConfigVersion.cmake
267
268 eolian_cmakeconfigdir = $(libdir)/cmake/Eolian/
269 eolian_cmakeconfig_DATA = \
270 cmakeconfig/EolianConfig.cmake \
271 cmakeconfig/EolianConfigVersion.cmake
272
273 eolian_cxx_cmakeconfigdir = $(libdir)/cmake/EolianCxx/
274 eolian_cxx_cmakeconfig_DATA = \
275 cmakeconfig/EolianCxxConfig.cmake \
276 cmakeconfig/EolianCxxConfigVersion.cmake
277
278 eina_cxx_cmakeconfigdir = $(libdir)/cmake/EinaCxx/
279 eina_cxx_cmakeconfig_DATA = \
280 cmakeconfig/EinaCxxConfig.cmake \
281 cmakeconfig/EinaCxxConfigVersion.cmake
282
283 eo_cxx_cmakeconfigdir = $(libdir)/cmake/EoCxx/
284 eo_cxx_cmakeconfig_DATA = \
285 cmakeconfig/EoCxxConfig.cmake \
286 cmakeconfig/EoCxxConfigVersion.cmake
287
288 ecore_cxx_cmakeconfigdir = $(libdir)/cmake/EcoreCxx/
289 ecore_cxx_cmakeconfig_DATA = \
290 cmakeconfig/EcoreCxxConfig.cmake \
291 cmakeconfig/EcoreCxxConfigVersion.cmake
292
293 evas_cxx_cmakeconfigdir = $(libdir)/cmake/EvasCxx/
294 evas_cxx_cmakeconfig_DATA = \
295 cmakeconfig/EvasCxxConfig.cmake \
296 cmakeconfig/EvasCxxConfigVersion.cmake
297
298 eet_cxx_cmakeconfigdir = $(libdir)/cmake/EetCxx/
299 eet_cxx_cmakeconfig_DATA = \
300 cmakeconfig/EetCxxConfig.cmake \
301 cmakeconfig/EetCxxConfigVersion.cmake
302
303 eet_cmakeconfigdir = $(libdir)/cmake/Eet/
304 eet_cmakeconfig_DATA = \
305 cmakeconfig/EetConfig.cmake \
306 cmakeconfig/EetConfigVersion.cmake
307
308 evas_cmakeconfigdir =  $(libdir)/cmake/Evas/
309 evas_cmakeconfig_DATA = \
310 cmakeconfig/EvasConfig.cmake \
311 cmakeconfig/EvasConfigVersion.cmake
312
313 ecore_cmakeconfigdir =  $(libdir)/cmake/Ecore/
314 ecore_cmakeconfig_DATA = \
315 cmakeconfig/EcoreConfig.cmake \
316 cmakeconfig/EcoreConfigVersion.cmake
317
318 edje_cmakeconfigdir =  $(libdir)/cmake/Edje/
319 edje_cmakeconfig_DATA = \
320 cmakeconfig/EdjeConfig.cmake \
321 cmakeconfig/EdjeConfigVersion.cmake
322
323 eldbus_cmakeconfigdir = $(libdir)/cmake/Eldbus/
324 eldbus_cmakeconfig_DATA = \
325 cmakeconfig/EldbusConfig.cmake \
326 cmakeconfig/EldbusConfigVersion.cmake
327
328 efreet_cmakeconfigdir =  $(libdir)/cmake/Efreet/
329 efreet_cmakeconfig_DATA = \
330 cmakeconfig/EfreetConfig.cmake \
331 cmakeconfig/EfreetConfigVersion.cmake
332
333 ethumb_cmakeconfigdir =  $(libdir)/cmake/Ethumb/
334 ethumb_cmakeconfig_DATA = \
335 cmakeconfig/EthumbConfig.cmake \
336 cmakeconfig/EthumbConfigVersion.cmake
337
338 ethumbclient_cmakeconfigdir =  $(libdir)/cmake/EthumbClient/
339 ethumbclient_cmakeconfig_DATA = \
340 cmakeconfig/EthumbClientConfig.cmake \
341 cmakeconfig/EthumbClientConfigVersion.cmake
342
343 emotion_cmakeconfigdir =  $(libdir)/cmake/Emotion/
344 emotion_cmakeconfig_DATA = \
345 cmakeconfig/EmotionConfig.cmake \
346 cmakeconfig/EmotionConfigVersion.cmake
347
348
349 # D-Bus services:
350
351 servicedir = @dbusservicedir@
352 service_DATA = \
353 dbus-services/org.enlightenment.Efreet.service \
354 dbus-services/org.enlightenment.Ethumb.service
355
356 if HAVE_SYSTEMD_USER_SESSION
357 systemdunitsdir = @USER_SESSION_DIR@
358 systemdunits_DATA = \
359 systemd-services/efreet.service \
360 systemd-services/ethumb.service
361 endif
362 EXTRA_DIST += $(systemdunits_DATA)
363
364
365 .PHONY: doc benchmark examples install-examples
366
367 # Documentation
368
369 doc:
370         @echo "entering doc/"
371         $(MAKE) $(AM_MAKEFLAGS) -C doc doc
372
373 # Unit tests
374
375 if EFL_ENABLE_COVERAGE
376
377 lcov-reset:
378         @rm -rf $(top_builddir)/coverage
379         @find $(top_builddir) -name "*.gcda" -delete
380         @lcov --zerocounters --directory $(top_builddir)
381
382 lcov-report:
383         @mkdir $(top_builddir)/coverage
384         lcov --capture --compat-libtool --no-external --output-file $(top_builddir)/coverage/coverage.info --directory $(top_builddir) --base-directory $(top_srcdir)/src/
385         lcov --remove $(top_builddir)/coverage/coverage.info '*.h' --output-file $(top_builddir)/coverage/coverage.cleaned.info
386         lcov --remove $(top_builddir)/coverage/coverage.cleaned.info '*/tests/*' --output-file $(top_builddir)/coverage/coverage.cleaned2.info
387         lcov --remove $(top_builddir)/coverage/coverage.cleaned2.info '*NONE*' --output-file $(top_builddir)/coverage/coverage.cleaned3.info
388         genhtml --branch-coverage -t "$(PACKAGE_STRING)" -o $(top_builddir)/coverage/html $(top_builddir)/coverage/coverage.cleaned3.info
389         @echo "Coverage Report at $(top_builddir)/coverage/html"
390
391 endif
392
393 if EFL_ENABLE_TESTS
394
395 lcov-check:
396 if EFL_ENABLE_COVERAGE
397         @$(MAKE) $(AM_MAKEFLAGS) lcov-reset
398 endif
399         @$(MAKE) $(AM_MAKEFLAGS) check
400 if EFL_ENABLE_COVERAGE
401         @$(MAKE) $(AM_MAKEFLAGS) lcov-report
402 endif
403 endif
404
405 # benchmark
406
407 benchmark:
408         @$(MAKE) $(AM_MAKEFLAGS) -C src benchmark
409         @mkdir benchmark || true
410         @cd benchmark && ../src/benchmarks/eo/eo_bench$(EXEEXT) `date +%F_%s`
411
412 # examples
413
414 examples:
415         @$(MAKE) $(AM_MAKEFLAGS) -C src examples
416
417 install-examples:
418         @$(MAKE) $(AM_MAKEFLAGS) -C src install-examples
419
420 pkgbuild::
421         @echo "making arch packages"
422         makepkg -f -p $(top_builddir)/pkgbuild/PKGBUILD
423
424 # cleaning
425
426 clean-local:
427         rm -rf benchmark coverage