Re: Make is looking for the o/p file to exist !!

Eli Zaretskii <[email protected]>
Newsgroups gmane.comp.gnu.make.windows
Message-ID <[email protected]>
> Date: Fri, 25 Apr 2008 05:35:16 -0400
> From: [email protected]
> 
> Make says that its not able to find the o/p file.
> Can some one help me  !!!!
> 
> error
> =================================
> >make -f Makefile1.nt
> copy build_comp.pl ..\bin
> process_begin: CreateProcess(NULL, copy build_comp.pl ..\bin, ...) failed.
> make (e=2): The system cannot find the file specified.
> make: *** [../bin/build_comp.pl] Error 2

You are invoking a command that is a CMD builtin, so you need to put a
line saying

  SHELL=cmd.exe

somewhere in your Makefile, otherwise Make will use sh.exe, which does
not understand "copy".  (This will only work reliably with the latest
version 3.81 of Make compiled for Windows, so if you have an older
version, please upgrade.)

Alternatively, using "cmd /c copy" instead of just "copy" should do
the trick as well.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.