Skip Menu |

This queue is for tickets about the makepp CPAN distribution.

Report information
The Basics
Id: 78441
Status: open
Priority: 0/
Queue: makepp

People
Owner: occitan [...] esperanto.org
Requestors: yshtil [...] nvidia.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



CC: Sergei Skokov <sskokov [...] nvidia.com>
Subject: target specific variables evaluated incorrectly
Date: Tue, 17 Jul 2012 19:34:37 -0700
To: "bug-makepp [...] rt.cpan.org" <bug-makepp [...] rt.cpan.org>
From: Yuri Shtil <yshtil [...] nvidia.com>
Hi, When the following code runs via gnu make and makepp-2.0 the results are different: # command 'makepp a' # gives MYVAR which has target specific EXTRA_VAL but misses VAL a : MYVAR += EXTRA_VAL MYVAR += VAL ifdef MAKE_VERSION a : else $(phony a): endif @echo MYVAR=$(MYVAR) ----------------------------------------------------------------------------------- This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -----------------------------------------------------------------------------------
Hi Yuri, well spotted – gmake is full of surprises. I would at least have expected the words to come out the other way round, since the specific appending is seen first... I'm undecided whether such a border case merits a major rework of mpp's assignment handling. Anyway the short term solution would be to put the general assignment above the other one. regards -- Daniel