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/


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to