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
GNU Make 4 · Rules and targets
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
Was this page helpful?