Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <7D5F213AF1EF264990B7C09ADD1B1CDDB8BF86@cheadle.ds.teradyne.com> From: "Prasad, Kanuparthi" To: "'cygwin AT cygwin DOT com'" Subject: if construct doesn't work in makefile Date: Thu, 11 Nov 2004 11:15:32 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" 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. Regards, sitaram -- 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/