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 |
Message-Id: | <5.1.0.14.2.20010709144945.0271cf08@pop3.cris.com> |
X-Sender: | rrschulz AT pop3 DOT cris DOT com |
X-Mailer: | QUALCOMM Windows Eudora Version 5.1 |
Date: | Mon, 09 Jul 2001 14:51:27 -0700 |
To: | "ASH, JAMES (SBCSI)" <ja7295 AT sbc DOT com>, cygwin AT cygwin DOT com |
From: | Randall R Schulz <rrschulz AT cris DOT com> |
Subject: | Re: using cygpath & make |
In-Reply-To: | <8BFEC206D292D311921500508B0BCB8D07F0103A@msgstl01.sbc.com> |
Mime-Version: | 1.0 |
James, The "echo" command in your test makefile is on a separate line. Hence it is executed by a separate shell from the preceding line and therefore does not inherit the value of NEW_FLAGS assigned in the previous line (i.e., the assignment is to an environment variable, not to a Make variable). Randall Schulz At 14:32 2001-07-09, ASH, JAMES (SBCSI) wrote: >I'm using cygwin to develop applications that will be portable between by >laptop and the various Unix boxes that we support. I would like to use >cygpath to manage my path, classpath etc. > >I read this in the user guide on cygpath: > >"The -i option supresses the print out of the usage message if no filename >argument was given. It can be used in make >file rules converting variables to a proper format" > >This is exactly what I want to use cygpath for - specifically managing >CLASSPATH in my make files. But as there is no example, I am at a loss as to >how to go about doing this. > >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} > >when I run 'make mytemp' , I get: > >$ make mytemp >NEW_FLAGS=`cygpath -p -w /usr/local/bis`; echo new_flags is:"" >new_flags is: >echo "" > >NEW_FLAGS appears to be empty. > >running cygpath -p -w /usr/local/bis from the command line gives me: > >d:\bis > >which is correct. > >Can someone explain what the user guide is trying to tell me about how to >use cygpath in a makefile? What am I missing?? > >Thanks. > >Jim -- 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 |