summaryrefslogtreecommitdiff
path: root/src/implicit.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2022-01-17 18:23:42 -0500
committerPaul Smith <psmith@gnu.org>2022-01-17 18:45:47 -0500
commite72c5e021ff3e9dec34c078a1a76a260fc562b90 (patch)
tree33f36e9135a8752f724d01f77f41916e8ca4097c /src/implicit.c
parentb6a779d262cc9246da3c159065c4e865214a9a3e (diff)
downloadmake-git-e72c5e021ff3e9dec34c078a1a76a260fc562b90.tar.gz
[SV 61226] Revert changes to detect missing included files
The fix for SV 60595 introduced a backward-incompatibility: rules that purported to rebuild included files, but didn't actually do so, were treated as errors whereas before they were ignored. This breaks a common idiom in makefiles where an empty recipe is created for an included makefile so make doesn't complain if it doesn't exist. Unfortunately this means make cannot diagnose some types of errors. Extra tests supplied by Dmitry Goncharov <dgoncharov@users.sf.net>. * doc/make.texi (Including Other Makefiles): Clarify this behavior. * src/main.c (main): Don't run the new check-for-errors behavior. * tests/scripts/features/reinvoke: Reset tests of the "old" behavior and add new tests for this situation.
Diffstat (limited to 'src/implicit.c')
-rw-r--r--src/implicit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/implicit.c b/src/implicit.c
index fef51fe1..be457184 100644
--- a/src/implicit.c
+++ b/src/implicit.c
@@ -608,7 +608,7 @@ pattern_search (struct file *file, int archive,
if (nptr == 0)
continue;
- /* See this is a transition to order-only prereqs. */
+ /* See if this is a transition to order-only prereqs. */
if (! order_only && len == 1 && nptr[0] == '|')
{
order_only = 1;