%% "Martin d'Anjou" <[EMAIL PROTECTED]> writes:

  md> I read that it is not possible to append to a variable from the
  md> command line:
  md> http://lists.gnu.org/archive/html/help-make/2003-02/msg00001.html

  md> How hard is it to modify the source code to acheive this anyway?

The problem is, what does it mean to append to a variable from the
command line?

When do you append it?  To what value?  In other words, given the
following makefile:

    $(warning FOO = $(FOO))

    FOO := bar

    $(warning FOO = $(FOO))

    FOO += biz

    $(warning FOO = $(FOO))

    all: FOO := boz
    all: FOO += baz
    all: ; @echo FOO = $(FOO) / '$$FOO' = $$FOO

What does make print out when you run:

    make FOO+=foo

??

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist


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

Reply via email to