This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Using cygwin "make"


On Wed, Jan 17, 2001 at 02:44:01PM +0100, Bernard Dautrevaux wrote:
>> I have tried both and neither works. 
>> 
>> It never seems to execute the cd correctly.
>> 
>> With the following definitions 
>> CLASSES=D:\classes 
>> 
>> The command
>>  
>> D:\work>make --win32 -f d:\work\squash02\Makefile jar 
>> gives me the following output 
>> cd D:\classes ; jar -cvf 
>> d:\cm-build\checkmate-0.7.0\lib\classes.jar squ/
>> The filename,directory name or volume label syntax is incorrect 
>> make ***[jar] Error 1 
>> D:\work>
>> 
>> All the directories do exist but I just can't see what is wrong. 
>> Any help would be greatly appreciated. 
>
>
>Don't forget that make is using "sh" to execute the command, so the '\' is
>eaten by the shell. You sould use "CLASSES=D:\\classes",
>"CLASSES=D:/classes" or even better (as the colon may fool up make if
>$(CLASSES) is used somewhere in a dependency list)
>"CLASSES=/cygdrive/D/classes".

Remeber, he's using "make --win32", so /bin/sh doesn't enter into this.

If I try an equivalent makefile using "ls" instead of "jar", "ls" shows
the files in the directory that has been cd'ed to, so it seems like
make is working ok, so I can't explain this behavior.

cgf

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]