Module Name: src Committed By: rillig Date: Tue Jul 12 17:45:11 UTC 2022
Modified Files: src/usr.bin/make: make.1 Log Message: make: describe variable assignment and evaluation more precisely Variables in make are not "much like variables in the shell", they only look that way. Their behavior is more similar to C preprocessor macros. The spaces around a variable value are removed when parsing the variable assignment, not after evaluating it. Before describing the variable assignment operators, introduce the general syntax of a variable assignment. Add a separate subsection "Expansion of variables", since assignment and expansion are unrelated. Illustrate how variable expansions look instead of describing it in many words. Describe how variables are expanded in conditionals, since that is different from everywhere else. To generate a diff of this commit: cvs rdiff -u -r1.309 -r1.310 src/usr.bin/make/make.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.