make/src
Paul Smith 7c4e6b0299 [SV 60595] Restart whenever any makefile is rebuilt
Previously if an included makefile was rebuilt as a prerequisite of
another included makefile which didn't need to be rebuilt, make would
not realize that it needed to re-exec itself.

Ensure that if any included makefile target is rebuilt we re-exec.
Also ensure that if an included makefile is not readable, and our rule
for rebuilding it doesn't actually change it, we will still fail.

* src/remake.c (update_goal_chain): If a goal's update was successful
then check its status, even if no actual commands were run because it
was already up to date.
(show_goal_error): Remove superfluous cast.
* src/main.c (main): If the makefile remake did nothing, check that we
were able to successfully include all the makefiles we care about; if
not fail.  When generating error messages about included makefiles be
sure to show the filename/linenumber information.
* test/scripts/features/reinvoke: Add tests for this behavior.
* test/scripts/options/dash-k: Update error messages.
2021-09-03 12:08:11 -04:00
..
w32 * src/output.h: [WINDOWS32] [SV 57888] Use gnulib fcntl if available 2020-03-31 01:07:43 -04:00
amiga.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
amiga.h Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
ar.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
arscan.c Avoid some valgrind warnings 2020-11-29 17:59:40 -05:00
commands.c [SV 60659] Set $$< properly in second expansion 2021-05-30 15:53:41 -04:00
commands.h Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
config.ami.template Apply spelling corrections from Fossies spellcheck 2020-01-20 19:25:54 -05:00
config.h-vms.template Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
config.h.W32.template Add support for building with Tiny C for MS-Windows 2020-02-29 11:14:46 +02:00
configh.dos.template Apply spelling corrections from Fossies spellcheck 2020-01-20 19:25:54 -05:00
debug.h [SV 59169] Add --debug=why and --debug=print options 2020-12-05 16:25:12 -05:00
default.c * src/default.c (default_variables) [AIX]: [SV 59096] Fix ARFLAGS 2020-11-29 17:55:32 -05:00
dep.h Fix build and test issues on Windows 2021-03-28 16:25:52 -04:00
dir.c Fix build and test issues on Windows 2021-03-28 16:25:52 -04:00
expand.c Ensure variable_buffer is always set. 2021-03-15 01:17:06 -04:00
file.c [SV 60297] Add .NOTINTERMEDIATE special target 2021-07-25 17:15:38 -04:00
filedef.h [SV 60297] Add .NOTINTERMEDIATE special target 2021-07-25 17:15:38 -04:00
function.c [SV 58497] Ensure $(file <) newline removal succeeds 2021-03-15 03:28:11 -04:00
getopt1.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
getopt.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
getopt.h Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
gettext.h Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
gmk-default.scm Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
gnumake.h Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
guile.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
hash.c * src/hash.c (jhash_string): Don't read past end of string. 2019-10-05 11:23:31 -04:00
hash.h Rework directory structure to use GNU-recommended "src" directory. 2017-11-19 14:07:22 -05:00
implicit.c [SV 60297] Add .NOTINTERMEDIATE special target 2021-07-25 17:15:38 -04:00
job.c * src/job.c (child_execute_job): Update gnulib find_in_given_path() 2021-03-25 14:25:26 -04:00
job.h Apply spelling corrections from Fossies spellcheck 2020-01-20 19:25:54 -05:00
load.c [SV 57930] Cast char to unsigned char to call ctype functions 2020-05-03 14:54:56 -04:00
loadapi.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
main.c [SV 60595] Restart whenever any makefile is rebuilt 2021-09-03 12:08:11 -04:00
makeint.h [SV 59881] Handle vertical TAB consistently 2021-03-15 01:16:32 -04:00
misc.c [SV 59881] Handle vertical TAB consistently 2021-03-15 01:16:32 -04:00
os.h Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
output.c [SV 57967] Only set APPEND mode for regular files 2020-03-31 00:19:20 -04:00
output.h * src/output.h: [WINDOWS32] [SV 57888] Use gnulib fcntl if available 2020-03-31 01:07:43 -04:00
posixos.c [SV 58232] Disable inheritance of jobserver FDs for recursive make 2020-05-02 20:09:29 -04:00
read.c [SV 60412] Allow -I- to throw out the current directory path 2021-09-03 12:08:11 -04:00
remake.c [SV 60595] Restart whenever any makefile is rebuilt 2021-09-03 12:08:11 -04:00
remote-cstms.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
remote-stub.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
rule.c [SV 40657] Reinstate old behavior for suffix rules with prereqs 2020-01-19 17:04:52 -05:00
rule.h Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
signame.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
strcache.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
variable.c [SV 60699] Avoid calling strlen() repeatedly in a loop 2021-07-25 17:15:38 -04:00
variable.h Ensure variable_buffer is always set. 2021-03-15 01:17:06 -04:00
version.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
vms_exit.c Apply spelling corrections from Fossies spellcheck 2020-01-20 19:25:54 -05:00
vms_export_symbol.c Apply spelling corrections from Fossies spellcheck 2020-01-20 19:25:54 -05:00
vms_progname.c [SV 57930] Cast char to unsigned char to call ctype functions 2020-05-03 14:54:56 -04:00
vmsdir.h Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
vmsfunctions.c Apply spelling corrections from Fossies spellcheck 2020-01-20 19:25:54 -05:00
vmsify.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
vmsjobs.c [SV 57930] Cast char to unsigned char to call ctype functions 2020-05-03 14:54:56 -04:00
vpath.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00