source: rtems/automake/subdirs.am @ ecb2755

4.104.114.84.95
Last change on this file since ecb2755 was ecb2755, checked in by Joel Sherrill <joel.sherrill@…>, on 04/19/99 at 13:44:03

Patch from Ralf Corsepius <corsepiu@…> to address this:

  • RTEMS's 'make depend' isn't a standard automake make target and is not

supported in automake supported subdirectories.

  • Property mode set to 100644
File size: 1.5 KB
Line 
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
10depend-recursive \
11clobber-recursive \
12preinstall-recursive \
13debug-recursive \
14debug_install-recursive \
15profile-recursive \
16profile_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
37debug: debug-recursive
38.PHONY: debug-recursive
39
40debug_install: debug_install-recursive
41.PHONY: debug_install-recursive
42
43profile: profile-recursive
44.PHONY: profile-recursive
45
46profile_install: profile_install-recursive
47.PHONY: profile-recursive
48
49preinstall: preinstall-recursive
50.PHONY: preinstall-recursive
51
52clobber: clobber-recursive
53.PHONY: clobber-recursive
54
55depend: depend-recursive
56.PHONY: depend-recursive
Note: See TracBrowser for help on using the repository browser.