John, Thanks for the suggestion. I did go through GNU make manual which I had downloaded. But found that some of the options are not very obvious. Like somehow I did not find the $(error/warning). Maybe I missed it.
Thanks .. -- Raviraj Murdeshwar. > -----Original Message----- > From: John Graham-Cumming [mailto:[EMAIL PROTECTED] > Sent: Saturday, September 10, 2005 11:29 AM > To: [email protected] > Cc: [EMAIL PROTECTED] > Subject: Re: need help with the Makefile > > [EMAIL PROTECTED] wrote: > > 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 > > How about... > > ifeq ($(OS),linux) > $(warning OS is linux) > endif > > (Note in a previous email Paul pointed out the $(shell echo ... 1&>2) is > the answer to your question about outputting information without giving > the Makefile name and line number; I was wrong when I said that wasn't > possible, silly me). > > Reading through some of your questions can I gently suggest that you > reread the GNU Make documentation or the O'Reilly "Managing Projects > with GNU Make" book. You seem a little confused about Make syntax and > I think it would be good to read the first part of the O'Reilly book to > help get you up to speed. > > 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
