From abb18dc4eb102a15a67990ad1b0c515176808a5b Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 25 Apr 2011 15:53:10 +0000 Subject: Initial import. --- automake/host.am | 10 ++++++++++ automake/local.am | 7 +++++++ automake/subdirs.am | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 automake/host.am create mode 100644 automake/local.am create mode 100644 automake/subdirs.am (limited to 'automake') 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 -- cgit v1.2.3