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.
This commit is contained in:
Joel Sherrill
1998-04-03 18:46:16 +00:00
parent b82c9578f4
commit 5fafa0e2a6
2 changed files with 4 additions and 0 deletions

View File

@@ -22,9 +22,11 @@ ifeq ($(RTEMS_USE_OWN_PDIR),yes)
$(RECURSE_TARGETS):
@$(ECHO); \
BASEDIR=`pwd`; \
test -d $$BASEDIR || $(EXIT_CMD) ; \
for subd in $(SUB_DIRS) xxx; \
do if [ $$subd != xxx ] ; then \
cd $$BASEDIR; \
test -d $$subd || $(EXIT_CMD) ; \
$(ECHO); \
$(ECHO) "*** $$BASEDIR/$$subd ($@)" ; \
cmd="cd $$subd; $(MAKE) $(RULE)"; \

View File

@@ -22,9 +22,11 @@ ifeq ($(RTEMS_USE_OWN_PDIR),yes)
$(RECURSE_TARGETS):
@$(ECHO); \
BASEDIR=`pwd`; \
test -d $$BASEDIR || $(EXIT_CMD) ; \
for subd in $(SUB_DIRS) xxx; \
do if [ $$subd != xxx ] ; then \
cd $$BASEDIR; \
test -d $$subd || $(EXIT_CMD) ; \
$(ECHO); \
$(ECHO) "*** $$BASEDIR/$$subd ($@)" ; \
cmd="cd $$subd; $(MAKE) $(RULE)"; \