OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [automake/] [subdirs.am] - Diff between revs 30 and 173

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 30 Rev 173
## $Id: subdirs.am,v 1.2 2001-09-27 11:59:11 chris Exp $
## $Id: subdirs.am,v 1.2 2001-09-27 11:59:11 chris Exp $
## Borrowed from automake-1.4 and adapted to RTEMS
## Borrowed from automake-1.4 and adapted to RTEMS
## NOTE: This is a temporary work-around to keep
## NOTE: This is a temporary work-around to keep
## RTEMS's non automake standard make targets working.
## RTEMS's non automake standard make targets working.
## Once automake is fully integrated these make targets
## Once automake is fully integrated these make targets
## and this file will probably be removed
## and this file will probably be removed
depend-recursive \
depend-recursive \
preinstall-recursive:
preinstall-recursive:
        @set fnord $(MAKEFLAGS); amf=$$2; \
        @set fnord $(MAKEFLAGS); amf=$$2; \
        dot_seen=no; \
        dot_seen=no; \
        target=`echo $@ | sed s/-recursive//`; \
        target=`echo $@ | sed s/-recursive//`; \
        list='$(SUBDIRS)'; for subdir in $$list; do \
        list='$(SUBDIRS)'; for subdir in $$list; do \
          echo "Making $$target in $$subdir"; \
          echo "Making $$target in $$subdir"; \
          if test "$$subdir" = "."; then \
          if test "$$subdir" = "."; then \
            dot_seen=yes; \
            dot_seen=yes; \
            local_target="$$target-am"; \
            local_target="$$target-am"; \
          else \
          else \
            local_target="$$target"; \
            local_target="$$target"; \
          fi; \
          fi; \
          (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
          (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
## This trick allows "-k" to keep its natural meaning when running a
## This trick allows "-k" to keep its natural meaning when running a
## recursive rule.
## recursive rule.
           || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
           || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
        done; \
        done; \
        if test "$$dot_seen" = "no"; then \
        if test "$$dot_seen" = "no"; then \
          $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
          $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
        fi; test -z "$$fail"
        fi; test -z "$$fail"
preinstall: preinstall-recursive
preinstall: preinstall-recursive
.PHONY: preinstall-recursive
.PHONY: preinstall-recursive
depend: depend-recursive
depend: depend-recursive
.PHONY: depend-recursive
.PHONY: depend-recursive
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.