/usr/share/doc/make-doc/make.html/Quick-Reference.html is in make-doc 4.2.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- This file documents the GNU make utility, which determines
automatically which pieces of a large program need to be recompiled,
and issues the commands to recompile them.
This is Edition 0.74, last updated 21 May 2016,
of The GNU Make Manual, for GNU make version 4.2.1.
Copyright (C) 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 Free Software
Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with no
Invariant Sections, with the Front-Cover Texts being "A GNU Manual,"
and with the Back-Cover Texts as in (a) below. A copy of the
license is included in the section entitled "GNU Free Documentation
License."
(a) The FSF's Back-Cover Text is: "You have the freedom to copy and
modify this GNU manual. Buying copies from the FSF supports it in
developing GNU and promoting software freedom." -->
<!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Quick Reference (GNU make)</title>
<meta name="description" content="Quick Reference (GNU make)">
<meta name="keywords" content="Quick Reference (GNU make)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<link href="index.html#Top" rel="start" title="Top">
<link href="Concept-Index.html#Concept-Index" rel="index" title="Concept Index">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="index.html#Top" rel="up" title="Top">
<link href="Error-Messages.html#Error-Messages" rel="next" title="Error Messages">
<link href="Makefile-Conventions.html#Install-Command-Categories" rel="prev" title="Install Command Categories">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
blockquote.smallquotation {font-size: smaller}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
div.smalldisplay {margin-left: 3.2em}
div.smallexample {margin-left: 3.2em}
div.smalllisp {margin-left: 3.2em}
kbd {font-style: oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: inherit; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: inherit; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.nolinebreak {white-space: nowrap}
span.roman {font-family: initial; font-weight: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
ul.no-bullet {list-style: none}
-->
</style>
</head>
<body lang="en">
<a name="Quick-Reference"></a>
<div class="header">
<p>
Next: <a href="Error-Messages.html#Error-Messages" accesskey="n" rel="next">Error Messages</a>, Previous: <a href="Makefile-Conventions.html#Makefile-Conventions" accesskey="p" rel="prev">Makefile Conventions</a>, Up: <a href="index.html#Top" accesskey="u" rel="up">Top</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html#Concept-Index" title="Index" rel="index">Index</a>]</p>
</div>
<a name="Quick-Reference-1"></a>
<h2 class="appendix">Appendix A Quick Reference</h2>
<p>This appendix summarizes the directives, text manipulation functions,
and special variables which GNU <code>make</code> understands.
See <a href="Rules.html#Special-Targets">Special Targets</a>, <a href="Implicit-Rules.html#Catalogue-of-Rules">Catalogue of Built-In Rules</a>,
and <a href="Running.html#Options-Summary">Summary of Options</a>,
for other summaries.
</p>
<p>Here is a summary of the directives GNU <code>make</code> recognizes:
</p>
<dl compact="compact">
<dt><code>define <var>variable</var></code></dt>
<dt><code>define <var>variable</var> =</code></dt>
<dt><code>define <var>variable</var> :=</code></dt>
<dt><code>define <var>variable</var> ::=</code></dt>
<dt><code>define <var>variable</var> +=</code></dt>
<dt><code>define <var>variable</var> ?=</code></dt>
<dt><code>endef</code></dt>
<dd><p>Define multi-line variables.<br>
See <a href="Using-Variables.html#Multi_002dLine">Multi-Line</a>.
</p>
</dd>
<dt><code>undefine <var>variable</var></code></dt>
<dd><p>Undefining variables.<br>
See <a href="Using-Variables.html#Undefine-Directive">Undefine Directive</a>.
</p>
</dd>
<dt><code>ifdef <var>variable</var></code></dt>
<dt><code>ifndef <var>variable</var></code></dt>
<dt><code>ifeq (<var>a</var>,<var>b</var>)</code></dt>
<dt><code>ifeq "<var>a</var>" "<var>b</var>"</code></dt>
<dt><code>ifeq '<var>a</var>' '<var>b</var>'</code></dt>
<dt><code>ifneq (<var>a</var>,<var>b</var>)</code></dt>
<dt><code>ifneq "<var>a</var>" "<var>b</var>"</code></dt>
<dt><code>ifneq '<var>a</var>' '<var>b</var>'</code></dt>
<dt><code>else</code></dt>
<dt><code>endif</code></dt>
<dd><p>Conditionally evaluate part of the makefile.<br>
See <a href="Conditionals.html#Conditionals">Conditionals</a>.
</p>
</dd>
<dt><code>include <var>file</var></code></dt>
<dt><code>-include <var>file</var></code></dt>
<dt><code>sinclude <var>file</var></code></dt>
<dd><p>Include another makefile.<br>
See <a href="Makefiles.html#Include">Including Other Makefiles</a>.
</p>
</dd>
<dt><code>override <var>variable-assignment</var></code></dt>
<dd><p>Define a variable, overriding any previous definition, even one from
the command line.<br>
See <a href="Using-Variables.html#Override-Directive">The <code>override</code> Directive</a>.
</p>
</dd>
<dt><code>export</code></dt>
<dd><p>Tell <code>make</code> to export all variables to child processes by default.<br>
See <a href="Recipes.html#Variables_002fRecursion">Communicating Variables to a Sub-<code>make</code></a>.
</p>
</dd>
<dt><code>export <var>variable</var></code></dt>
<dt><code>export <var>variable-assignment</var></code></dt>
<dt><code>unexport <var>variable</var></code></dt>
<dd><p>Tell <code>make</code> whether or not to export a particular variable to child
processes.<br>
See <a href="Recipes.html#Variables_002fRecursion">Communicating Variables to a Sub-<code>make</code></a>.
</p>
</dd>
<dt><code>private <var>variable-assignment</var></code></dt>
<dd><p>Do not allow this variable assignment to be inherited by prerequisites.<br>
See <a href="Using-Variables.html#Suppressing-Inheritance">Suppressing Inheritance</a>.
</p>
</dd>
<dt><code>vpath <var>pattern</var> <var>path</var></code></dt>
<dd><p>Specify a search path for files matching a ‘<samp>%</samp>’ pattern.<br>
See <a href="Rules.html#Selective-Search">The <code>vpath</code> Directive</a>.
</p>
</dd>
<dt><code>vpath <var>pattern</var></code></dt>
<dd><p>Remove all search paths previously specified for <var>pattern</var>.
</p>
</dd>
<dt><code>vpath</code></dt>
<dd><p>Remove all search paths previously specified in any <code>vpath</code>
directive.
</p></dd>
</dl>
<p>Here is a summary of the built-in functions (see <a href="Functions.html#Functions">Functions</a>):
</p>
<dl compact="compact">
<dt><code>$(subst <var>from</var>,<var>to</var>,<var>text</var>)</code></dt>
<dd><p>Replace <var>from</var> with <var>to</var> in <var>text</var>.<br>
See <a href="Functions.html#Text-Functions">Functions for String Substitution and Analysis</a>.
</p>
</dd>
<dt><code>$(patsubst <var>pattern</var>,<var>replacement</var>,<var>text</var>)</code></dt>
<dd><p>Replace words matching <var>pattern</var> with <var>replacement</var> in <var>text</var>.<br>
See <a href="Functions.html#Text-Functions">Functions for String Substitution and Analysis</a>.
</p>
</dd>
<dt><code>$(strip <var>string</var>)</code></dt>
<dd><p>Remove excess whitespace characters from <var>string</var>.<br>
See <a href="Functions.html#Text-Functions">Functions for String Substitution and Analysis</a>.
</p>
</dd>
<dt><code>$(findstring <var>find</var>,<var>text</var>)</code></dt>
<dd><p>Locate <var>find</var> in <var>text</var>.<br>
See <a href="Functions.html#Text-Functions">Functions for String Substitution and Analysis</a>.
</p>
</dd>
<dt><code>$(filter <var>pattern</var>…,<var>text</var>)</code></dt>
<dd><p>Select words in <var>text</var> that match one of the <var>pattern</var> words.<br>
See <a href="Functions.html#Text-Functions">Functions for String Substitution and Analysis</a>.
</p>
</dd>
<dt><code>$(filter-out <var>pattern</var>…,<var>text</var>)</code></dt>
<dd><p>Select words in <var>text</var> that <em>do not</em> match any of the <var>pattern</var> words.<br>
See <a href="Functions.html#Text-Functions">Functions for String Substitution and Analysis</a>.
</p>
</dd>
<dt><code>$(sort <var>list</var>)</code></dt>
<dd><p>Sort the words in <var>list</var> lexicographically, removing duplicates.<br>
See <a href="Functions.html#Text-Functions">Functions for String Substitution and Analysis</a>.
</p>
</dd>
<dt><code>$(word <var>n</var>,<var>text</var>)</code></dt>
<dd><p>Extract the <var>n</var>th word (one-origin) of <var>text</var>.<br>
See <a href="Functions.html#Text-Functions">Functions for String Substitution and Analysis</a>.
</p>
</dd>
<dt><code>$(words <var>text</var>)</code></dt>
<dd><p>Count the number of words in <var>text</var>.<br>
See <a href="Functions.html#Text-Functions">Functions for String Substitution and Analysis</a>.
</p>
</dd>
<dt><code>$(wordlist <var>s</var>,<var>e</var>,<var>text</var>)</code></dt>
<dd><p>Returns the list of words in <var>text</var> from <var>s</var> to <var>e</var>.<br>
See <a href="Functions.html#Text-Functions">Functions for String Substitution and Analysis</a>.
</p>
</dd>
<dt><code>$(firstword <var>names</var>…)</code></dt>
<dd><p>Extract the first word of <var>names</var>.<br>
See <a href="Functions.html#Text-Functions">Functions for String Substitution and Analysis</a>.
</p>
</dd>
<dt><code>$(lastword <var>names</var>…)</code></dt>
<dd><p>Extract the last word of <var>names</var>.<br>
See <a href="Functions.html#Text-Functions">Functions for String Substitution and Analysis</a>.
</p>
</dd>
<dt><code>$(dir <var>names</var>…)</code></dt>
<dd><p>Extract the directory part of each file name.<br>
See <a href="Functions.html#File-Name-Functions">Functions for File Names</a>.
</p>
</dd>
<dt><code>$(notdir <var>names</var>…)</code></dt>
<dd><p>Extract the non-directory part of each file name.<br>
See <a href="Functions.html#File-Name-Functions">Functions for File Names</a>.
</p>
</dd>
<dt><code>$(suffix <var>names</var>…)</code></dt>
<dd><p>Extract the suffix (the last ‘<samp>.</samp>’ and following characters) of each file name.<br>
See <a href="Functions.html#File-Name-Functions">Functions for File Names</a>.
</p>
</dd>
<dt><code>$(basename <var>names</var>…)</code></dt>
<dd><p>Extract the base name (name without suffix) of each file name.<br>
See <a href="Functions.html#File-Name-Functions">Functions for File Names</a>.
</p>
</dd>
<dt><code>$(addsuffix <var>suffix</var>,<var>names</var>…)</code></dt>
<dd><p>Append <var>suffix</var> to each word in <var>names</var>.<br>
See <a href="Functions.html#File-Name-Functions">Functions for File Names</a>.
</p>
</dd>
<dt><code>$(addprefix <var>prefix</var>,<var>names</var>…)</code></dt>
<dd><p>Prepend <var>prefix</var> to each word in <var>names</var>.<br>
See <a href="Functions.html#File-Name-Functions">Functions for File Names</a>.
</p>
</dd>
<dt><code>$(join <var>list1</var>,<var>list2</var>)</code></dt>
<dd><p>Join two parallel lists of words.<br>
See <a href="Functions.html#File-Name-Functions">Functions for File Names</a>.
</p>
</dd>
<dt><code>$(wildcard <var>pattern</var>…)</code></dt>
<dd><p>Find file names matching a shell file name pattern (<em>not</em> a
‘<samp>%</samp>’ pattern).<br>
See <a href="Rules.html#Wildcard-Function">The Function <code>wildcard</code></a>.
</p>
</dd>
<dt><code>$(realpath <var>names</var>…)</code></dt>
<dd><p>For each file name in <var>names</var>, expand to an absolute name that
does not contain any <code>.</code>, <code>..</code>, nor symlinks.<br>
See <a href="Functions.html#File-Name-Functions">Functions for File Names</a>.
</p>
</dd>
<dt><code>$(abspath <var>names</var>…)</code></dt>
<dd><p>For each file name in <var>names</var>, expand to an absolute name that
does not contain any <code>.</code> or <code>..</code> components, but preserves
symlinks.<br>
See <a href="Functions.html#File-Name-Functions">Functions for File Names</a>.
</p>
</dd>
<dt><code>$(error <var>text</var>…)</code></dt>
<dd><p>When this function is evaluated, <code>make</code> generates a fatal error
with the message <var>text</var>.<br>
See <a href="Functions.html#Make-Control-Functions">Functions That Control Make</a>.
</p>
</dd>
<dt><code>$(warning <var>text</var>…)</code></dt>
<dd><p>When this function is evaluated, <code>make</code> generates a warning with
the message <var>text</var>.<br>
See <a href="Functions.html#Make-Control-Functions">Functions That Control Make</a>.
</p>
</dd>
<dt><code>$(shell <var>command</var>)</code></dt>
<dd><p>Execute a shell command and return its output.<br>
See <a href="Functions.html#Shell-Function">The <code>shell</code> Function</a>.
</p>
</dd>
<dt><code>$(origin <var>variable</var>)</code></dt>
<dd><p>Return a string describing how the <code>make</code> variable <var>variable</var> was
defined.<br>
See <a href="Functions.html#Origin-Function">The <code>origin</code> Function</a>.
</p>
</dd>
<dt><code>$(flavor <var>variable</var>)</code></dt>
<dd><p>Return a string describing the flavor of the <code>make</code> variable
<var>variable</var>.<br>
See <a href="Functions.html#Flavor-Function">The <code>flavor</code> Function</a>.
</p>
</dd>
<dt><code>$(foreach <var>var</var>,<var>words</var>,<var>text</var>)</code></dt>
<dd><p>Evaluate <var>text</var> with <var>var</var> bound to each word in <var>words</var>,
and concatenate the results.<br>
See <a href="Functions.html#Foreach-Function">The <code>foreach</code> Function</a>.
</p>
</dd>
<dt><code>$(if <var>condition</var>,<var>then-part</var>[,<var>else-part</var>])</code></dt>
<dd><p>Evaluate the condition <var>condition</var>; if it’s non-empty substitute
the expansion of the <var>then-part</var> otherwise substitute the
expansion of the <var>else-part</var>.<br>
See <a href="Functions.html#Conditional-Functions">Functions for Conditionals</a>.
</p>
</dd>
<dt><code>$(or <var>condition1</var>[,<var>condition2</var>[,<var>condition3</var>…]])</code></dt>
<dd><p>Evaluate each condition <var>conditionN</var> one at a time; substitute the
first non-empty expansion. If all expansions are empty, substitute
the empty string.<br>
See <a href="Functions.html#Conditional-Functions">Functions for Conditionals</a>.
</p>
</dd>
<dt><code>$(and <var>condition1</var>[,<var>condition2</var>[,<var>condition3</var>…]])</code></dt>
<dd><p>Evaluate each condition <var>conditionN</var> one at a time; if any
expansion results in the empty string substitute the empty string. If
all expansions result in a non-empty string, substitute the expansion
of the last <var>condition</var>.<br>
See <a href="Functions.html#Conditional-Functions">Functions for Conditionals</a>.
</p>
</dd>
<dt><code>$(call <var>var</var>,<var>param</var>,…)</code></dt>
<dd><p>Evaluate the variable <var>var</var> replacing any references to <code>$(1)</code>,
<code>$(2)</code> with the first, second, etc. <var>param</var> values.<br>
See <a href="Functions.html#Call-Function">The <code>call</code> Function</a>.
</p>
</dd>
<dt><code>$(eval <var>text</var>)</code></dt>
<dd><p>Evaluate <var>text</var> then read the results as makefile commands.
Expands to the empty string.<br>
See <a href="Functions.html#Eval-Function">The <code>eval</code> Function</a>.
</p>
</dd>
<dt><code>$(file <var>op</var> <var>filename</var>,<var>text</var>)</code></dt>
<dd><p>Expand the arguments, then open the file <var>filename</var> using mode
<var>op</var> and write <var>text</var> to that file.<br>
See <a href="Functions.html#File-Function">The <code>file</code> Function</a>.
</p>
</dd>
<dt><code>$(value <var>var</var>)</code></dt>
<dd><p>Evaluates to the contents of the variable <var>var</var>, with no expansion
performed on it.<br>
See <a href="Functions.html#Value-Function">The <code>value</code> Function</a>.
</p></dd>
</dl>
<p>Here is a summary of the automatic variables.
See <a href="Implicit-Rules.html#Automatic-Variables">Automatic Variables</a>,
for full information.
</p>
<dl compact="compact">
<dt><code>$@</code></dt>
<dd><p>The file name of the target.
</p>
</dd>
<dt><code>$%</code></dt>
<dd><p>The target member name, when the target is an archive member.
</p>
</dd>
<dt><code>$<</code></dt>
<dd><p>The name of the first prerequisite.
</p>
</dd>
<dt><code>$?</code></dt>
<dd><p>The names of all the prerequisites that are
newer than the target, with spaces between them.
For prerequisites which are archive members, only
the named member is used (see <a href="Archives.html#Archives">Archives</a>).
</p>
</dd>
<dt><code>$^</code></dt>
<dt><code>$+</code></dt>
<dd><p>The names of all the prerequisites, with spaces between them. For
prerequisites which are archive members, only the named member is used
(see <a href="Archives.html#Archives">Archives</a>). The value of <code>$^</code> omits duplicate
prerequisites, while <code>$+</code> retains them and preserves their order.
</p>
</dd>
<dt><code>$*</code></dt>
<dd><p>The stem with which an implicit rule matches
(see <a href="Implicit-Rules.html#Pattern-Match">How Patterns Match</a>).
</p>
</dd>
<dt><code>$(@D)</code></dt>
<dt><code>$(@F)</code></dt>
<dd><p>The directory part and the file-within-directory part of <code>$@</code>.
</p>
</dd>
<dt><code>$(*D)</code></dt>
<dt><code>$(*F)</code></dt>
<dd><p>The directory part and the file-within-directory part of <code>$*</code>.
</p>
</dd>
<dt><code>$(%D)</code></dt>
<dt><code>$(%F)</code></dt>
<dd><p>The directory part and the file-within-directory part of <code>$%</code>.
</p>
</dd>
<dt><code>$(<D)</code></dt>
<dt><code>$(<F)</code></dt>
<dd><p>The directory part and the file-within-directory part of <code>$<</code>.
</p>
</dd>
<dt><code>$(^D)</code></dt>
<dt><code>$(^F)</code></dt>
<dd><p>The directory part and the file-within-directory part of <code>$^</code>.
</p>
</dd>
<dt><code>$(+D)</code></dt>
<dt><code>$(+F)</code></dt>
<dd><p>The directory part and the file-within-directory part of <code>$+</code>.
</p>
</dd>
<dt><code>$(?D)</code></dt>
<dt><code>$(?F)</code></dt>
<dd><p>The directory part and the file-within-directory part of <code>$?</code>.
</p></dd>
</dl>
<p>These variables are used specially by GNU <code>make</code>:
</p>
<dl compact="compact">
<dt><code>MAKEFILES</code></dt>
<dd>
<p>Makefiles to be read on every invocation of <code>make</code>.<br>
See <a href="Makefiles.html#MAKEFILES-Variable">The Variable <code>MAKEFILES</code></a>.
</p>
</dd>
<dt><code>VPATH</code></dt>
<dd>
<p>Directory search path for files not found in the current directory.<br>
See <a href="Rules.html#General-Search"><code>VPATH</code> Search Path for All Prerequisites</a>.
</p>
</dd>
<dt><code>SHELL</code></dt>
<dd>
<p>The name of the system default command interpreter, usually <samp>/bin/sh</samp>.
You can set <code>SHELL</code> in the makefile to change the shell used to run
recipes. See <a href="Recipes.html#Execution">Recipe Execution</a>. The <code>SHELL</code>
variable is handled specially when importing from and exporting to the
environment. See <a href="Recipes.html#Choosing-the-Shell">Choosing the Shell</a>.
</p>
</dd>
<dt><code>MAKESHELL</code></dt>
<dd>
<p>On MS-DOS only, the name of the command interpreter that is to be used
by <code>make</code>. This value takes precedence over the value of
<code>SHELL</code>. See <a href="Recipes.html#Execution">MAKESHELL variable</a>.
</p>
</dd>
<dt><code>MAKE</code></dt>
<dd>
<p>The name with which <code>make</code> was invoked. Using this variable in
recipes has special meaning. See <a href="Recipes.html#MAKE-Variable">How the
<code>MAKE</code> Variable Works</a>.
</p>
</dd>
<dt><code>MAKE_VERSION</code></dt>
<dd>
<p>The built-in variable ‘<samp>MAKE_VERSION</samp>’ expands to the version
number of the GNU <code>make</code> program.
<a name="index-MAKE_005fVERSION"></a>
</p>
</dd>
<dt><code>MAKE_HOST</code></dt>
<dd>
<p>The built-in variable ‘<samp>MAKE_HOST</samp>’ expands to a string
representing the host that GNU <code>make</code> was built to run on.
<a name="index-MAKE_005fHOST"></a>
</p>
</dd>
<dt><code>MAKELEVEL</code></dt>
<dd>
<p>The number of levels of recursion (sub-<code>make</code>s).<br>
See <a href="Recipes.html#Variables_002fRecursion">Variables/Recursion</a>.
</p>
</dd>
<dt><code>MAKEFLAGS</code></dt>
<dd>
<p>The flags given to <code>make</code>. You can set this in the environment or
a makefile to set flags.<br>
See <a href="Recipes.html#Options_002fRecursion">Communicating Options to a Sub-<code>make</code></a>.
</p>
<p>It is <em>never</em> appropriate to use <code>MAKEFLAGS</code> directly in a
recipe line: its contents may not be quoted correctly for use in the
shell. Always allow recursive <code>make</code>’s to obtain these values
through the environment from its parent.
</p>
</dd>
<dt><code>GNUMAKEFLAGS</code></dt>
<dd>
<p>Other flags parsed by <code>make</code>. You can set this in the environment or
a makefile to set <code>make</code> command-line flags. GNU <code>make</code>
never sets this variable itself. This variable is only needed if
you’d like to set GNU <code>make</code>-specific flags in a POSIX-compliant
makefile. This variable will be seen by GNU <code>make</code> and ignored
by other <code>make</code> implementations. It’s not needed if you only use
GNU <code>make</code>; just use <code>MAKEFLAGS</code> directly.
See <a href="Recipes.html#Options_002fRecursion">Communicating Options to a Sub-<code>make</code></a>.
</p>
</dd>
<dt><code>MAKECMDGOALS</code></dt>
<dd>
<p>The targets given to <code>make</code> on the command line. Setting this
variable has no effect on the operation of <code>make</code>.<br>
See <a href="Running.html#Goals">Arguments to Specify the Goals</a>.
</p>
</dd>
<dt><code>CURDIR</code></dt>
<dd>
<p>Set to the absolute pathname of the current working directory (after
all <code>-C</code> options are processed, if any). Setting this variable
has no effect on the operation of <code>make</code>.<br>
See <a href="Recipes.html#Recursion">Recursive Use of <code>make</code></a>.
</p>
</dd>
<dt><code>SUFFIXES</code></dt>
<dd>
<p>The default list of suffixes before <code>make</code> reads any makefiles.
</p>
</dd>
<dt><code>.LIBPATTERNS</code></dt>
<dd><p>Defines the naming of the libraries <code>make</code> searches for, and their
order.<br>
See <a href="Rules.html#Libraries_002fSearch">Directory Search for Link Libraries</a>.
</p></dd>
</dl>
<hr>
<div class="header">
<p>
Next: <a href="Error-Messages.html#Error-Messages" accesskey="n" rel="next">Error Messages</a>, Previous: <a href="Makefile-Conventions.html#Makefile-Conventions" accesskey="p" rel="prev">Makefile Conventions</a>, Up: <a href="index.html#Top" accesskey="u" rel="up">Top</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html#Concept-Index" title="Index" rel="index">Index</a>]</p>
</div>
</body>
</html>
|