help-make
[Top][All Lists]
Advanced

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

Re: need help with the Makefile


From: John Graham-Cumming
Subject: Re: need help with the Makefile
Date: Sat, 10 Sep 2005 20:28:53 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040208 Thunderbird/0.5 Mnenhy/0.6.0.104

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/





reply via email to

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