skip to content
Alvin Lucillo

Multiple commands in a recipe

/ 1 min read

The default recipe hello has multiple commands, which are sequentially run. Each command within a recipe must be tab-indented. If you don’t want the command itself to be printed, use @ before the command.

hello:
	@echo "Hello, Make!"
	@echo "This recipe has two commands." > hello.txt
	cat hello.txt
make 
Hello, Make!
cat hello.txt
This recipe has two commands.