Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deal with GMake Makefile conditional assignment operators. #6623

Merged

Commits on Oct 21, 2019

  1. Deal with Makefile conditional assignment operators.

    Ordinarily variable assignments in Makefiles are done simply with an
    unconditional assignment: the equals sign.  There are variants of this:
    
    FOO := $(BAR)	Avoid recursively expand variables.
    FOO ?= bar	Assign only if $(FOO) is not already set.
    FOO += bar	Add more to a variable.
    FOO != bar	Execute a shell script and assign result to $(FOO).
    
    See also
    https://www.gnu.org/software/make/manual/html_node/Conditional-Example.html
    https://www.gnu.org/software/make/manual/html_node/Flavors.html
    DavidGriffith authored and MikeMcQuaid committed Oct 21, 2019
    Configuration menu
    Copy the full SHA
    6ff6190 View commit details
    Browse the repository at this point in the history