From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Faylor To: cygwin@cygwin.com Subject: Re: Using cygwin "make" Date: Wed, 17 Jan 2001 06:23:00 -0000 Message-id: <20010117092318.A12235@redhat.com> References: <17B78BDF120BD411B70100500422FC6309E1CA@IIS000> X-SW-Source: 2001-01/msg00836.html 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