make-w32
[Top][All Lists]
Advanced

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

RE: Problem with FOR statements in command lines?


From: Matt Lavoie
Subject: RE: Problem with FOR statements in command lines?
Date: Mon, 27 Oct 2003 12:15:50 -0800

Could this be the result of a failure code getting back to gnumake from the
shell because there are no files to enumerate?  That would explain why it
works when files are present.  Try adding a minus prefix.

Just a thought...

-----Original Message-----
From: Scott Bussinger [mailto:address@hidden 
Sent: Thursday, October 23, 2003 11:00 AM
To: address@hidden
Subject: Problem with FOR statements in command lines?


I'm having a problem with a command line in a makefile using the mingw
make 3.80 on WinXP. I'm not using SH.EXE. Would someone please tell me
what I'm doing wrong here? Here's a simple test makefile that shows the
problem:

default:
    for %%a in (s\*.bak) do echo %%a

All this makefile should do is list the *.bak files in the S
subdirectory. If I run this makefile however, I get an error message like:

V:\todo\test>gnumake -ftest
for %%a in (s\*.bak) do echo %%a
gnumake: *** [default] Error 2883645

In this case there were no *.bak files so there should have been no
output. Interestingly, if there are matching files it works OK. You can
run the same command (with only single % signs) from a command prompt
with no problem. What's the Error 2883645 mean?

Thanks! Be seeing you.





_______________________________________________
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]