]> git.ipfire.org Git - thirdparty/make.git/commit
[SV 61226] Revert changes to detect missing included files
authorPaul Smith <psmith@gnu.org>
Mon, 17 Jan 2022 23:23:42 +0000 (18:23 -0500)
committerPaul Smith <psmith@gnu.org>
Mon, 17 Jan 2022 23:45:47 +0000 (18:45 -0500)
commite72c5e021ff3e9dec34c078a1a76a260fc562b90
tree33f36e9135a8752f724d01f77f41916e8ca4097c
parentb6a779d262cc9246da3c159065c4e865214a9a3e
[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.
doc/make.texi
src/implicit.c
src/main.c
tests/scripts/features/reinvoke