source: rtems/c/src/make/directory.cfg @ bffb938

4.104.114.84.95
Last change on this file since bffb938 was bffb938, checked in by Joel Sherrill <joel.sherrill@…>, on Jan 20, 1998 at 7:30:30 PM

Removed PROJECT_HOME and CONFIG_DIR variables.

  • Property mode set to 100644
File size: 977 bytes
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        for subd in $(SUB_DIRS) xxx; \
26        do if [ $$subd != xxx ] ; then  \
27            cd $$BASEDIR; \
28            $(ECHO); \
29            $(ECHO) "***  $$BASEDIR/$$subd ($@)" ; \
30            cmd="cd $$subd; $(MAKE) $(RULE)"; \
31            $(ECHO) $$cmd; \
32            eval $$cmd || $(EXIT_CMD); \
33  fi; done; \
34        $(ECHO); \
35        $(ECHO) "***  $$BASEDIR/$@ ($@) Finished."; \
36        $(ECHO)
37        $($@_WRAPUP)
38else
39ifdef RECURSE_TARGETS
40$(RECURSE_TARGETS):
41        set -e; for subd in $(SUB_DIRS); do $(MAKE) -w -C $$subd $@; done
42endif
43endif
Note: See TracBrowser for help on using the repository browser.