summaryrefslogtreecommitdiffstats
path: root/automake
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-04-25 15:53:10 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-04-25 15:53:10 +0000
commitabb18dc4eb102a15a67990ad1b0c515176808a5b (patch)
treeaebe2dc318e747b42939afe13e9b506ddc282d66 /automake
downloadrtems-schedsim-abb18dc4eb102a15a67990ad1b0c515176808a5b.tar.bz2
Initial import.initialbase
Diffstat (limited to 'automake')
-rw-r--r--automake/host.am10
-rw-r--r--automake/local.am7
-rw-r--r--automake/subdirs.am32
3 files changed, 49 insertions, 0 deletions
diff --git a/automake/host.am b/automake/host.am
new file mode 100644
index 0000000..4a7aa2d
--- /dev/null
+++ b/automake/host.am
@@ -0,0 +1,10 @@
+## $Id$
+
+## 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
+
+preinstall-am: $(PREINSTALL_FILES)
+preinstall: preinstall-am
+.PHONY: preinstall preinstall-am
diff --git a/automake/local.am b/automake/local.am
new file mode 100644
index 0000000..c170178
--- /dev/null
+++ b/automake/local.am
@@ -0,0 +1,7 @@
+## $Id$
+
+preinstall-am: $(PREINSTALL_FILES)
+preinstall: preinstall-am
+.PHONY: preinstall preinstall-am
+
+PROJECT_TOOLS = $(PROJECT_RELEASE)/build-tools
diff --git a/automake/subdirs.am b/automake/subdirs.am
new file mode 100644
index 0000000..00eba7c
--- /dev/null
+++ b/automake/subdirs.am
@@ -0,0 +1,32 @@
+## $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
+
+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