]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: Makefile: consider a variable's origin and not its value for the options list
authorWilly Tarreau <w@1wt.eu>
Wed, 27 Mar 2019 09:36:35 +0000 (10:36 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 27 Mar 2019 13:30:16 +0000 (14:30 +0100)
commit09fe5669365aa20af55e6a3b85e90db724305e35
treea6b3ee86d30c542e1396f37bab1606d52dc9c9df
parentc3643517f3319a274ba83784a7cb8dc4e8d2ddd2
BUILD: Makefile: consider a variable's origin and not its value for the options list

Right now it's annoying not to be able to enumerate disabled options that
are set by default for a given target. The reason is that we rely on the
fact that the variable is neither cleared nor set to "implicit" in order
to list it.

Here we modify the ignore_implicit function to check the variable's origin
instead of its value. We consider as modified any variable whose origin is
"environment" or "command". Other ones are "undefined" (variable not set)
and "file" (variable set in the Makefile). For now this doesn't change
anything since variables are only dumped when not empty. However if a
variable was forced to "implicit" on the command line, it would now appear.
Makefile