Mail Archives: djgpp/1994/08/07/22:01:37
Thank you for your answer.
however,
> > First problem I have is that if TMPDIR is not defined, the following
> > makefile does not work (..\foo exists of course). It gives 'make.exe: ***
> > [all] Error 1'. I tried to debug a little bit (I do not have dowloaded gdb
> > yet), and the temporary files "./mk000084.bat" and "./mk000084.err" are
> > created OK, so I do not know where is the real problem...
> >
> > all:
> > cd ..\foo
> > echo OK
>
> That should be ``cd ..\\foo'' because in GNU Make, a single `\' just
> serves as an escape character for the next character, and so what
> Make sees is ``cd ..foo''.
I did try with 'cd ..\\foo', but it did not solve the problem. As I said,
if TMPDIR is defined it works. It is more like a temporary file problem ??
> > Second problem is that if I tried to run an undefined command, make does
> > not print the error message "Command not found" as it should. It just
> > exists with 'make.exe: *** [all] Error -1' which is not very helpful.
>
> That's because in DJGPP, Make runs programs itself without invoking
> command.com (or other shell), unless the command includes special
> characters (like redirection or pipe). That's why you don't get
> "Command not found".
The Make program itself is supposed to search the command in the PATH. If
it does find it then the make prints 'Command not found'. Nothing to do
with command.com.
Regards
Pierre Willard
- Raw text -