30 |
* Make: (make). Remake files automatically. |
* Make: (make). Remake files automatically. |
31 |
@end direntry |
@end direntry |
32 |
|
|
33 |
@ifinfo |
@ifnottex |
34 |
This file documents the GNU Make utility, which determines |
This file documents the GNU Make utility, which determines |
35 |
automatically which pieces of a large program need to be recompiled, |
automatically which pieces of a large program need to be recompiled, |
36 |
and issues the commands to recompile them. |
and issues the commands to recompile them. |
47 |
Invariant Sections, with no Front-Cover Texts, and with no Back-Cover |
Invariant Sections, with no Front-Cover Texts, and with no Back-Cover |
48 |
Texts. A copy of the license is included in the section entitled |
Texts. A copy of the license is included in the section entitled |
49 |
``GNU Free Documentation License''. |
``GNU Free Documentation License''. |
50 |
@end ifinfo |
@end ifnottex |
51 |
|
|
52 |
@iftex |
@iftex |
53 |
@shorttitlepage GNU Make |
@shorttitlepage GNU Make |
88 |
@end titlepage |
@end titlepage |
89 |
@page |
@page |
90 |
|
|
91 |
@ifinfo |
@ifnottex |
92 |
@node Top, Overview, (dir), (dir) |
@node Top, Overview, (dir), (dir) |
93 |
@top Make |
@top Make |
94 |
|
|
101 |
documents GNU @code{make} Version @value{VERSION}.@refill |
documents GNU @code{make} Version @value{VERSION}.@refill |
102 |
|
|
103 |
This manual describes @code{make} and contains the following chapters:@refill |
This manual describes @code{make} and contains the following chapters:@refill |
104 |
@end ifinfo |
@end ifnottex |
105 |
|
|
106 |
@menu |
@menu |
107 |
* Overview:: Overview of @code{make}. |
* Overview:: Overview of @code{make}. |
371 |
@end menu |
@end menu |
372 |
|
|
373 |
@node Preparing, Reading, Overview, Overview |
@node Preparing, Reading, Overview, Overview |
374 |
@ifinfo |
@ifnottex |
375 |
@heading Preparing and Running Make |
@heading Preparing and Running Make |
376 |
@end ifinfo |
@end ifnottex |
377 |
|
|
378 |
To prepare to use @code{make}, you must write a file called |
To prepare to use @code{make}, you must write a file called |
379 |
the @dfn{makefile} that describes the relationships among files |
the @dfn{makefile} that describes the relationships among files |
406 |
later sections. In each chapter, the first few sections contain |
later sections. In each chapter, the first few sections contain |
407 |
introductory or general information and the later sections contain |
introductory or general information and the later sections contain |
408 |
specialized or technical information. |
specialized or technical information. |
409 |
@ifinfo |
@ifnottex |
410 |
The exception is the second chapter, @ref{Introduction, ,An |
The exception is the second chapter, @ref{Introduction, ,An |
411 |
Introduction to Makefiles}, all of which is introductory. |
Introduction to Makefiles}, all of which is introductory. |
412 |
@end ifinfo |
@end ifnottex |
413 |
@iftex |
@iftex |
414 |
The exception is @ref{Introduction, ,An Introduction to Makefiles}, |
The exception is @ref{Introduction, ,An Introduction to Makefiles}, |
415 |
all of which is introductory. |
all of which is introductory. |
1558 |
prerequisites from source files themselves. |
prerequisites from source files themselves. |
1559 |
@end menu |
@end menu |
1560 |
|
|
1561 |
@ifinfo |
@ifnottex |
1562 |
@node Rule Example, Rule Syntax, Rules, Rules |
@node Rule Example, Rule Syntax, Rules, Rules |
1563 |
@section Rule Example |
@section Rule Example |
1564 |
|
|
1587 |
that @file{foo.c} includes it, and that that is why @file{defs.h} was |
that @file{foo.c} includes it, and that that is why @file{defs.h} was |
1588 |
added to the prerequisites. |
added to the prerequisites. |
1589 |
@end itemize |
@end itemize |
1590 |
@end ifinfo |
@end ifnottex |
1591 |
|
|
1592 |
@node Rule Syntax, Prerequisite Types, Rule Example, Rules |
@node Rule Syntax, Prerequisite Types, Rule Example, Rules |
1593 |
@section Rule Syntax |
@section Rule Syntax |
1833 |
Actually it is possible to obtain the desired result with wildcard |
Actually it is possible to obtain the desired result with wildcard |
1834 |
expansion, but you need more sophisticated techniques, including the |
expansion, but you need more sophisticated techniques, including the |
1835 |
@code{wildcard} function and string substitution. |
@code{wildcard} function and string substitution. |
1836 |
@ifinfo |
@ifnottex |
1837 |
@xref{Wildcard Function, ,The Function @code{wildcard}}. |
@xref{Wildcard Function, ,The Function @code{wildcard}}. |
1838 |
@end ifinfo |
@end ifnottex |
1839 |
@iftex |
@iftex |
1840 |
These are described in the following section. |
These are described in the following section. |
1841 |
@end iftex |
@end iftex |
3737 |
@iftex |
@iftex |
3738 |
See the next section. |
See the next section. |
3739 |
@end iftex |
@end iftex |
3740 |
@ifinfo |
@ifnottex |
3741 |
@xref{Options/Recursion}. |
@xref{Options/Recursion}. |
3742 |
@end ifinfo |
@end ifnottex |
3743 |
|
|
3744 |
Variables are @emph{not} normally passed down if they were created by |
Variables are @emph{not} normally passed down if they were created by |
3745 |
default by @code{make} (@pxref{Implicit Variables, ,Variables Used by |
default by @code{make} (@pxref{Implicit Variables, ,Variables Used by |
5051 |
@iftex |
@iftex |
5052 |
See the next section for information about @code{define}. |
See the next section for information about @code{define}. |
5053 |
@end iftex |
@end iftex |
5054 |
@ifinfo |
@ifnottex |
5055 |
@xref{Defining, ,Defining Variables Verbatim}. |
@xref{Defining, ,Defining Variables Verbatim}. |
5056 |
@end ifinfo |
@end ifnottex |
5057 |
|
|
5058 |
@node Defining, Environment, Override Directive, Using Variables |
@node Defining, Environment, Override Directive, Using Variables |
5059 |
@section Defining Variables Verbatim |
@section Defining Variables Verbatim |