[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
order of evaluation for target specific variables
From: |
Alfred M. Szmidt |
Subject: |
order of evaluation for target specific variables |
Date: |
Wed, 27 Apr 2016 15:25:35 -0400 |
What are the intended semantics of the following snippet,
target: foo=zork
target:
ifeq ($(foo),zork)
@echo "zork zork"
else
@echo "bork bork"
endif
I'm thinking that it should print "zork zork" -- target specific
variables are supposed to have the same priority as if any other make
variable. But if foo=zork is defined as a non-target specific
variable, the behaviour changes (printing "zork zork").
But then, the current behaviour (printing "bork bork") kinda makes
sense as well. Is this a subtle "feature" in how target specific
variables are handled?
- order of evaluation for target specific variables,
Alfred M. Szmidt <=