Roland McGrath [Fri, 10 Feb 1995 23:44:03 +0000 (23:44 +0000)]
(start_job_command): Remember to call notice_finsihed_file under -n when
not recursing. To do this, consolidate that code under the empty command
case and goto there for the -n case.
Roland McGrath [Fri, 27 Jan 1995 09:42:00 +0000 (09:42 +0000)]
(update_file_1): When !MUST_MAKE, don't set FILE->update_status to zero
before calling notice_finished_file.
(notice_finished_file): Touch only when FILE->update_status is zero.
(remake_file): Set FILE->update_status to zero after not calling
execute_file_command and deciding to touch instead.
Roland McGrath [Sun, 15 Jan 1995 15:57:48 +0000 (15:57 +0000)]
(start_job_command): Save and restore environ around vfork call.
(search_path): Function #if 0'd out.
(exec_command): Use execvp instead of search_path.
Roland McGrath [Sun, 15 Jan 1995 15:32:37 +0000 (15:32 +0000)]
(variable_expand): Rewrote computed variable name and substitution
reference handling to be simpler. First expand the entire text between the
parens if it contains any $s, then examine the result of that for
subtitution references and do no further expansion while parsing them.
Roland McGrath [Wed, 11 Jan 1995 00:14:53 +0000 (00:14 +0000)]
(default_variables) [__hpux]: Remove special definition of ARFLAGS.
Existence of the `f' flag is not consistent across HPUX versions;
and one might be using GNU ar anyway.
Roland McGrath [Sun, 13 Nov 1994 10:02:19 +0000 (10:02 +0000)]
(CPPFLAGS): New variable, set from @CPPFLAGS@.
(RANLIB): Variable removed.
(prefix, exec_prefix): Set these from @...@.
(.c.o): Use $(CPPFLAGS).
(glob/libglob.a): Don't pass down variables to sub-make.
glob/Makefile should be configured properly by configure.
(distclean): Remove config.log and config.cache (autoconf stuff).
Roland McGrath [Mon, 24 Oct 1994 22:56:27 +0000 (22:56 +0000)]
(snap_deps): Check .IGNORE, .SILENT, .POSIX here instead of in main.
If .IGNORE has deps, OR COMMANDS_NOERROR into their command_flags and
don't set -i. Likewise .SILENT.
Roland McGrath [Sat, 1 Oct 1994 08:07:35 +0000 (08:07 +0000)]
(main): Define hidden automatic variable with command vars, and
MAKEOVERRIDES to a reference to that.
(define_makeflags): If posix_pedantic, write a reference to that instead.
Roland McGrath [Mon, 26 Sep 1994 23:02:40 +0000 (23:02 +0000)]
(reap_children): Don't change C->file->command_state when dying.
Test it only after calling start_job_command for a new command line.
When no more cmds, just set C->file->update_status.
(start_job_command): When the last line is empty or under -n, set
C->file->update_status.
(start_waiting_job): Grok cs_not_started after start_job_command as success.
(new_job): Set C->file->update_status when there are no cmds.
(job_next_command): When out of lines, don't set CHILD->file->update_status or
CHILD->file->command_state.
Roland McGrath [Mon, 26 Sep 1994 22:37:10 +0000 (22:37 +0000)]
(quote_as_word): Renamed from shell_quote.
Take new arg; if nonzero, also double $s.
(main): Define MAKEOVERRIDES from command_variables here.
(define_makeflags): Don't use command_variables here; instead write a
reference $(MAKEOVERRIDES) in MAKEFLAGS. Make vars recursive.
Roland McGrath [Sat, 10 Sep 1994 07:01:10 +0000 (07:01 +0000)]
(decode_switches): Loop until optind hits ARGC, not just until getopt_long
returns EOF. Initialize C to zero before loop; in loop if C is EOF, set
optarg from ARGV[optind++], else call getopt_long.
(decode_env_switches): Use variable_expand instead of
allocated_variable_expand. Allocate a fresh buffer to copy split words
into; scan characters by hand to break words and debackslashify.
(shell_quote): New function.
(define_makeflags): Allocate doubled space for switch args, and command
variable names and values; use shell_quote to quote those things.