1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
<h1 class="chapter">Functions for Transforming Text</h1> <p><em>Functions</em> allow you to do text processing in the makefile to compute the files to operate on or the commands to use in recipes. You use a function in a <em>function call</em>, where you give the name of the function and some text (the <em>arguments</em>) for the function to operate on. The result of the function’s processing is substituted into the makefile at the point of the call, just as a variable might be substituted. </p> <table class="menu" border="0" cellspacing="0"> <tr>
<td align="left" valign="top">• <a href="syntax-of-functions" accesskey="1">Syntax of Functions</a>
</td>
<td> </td>
<td align="left" valign="top">How to write a function call. </td>
</tr> <tr>
<td align="left" valign="top">• <a href="text-functions" accesskey="2">Text Functions</a>
</td>
<td> </td>
<td align="left" valign="top">General-purpose text manipulation functions. </td>
</tr> <tr>
<td align="left" valign="top">• <a href="file-name-functions" accesskey="3">File Name Functions</a>
</td>
<td> </td>
<td align="left" valign="top">Functions for manipulating file names. </td>
</tr> <tr>
<td align="left" valign="top">• <a href="conditional-functions" accesskey="4">Conditional Functions</a>
</td>
<td> </td>
<td align="left" valign="top">Functions that implement conditions. </td>
</tr> <tr>
<td align="left" valign="top">• <a href="let-function" accesskey="5">Let Function</a>
</td>
<td> </td>
<td align="left" valign="top">Local variables. </td>
</tr> <tr>
<td align="left" valign="top">• <a href="foreach-function" accesskey="6">Foreach Function</a>
</td>
<td> </td>
<td align="left" valign="top">Repeat some text with controlled variation. </td>
</tr> <tr>
<td align="left" valign="top">• <a href="file-function" accesskey="7">File Function</a>
</td>
<td> </td>
<td align="left" valign="top">Write text to a file. </td>
</tr> <tr>
<td align="left" valign="top">• <a href="call-function" accesskey="8">Call Function</a>
</td>
<td> </td>
<td align="left" valign="top">Expand a user-defined function. </td>
</tr> <tr>
<td align="left" valign="top">• <a href="value-function" accesskey="9">Value Function</a>
</td>
<td> </td>
<td align="left" valign="top">Return the un-expanded value of a variable. </td>
</tr> <tr>
<td align="left" valign="top">• <a href="eval-function">Eval Function</a>
</td>
<td> </td>
<td align="left" valign="top">Evaluate the arguments as makefile syntax. </td>
</tr> <tr>
<td align="left" valign="top">• <a href="origin-function">Origin Function</a>
</td>
<td> </td>
<td align="left" valign="top">Find where a variable got its value. </td>
</tr> <tr>
<td align="left" valign="top">• <a href="flavor-function">Flavor Function</a>
</td>
<td> </td>
<td align="left" valign="top">Find out the flavor of a variable. </td>
</tr> <tr>
<td align="left" valign="top">• <a href="make-control-functions">Make Control Functions</a>
</td>
<td> </td>
<td align="left" valign="top">Functions that control how make runs. </td>
</tr> <tr>
<td align="left" valign="top">• <a href="shell-function">Shell Function</a>
</td>
<td> </td>
<td align="left" valign="top">Substitute the output of a shell command. </td>
</tr> <tr>
<td align="left" valign="top">• <a href="guile-function">Guile Function</a>
</td>
<td> </td>
<td align="left" valign="top">Use GNU Guile embedded scripting language. </td>
</tr> </table><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/Functions.html" class="_attribution-link">https://www.gnu.org/software/make/manual/html_node/Functions.html</a>
</p>
</div>
|