bug-make
[Top][All Lists]
Advanced

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

[bug #45486] .ONESHELL:, -n option (--print-only) and the $(MAKE) variab


From: Paul D. Smith
Subject: [bug #45486] .ONESHELL:, -n option (--print-only) and the $(MAKE) variable
Date: Tue, 07 Jul 2015 12:23:13 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0

Follow-up Comment #1, bug #45486 (project make):

.ONESHELL causes all the recipe lines to be invoked with a single shell.  It
would be directly contradictory (and in fact would often fail) to run only
some of the recipe lines but not others in the face of .ONESHELL.

For example, people often use .ONESHELL so they don't need to worry about
backslashes, like this:


.ONESHELL:
foo:
        args=$$(compute-args)
        $(MAKE) FLAGS="$$args"


It would be wrong for make to only run the recipe in the second line when -n
is given.

I'm not sure I see what behaviour you are expecting to get in your example.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45486>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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