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