diff options
Diffstat (limited to 'devdocs/gnu_make/flavor-function.html')
| -rw-r--r-- | devdocs/gnu_make/flavor-function.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/devdocs/gnu_make/flavor-function.html b/devdocs/gnu_make/flavor-function.html new file mode 100644 index 00000000..6fb87851 --- /dev/null +++ b/devdocs/gnu_make/flavor-function.html @@ -0,0 +1,8 @@ + <h1 class="section">The flavor Function</h1> <p>The <code>flavor</code> function, like the <code>origin</code> function, does not operate on the values of variables but rather it tells you something <em>about</em> a variable. Specifically, it tells you the flavor of a variable (see <a href="flavors">The Two Flavors of Variables</a>). </p> <p>The syntax of the <code>flavor</code> function is: </p> <div class="example"> <pre class="example">$(flavor <var>variable</var>) +</pre> +</div> <p>Note that <var>variable</var> is the <em>name</em> of a variable to inquire about, not a <em>reference</em> to that variable. Therefore you would not normally use a ‘<samp>$</samp>’ or parentheses when writing it. (You can, however, use a variable reference in the name if you want the name not to be a constant.) </p> <p>The result of this function is a string that identifies the flavor of the variable <var>variable</var>: </p> <dl compact> <dt id="undefined">‘<samp>undefined</samp>’</dt> <dd> <p>if <var>variable</var> was never defined. </p> </dd> <dt id="recursive">‘<samp>recursive</samp>’</dt> <dd> <p>if <var>variable</var> is a recursively expanded variable. </p> </dd> <dt id="simple">‘<samp>simple</samp>’</dt> <dd> <p>if <var>variable</var> is a simply expanded variable. </p> </dd> </dl><div class="_attribution"> + <p class="_attribution-p"> + Copyright © 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 Free Software Foundation, Inc. <br>Licensed under the GNU Free Documentation License.<br> + <a href="https://www.gnu.org/software/make/manual/html_node/Flavor-Function.html" class="_attribution-link">https://www.gnu.org/software/make/manual/html_node/Flavor-Function.html</a> + </p> +</div> |
