delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/04/04:34:49

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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: <21559A0D4CF8D511B51100065B38178B0166FC14@mshyd2.hyd.deshaw.com>
From: "Rajagopalan, Karthik" <Karthik-Rajagopalan AT deshaw DOT com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: Query regarding Cygwin make/Gnu Make
Date: Thu, 4 Dec 2003 15:04:28 +0530
MIME-Version: 1.0

Hi,
  I found today a weird working difference between Cygwin Make against Gnu
Make. Let me explain the situation I faced.
I have following piece of code as "test" target. Here $(EXE) takes .exe for
Windows and blank for Linux.


 test: 
	cat test.dat | test$(EXE) 1> test.res 2>&
	diff test.res test.std

When "make test" is fired, it proceed to execute the first command

	cat test.dat | test$(EXE) 1> test.res 2>&

test$(EXE) return -1 back because of encountering a error in code test.c.
This return value stops the execution of "make" utility in Cygwin to proceed
to next command

		diff test.res test.std

where in Linux it proceeds to execute the above code. This is the desired
execution we require to happen. Why is this strange difference in "Cygwin
Make" and "GNU Make". Which is correct order of execution :Cygwin Make or
GNU Make". Can you explain me the workingfunctionality behind this taking
into account the return value to shell?


Awaiting your reply at earliest.


with regards,
Karthik.

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019