Consider this makefile:

  t: m+=2

  t:
        @echo "[${m}]"

Then the following sort of works:

  $ make t
  [ 2]
  $

(Interestingly, make 3.78 produces a different result:

  $ make378 t
  [2]
  $

Hmmm.)

BUT the folowing crashes:

  $ make m=hello t
  make: expand.c:489: allocated_variable_append: Assertion 
`current_variable_set_list->next != 0' failed.
  Aborted (core dumped)
  $

All is OK with m:=hello on the command line (note the colon), and also
running with make378. A similar situation exists with the current cygwin
make (make-3.79.1-2 I believe)

Regards,
-- 
Robert Bogomip /// mailto:[EMAIL PROTECTED]
Milo Hedge Ltd, OCFI, Mill Street, Oxford, OX2 0JX /// tel:+44 1865 799400


_______________________________________________
Bug-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-make

Reply via email to