help-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(gmake) Detecting error in call to $(shell ...)


From: Kannan Goundan
Subject: (gmake) Detecting error in call to $(shell ...)
Date: 29 Oct 2004 18:05:19 -0700

I have something like:

   CMD = $(shell find-compiler)

   file.o: file.c
      $(CMD) -c $<

If the "find-compiler" command cannot find an appropriate compiler, it
spits out an error message and returns a non-zero exit code. 
Currently, the Makefile doesn't detect that condition and will try and
continue (with $CMD set to the error message string).

Can I get Make to stop processing immediately after "find-compiler"
returns a non-zero exit code?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]