help-make
[Top][All Lists]
Advanced

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

RETURN macro definition


From: Noel Yap
Subject: RETURN macro definition
Date: Fri, 16 Apr 2004 11:37:01 -0400
User-agent: Mozilla Thunderbird 0.5 (Windows/20040212)

When I have the following:

  define RETURN
  endef

  $(warning [$(RETURN)])

  .PHONY: all
  all:


The output is as expected:

  $ gmake
  GNUmakefile:3: []
  gmake: Nothing to be done for `all'.


When I change it to:

  define RETURN

  endef


The output is not what I expect:

  $ gmake
  GNUmakefile:3: []
  gmake: Nothing to be done for `all'.


If I change it to:

  define RETURN


  endef


The output is what I wanted to get from the second definition:

  $ gmake
  GNUmakefile:3: [
  ]
  gmake: Nothing to be done for `all'.


Is this a bug?

Thanks,
Noel




reply via email to

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