source: rtems/make/directory.cfg @ 4d20133

4.104.114.84.95
Last change on this file since 4d20133 was 7a86dc4, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 24, 1998 at 8:30:09 PM

Improved missing directory message.

  • Property mode set to 100644
File size: 1.3 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            if [ ! -d $$subd ] ; then \
30              $(ECHO) "*** ERROR -- Directory ($$subd) does not exist!!!"; \
31              $(EXIT_CMD) ; \
32            fi ; \
33            $(ECHO); \
34            $(ECHO) "***  $$BASEDIR/$$subd ($@)" ; \
35            cmd="cd $$subd; $(MAKE) $(RULE)"; \
36            $(ECHO) $$cmd; \
37            eval $$cmd || $(EXIT_CMD); \
38  fi; done; \
39        $(ECHO); \
40        $(ECHO) "***  $$BASEDIR/$@ ($@) Finished."; \
41        $(ECHO)
42        $($@_WRAPUP)
43else
44ifdef RECURSE_TARGETS
45$(RECURSE_TARGETS):
46        @$(ECHO) ; set -e ; \
47        if [ "$(SUB_DIRS)" != "" ] ; then \
48          sdirs="$(SUB_DIRS)" ; \
49        else \
50          sdirs="xxx" ; \
51        fi ; \
52        if [ "$$sdirs" != "xxx" ] ; then \
53          for subd in $$sdirs; do $(MAKE) -w -C $$subd $(RULE); done ;\
54        fi
55endif
56endif
57
Note: See TracBrowser for help on using the repository browser.