From 3815810b1ac136023982b548e48070a70f486f04 Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Sat, 12 Jan 2013 07:38:26 +0000 Subject: [PATCH] clean up benchmark and example rules. - they have no 'all' rule, keep out of SUBDIRS - they depend on 'all-am', the non-recursive target that builds everything. - they do not need a directory on its own to declare nothing.x SVN revision: 82689 --- configure.ac | 2 -- src/Makefile.am | 47 +++++++++++++++++++++++++++++++------- src/benchmarks/Makefile.am | 9 -------- src/examples/Makefile.am | 15 ------------ 4 files changed, 39 insertions(+), 34 deletions(-) delete mode 100644 src/benchmarks/Makefile.am delete mode 100644 src/examples/Makefile.am diff --git a/configure.ac b/configure.ac index a8c6c9662e..ec27616ffa 100644 --- a/configure.ac +++ b/configure.ac @@ -3471,10 +3471,8 @@ data/Makefile doc/Makefile doc/Doxyfile src/Makefile -src/benchmarks/Makefile src/benchmarks/eina/Makefile src/benchmarks/eo/Makefile -src/examples/Makefile src/examples/eina/Makefile src/examples/eet/Makefile src/examples/eo/Makefile diff --git a/src/Makefile.am b/src/Makefile.am index 5ad8b9770c..bc218e0a21 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -3,7 +3,8 @@ AUTOMAKE_OPTIONS = subdir-objects MAINTAINERCLEANFILES = Makefile.in BUILT_SOURCES = -SUBDIRS = . benchmarks examples +DIST_SUBDIRS = +SUBDIRS = lib_LTLIBRARIES = bin_PROGRAMS = @@ -47,16 +48,46 @@ include Makefile_Ethumb.am .PHONY: benchmark examples -benchmark: - @$(MAKE) $(AM_MAKEFLAGS) - @$(MAKE) $(AM_MAKEFLAGS) -C benchmarks benchmark +BENCHMARK_SUBDIRS = \ +benchmarks/eina \ +benchmarks/eo +DIST_SUBDIRS += $(BENCHMARK_SUBDIRS) -examples: $(lib_LTLIBRARIES) $(bin_PROGRAMS) - @make - @$(MAKE) $(AM_MAKEFLAGS) -C examples examples +benchmark: all-am + @for d in $(BENCHMARK_SUBDIRS); do \ + echo "Making benchmark in $$d"; \ + $(MAKE) $(AM_MAKEFLAGS) -C $$d benchmark; \ + done + +EXAMPLES_SUBDIRS = \ +examples/eina \ +examples/eo \ +examples/eet \ +examples/evas \ +examples/ecore \ +examples/eio \ +examples/edbus \ +examples/ephysics \ +examples/edje \ +examples/emotion \ +examples/ethumb +if ALWAYS_BUILD_EXAMPLES +SUBDIRS += $(EXAMPLES_SUBDIRS) +else +DIST_SUBDIRS += $(EXAMPLES_SUBDIRS) +endif + +examples: all-am + @for d in $(EXAMPLES_SUBDIRS); do \ + echo "Making examples in $$d"; \ + $(MAKE) $(AM_MAKEFLAGS) -C $$d examples; \ + done install-examples: - @$(MAKE) $(AM_MAKEFLAGS) -C examples install-examples + @for d in $(EXAMPLES_SUBDIRS); do \ + echo "Making install-examples in $$d"; \ + $(MAKE) $(AM_MAKEFLAGS) -C $$d install-examples; \ + done clean-local: rm -rf bin/eet/*.gcno diff --git a/src/benchmarks/Makefile.am b/src/benchmarks/Makefile.am deleted file mode 100644 index b57b13e28c..0000000000 --- a/src/benchmarks/Makefile.am +++ /dev/null @@ -1,9 +0,0 @@ -MAINTAINERCLEANFILES = Makefile.in - -SUBDIRS = eina eo - -.PHONY: benchmark - -benchmark: - @$(MAKE) $(AM_MAKEFLAGS) -C eina benchmark - @$(MAKE) $(AM_MAKEFLAGS) -C eo benchmark diff --git a/src/examples/Makefile.am b/src/examples/Makefile.am deleted file mode 100644 index dc4d9e6644..0000000000 --- a/src/examples/Makefile.am +++ /dev/null @@ -1,15 +0,0 @@ -MAINTAINERCLEANFILES = Makefile.in - -SUBDIRS = eina eo eet evas ecore eio edbus ephysics edje emotion ethumb - -.PHONY: examples install-examples - -examples: - @for d in $(SUBDIRS); do \ - $(MAKE) $(AM_MAKEFLAGS) -C "$$d" examples || exit 0; \ - done - -install-examples: - @for d in $(SUBDIRS); do \ - $(MAKE) $(AM_MAKEFLAGS) -C "$$d" install-examples || exit 0; \ - done