[*] Applied upstream r64554.
[profile/ivi/ecore.git] / Makefile.am
index 8d51f08..236341e 100644 (file)
@@ -2,14 +2,18 @@
 
 ACLOCAL_AMFLAGS = -I m4
 
-SUBDIRS = doc src po
+SUBDIRS = doc src
 
+if HAVE_PO
+
+SUBDIRS += po
+
+endif
 
 MAINTAINERCLEANFILES = \
 ABOUT-NLS \
 Makefile.in \
 aclocal.m4 \
-autom4te.cache \
 config.guess \
 config.h.in \
 config.h.in~ \
@@ -47,7 +51,11 @@ m4/po.m4 \
 m4/progtest.m4 \
 m4/stdint_h.m4 \
 m4/uintmax_t.m4 \
-m4/ulonglong.m4 \
+m4/ulonglong.m4
+
+if HAVE_PO
+
+MAINTAINERCLEANFILES += \
 po/boldquot.sed \
 po/en@boldquot.header \
 po/en@quot.header \
@@ -58,111 +66,129 @@ po/quot.sed \
 po/remove-potcdate.sin \
 po/Rules-quot
 
+endif
+
 bin_SCRIPTS = 
 
-EXTRA_DIST = AUTHORS COPYING COPYING-PLAIN \
-            autogen.sh ecore.supp \
-            ecore.pc.in \
-            ecore-con.pc.in \
-            ecore-config.pc.in \
-            ecore-directfb.pc.in\
-            ecore-evas.pc.in \
-            ecore-fb.pc.in \
-            ecore-file.pc.in \
-            ecore-imf.pc.in \
-            ecore-imf-evas.pc.in \
-            ecore-ipc.pc.in \
-            ecore-job.pc.in \
-            ecore-txt.pc.in \
-            ecore-x.pc.in \
-            ecore-win32.pc.in \
-            ecore-sdl.pc.in \
-            ecore-quartz.pc.in \
-            ecore-input.pc.in \
-            ecore-wince.pc.in \
-            ecore.spec.in ecore.spec
+EXTRA_DIST = \
+AUTHORS \
+COPYING \
+autogen.sh \
+ecore.supp \
+ecore.pc.in \
+ecore-con.pc.in \
+ecore-config.pc.in \
+ecore-directfb.pc.in\
+ecore-evas.pc.in \
+ecore-fb.pc.in \
+ecore-file.pc.in \
+ecore-imf.pc.in \
+ecore-imf-evas.pc.in \
+ecore-ipc.pc.in \
+ecore-x.pc.in \
+ecore-win32.pc.in \
+ecore-sdl.pc.in \
+ecore-cocoa.pc.in \
+ecore-input.pc.in \
+ecore-wince.pc.in \
+ecore.spec.in \
+ecore.spec \
+m4/ac_abstract_socket.m4 \
+m4/ac_attribute.m4 \
+m4/check_x_extension.m4 \
+m4/ecore_check_module.m4 \
+m4/ecore_check_options.m4 \
+m4/efl_doxygen.m4 \
+m4/efl_path_max.m4 \
+m4/efl_tests.m4 \
+m4/efl_threads.m4
+
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = ecore.pc
 
 if BUILD_ECORE_CON
-pcon = ecore-con.pc
+pkgconfig_DATA += ecore-con.pc
 endif
 
 if BUILD_ECORE_CONFIG
-pconfig = ecore-config.pc
+pkgconfig_DATA += ecore-config.pc
 endif
 
 if BUILD_ECORE_DIRECTFB
-pdfb = ecore-directfb.pc
+pkgconfig_DATA += ecore-directfb.pc
 endif
 
 if BUILD_ECORE_EVAS
-pevas = ecore-evas.pc
+pkgconfig_DATA += ecore-evas.pc
 endif
 
 if BUILD_ECORE_FB
-pfb = ecore-fb.pc
+pkgconfig_DATA += ecore-fb.pc
 endif
 
 if BUILD_ECORE_FILE
-pfile = ecore-file.pc
+pkgconfig_DATA += ecore-file.pc
 endif
 
 if BUILD_ECORE_IMF
-pimf = ecore-imf.pc
+pkgconfig_DATA += ecore-imf.pc
 endif
 
 if BUILD_ECORE_IMF_EVAS
-pimfevas = ecore-imf-evas.pc
+pkgconfig_DATA += ecore-imf-evas.pc
 endif
 
 if BUILD_ECORE_INPUT
-pinput = ecore-input.pc
-endif
-
-if BUILD_ECORE_IPC
-pipc = ecore-ipc.pc
+pkgconfig_DATA += ecore-input.pc
 endif
 
-if BUILD_ECORE_JOB
-pjob = ecore-job.pc
+if BUILD_ECORE_INPUT_EVAS
+pkgconfig_DATA += ecore-input-evas.pc
 endif
 
-if BUILD_ECORE_TXT
-ptxt = ecore-txt.pc
+if BUILD_ECORE_IPC
+pkgconfig_DATA += ecore-ipc.pc
 endif
 
 if BUILD_ECORE_X
-p= ecore-x.pc
+pkgconfig_DATA += ecore-x.pc
 endif
 
 if BUILD_ECORE_WIN32
-pwin32 = ecore-win32.pc
+pkgconfig_DATA += ecore-win32.pc
 endif
 
 if BUILD_ECORE_WINCE
-pwince = ecore-wince.pc
+pkgconfig_DATA += ecore-wince.pc
 endif
 
 if BUILD_ECORE_SDL
-psdl = ecore-sdl.pc
-endif
-
-if BUILD_ECORE_QUARTZ
-pquartz = ecore-quartz.pc
+pkgconfig_DATA += ecore-sdl.pc
 endif
 
-if BUILD_ECORE_X_XCB
-px = ecore-x.pc
+if BUILD_ECORE_COCOA
+pkgconfig_DATA += ecore-cocoa.pc
 endif
 
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = \
-       ecore.pc $(pcon) $(pconfig) $(pdfb) $(pevas) \
-       $(pfb) $(pfile) $(pimf) $(pimfevas) $(pinput) $(pipc) $(pjob) \
-       $(ptxt) $(px) $(pwin32) $(pwince) $(psdl) $(pquartz)
-
 .PHONY: doc
 
+# Documentation
+
 doc:
        @echo "entering doc/"
        make -C doc doc
 
+# Unit tests
+
+if EFL_ENABLE_TESTS
+
+check-local:
+       @./src/tests/ecore_suite
+
+else
+
+check-local:
+       @echo "reconfigure with --enable-tests"
+
+endif