gregschmit / omake

An extra implementation of make.
MIT License
17 stars 1 forks source link

Implement --dry-run. #15

Closed gregschmit closed 1 year ago

gregschmit commented 1 year ago

Implement with flag -n, and long flags --just-print, --dry-run, and --recon.

Print recipe lines but don't execute unless lines start with command prefix + or contain sub-make calls.

Reference: https://www.gnu.org/software/make/manual/html_node/Instead-of-Execution.html.

gregschmit commented 1 year ago

Maybe don't worry about sub-make in this issue. Just make sure + forces execution. We have another issue for sub-make craziness.

gregschmit commented 1 year ago

This should also ignore @ command prefixes since the whole point is to echo the commands rather than executing them.

gregschmit commented 1 year ago

Implemented in 1eeb32d1116870c6c37987498cbc16de03d7f8d7