1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<h1 class="chapter">Conditional Parts of Makefiles</h1> <p>A <em>conditional</em> directive causes part of a makefile to be obeyed or ignored depending on the values of variables. Conditionals can compare the value of one variable to another, or the value of a variable to a constant string. Conditionals control what <code>make</code> actually “sees” in the makefile, so they <em>cannot</em> be used to control recipes at the time of execution. </p> <table class="menu" border="0" cellspacing="0"> <tr>
<td align="left" valign="top">• <a href="conditional-example" accesskey="1">Conditional Example</a>
</td>
<td> </td>
<td align="left" valign="top">Example of a conditional </td>
</tr> <tr>
<td align="left" valign="top">• <a href="conditional-syntax" accesskey="2">Conditional Syntax</a>
</td>
<td> </td>
<td align="left" valign="top">The syntax of conditionals. </td>
</tr> <tr>
<td align="left" valign="top">• <a href="testing-flags" accesskey="3">Testing Flags</a>
</td>
<td> </td>
<td align="left" valign="top">Conditionals that test flags. </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/Conditionals.html" class="_attribution-link">https://www.gnu.org/software/make/manual/html_node/Conditionals.html</a>
</p>
</div>
|