forked from enlightenment/efl
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:
parent
d9858fc223
commit
7499e9dee0
|
@ -1,4 +1,5 @@
|
||||||
ACLOCAL_AMFLAGS = -I m4
|
ACLOCAL_AMFLAGS = -I m4
|
||||||
|
AM_DISTCHECK_CONFIGURE_FLAGS = --with-tests=regular --enable-always-build-examples
|
||||||
|
|
||||||
SUBDIRS = src data doc
|
SUBDIRS = src data doc
|
||||||
|
|
||||||
|
|
14
configure.ac
14
configure.ac
|
@ -3348,6 +3348,20 @@ AC_SUBST([want_physics])
|
||||||
EFL_LIB_END([Edje])
|
EFL_LIB_END([Edje])
|
||||||
#### End of 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([
|
AC_CONFIG_FILES([
|
||||||
Makefile
|
Makefile
|
||||||
data/Makefile
|
data/Makefile
|
||||||
|
|
|
@ -52,3 +52,7 @@ EXTRA_DIST = strlog
|
||||||
|
|
||||||
clean-local:
|
clean-local:
|
||||||
rm -rf *.gcno ..\#..\#src\#*.gcov *.gcda
|
rm -rf *.gcno ..\#..\#src\#*.gcov *.gcda
|
||||||
|
|
||||||
|
if ALWAYS_BUILD_EXAMPLES
|
||||||
|
noinst_PROGRAMS = $(EXTRA_PROGRAMS)
|
||||||
|
endif
|
||||||
|
|
|
@ -26,3 +26,7 @@ $(top_builddir)/src/lib/eina/libeina.la \
|
||||||
|
|
||||||
clean-local:
|
clean-local:
|
||||||
rm -rf *.gcno ..\#..\#src\#*.gcov *.gcda
|
rm -rf *.gcno ..\#..\#src\#*.gcov *.gcda
|
||||||
|
|
||||||
|
if ALWAYS_BUILD_EXAMPLES
|
||||||
|
noinst_PROGRAMS = $(EXTRA_PROGRAMS)
|
||||||
|
endif
|
||||||
|
|
|
@ -267,3 +267,7 @@ uninstall-local:
|
||||||
for f in $(SRCS) $(DATA_FILES); do \
|
for f in $(SRCS) $(DATA_FILES); do \
|
||||||
rm -f $(datadir)/ecore/examples/$$f ; \
|
rm -f $(datadir)/ecore/examples/$$f ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if ALWAYS_BUILD_EXAMPLES
|
||||||
|
noinst_PROGRAMS = $(EXTRA_PROGRAMS)
|
||||||
|
endif
|
||||||
|
|
|
@ -71,3 +71,7 @@ uninstall-local:
|
||||||
for f in $(SRCS) ; do \
|
for f in $(SRCS) ; do \
|
||||||
rm -f $(datadir)/edbus/examples/$$f ; \
|
rm -f $(datadir)/edbus/examples/$$f ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if ALWAYS_BUILD_EXAMPLES
|
||||||
|
noinst_PROGRAMS = $(EXTRA_PROGRAMS)
|
||||||
|
endif
|
||||||
|
|
|
@ -209,3 +209,8 @@ uninstall-local:
|
||||||
for f in $(SRCS) $(DIST_EDCS) $(DATA_FILES); do \
|
for f in $(SRCS) $(DIST_EDCS) $(DATA_FILES); do \
|
||||||
rm -f $(datadir)/edje/examples/$$f ; \
|
rm -f $(datadir)/edje/examples/$$f ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if ALWAYS_BUILD_EXAMPLES
|
||||||
|
noinst_PROGRAMS = $(EXTRA_PROGRAMS)
|
||||||
|
nodist_pkgdata_DATA = $(EDJS)
|
||||||
|
endif
|
||||||
|
|
|
@ -52,3 +52,7 @@ uninstall-local:
|
||||||
for f in $(SRCS) ; do \
|
for f in $(SRCS) ; do \
|
||||||
rm -f $(datadir)/eet/examples/$$f ; \
|
rm -f $(datadir)/eet/examples/$$f ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if ALWAYS_BUILD_EXAMPLES
|
||||||
|
noinst_PROGRAMS = $(EXTRA_PROGRAMS)
|
||||||
|
endif
|
||||||
|
|
|
@ -149,3 +149,7 @@ uninstall-local:
|
||||||
done
|
done
|
||||||
|
|
||||||
EXTRA_DIST = addr_book.txt chat.xml
|
EXTRA_DIST = addr_book.txt chat.xml
|
||||||
|
|
||||||
|
if ALWAYS_BUILD_EXAMPLES
|
||||||
|
noinst_PROGRAMS = $(EXTRA_PROGRAMS)
|
||||||
|
endif
|
||||||
|
|
|
@ -51,3 +51,7 @@ uninstall-local:
|
||||||
for f in $(SRCS) ; do \
|
for f in $(SRCS) ; do \
|
||||||
rm -f $(datadir)/eio/examples/$$f ; \
|
rm -f $(datadir)/eio/examples/$$f ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if ALWAYS_BUILD_EXAMPLES
|
||||||
|
noinst_PROGRAMS = $(EXTRA_PROGRAMS)
|
||||||
|
endif
|
||||||
|
|
|
@ -87,3 +87,7 @@ uninstall-local:
|
||||||
for f in $(SRCS) ; do \
|
for f in $(SRCS) ; do \
|
||||||
rm -f $(datadir)/ephysics/examples/$$f ; \
|
rm -f $(datadir)/ephysics/examples/$$f ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if ALWAYS_BUILD_EXAMPLES
|
||||||
|
noinst_PROGRAMS = $(EXTRA_PROGRAMS)
|
||||||
|
endif
|
||||||
|
|
|
@ -220,3 +220,8 @@ uninstall-local:
|
||||||
done
|
done
|
||||||
|
|
||||||
EXTRA_DIST = $(EDCS) $(DATA_FILES)
|
EXTRA_DIST = $(EDCS) $(DATA_FILES)
|
||||||
|
|
||||||
|
if ALWAYS_BUILD_EXAMPLES
|
||||||
|
noinst_PROGRAMS = $(EXTRA_PROGRAMS)
|
||||||
|
nodist_pkgdata_DATA = $(EDJS)
|
||||||
|
endif
|
||||||
|
|
Loading…
Reference in New Issue