bug-make
[Top][All Lists]
Advanced

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

unexpected behavior of $(warning ...) from $(eval ...)


From: Robert W. Anderson
Subject: unexpected behavior of $(warning ...) from $(eval ...)
Date: Fri, 16 May 2003 16:53:35 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003


This makefile fragment seems to produce surprising behavior:

define FUNC
  ifeq (1,2)
    $(warning 1 eq 2)
  else
    $(warning 1 ne 2)
  endif
endef

$(eval $(FUNC))

% make
GNUmakefile:9: 1 eq 2
GNUmakefile:9: 1 ne 2
make: *** No targets.  Stop.
%

% make --version
GNU Make 3.80
Copyright (C) 2002  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

Should I file this on Savannah, or am I confused?

Thanks,
--
Robert W. Anderson
Center for Applied Scientific Computing
Email: address@hidden
Tel: 925-424-2858  Fax: 925-423-9338





reply via email to

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