source: rtems/automake/subdirs.am @ acd7c408

4.104.114.84.9
Last change on this file since acd7c408 was df49c60, checked in by Joel Sherrill <joel.sherrill@…>, on Jun 12, 2000 at 3:00:15 PM

Merged from 4.5.0-beta3a

  • Property mode set to 100644
File size: 1.1 KB
RevLine 
[8cdb582]1## $Id$
[9b8baa1]2
[ecb2755]3## Borrowed from automake-1.4 and adapted to RTEMS
[9b8baa1]4
[8cdb582]5## NOTE: This is a temporary work-around to keep
[ecb2755]6## RTEMS's non automake standard make targets working.
[8cdb582]7## Once automake is fully integrated these make targets
8## and this file will probably be removed
[9b8baa1]9
[ecb2755]10depend-recursive \
[df49c60]11preinstall-recursive:
[9b8baa1]12        @set fnord $(MAKEFLAGS); amf=$$2; \
13        dot_seen=no; \
14        target=`echo $@ | sed s/-recursive//`; \
15        list='$(SUBDIRS)'; for subdir in $$list; do \
16          echo "Making $$target in $$subdir"; \
17          if test "$$subdir" = "."; then \
18            dot_seen=yes; \
19            local_target="$$target-am"; \
20          else \
21            local_target="$$target"; \
22          fi; \
23          (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
24## This trick allows "-k" to keep its natural meaning when running a
25## recursive rule.
26           || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
27        done; \
28        if test "$$dot_seen" = "no"; then \
29          $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
30        fi; test -z "$$fail"
31
[8cdb582]32preinstall: preinstall-recursive
[ecb2755]33.PHONY: preinstall-recursive
[8cdb582]34
[ecb2755]35depend: depend-recursive
36.PHONY: depend-recursive
Note: See TracBrowser for help on using the repository browser.