Go to the next section.
@shorttitlepage GNU Make Copyright (C) 1988, '89, '90, '91, '92, '93, '94 Free Software Foundation, Inc.
Published by the Free Software Foundation 675 Massachusetts Avenue, Cambridge, MA 02139 USA Printed copies are available for $20 each. ISBN 1-882114-16-7
Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.
Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.
Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions, except that this permission notice may be stated in a translation approved by the Free Software Foundation.
Cover art by Etienne Suvasa.
make
.
make
.
make
what to do.
make
on the command line.
make
can update library archives.
make
has over other make
s.
make
lacks from other make
s.
-- The Detailed Node Listing ---
Overview of make
An Introduction to Makefiles
make
Processes This Makefile
make
Deduce the Commands
Writing Makefiles
Writing Rules
Using Wildcard Characters in File Names
Searching Directories for Dependencies
Static Pattern Rules
Writing the Commands in Rules
make
from makefiles.
Recursive Use of make
make
.
make
.
make
commands.
How to Use Variables
Advanced Features for Reference to Variables
Conditional Parts of Makefiles
Functions for Transforming Text
How to Run make
Using Implicit Rules
Defining and Redefining Pattern Rules
Using make
to Update Archive Files
Implicit Rule for Archive Member Targets
make
The make
utility automatically determines which pieces of a large
program need to be recompiled, and issues commands to recompile them.
This manual describes GNU make
, which was implemented by Richard
Stallman and Roland McGrath. GNU make
conforms to section 6.2 of
IEEE Standard 1003.2-1992 (POSIX.2).
Our examples show C programs, since they are most common, but you can use
make
with any programming language whose compiler can be run with a
shell command. Indeed, make
is not limited to programs. You can
use it to describe any task where some files must be updated automatically
from others whenever the others change.
Go to the next section.