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: Eli Zaretskii
Subject: Re: Problem with FOR statements in command lines?
Date: 23 Oct 2003 19:27:06 +0200

> Date: Thu, 23 Oct 2003 08:00:27 -0700
> From: Scott Bussinger <address@hidden>
> 
> 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

Does it help to modify the command as below?

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





reply via email to

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