%% "zong jians" <[EMAIL PROTECTED]> writes:

  zj> In the linux kernel makefile,there is some words like
  zj> "$(if $(KBUILD_VERBOSE:1=),@)" in some line.

The syntax $(VAR:x=y) is syntactic sugar (shorthand) for:

    $(patsubst x,y,$(VAR))

In the special case where either "x" or "y" don't contain a pattern
character (%), it's considered to be prepended; so it would be
equivalent to:

    $(patsubst %x,%y,$(VAR))

or in the above example:

    $(if $(patsubst %1,%,$(KBUILD_VERBOSE)),@)

which essentially evaluates to "@" if the value of KBUILD_VERBOSE is any
value other than "1", and empty if it's exactly "1".

See the GNU make manual for details.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist


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

Reply via email to