Next: , Previous: Rules, Up: Top


5 Writing the Commands in Rules

The commands of a rule consist 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 commands in makefiles are always interpreted by /bin/sh unless the makefile specifies otherwise. See Command Execution.