manpagez: man pages & more
info make
Home | html | info | man

File: make.info,  Node: Recipes,  Next: Using Variables,  Prev: Rules,  Up: Top

5 Writing Recipes in Rules
**************************

The recipe of a rule consists of one or more shell command lines to be
executed, one at a time, in the order they appear.  Typically, the
result of executing these commands is that the target of the rule is
brought up to date.

   Users use many different shell programs, but recipes in makefiles are
always interpreted by '/bin/sh' unless the makefile specifies otherwise.
*Note Recipe Execution: Execution.

* Menu:

* Recipe Syntax::               Recipe syntax features and pitfalls.
* Echoing::                     How to control when recipes are echoed.
* Execution::                   How recipes are executed.
* Parallel::                    How recipes can be executed in parallel.
* Errors::                      What happens after a recipe execution error.
* Interrupts::                  What happens when a recipe is interrupted.
* Recursion::                   Invoking 'make' from makefiles.
* Canned Recipes::              Defining canned recipes.
* Empty Recipes::               Defining useful, do-nothing recipes.

© manpagez.com 2000-2024
Individual documents may contain additional copyright information.