make-w32
[Top][All Lists]
Advanced

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

Make fails to execute shell commands using sh under Win32


From: Ted Phares
Subject: Make fails to execute shell commands using sh under Win32
Date: Mon, 23 Sep 2002 16:27:28 -0700 (PDT)

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





reply via email to

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