I am getting the message "The batch file cannot be found." following a
recursive
make of subdirectories.  The remaining targets are not processed even though
the make of the subdirectory succeedes.

To duplicate the problem:

Here is what is contained in the main Makefile:

SUBDIRS=a

all: subdirs title

title:
        @echo "A title"

subdirs:
        @for %%i in ($(SUBDIRS)) do if EXIST %%i/Makefile ${MAKE}
-${MAKEFLAGS}kC %%i all


Here is what is contained in a\Makefile:

all:
        @echo "I am in directory a's Makefile"


The "I am in directory a's Makefile" is echoed out, however "A title" is not
since
the subdirs target is returning an error.

Any suggestions would be appreciated.  I can get around this by running make
with
the -k option, but I don't know that my developers will appreciate that.

Thanks,

Florence Porter
[EMAIL PROTECTED]
Canal+ Technologies, Inc.
Lafayette, Colorado

_______________________________________________
Bug-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-make

Reply via email to