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 | depend-recursive \ |
---|
11 | clobber-recursive \ |
---|
12 | preinstall-recursive \ |
---|
13 | debug-recursive \ |
---|
14 | debug_install-recursive \ |
---|
15 | profile-recursive \ |
---|
16 | profile_install-recursive: |
---|
17 | @set fnord $(MAKEFLAGS); amf=$$2; \ |
---|
18 | dot_seen=no; \ |
---|
19 | target=`echo $@ | sed s/-recursive//`; \ |
---|
20 | list='$(SUBDIRS)'; for subdir in $$list; do \ |
---|
21 | echo "Making $$target in $$subdir"; \ |
---|
22 | if test "$$subdir" = "."; then \ |
---|
23 | dot_seen=yes; \ |
---|
24 | local_target="$$target-am"; \ |
---|
25 | else \ |
---|
26 | local_target="$$target"; \ |
---|
27 | fi; \ |
---|
28 | (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ |
---|
29 | ## This trick allows "-k" to keep its natural meaning when running a |
---|
30 | ## recursive rule. |
---|
31 | || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ |
---|
32 | done; \ |
---|
33 | if test "$$dot_seen" = "no"; then \ |
---|
34 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ |
---|
35 | fi; test -z "$$fail" |
---|
36 | |
---|
37 | debug: debug-recursive |
---|
38 | .PHONY: debug-recursive |
---|
39 | |
---|
40 | debug_install: debug_install-recursive |
---|
41 | .PHONY: debug_install-recursive |
---|
42 | |
---|
43 | profile: profile-recursive |
---|
44 | .PHONY: profile-recursive |
---|
45 | |
---|
46 | profile_install: profile_install-recursive |
---|
47 | .PHONY: profile-recursive |
---|
48 | |
---|
49 | preinstall: preinstall-recursive |
---|
50 | .PHONY: preinstall-recursive |
---|
51 | |
---|
52 | clobber: clobber-recursive |
---|
53 | .PHONY: clobber-recursive |
---|
54 | |
---|
55 | depend: depend-recursive |
---|
56 | .PHONY: depend-recursive |
---|