GNU Make 4 · Rules and targets

Run commands in one shell

Each recipe line runs in its own shell, so join commands with && or use a line continuation.

deploy:
	cd dist && \
	tar czf ../release.tgz .

Official GNU Make 4 documentation

More rules and targets commands

All rules and targets commands · GNU Make 4 cheatsheet

Was this page helpful?