source: rtems/automake/subdirs.am @ 8cdb582

4.104.114.84.9
Last change on this file since 8cdb582 was 8cdb582, checked in by Joel Sherrill <joel.sherrill@…>, on Apr 12, 1999 at 3:41:33 PM

Patch from Ralf Corsepius <corsepiu@…>:

This patch addresses a few minor issues and contains a few (minor)
preparations for automake.

  • configure.in: Fix for handing c/src/tests subdirectory handling (FIX)
  • aclocal/rtems-top.m4: + Add TARGET_SUBDIR and --with-target-subdir (preparation of future

enhancements for cross-compiling)

+ Activate RTEMS_ROOT handling (automake preparation)

  • automake/*.am: replace comments "#" with "##" so that comments won't get included into Makefile.in's anymore
  • c/update-tools/* automake support (NEW)
  • ./autogen update/enhancement (cf. ./autogen for details)

After applying this patch please run:

./autogen
cvs add c/update-tools/configure.in
cvs add c/update-tools/Makefile.am
cvs add c/update-tools/aclocal.m4

  • Property mode set to 100644
File size: 1.4 KB
Line 
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
11preinstall-recursive \
12debug-recursive debug_install-recursive \
13profile-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
34debug: debug-recursive
35
36debug_install: debug_install-recursive
37
38profile: profile-recursive
39
40profile_install: profile_install-recursive
41
42preinstall: preinstall-recursive
43
44.PHONY: \
45debug debug-recursive \
46debug_install \
47profile profile-recursive \
48profile_install \
49preinstall preinstall-recursive
Note: See TracBrowser for help on using the repository browser.