Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <002201c213f1$d5c0e5b0$15a8a8c0@accetnetwork.com>
Reply-To: "Earl Mitchell" <earl.mitchell@accetnetwork.com>
From: "Earl Mitchell" <earl.mitchell@accetnetwork.com>
To: <cygwin@cygwin.com>
Subject: question my sh commands in makefile works on linux but not on cygwin
Date: Fri, 14 Jun 2002 15:21:31 -0700
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200

Need help with following problem.
I have very simple makefile with following rule:

test:
        @echo "this is a test"
        @if [ "1" = "1" ] ; then \
                echo "working" ; \
        fi ;

If I do a make on linux I correctly see ...

this is a test
working

But in cygwin when I make using same makeifle I see this ...

"this is a test"
"1" was unexpected at this time.
make.exe: *** [test] Error 0x1

The MAKE_MODE is set to unix. Does anybody
know why the make is failing to parse this? I checked
the newsgroup and manual don't see what is causing
this to fail. 

thanks

-earlm






--
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/

