]> git.ipfire.org Git - thirdparty/make.git/commit
[SV 63856] Implement .WAIT on the command line
authorDmitry Goncharov <dgoncharov@users.sf.net>
Sun, 2 Apr 2023 14:50:17 +0000 (10:50 -0400)
committerPaul Smith <psmith@gnu.org>
Sun, 2 Apr 2023 15:12:11 +0000 (11:12 -0400)
commitcd46baab90296a75e03c73ad5c1f6f5bc3eb6cb3
tree904138f41717618eb5cfda0c1f2d3062dea0f0d8
parent54b3202f8da0761c7d5a3410313f0a32eb63ef8b
[SV 63856] Implement .WAIT on the command line

* src/main.c (handle_non_switch_argument): Return 1 if arg is .WAIT.
(decode_switches): Set wait_here for a goal that follows .WAIT.
* src/remake.c (update_goal_chain): Honor wait_here for a command
line goal.  Don't allow double-colon targets to continue if .WAIT is
given for one of them.
* tests/scripts/targets/WAIT: Add .WAIT tests.
src/main.c
src/remake.c
tests/scripts/targets/WAIT