GNU `make'

Short Contents

Table of Contents

Next: , Previous: (dir), Up: (dir)

GNU make

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.71, last updated 19 July 2010, of The GNU Make Manual, for GNU make version 3.82.

Copyright © 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 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.2 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.”

--- The Detailed Node Listing ---

Overview of make

An Introduction to Makefiles

Writing Makefiles

Writing Rules

Using Wildcard Characters in File Names

Searching Directories for Prerequisites

Static Pattern Rules

Writing Recipes in Rules

Recipe Syntax

Recipe Execution

Recursive Use of make

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