diff options
author | Ron Yorston <rmy@pobox.com> | 2024-05-28 12:22:54 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2024-05-28 12:22:54 +0100 |
commit | 11b3ae755cd67c298bc0a93b1a9872d1eecdbb00 (patch) | |
tree | 1dd1f18b12cf02ecbb4d46f37212e472667a9019 /testsuite | |
parent | 208d9858409f823d533d1e95396dde00be03d7d3 (diff) | |
download | busybox-w32-11b3ae755cd67c298bc0a93b1a9872d1eecdbb00.tar.gz busybox-w32-11b3ae755cd67c298bc0a93b1a9872d1eecdbb00.tar.bz2 busybox-w32-11b3ae755cd67c298bc0a93b1a9872d1eecdbb00.zip |
make: fixes to -q option
The -q option returns an exit status to indicate if targets are
up-to-date (0) or in need of updating (1) but without updating
them. As an exception (imported from GNU make) build commands
with a '+' prefix are executed.
pdpmake didn't implement the exception. Doing so required moving
handling of the -q option down into docmds().
Saves 48 bytes.
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/make.tests | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/make.tests b/testsuite/make.tests index c2b62532a..e4d635141 100755 --- a/testsuite/make.tests +++ b/testsuite/make.tests | |||
@@ -116,6 +116,13 @@ bar: | |||
116 | baz: | 116 | baz: |
117 | @: | 117 | @: |
118 | ' | 118 | ' |
119 | # Build commands with a '+' prefix are executed even with the -q option. | ||
120 | testing "make execute build command with + prefix and -q" \ | ||
121 | "make -q -f - 2>/dev/null" "OK\n" "" ' | ||
122 | all: bar | ||
123 | bar: | ||
124 | @+echo OK | ||
125 | ' | ||
119 | 126 | ||
120 | # The -t option touches files that are out-of-date unless the target | 127 | # The -t option touches files that are out-of-date unless the target |
121 | # has no commands or they're already up-to-date. | 128 | # has no commands or they're already up-to-date. |