[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: need help with the Makefile
From: |
ravi_murdeshwar |
Subject: |
RE: need help with the Makefile |
Date: |
Mon, 12 Sep 2005 13:34:11 -0600 |
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:address@hidden
> Sent: Saturday, September 10, 2005 11:29 AM
> To: address@hidden
> Cc: address@hidden
> Subject: Re: need help with the Makefile
>
> address@hidden 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
> address@hidden
>
> Home: http://www.jgc.org/
> POPFile: http://getpopfile.org/
>
> Sign up for my Spam and Anti-spam Newsletter
> at http://www.jgc.org/
>
- Re: need help with the Makefile, (continued)