Mail Archives: djgpp/1998/06/18/06:39:47
On Thu, 18 Jun 1998, Hartmut Schirmer wrote:
> Bill Bartley wrote:
>
> > if exist draw\*.o del draw\*.o
> > make.exe[2]: *** [clean] Error -1
>
> Looks like you don't compile under plain vanilla command.com ...
One case why this could happen is if Bill has SHELL variable defined in
the environment which points to Bash or some such.
Makefile's which want to be robust in such cases should either set
SHELL=command.com or call command.com explicitly, like this:
command.com /c if exist draw\*.o del draw\*.o
(Note: "command.com" and not "command", since Bash has an incompatible
built-in command by the latter name.)
- Raw text -