efl: distcheck will run tests and compile all examples.

Tests are disabled by default, but they should be mandatory for
distcheck. So should be examples, we should have them to at least
compile.

As there is no way to force "make distcheck" to run "make examples",
I've created --enable-always-build-examples to make examples regular
noinst_PROGRAMS, being always compiled. distcheck will use that
option.



SVN revision: 82276
This commit is contained in:
Gustavo Sverzut Barbieri 2013-01-05 14:41:14 +00:00
parent d9858fc223
commit 7499e9dee0
12 changed files with 57 additions and 0 deletions

View File

@ -1,4 +1,5 @@
ACLOCAL_AMFLAGS = -I m4
AM_DISTCHECK_CONFIGURE_FLAGS = --with-tests=regular --enable-always-build-examples
SUBDIRS = src data doc

View File

@ -3348,6 +3348,20 @@ AC_SUBST([want_physics])
EFL_LIB_END([Edje])
#### End of Edje
AC_ARG_ENABLE([always-build-examples],
[AC_HELP_STRING([--enable-always-build-examples],
[always build examples. @<:@default=disabled@:>@])],
[
if test "x${enableval}" = "xyes" ; then
want_always_build_examples="yes"
else
want_always_build_examples="no"
fi
],
[want_always_build_examples="no"])
AM_CONDITIONAL([ALWAYS_BUILD_EXAMPLES], [test "${want_always_build_examples}" = "yes"])
AC_CONFIG_FILES([
Makefile
data/Makefile

View File

@ -52,3 +52,7 @@ EXTRA_DIST = strlog
clean-local:
rm -rf *.gcno ..\#..\#src\#*.gcov *.gcda
if ALWAYS_BUILD_EXAMPLES
noinst_PROGRAMS = $(EXTRA_PROGRAMS)
endif

View File

@ -26,3 +26,7 @@ $(top_builddir)/src/lib/eina/libeina.la \
clean-local:
rm -rf *.gcno ..\#..\#src\#*.gcov *.gcda
if ALWAYS_BUILD_EXAMPLES
noinst_PROGRAMS = $(EXTRA_PROGRAMS)
endif

View File

@ -267,3 +267,7 @@ uninstall-local:
for f in $(SRCS) $(DATA_FILES); do \
rm -f $(datadir)/ecore/examples/$$f ; \
done
if ALWAYS_BUILD_EXAMPLES
noinst_PROGRAMS = $(EXTRA_PROGRAMS)
endif

View File

@ -71,3 +71,7 @@ uninstall-local:
for f in $(SRCS) ; do \
rm -f $(datadir)/edbus/examples/$$f ; \
done
if ALWAYS_BUILD_EXAMPLES
noinst_PROGRAMS = $(EXTRA_PROGRAMS)
endif

View File

@ -209,3 +209,8 @@ uninstall-local:
for f in $(SRCS) $(DIST_EDCS) $(DATA_FILES); do \
rm -f $(datadir)/edje/examples/$$f ; \
done
if ALWAYS_BUILD_EXAMPLES
noinst_PROGRAMS = $(EXTRA_PROGRAMS)
nodist_pkgdata_DATA = $(EDJS)
endif

View File

@ -52,3 +52,7 @@ uninstall-local:
for f in $(SRCS) ; do \
rm -f $(datadir)/eet/examples/$$f ; \
done
if ALWAYS_BUILD_EXAMPLES
noinst_PROGRAMS = $(EXTRA_PROGRAMS)
endif

View File

@ -149,3 +149,7 @@ uninstall-local:
done
EXTRA_DIST = addr_book.txt chat.xml
if ALWAYS_BUILD_EXAMPLES
noinst_PROGRAMS = $(EXTRA_PROGRAMS)
endif

View File

@ -51,3 +51,7 @@ uninstall-local:
for f in $(SRCS) ; do \
rm -f $(datadir)/eio/examples/$$f ; \
done
if ALWAYS_BUILD_EXAMPLES
noinst_PROGRAMS = $(EXTRA_PROGRAMS)
endif

View File

@ -87,3 +87,7 @@ uninstall-local:
for f in $(SRCS) ; do \
rm -f $(datadir)/ephysics/examples/$$f ; \
done
if ALWAYS_BUILD_EXAMPLES
noinst_PROGRAMS = $(EXTRA_PROGRAMS)
endif

View File

@ -220,3 +220,8 @@ uninstall-local:
done
EXTRA_DIST = $(EDCS) $(DATA_FILES)
if ALWAYS_BUILD_EXAMPLES
noinst_PROGRAMS = $(EXTRA_PROGRAMS)
nodist_pkgdata_DATA = $(EDJS)
endif