source: rtems-schedsim/automake/subdirs.am @ 9d5d371

Last change on this file since 9d5d371 was a2aad55, checked in by Joel Sherrill <joel.sherrill@…>, on 05/01/13 at 00:41:56

Remove CVS $

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