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: Scott Merz
Subject: RE: Shell commands in makefile not working (running Windows XP)
Date: Wed, 13 Aug 2003 11:03:58 -0700

Hmmmm

Looks like gmake calls any command line interpreter with –c probably because of its original days when it was developed on Unix. Thus, to change how gmake specifies that parameter, you would either have to (as far as I know) change the source code, which you obviously aren’t going to want to do. Maybe there is a more windows friendly version of gmake available to you which would recognize the difference in command line switches between Unix and Win32 systems?? Other than that I don’t think there is any way to change the way that CreateProcess() is invoked inernally. Sorry man.

 

Scott Merz

Software Intern

The Insitu Group

Web: www.insitugroup.net

Email: address@hidden

 

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

 

I'm actually working on a related problem at the moment.  I haven't tried to get it to expand an environment variable in the SHELL command -- I just put in the full path.

 

MAKESHELL = C:\windows\SYSTEM32\cmd.exe
SHELL = C:\windows\SYSTEM32\cmd.exe

I first tried setting MAKESHELL (as per docs) but it did not override?

 

[I'm trying to run gnumake under cygwin with makefiles that work if you invoke things from a cmd.exe shell, or from a cygwin shell.]

 

The issue I'm encountering at the moment is that gnumake is creating a process in this way:

 

gmake.exe: Entering directory `c:/sw/nvr50/drivers/ddraw'
CreateProcess(C:\windows\SYSTEM32\cmd.exe,C:/windows/SYSTEM32/cmd.exe -c "c:/sw/tools/win32/MiscBuildTools/nvutil-101 -echo \"====================\"",...)

 

Issuing this from the command line directly I find that cmd.exe (on winxp) is senstive to /C versus -c  (*sigh*).  Anyone know if there is a way to get gmake to change that option via some var?

-----Original Message-----
From: Scott Merz [mailto:address@hidden
Sent:
Wednesday, August 13, 2003 1:04 PM
To: address@hidden
Subject: RE: Shell commands in makefile not working (running Windows XP)

Did you invoke make with the -e option to get that to work?

 

So by fully qualified you mean no Environment variables in the file path?

i.e.

SHELL=%SystemRoot%\win32\cmd.exe would be WRONG

 

And

SHELL=C:\Windows\win32\cmd.exe would be CORRECT??

 

I'm going to try that now...thanks a bunch

 

-Scott

The Insitu Group

address@hidden

 

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

 

I found that putting a fully qualified path into SHELL= did get make to use cmd.exe again.

 


reply via email to

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