source: rtems/c/src/make/directory.cfg @ b0ac03f4

4.104.114.84.95
Last change on this file since b0ac03f4 was 6b7ab9bf, checked in by Joel Sherrill <joel.sherrill@…>, on 04/16/99 at 18:23:48

Patch from Ralf Corsepius <corsepiu@…>:

FYI: I am not talking about using "make -C <dir>", which probably
is much faster on M$ hosts than RTEMS's implementation, but about
removing --enable-gmake-print support and to apply a variant of
automake's subdirectory.

Automake's subdirectory rule seems to be a little bit faster, but I
wouldn't bet on this.

Attached to this mail is my proposal.

After applying the patch, please run

cvs rm aclocal/enable-gmake-print.m4
./autogen

  • Property mode set to 100644
File size: 743 bytes
Line 
1#
2#  $Id$
3#
4# make/directory.cfg
5#
6#   Make(1) configuration file include'd by all directory-level Makefile's.
7#
8#   See also make/main.cfg
9#
10
11# RULE=$(shell echo $@ | $(SED) -e s/debug_// -e s/profile_//)
12
13# This is a simplified variant of automake-1.4's rule for handling
14# subdirectories
15$(RECURSE_TARGETS):
16        @set fnord $(MAKEFLAGS); amf=$$2; \
17        dot_seen=no; \
18        target=`echo $@ | sed -e s/-recursive// -e s/debug_// -e s/profile_// `; \
19        list='$(SUB_DIRS)'; for subdir in $$list; do \
20          echo "Making $$target RTEMS_BSP=${RTEMS_BSP} in $$subdir"; \
21          local_target="$$target"; \
22          (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
23           || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
24        done && test -z "$$fail"
Note: See TracBrowser for help on using the repository browser.