make-w32
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Make fails to execute shell commands using sh under Win32


From: Fairweather, James
Subject: RE: Make fails to execute shell commands using sh under Win32
Date: Mon, 23 Sep 2002 16:30:01 -0700

try make --unix

-----Original Message-----
From: Ted Phares [mailto:address@hidden
Sent: Monday, September 23, 2002 4:27 PM
To: address@hidden
Subject: Make fails to execute shell commands using sh under Win32


Hi,

Using make 3.79.1 for Win32 (the make binary distributed with cygwin):

I found that make fails to execute shell commands when using sh.

For example, if I invoke make using the following makefile:

  SHELL=o:/bin/sh.exe

  .PHONY: foo
  foo:
        @echo Hello

I get the following error:

  G:\devel\dsp\axis>gmake -ffoo.mak foo
  /c: Can't open /c: No such file or directory
  gmake: *** [foo] Error 2

I have no trouble if I tell make to use the cmd.exe shell.

As my colleague pointed out, it looks like make is inappropriately passing
the "/c" switch to sh.exe.  (The /c switch should only be used if using
the cmd.exe shell.)

-ted



_______________________________________________
Make-w32 mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/make-w32




reply via email to

[Prev in Thread] Current Thread [Next in Thread]