This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Query regarding Cygwin make/Gnu Make
- From: "Rajagopalan, Karthik" <Karthik-Rajagopalan at deshaw dot com>
- To: "'cygwin at cygwin dot com'" <cygwin at cygwin dot com>
- Date: Thu, 4 Dec 2003 15:04:28 +0530
- Subject: Query regarding Cygwin make/Gnu Make
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/