Hi John,

Is it possible to echo anything else within ifeq / endif block ?

ifeq ($(strip $(KVER)),)
$(error Please set KVER before running Make) endif

like

% cat t2.mak
ifeq ($(OS),linux)
  @echo "OS = Linux"
Endif

% make -f t2.mak
make: *** No targets.  Stop.



Thanks ..
-- 
Raviraj Murdeshwar.
408.553.4318

> -----Original Message-----
> From: John Graham-Cumming [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 09, 2005 11:34 AM
> To: [email protected]
> Cc: [EMAIL PROTECTED]
> Subject: Re: need help with the Makefile
> 
> [EMAIL PROTECTED] wrote:
> > Is there any way to suppress the makefile name in the error output. I
> would like to just output as error.
> > "Error: Please set ARCH before running Make."
> 
> No.
> 
> John.
> --
> John Graham-Cumming
> [EMAIL PROTECTED]
> 
> Home: http://www.jgc.org/
> POPFile: http://getpopfile.org/
> 
> Sign up for my Spam and Anti-spam Newsletter
> at http://www.jgc.org/




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

Reply via email to