From 4cd2df93b5212bdd371b97e073f33aa909a7d29e Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Sat, 16 Aug 2003 16:24:45 +0000 Subject: 2003-08-16 Ralf Corsepius * automake/compile.am, automake/host.am, automake/leaf.am automake/local.am, automake/subdirs.am: New (copied from ../../../automake). --- testsuites/automake/subdirs.am | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 testsuites/automake/subdirs.am (limited to 'testsuites/automake/subdirs.am') diff --git a/testsuites/automake/subdirs.am b/testsuites/automake/subdirs.am new file mode 100644 index 0000000000..3d54285dec --- /dev/null +++ b/testsuites/automake/subdirs.am @@ -0,0 +1,36 @@ +## $Id$ + +## Borrowed from automake-1.4 and adapted to RTEMS + +## NOTE: This is a temporary work-around to keep +## RTEMS's non automake standard make targets working. +## Once automake is fully integrated these make targets +## and this file will probably be removed + +depend-recursive \ +preinstall-recursive: + @set fnord $(MAKEFLAGS); amf=$$2; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ +## This trick allows "-k" to keep its natural meaning when running a +## recursive rule. + || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +preinstall: preinstall-recursive +.PHONY: preinstall-recursive + +depend: depend-recursive +.PHONY: depend-recursive -- cgit v1.2.3