From 3815810b1ac136023982b548e48070a70f486f04 Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Sat, 12 Jan 2013 07:38:26 +0000 Subject: 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 --- src/Makefile.am | 47 +++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 39 insertions(+), 8 deletions(-) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index 5ad8b97..bc218e0 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 -- cgit v1.1