Michael G Schwern wrote:
On Fri, Dec 17, 2004 at 03:53:32AM -0500, Randy W. Sims wrote:
Macro expressions specified on the command line allow the macro value to be redefined within the makefile only if the macro is defined using the '+=' and '+:=' operators. Other operators will define a macro that cannot be further modified.
BTW, I did test earlier today with nmake on 5.6 and 5.8 and found no problems. The above problem only affects dmake.
This can't be right. Could you try something simple like
dmake test TEST_VERBOSE=1 dmake.exe: makefile: line 807: Warning -- Macro `TEST_VERBOSE' cannot be redefined ...
Manually changing the generated F<Makefile> to use the C<MACRO *= LINE>
form of assignment fixes the problem. But that seems like a PITA to have to specify this alternative syntax for all possible commandline macros. How is MakeMaker different now than before?
Did a little checking. I get the same warning with MakeMaker going back to 5.47...
