This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]