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. See Recipe Execution.
• 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. |
Copyright © 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, 2017, 2018, 2019, 2020 Free Software Foundation, Inc.
Licensed under the GNU Free Documentation License.
https://www.gnu.org/software/make/manual/html_node/Recipes.html