make-w32
[Top][All Lists]
Advanced

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

RE: Shell commands in makefile not working (running Windows XP)


From: Matt Lavoie
Subject: RE: Shell commands in makefile not working (running Windows XP)
Date: Wed, 13 Aug 2003 12:37:07 -0700

Scott, I don't know if this is useful info for the problem you are encountering, but the fix for my issue is to delete SHELL from the environment and make sure that sh.exe is not in my PATH.  Then my makes are working the same when run under a bash shell (cygwin on WinXP) or cmd.exe on WinXP.
-----Original Message-----
From: Scott Merz [mailto:address@hidden
Sent: Wednesday, August 13, 2003 12:39 PM
To: address@hidden
Subject: RE: Shell commands in makefile not working (running Windows XP)

That is what I was thinking. However, I think that since Windows XP doesn't use a SHELL environment variable, make is setting it as if it was in its natural environment (hence the sh.exe). I have tried overriding it by setting SHELL=cmd.exe, yet when I echoed it the value displayed was still 'sh.exe'. Furthermore, I even called make with the -e option to suppress environment variables and let the user override them, and it still didn't work.

 

It's extremely frustrating to have such a small issue hold me up so much. It seems like if this was an issue between make and command line interpreters, it would have came up before now with other people. At this point, I'm considering redesigning how my system is going to do this, probably use a scripting language to implement parts of this, because cryptic unheard of issues like this take way too much time to debug/debunk. However anyone else w/ suggestions is welcome, there has to be some cause for shell throwing that exception. Thanks a bunch.

 

-Scott

 

The Insitu Group

address@hidden

 

 

-----Original Message-----
From: Matt Lavoie [mailto:address@hidden
Sent:
Wednesday, August 13, 2003 9:31 AM
To: 'Scott Merz'
Subject: RE: Shell commands in makefile not working (running Windows XP)

 

You might try putting the command:

echo SHELL=$(SHELL)

so you can see what make is using for a shell.

 

You can put SHELL=xxx in the makefile to point it to a given shell.

 


reply via email to

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