This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: using cygpath & make
- To: cygwin at cygwin dot com
- Subject: Re: using cygpath & make
- From: "Craig McGeachie" <craig at rhe dot com dot au>
- Date: Tue, 10 Jul 2001 08:28:42 +1000
> I put together a simple target to illustrate what I am trying to do.
>
> mytemp:
> NEW_FLAGS=`cygpath -p -w /usr/local/bis`; echo new_flags is:
> "${NEW_FLAGS}"
> echo "${NEW_FLAGS}
Try this instead.
========>
NEW_FLAGS=$(shell cygpath -w /Programs/Oracle)
default:
echo Newflags is $(NEW_FLAGS)
<========
Which outputs:
========>
Newflags is d:ProgramsOracle
560:craig$ make
echo Newflags is d:\Programs\Oracle
Newflags is d:ProgramsOracle
<========
Of course, all those backslashes present a problem for echo, but the
make variable is set correctly. You should be able to use the
variable contents with Win32 native applications without problems.
-----------------+---------------------------------------------------
Craig McGeachie | #include <cheesy_tag.h>
+61 (410) 774902 | while (!inebriated) c2h5oh = (++bottle)->contents;
-----------------+---------------------------------------------------
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/