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
This commit is contained in:
parent
730bc88271
commit
3815810b1a
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue