1 | # $Id$ |
---|
2 | |
---|
3 | # Borrowed from automake-1.4, adapted to support RTEMS's |
---|
4 | # "make debug", "make debug_install", "make profile", "make profile_install" |
---|
5 | |
---|
6 | # NOTE: This is a temporary work-around to keep |
---|
7 | # "make debug" and "make debug_install" working. |
---|
8 | # Once automake is fully integrated these make targets |
---|
9 | # and this file will probably be removed |
---|
10 | |
---|
11 | |
---|
12 | debug-recursive debug_install-recursive \ |
---|
13 | profile-recursive profile_install-recursive: |
---|
14 | @set fnord $(MAKEFLAGS); amf=$$2; \ |
---|
15 | dot_seen=no; \ |
---|
16 | target=`echo $@ | sed s/-recursive//`; \ |
---|
17 | list='$(SUBDIRS)'; for subdir in $$list; do \ |
---|
18 | echo "Making $$target in $$subdir"; \ |
---|
19 | if test "$$subdir" = "."; then \ |
---|
20 | dot_seen=yes; \ |
---|
21 | local_target="$$target-am"; \ |
---|
22 | else \ |
---|
23 | local_target="$$target"; \ |
---|
24 | fi; \ |
---|
25 | (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ |
---|
26 | ## This trick allows "-k" to keep its natural meaning when running a |
---|
27 | ## recursive rule. |
---|
28 | || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ |
---|
29 | done; \ |
---|
30 | if test "$$dot_seen" = "no"; then \ |
---|
31 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ |
---|
32 | fi; test -z "$$fail" |
---|
33 | |
---|
34 | debug: debug-recursive |
---|
35 | |
---|
36 | debug_install: debug_install-recursive |
---|
37 | |
---|
38 | profile: profile-recursive |
---|
39 | |
---|
40 | profile_install: profile_install-recursive |
---|
41 | |
---|
42 | .PHONY: \ |
---|
43 | debug debug-recursive debug_install \ |
---|
44 | profile profile-recursive profile_install |
---|