mirror of
https://github.com/haproxy/haproxy.git
synced 2026-07-04 23:06:17 -04:00
BUILD: makefile: add macros enable_opts and disable_opts
These ones are used to only enable or disable selected options.
This commit is contained in:
parent
1a4be29252
commit
d92c997c68
1 changed files with 6 additions and 0 deletions
|
|
@ -8,6 +8,12 @@
|
|||
# there unless you're adding support for a new platform.
|
||||
default_opts = $(foreach name,$(1),$(eval $(name)=implicit))
|
||||
|
||||
# Disables all specified options
|
||||
disable_opts = $(foreach name,$(1),$(eval $(name)=0))
|
||||
|
||||
# Enables all specified options
|
||||
enable_opts = $(foreach name,$(1),$(eval $(name)=1))
|
||||
|
||||
# Return USE_xxx=$(USE_xxx) if the variable was set from the environment or the
|
||||
# command line.
|
||||
ignore_implicit = $(if $(subst environment,,$(origin $(1))), \
|
||||
|
|
|
|||
Loading…
Reference in a new issue