RE: if construct doesn't work in makefile

2004-11-11 Thread Bob Byrnes
> > if test [-dc:/tools]; then ... > > ... in fact test seems to be happy with no spaces around the square > brackets. I think it may be only if you want to use the implicit form > of test that the brackets need to be separated with spaces from the test > inside them, so that bash spots them as

RE: if construct doesn't work in makefile

2004-11-11 Thread Jörg Schaible
Gerrit P. Haase wrote on Thursday, November 11, 2004 3:13 PM: [snip] > A snippet from the Makefile you're using would help, please > see also the > other postings with more tipps -> http://cygwin.com/ml/cygwin/2004-11/ ... or older: http://www.cygwin.com/ml/cygwin/2000-06/msg01318.html - Jörg

Re: if construct doesn't work in makefile

2004-11-11 Thread Gerrit P. Haase
Prasad, Kanuparthi wrote: Hi, I tried, but it doesn't work. I tried using cygwin syntax to access drives. but invain. Also I tried by typing this script at the prompt. but it doesn't work the way it is expected. Should I need to execute it in a separate shell, if so, how is it done. A snippet f

RE: if construct doesn't work in makefile

2004-11-11 Thread Prasad, Kanuparthi
gards, sitaram -Original Message- From: Gerrit P. Haase [mailto:[EMAIL PROTECTED] Sent: 11 November 2004 11:32 To: Prasad, Kanuparthi Cc: '[EMAIL PROTECTED]' Subject: Re: if construct doesn't work in makefile Prasad, Kanuparthi wrote: > Hi, > > In my make file I am tryi

RE: if construct doesn't work in makefile

2004-11-11 Thread Dave Korn
> -Original Message- > From: cygwin-owner On Behalf Of Prasad, Kanuparthi > Sent: 11 November 2004 11:16 > In my make file I am trying to check whether a directory > exists or not > then set a path differently if doesn't exist. > I am using cygwin installed on windows 2000. > The if

RE: if construct doesn't work in makefile

2004-11-11 Thread Dave Korn
> -Original Message- > From: cygwin-owner On Behalf Of Morche Matthias > Sent: 11 November 2004 12:22 > cygwin-ownerOOOPScygwinBADOIN!com wrote: Matthias, http://cygwin.com/acronyms#PCYMTNQREAIYR, thanks! > > In my make file I am trying to check whether a directory exists or > >

RE: if construct doesn't work in makefile

2004-11-11 Thread Dave Korn
> -Original Message- > From: cygwin-owner On Behalf Of Gerrit P. Haase > Sent: 11 November 2004 11:32 > Prasad, Kanuparthi wrote: > > Hi, > > > > In my make file I am trying to check whether a directory > exists or not > > then set a path differently if doesn't exist. > > I am using

Re: if construct doesn't work in makefile

2004-11-11 Thread Gerrit P. Haase
Prasad, Kanuparthi wrote: Hi, In my make file I am trying to check whether a directory exists or not then set a path differently if doesn't exist. I am using cygwin installed on windows 2000. The if construct I have is as follows. if test [-dc:/tools]; then DRIVE = c:/tools; else DRIVE = c:

RE: if construct doesn't work in makefile

2004-11-11 Thread Morche Matthias
[EMAIL PROTECTED] wrote: > Hi, > > In my make file I am trying to check whether a directory exists or > not then set a path differently if doesn't exist. > I am using cygwin installed on windows 2000. > The if construct I have is as follows. > > if test [-dc:/tools]; then DRIVE = c:/tools