| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| From: | "Craig McGeachie" <craig AT rhe DOT com DOT au> |
| To: | cygwin AT cygwin DOT com |
| Date: | Tue, 10 Jul 2001 08:28:42 +1000 |
| MIME-Version: | 1.0 |
| Subject: | Re: using cygpath & make |
| Message-ID: | <3B4ABCBA.26856.14078A25@localhost> |
| In-reply-to: | <8BFEC206D292D311921500508B0BCB8D07F0103A@msgstl01.sbc.com> |
| X-mailer: | Pegasus Mail for Win32 (v3.12c) |
> 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |