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

4.104.114.84.95
Last change on this file since b4589477 was 2936b425, checked in by Joel Sherrill <joel.sherrill@…>, on 01/23/98 at 17:45:05

Solaris port updates from Chris Johns

  • Property mode set to 100644
File size: 1.1 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        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        @$(ECHO) ; set -e ; \
42        if [ "$(SUB_DIRS)" != "" ] ; then \
43          sdirs="$(SUB_DIRS)" ; \
44        else \
45          sdirs="xxx" ; \
46        fi ; \
47        if [ "$$sdirs" != "xxx" ] ; then \
48          for subd in $$sdirs; do $(MAKE) -w -C $$subd $@; done ;\
49        fi
50endif
51endif
52
Note: See TracBrowser for help on using the repository browser.