This is the mail archive of the cygwin@cygwin.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 cygpath & make


> 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/


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