source: rtems/make/directory.cfg @ 5fafa0e

4.104.114.84.95
Last change on this file since 5fafa0e was 5fafa0e, checked in by Joel Sherrill <joel.sherrill@…>, on 04/03/98 at 18:46:16

Added test so the build procedure would stop if a directory did not exist.
This typically indicates a bug in a directory level Makefile or a configure
scrip bug.

  • Property mode set to 100644
File size: 1.2 KB
RevLine 
[bffb938]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# include $(RTEMS_ROOT)/make/main.cfg
12
13# on a 'make -k' we don't want to bomb out of directory list
14EXIT_CMD=exit 1
15ifeq (k, $(findstring k, $(MAKEFLAGS)))
16EXIT_CMD=true
17endif
18
19RULE=$(shell echo $@ | $(SED) -e s/debug_// -e s/profile_//)
20
21ifeq ($(RTEMS_USE_OWN_PDIR),yes)
22$(RECURSE_TARGETS):
23        @$(ECHO); \
24        BASEDIR=`pwd`; \
[5fafa0e]25        test -d $$BASEDIR || $(EXIT_CMD) ; \
[bffb938]26        for subd in $(SUB_DIRS) xxx; \
27        do if [ $$subd != xxx ] ; then  \
28            cd $$BASEDIR; \
[5fafa0e]29            test -d $$subd || $(EXIT_CMD) ; \
[bffb938]30            $(ECHO); \
31            $(ECHO) "***  $$BASEDIR/$$subd ($@)" ; \
32            cmd="cd $$subd; $(MAKE) $(RULE)"; \
33            $(ECHO) $$cmd; \
34            eval $$cmd || $(EXIT_CMD); \
35  fi; done; \
36        $(ECHO); \
37        $(ECHO) "***  $$BASEDIR/$@ ($@) Finished."; \
38        $(ECHO)
39        $($@_WRAPUP)
40else
41ifdef RECURSE_TARGETS
42$(RECURSE_TARGETS):
[2936b425]43        @$(ECHO) ; set -e ; \
44        if [ "$(SUB_DIRS)" != "" ] ; then \
45          sdirs="$(SUB_DIRS)" ; \
46        else \
47          sdirs="xxx" ; \
48        fi ; \
49        if [ "$$sdirs" != "xxx" ] ; then \
[d2865dce]50          for subd in $$sdirs; do $(MAKE) -w -C $$subd $(RULE); done ;\
[2936b425]51        fi
[bffb938]52endif
53endif
[2936b425]54
Note: See TracBrowser for help on using the repository browser.