source: rtems/make/directory.cfg @ cc8a388a

4.104.114.84.95
Last change on this file since cc8a388a was 5fafa0e, checked in by Joel Sherrill <joel.sherrill@…>, on Apr 3, 1998 at 6:46:16 PM

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
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# 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`; \
25        test -d $$BASEDIR || $(EXIT_CMD) ; \
26        for subd in $(SUB_DIRS) xxx; \
27        do if [ $$subd != xxx ] ; then  \
28            cd $$BASEDIR; \
29            test -d $$subd || $(EXIT_CMD) ; \
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):
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 \
50          for subd in $$sdirs; do $(MAKE) -w -C $$subd $(RULE); done ;\
51        fi
52endif
53endif
54
Note: See TracBrowser for help on using the repository browser.