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