Files
rtems/make/directory.cfg
Joel Sherrill 6b7ab9bf72 Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
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
1999-04-16 18:23:48 +00:00

25 lines
743 B
INI

#
# $Id$
#
# make/directory.cfg
#
# Make(1) configuration file include'd by all directory-level Makefile's.
#
# See also make/main.cfg
#
# RULE=$(shell echo $@ | $(SED) -e s/debug_// -e s/profile_//)
# This is a simplified variant of automake-1.4's rule for handling
# subdirectories
$(RECURSE_TARGETS):
@set fnord $(MAKEFLAGS); amf=$$2; \
dot_seen=no; \
target=`echo $@ | sed -e s/-recursive// -e s/debug_// -e s/profile_// `; \
list='$(SUB_DIRS)'; for subdir in $$list; do \
echo "Making $$target RTEMS_BSP=${RTEMS_BSP} in $$subdir"; \
local_target="$$target"; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"