skip to content
Alvin Lucillo

Display the recipe commands of a target

/ 1 min read

Use make hello -n to show the recipe commands of a target without executing them.

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