This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: if construct doesn't work in makefile
- From: "Gerrit P. Haase" <gerrit at familiehaase dot de>
- To: "Prasad, Kanuparthi" <Kanuparthi dot Prasad at teradyne dot com>
- Cc: "'cygwin at cygwin dot com'" <cygwin at cygwin dot com>
- Date: Thu, 11 Nov 2004 12:31:32 +0100
- Subject: Re: if construct doesn't work in makefile
- Organization: Esse keine toten Tiere
- References: <7D5F213AF1EF264990B7C09ADD1B1CDDB8BF86@cheadle.ds.teradyne.com>
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:/altTools; fi
pls help me out.
Try
if test [-dc:/tools] ; then DRIVE=c:/tools; else DRIVE=c:/altTools; fi
instead, and/or use cygwin syntax to access drives.
Gerrit
--
=^..^=
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/