It's not a bug. Make will react on the return status of a command. Commands
in Make are executed in Bash. The last command in the pipe is 'grep', which
returns a value of '1' if it does not find a occurrence of the search
string. The $(MAKE) command returns a '2', which would stop Make from
continuing, if it weren't for the 'grep' command.

So basically, you should make sure that Make is able to capture what you
believe should be an error!


elight wrote:
> 
>       $(MAKE) error 2>&1 | grep error
> 
> Redirection and piping make different result.
> Hmm. It's a bug or not?
> 

-- 
View this message in context: 
http://old.nabble.com/How-to-stop-building-when-sub-make-returns-error-tp27122668p27126572.html
Sent from the Gnu - Make - Help mailing list archive at Nabble.com.



_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to