Update of bug #16505 (project make):

                  Status:                    None => Not A Bug              
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #2:

Eli's answer is generally correct.  The NEWS and manual explain the change,
and this is not a bug in GNU make but rather a deliberate change (other
versions of make already work the new way).

However, one minor detail: the simplest change to get it to work is usually
NOT changing to double-quotes; that would involve (as Eli mentions) a _LOT_
of extra work quoting things and make the results confusing and difficult to
read and edit.

As recommended in the manual, the simplest change to get it to work is to put
the script into a make variable:

  SCRIPT := 'print "this is my "; \
             print "perl script";'
  foo: ; perl -e $(SCRIPT)

because make variable settings continue to use the standard make
backslash/newline handling, rather than the shell backslash newline handling
used in the command scripts.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=16505>

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



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

Reply via email to