summaryrefslogtreecommitdiffstats
path: root/make/directory.cfg
blob: 1714204318372c57780abc6a8c6eb7f2ee85dacd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
#  $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"