[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

target-specific appending with an empty value

From: Maksim A. Nikulin
Subject: target-specific appending with an empty value
Date: Mon, 7 Jul 2003 11:45:51 +0700 (NOVST)


I have a problem with target-pecific variables. A Makefile to demonstrate
a = 1

bug: a +=

again-work: a +=
again-work: a += 2

work bug again-work:
        @echo "$@: a = $(a)"

I expect
$ make bug
bug: a = 1

But I see only
$ make bug
bug: a = 

The other targets give me no surprise
$ make work
work: a = 1
$ make again-work
again-work: a = 1 2

I'm using make-3.80 with eval-conditional and eval-crash patches on a 
Linux RedHat-7.3 machine.

Makim Nikulin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]