📄 make-08.html
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>第八章 : make的内嵌函数</title>
<style>
<!--
h1
{margin-top:12.0pt;
margin-right:0pt;
margin-bottom:12.0pt;
margin-left:21.6pt;
text-align:justify;
text-justify:inter-ideograph;
text-indent:-21.6pt;
page-break-after:avoid;
tab-stops:list 21.6pt;
text-autospace:none;
font-size:16.0pt;
font-family:Arial;
}
p.MsoNormal
{mso-style-parent:"";
margin-bottom:.0001pt;
text-autospace:none;
font-size:10.0pt;
font-family:"Times New Roman";
margin-left:0pt; margin-right:0pt; margin-top:0pt}
h2
{margin-top:12.0pt;
margin-right:0pt;
margin-bottom:12.0pt;
margin-left:28.8pt;
text-align:justify;
text-justify:inter-ideograph;
text-indent:-28.8pt;
page-break-after:avoid;
tab-stops:list 28.8pt;
text-autospace:none;
font-size:12.0pt;
font-family:Arial;
font-weight:normal}
h3
{margin-top:12.0pt;
margin-right:0pt;
margin-bottom:12.0pt;
margin-left:36.0pt;
text-align:justify;
text-justify:inter-ideograph;
text-indent:-36.0pt;
page-break-after:avoid;
tab-stops:list 36.0pt;
text-autospace:none;
font-size:12.0pt;
font-family:Arial;
font-weight:normal}
p.MsoBodyTextFirstIndent
{margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
text-indent:21.0pt;
line-height:150%;
text-autospace:none;
font-size:10.5pt;
font-family:Arial;
margin-left:0pt; margin-right:0pt; margin-top:0pt}
-->
</style>
</head>
<body>
<h1 align="center" style="text-align: center; text-indent: 0pt; margin-left: 9.9pt">
<a name="chapter_07"><span style="font-size: 18.0pt; font-family: 楷体_GB2312">
第八章:</span><span lang="EN-US" style="font-size: 18.0pt">make</span><span style="font-size: 18.0pt; font-family: 楷体_GB2312">的内嵌函数</span></a></h1>
<span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; color: #222222">
<hr size="1" width="100%" align="center">
</span>
<p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; text-indent: 24.0pt; line-height: 150%; text-autospace: ideograph-numeric ideograph-other">
<span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; font-family: Arial; color: black">
GNU make</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">的函数提供了处理文件名、变量、文本和命令的方法。使用函数我们的</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; font-family: Arial; color: black">Makefile</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">可以书写的更加灵活和健壮。可以在需要的地方地调用函数来处理指定的文本(需要处理的文本作为函数的参数),函数的在调用它的地方被替换为它的处理结果。函数调用(引用)的展开和变量引用的展开方式相同。</span></p>
<h2><a name="_gnu_make_8.1"><b><span lang="EN-US" style="font-size: 14.0pt">8.1<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7.0pt; font-family: Times New Roman">
</span></span></b><span style="font-size: 14.0pt; font-family: 楷体_GB2312">
函数的调用语法</span></a></h2>
<p class="MsoNormal" style="text-align: justify; text-justify: inter-ideograph; text-indent: 24.0pt; line-height: 150%; text-autospace: ideograph-numeric ideograph-other">
<span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; font-family: Arial; color: black">
GNU make</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">函数的调用格式类似于变量的引用,以“</span><span lang="EN-US" style="font-size: 12.0pt; line-height: 150%; font-family: Arial; color: black">$</span><span style="font-size: 12.0pt; line-height: 150%; font-family: 楷体_GB2312; color: black">”开始表示一个引用。语法格式如下:</span></p>
<p class="MsoNormal" style="text-indent: 20.5pt">
<span lang="EN-US" style="font-size: 12.0pt; font-family: Arial"> </span></p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -