summaryrefslogtreecommitdiffstats
path: root/c/src/automake/subdirs.am
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2003-08-16 09:13:33 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2003-08-16 09:13:33 +0000
commit11a26b990805fcfad7bc12c6813f19bddaa88f32 (patch)
treebce15e8760797bd729b12c07bcd457c31d38bb0a /c/src/automake/subdirs.am
parentCorrect PR number. (diff)
downloadrtems-11a26b990805fcfad7bc12c6813f19bddaa88f32.tar.bz2
2003-08-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* automake/compile.am, automake/force-preinstall.am, automake/host.am, automake/lib.am, automake/local.am, automake/subdirs.am: New (copied from ../../automake).
Diffstat (limited to 'c/src/automake/subdirs.am')
-rw-r--r--c/src/automake/subdirs.am36
1 files changed, 36 insertions, 0 deletions
diff --git a/c/src/automake/subdirs.am b/c/src/automake/subdirs.am
new file mode 100644
index 0000000000..3d54285dec
--- /dev/null
+++ b/c/src/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