summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-05 14:41:14 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-05 14:41:14 +0000
commit7499e9dee07dde18b767e03656b0ce4ee3938e29 (patch)
tree273fd477c0ca761b73f930b18168fb07dff1fefb
parentd9858fc22356ca4185156a933883ad5985b84be4 (diff)
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
-rw-r--r--Makefile.am1
-rw-r--r--configure.ac14
-rw-r--r--src/benchmarks/eina/Makefile.am4
-rw-r--r--src/benchmarks/eo/Makefile.am4
-rw-r--r--src/examples/ecore/Makefile.am4
-rw-r--r--src/examples/edbus/Makefile.am4
-rw-r--r--src/examples/edje/Makefile.am5
-rw-r--r--src/examples/eet/Makefile.am4
-rw-r--r--src/examples/eina/Makefile.am4
-rw-r--r--src/examples/eio/Makefile.am4
-rw-r--r--src/examples/ephysics/Makefile.am4
-rw-r--r--src/examples/evas/Makefile.am5
12 files changed, 57 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 1f266875c7..519951e51a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,5 @@
1ACLOCAL_AMFLAGS = -I m4 1ACLOCAL_AMFLAGS = -I m4
2AM_DISTCHECK_CONFIGURE_FLAGS = --with-tests=regular --enable-always-build-examples
2 3
3SUBDIRS = src data doc 4SUBDIRS = src data doc
4 5
diff --git a/configure.ac b/configure.ac
index 7182408323..ca5bb8c658 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3348,6 +3348,20 @@ AC_SUBST([want_physics])
3348EFL_LIB_END([Edje]) 3348EFL_LIB_END([Edje])
3349#### End of Edje 3349#### End of Edje
3350 3350
3351AC_ARG_ENABLE([always-build-examples],
3352 [AC_HELP_STRING([--enable-always-build-examples],
3353 [always build examples. @<:@default=disabled@:>@])],
3354 [
3355 if test "x${enableval}" = "xyes" ; then
3356 want_always_build_examples="yes"
3357 else
3358 want_always_build_examples="no"
3359 fi
3360 ],
3361 [want_always_build_examples="no"])
3362AM_CONDITIONAL([ALWAYS_BUILD_EXAMPLES], [test "${want_always_build_examples}" = "yes"])
3363
3364
3351AC_CONFIG_FILES([ 3365AC_CONFIG_FILES([
3352Makefile 3366Makefile
3353data/Makefile 3367data/Makefile
diff --git a/src/benchmarks/eina/Makefile.am b/src/benchmarks/eina/Makefile.am
index c58eab568f..a6d5c19bef 100644
--- a/src/benchmarks/eina/Makefile.am
+++ b/src/benchmarks/eina/Makefile.am
@@ -52,3 +52,7 @@ EXTRA_DIST = strlog
52 52
53clean-local: 53clean-local:
54 rm -rf *.gcno ..\#..\#src\#*.gcov *.gcda 54 rm -rf *.gcno ..\#..\#src\#*.gcov *.gcda
55
56if ALWAYS_BUILD_EXAMPLES
57noinst_PROGRAMS = $(EXTRA_PROGRAMS)
58endif
diff --git a/src/benchmarks/eo/Makefile.am b/src/benchmarks/eo/Makefile.am
index c57c2e6036..69b3dc1849 100644
--- a/src/benchmarks/eo/Makefile.am
+++ b/src/benchmarks/eo/Makefile.am
@@ -26,3 +26,7 @@ $(top_builddir)/src/lib/eina/libeina.la \
26 26
27clean-local: 27clean-local:
28 rm -rf *.gcno ..\#..\#src\#*.gcov *.gcda 28 rm -rf *.gcno ..\#..\#src\#*.gcov *.gcda
29
30if ALWAYS_BUILD_EXAMPLES
31noinst_PROGRAMS = $(EXTRA_PROGRAMS)
32endif
diff --git a/src/examples/ecore/Makefile.am b/src/examples/ecore/Makefile.am
index 4d876a07a4..3f8627303f 100644
--- a/src/examples/ecore/Makefile.am
+++ b/src/examples/ecore/Makefile.am
@@ -267,3 +267,7 @@ uninstall-local:
267 for f in $(SRCS) $(DATA_FILES); do \ 267 for f in $(SRCS) $(DATA_FILES); do \
268 rm -f $(datadir)/ecore/examples/$$f ; \ 268 rm -f $(datadir)/ecore/examples/$$f ; \
269 done 269 done
270
271if ALWAYS_BUILD_EXAMPLES
272noinst_PROGRAMS = $(EXTRA_PROGRAMS)
273endif
diff --git a/src/examples/edbus/Makefile.am b/src/examples/edbus/Makefile.am
index b91dcd8029..e7fc3a49aa 100644
--- a/src/examples/edbus/Makefile.am
+++ b/src/examples/edbus/Makefile.am
@@ -71,3 +71,7 @@ uninstall-local:
71 for f in $(SRCS) ; do \ 71 for f in $(SRCS) ; do \
72 rm -f $(datadir)/edbus/examples/$$f ; \ 72 rm -f $(datadir)/edbus/examples/$$f ; \
73 done 73 done
74
75if ALWAYS_BUILD_EXAMPLES
76noinst_PROGRAMS = $(EXTRA_PROGRAMS)
77endif
diff --git a/src/examples/edje/Makefile.am b/src/examples/edje/Makefile.am
index 97bcd1cad5..e392dea50f 100644
--- a/src/examples/edje/Makefile.am
+++ b/src/examples/edje/Makefile.am
@@ -209,3 +209,8 @@ uninstall-local:
209 for f in $(SRCS) $(DIST_EDCS) $(DATA_FILES); do \ 209 for f in $(SRCS) $(DIST_EDCS) $(DATA_FILES); do \
210 rm -f $(datadir)/edje/examples/$$f ; \ 210 rm -f $(datadir)/edje/examples/$$f ; \
211 done 211 done
212
213if ALWAYS_BUILD_EXAMPLES
214noinst_PROGRAMS = $(EXTRA_PROGRAMS)
215nodist_pkgdata_DATA = $(EDJS)
216endif
diff --git a/src/examples/eet/Makefile.am b/src/examples/eet/Makefile.am
index f9e626fc6e..1233e700ae 100644
--- a/src/examples/eet/Makefile.am
+++ b/src/examples/eet/Makefile.am
@@ -52,3 +52,7 @@ uninstall-local:
52 for f in $(SRCS) ; do \ 52 for f in $(SRCS) ; do \
53 rm -f $(datadir)/eet/examples/$$f ; \ 53 rm -f $(datadir)/eet/examples/$$f ; \
54 done 54 done
55
56if ALWAYS_BUILD_EXAMPLES
57noinst_PROGRAMS = $(EXTRA_PROGRAMS)
58endif
diff --git a/src/examples/eina/Makefile.am b/src/examples/eina/Makefile.am
index 4404b119b4..4421f502a0 100644
--- a/src/examples/eina/Makefile.am
+++ b/src/examples/eina/Makefile.am
@@ -149,3 +149,7 @@ uninstall-local:
149 done 149 done
150 150
151EXTRA_DIST = addr_book.txt chat.xml 151EXTRA_DIST = addr_book.txt chat.xml
152
153if ALWAYS_BUILD_EXAMPLES
154noinst_PROGRAMS = $(EXTRA_PROGRAMS)
155endif
diff --git a/src/examples/eio/Makefile.am b/src/examples/eio/Makefile.am
index 950f1eca90..762a742292 100644
--- a/src/examples/eio/Makefile.am
+++ b/src/examples/eio/Makefile.am
@@ -51,3 +51,7 @@ uninstall-local:
51 for f in $(SRCS) ; do \ 51 for f in $(SRCS) ; do \
52 rm -f $(datadir)/eio/examples/$$f ; \ 52 rm -f $(datadir)/eio/examples/$$f ; \
53 done 53 done
54
55if ALWAYS_BUILD_EXAMPLES
56noinst_PROGRAMS = $(EXTRA_PROGRAMS)
57endif
diff --git a/src/examples/ephysics/Makefile.am b/src/examples/ephysics/Makefile.am
index 2e9b3e738e..73645b7da7 100644
--- a/src/examples/ephysics/Makefile.am
+++ b/src/examples/ephysics/Makefile.am
@@ -87,3 +87,7 @@ uninstall-local:
87 for f in $(SRCS) ; do \ 87 for f in $(SRCS) ; do \
88 rm -f $(datadir)/ephysics/examples/$$f ; \ 88 rm -f $(datadir)/ephysics/examples/$$f ; \
89 done 89 done
90
91if ALWAYS_BUILD_EXAMPLES
92noinst_PROGRAMS = $(EXTRA_PROGRAMS)
93endif
diff --git a/src/examples/evas/Makefile.am b/src/examples/evas/Makefile.am
index e1c484aaf2..7557e40e65 100644
--- a/src/examples/evas/Makefile.am
+++ b/src/examples/evas/Makefile.am
@@ -220,3 +220,8 @@ uninstall-local:
220 done 220 done
221 221
222EXTRA_DIST = $(EDCS) $(DATA_FILES) 222EXTRA_DIST = $(EDCS) $(DATA_FILES)
223
224if ALWAYS_BUILD_EXAMPLES
225noinst_PROGRAMS = $(EXTRA_PROGRAMS)
226nodist_pkgdata_DATA = $(EDJS)
227endif