Updated from libc
[make.git] / ChangeLog
blob198a4994c1416d9b9b1a50dcfe8daa285d534610
1 Wed Apr 19 03:25:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3         * Version 3.73.1.
5 Sat Apr  8 14:53:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7         * remake.c (notice_finished_file): Set FILE->update_status to zero
8         if it's -1.
10 Wed Apr  5 00:20:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
12         * Version 3.73 released.
14 Tue Mar 28 13:25:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
16         * main.c (main): Fixed braino in assert.
18         * Version 3.72.13.
20 Mon Mar 27 05:29:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
22         * main.c: Avoid string in assert expression.  Some systems are broken.
24 Fri Mar 24 00:32:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
26         * main.c (main): Handle 1 and 2 returns from update_goal_chain
27         makefile run properly.
29         * Version 3.72.12.
31         * main.c (handle_non_switch_argument): New function, broken out of
32         decode_switches.
33         (decode_switches): Set optind to 0 to reinitialize getopt, not to 1.
34         When getopt_long returns EOF, break the loop and handle remaining args
35         with a simple second loop.
37         * remake.c (remake_file): Set update_status to 2 instead of 1 for
38         no rule to make.  Mention parent (dependent) in error message.
39         (update_file_1): Handle FILE->update_status == 2 in -d printout.
40         * job.c (start_job_command, reap_children): Set update_status to 2
41         instead of 1 for failed commands.
43 Tue Mar 21 16:23:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
45         * job.c (search_path): Function removed (was already #if 0'd out).
46         * configure.in: Remove AC_TYPE_GETGROUPS; nothing needs it any more.
48 Fri Mar 17 15:57:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
50         * configure.bat: Write @CPPFLAGS@ translation.
52 Mon Mar 13 00:45:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
54         * read.c (parse_file_seq): Rearranged `l(a b)' -> `l(a) l(b)' loop
55         to not skip the elt immediately preceding `l(...'.
57 Fri Mar 10 13:56:49 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
59         * Version 3.72.11.
61         * read.c (find_char_unquote): Make second arg a string of stop
62         chars instead of a single stop char.  Stop when any char in the
63         string is hit.  All callers changed.
64         (find_semicolon): Pass stop chars "#;" to one find_char_unquote call,
65         instead of using two calls.  If the match is not a ; but a #,
66         return zero.
67         * misc.c: Changed find_char_unquote callers here too.
69         * Version 3.72.10.
71         * read.c (read_makefile, parse_file_seq): Fix typo __MS_DOS__ ->
72         __MSDOS__.
74         * GNUmakefile (globfiles): Add glob/configure.bat.
75         (distfiles): Add configh.dos, configure.bat.
77 Wed Mar  8 13:10:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
79         Fixes for MS-DOS from DJ Delorie.
80         * read.c (read_makefile, parse_file_seq) [__MS_DOS__]: Don't see :
81         as separator in "C:\...".
82         * configh.dos (STDC_HEADERS): Define only if undefined.
83         (HAVE_SYS_PARAM_H): Don't define this.
84         (HAVE_STRERROR): Define this.
85         * job.c (construct_command_argv_internal) [__MSDOS__]: Fix typos.
87         * Version 3.72.9.
89         * main.c (decode_switches): Reset optind to 1 instead of 0.
91 Tue Mar  7 17:31:06 1995  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
93         * main.c (decode_switches): If non-option arg is "-", ignore it.
95 Mon Mar  6 23:57:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
97         * Version 3.72.8.
99 Wed Feb 22 21:26:36 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
101         * Version 3.72.7.
103 Tue Feb 21 22:10:43 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
105         * main.c (main): Pass missing arg to tmpnam.
107         * configure.in: Check for strsignal.
108         * job.c (child_error): Use strsignal.
109         * main.c (main): Don't call signame_init #ifdef HAVE_STRSIGNAL.
111         * misc.c (strerror): Fix swapped args in sprintf.
113 Mon Feb 13 11:50:08 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
115         * configure.in (CFLAGS, LDFLAGS): Don't set these variables.
117 Fri Feb 10 18:44:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
119         * main.c (print_version): Add 95 to copyright years.
121         * Version 3.72.6.
123         * job.c (start_job_command): Remember to call notice_finished_file
124         under -n when not recursing.  To do this, consolidate that code
125         under the empty command case and goto there for the -n case.
127 Tue Feb  7 13:36:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
129         * make.h [! STDC_HEADERS]: Don't declare qsort.  Sun headers
130         declare it int.
132 Mon Feb  6 17:37:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
134         * read.c (read_makefile): For bogus line starting with tab, ignore
135         it if blank after removing comments.
137         * main.c: Cast results of `alloca' to `char *'.
138         * expand.c: Likewise.
140 Sun Feb  5 18:35:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
142         * Version 3.72.5.
144         * configure.in: Check for mktemp.
145         * main.c (main) [! HAVE_MKTEMP]: Use tmpnam instead of mktemp.
147         * configure.in (make_cv_sysconf_open_max): New check for `sysconf
148         (_SC_OPEN_MAX)'.
149         * acconfig.h: Added #undef HAVE_SYSCONF_OPEN_MAX.
150         * job.c [HAVE_SYSCONF_OPEN_MAX] (getdtablesize): Define as macro
151         using sysconf.
153 Fri Jan 27 04:42:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
155         * remake.c (update_file_1): When !MUST_MAKE, don't set
156         FILE->update_status to zero before calling notice_finished_file.
157         (notice_finished_file): Touch only when FILE->update_status is zero.
158         (remake_file): Set FILE->update_status to zero after not calling
159         execute_file_command and deciding to touch instead.
161 Thu Jan 26 01:29:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
163         * main.c (debug_signal_handler): New function; toggles debug_flag.
164         (main): Handle SIGUSR1 with that.
166 Mon Jan 16 15:46:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
168         * compatMakefile (realclean): Remove Info files.
170 Sun Jan 15 08:23:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
172         * Version 3.72.4.
174         * job.c (start_job_command): Save and restore environ around vfork
175         call.
176         (search_path): Function #if 0'd out.
177         (exec_command): Use execvp instead of search_path.
179         * expand.c (variable_expand): Rewrote computed variable name and
180         substitution reference handling to be simpler.  First expand the
181         entire text between the parens if it contains any $s, then examine
182         the result of that for subtitution references and do no further
183         expansion while parsing them.
185         * job.c (construct_command_argv_internal): Handle " quoting too,
186         when no backslash, $ or ` characters appear inside the quotes.
188         * configure.in (union wait check): If WEXITSTATUS and WTERMSIG are
189         defined, just use int.
191 Tue Jan 10 06:27:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
193         * default.c (default_variables) [__hpux]: Remove special
194         definition of ARFLAGS.  Existence of the `f' flag is not
195         consistent across HPUX versions; and one might be using GNU ar
196         anyway.
198         * compatMakefile (clean): Don't remove Info files.
200         * compatMakefile (check): Remove gratuitous target declaration.
202 Sat Jan  7 11:38:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
204         * compatMakefile (ETAGS, CTAGS): Don't use -t.
206         * arscan.c (ar_name_equal) [cray]: Subtract 1 like [__hpux].
208         * main.c (decode_switches): For --help, print usage to stdout.
210 Mon Dec  5 12:42:18 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
212         * Version 3.72.3.
214         * remake.c (update_file_1): Do set_command_state (FILE,
215         cs_not_started) only if old state was deps_running.
217 Mon Nov 28 14:24:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
219         * job.c (start_waiting_job): Use set_command_state.
221         * build.template (CPPFLAGS): New variable.
222         (prefix, exec_prefix): Set from @...@.
223         (compilation loop): Pass $CPPFLAGS to compiler.
225         * GNUmakefile (build.sh.in): Make it executable.
227         * GNUmakefile (globfiles): Add configure.in, configure.
229         * Version 3.72.2.
231         * configure.in (AC_OUTPUT): Don't write glob/Makefile.
233         * configure.in (AC_CHECK_SYMBOL): Use AC_DEFINE_UNQUOTED.
235         * configure.in: Don't check for ranlib.
237 Tue Nov 22 22:42:40 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
239         * remake.c (notice_finished_file): Only mark also_make's as
240         updated if really ran cmds.
242 Tue Nov 15 06:32:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
244         * configure.in: Put dnls before random whitespace.
246 Sun Nov 13 05:02:25 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
248         * compatMakefile (CPPFLAGS): New variable, set from @CPPFLAGS@.
249         (RANLIB): Variable removed.
250         (prefix, exec_prefix): Set these from @...@.
251         (.c.o): Use $(CPPFLAGS).
252         (glob/libglob.a): Don't pass down variables to sub-make.
253         glob/Makefile should be configured properly by configure.
254         (distclean): Remove config.log and config.cache (autoconf stuff).
256 Mon Nov  7 13:58:06 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
258         * acconfig.h: Add #undef HAVE_UNION_WAIT.
259         * configure.in: Converted to Autoconf v2.
260         * dir.c: Test HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H instead
261         of DIRENT, SYSDIR, NDIR.
262         * build.sh.in (prefix, exec_prefix): Set these from @...@.
263         (CPPFLAGS): New variable, set from @CPPFLAGS@.
264         (compiling loop): Pass $CPPFLAGS before $CFLAGS.
265         * install.sh: File renamed to install-sh.
267         * main.c (define_makeflags): When no flags, set WORDS to zero.
269 Sun Nov  6 18:34:01 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
271         * Version 3.72.1.
273         * main.c (define_makeflags): Terminate properly when FLAGSTRING is
274         empty.
276 Fri Nov  4 16:02:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
278         * Version 3.72.
280 Tue Nov  1 01:18:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
282         * Version 3.71.5.
284         * job.c (start_job_command): When ARGV is nil, only set
285         update_state and call notice_finished_file if job_next_command
286         returns zero.
288         * job.c (start_job_command): Call notice_finished_file for empty
289         command line.
291 Thu Oct 27 02:02:45 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
293         * file.c (snap_deps): Set COMMANDS_SILENT for .SILENT, not
294         COMMANDS_NOERROR.
296 Wed Oct 26 02:14:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
298         * Version 3.71.4.
300 Tue Oct 25 22:49:24 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
302         * file.c (snap_deps): Set command_flags bits in all :: entries.
304 Mon Oct 24 18:47:50 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
306         * make.h (posix_pedantic): Declare it.
307         * main.c (main): Move checks .IGNORE, .SILENT, .POSIX to
308         snap_deps.
309         * file.c (snap_deps): Check .IGNORE, .SILENT, .POSIX here instead
310         of in main.  If .IGNORE has deps, OR COMMANDS_NOERROR into their
311         command_flags and don't set -i.  Likewise .SILENT.
312         * job.c (start_job_command): In FLAGS initialization, OR in
313         CHILD->file->command_flags.
314         * file.h (struct file): New member `command_flags'.
316 Sun Oct 16 01:01:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
318         * main.c (switches): Bump flag values for --no-print-directory and
319         --warn-undefined-variables, so neither is 1 (which indicates a
320         nonoption argument).
322 Sat Oct 15 23:39:48 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
324         * main.c (main): Add missing code in .IGNORE test.
326 Mon Oct 10 04:09:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
328         * variable.c (define_automatic_variables): Define +D and +F.
330 Sat Oct  1 04:07:48 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
332         * main.c (main): Define hidden automatic variable with command
333         vars, and MAKEOVERRIDES to a reference to that.
334         (define_makeflags): If posix_pedantic, write a reference to that
335         instead.
337 Thu Sep 29 00:14:26 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
339         * main.c (posix_pedantic): New variable.
340         (main): Set posix_pedantic if .POSIX is a target.
341         Fix .IGNORE and .SILENT checks to require is_target.
343         * commands.c (set_file_variables): Define new automatic variable
344         $+, like $^ but before calling uniquize_deps.
346         * job.c (reap_children): Call delete_child_targets for non-signal
347         error if .DELETE_ON_ERROR is a target.
349 Tue Sep 27 01:57:14 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
351         * Version 3.71.3.
353 Mon Sep 26 18:16:55 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
355         * job.c (reap_children): Don't change C->file->command_state when
356         dying.  Test it only after calling start_job_command for a new
357         command line.  When no more cmds, just set C->file->update_status.
358         (start_job_command): When the last line is empty or under -n, set
359         C->file->update_status.
360         (start_waiting_job): Grok cs_not_started after start_job_command
361         as success.
362         (new_job): Set C->file->update_status when there are no cmds.
363         (job_next_command): When out of lines, don't set
364         CHILD->file->update_status or CHILD->file->command_state.
366         * main.c (quote_as_word): Renamed from shell_quote.  Take new arg;
367         if nonzero, also double $s.
368         (main): Define MAKEOVERRIDES from command_variables here.
369         (define_makeflags): Don't use command_variables here; instead write a
370         reference $(MAKEOVERRIDES) in MAKEFLAGS.  Make vars recursive.
372         * dir.c [__MSDOS__]: Fixed typo.
374         * vpath.c (selective_vpath_search): Reset EXISTS when stat fails.
376 Sat Sep 10 03:01:35 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
378         * remake.c: Include <assert.h> and use assert instead of printfs
379         and abort.
381         * main.c (decode_switches): Loop until optind hits ARGC, not just
382         until getopt_long returns EOF.  Initialize C to zero before loop;
383         in loop if C is EOF, set optarg from ARGV[optind++], else call
384         getopt_long.
385         (decode_env_switches): Use variable_expand instead of
386         allocated_variable_expand.  Allocate a fresh buffer to copy split
387         words into; scan characters by hand to break words and
388         debackslashify.
389         (shell_quote): New function.
390         (define_makeflags): Allocate doubled space for switch args, and command
391         variable names and values; use shell_quote to quote those things.
393 Fri Sep  9 01:37:47 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
395         * Version 3.71.2.
397         * acconfig.h: Add HAVE_SYS_SIGLIST and HAVE__SYS_SIGLIST.
399         * main.c (decode_switches): The non-option return from getopt is
400         1, not 0.
401         (command_variables): New type and variable.
402         (decode_switches, decode_env_switches): After making a variable
403         definition, record the struct variable pointer in the
404         command_variables chain.
405         (define_makeflags): If ALL, write variable definitions for
406         command_variables.
408         * main.c (other_args): Variable removed.
409         (goals, lastgoal): New static variables (moved from auto in main).
410         (main): Don't process OTHER_ARGS at all.
411         Don't set variable MAKEOVERRIDES at all; define MAKE to just
412         $(MAKE_COMMAND).
413         (init_switches): Prepend a - {return in order} instead of a +
414         {require order}.
415         (decode_switches): Don't set OTHER_ARGS at all.
416         Grok '\0' return from getopt_long as non-option argument; try
417         variable definition and (if !ENV) enter goal targets here.
418         (decode_env_switches): Use allocated_variable_expand to store value.
419         Use find_next_token to simplify word-splitting loop.  Don't
420         prepend a dash to uninterpreted value.  Instead, if split into
421         only one word, try variable definition and failing that prepend a
422         dash to the word and pass it to decode_switches as a single arg.
424 Wed Sep  7 03:02:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
426         * remake.c (notice_finished_file): Only recheck modtimes if
427         FILE->command_state was cs_running on entry (meaning the commands
428         actually just ran).
429         (update_file_1): Whenever we set FILE->update_status, call
430         notice_finished_file instead of just set_command_state.
431         * job.c (start_job_command): Whenever we set
432         CHILD->file->update_status, call notice_finished_file instead of
433         just set_command_state.
435 Tue Sep  6 19:13:54 1994  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
437         * default.c: Add missing ".
439         * job.c: Changed all assignments of command_state members to calls
440         to set_command_state.
441         * remake.c: Likewise.
442         * file.c (set_command_state): New function.
443         * file.h: Declare set_command_state.
445         * main.c (init_switches): Put a + first in options.
447 Mon Jul 25 18:07:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
449         Merge MSDOS/GO32 port from DJ Delorie <dj@ctron.com>.
450         * vpath.c: Changed all uses of ':' to PATH_SEPARATOR_CHAR.
451         * main.c (directory_before_chdir): New variable, moved out of main
452         (was local).
453         (main) [__MSDOS__]: Look for \ or : to delimit last component of
454         PROGRAM.  Don't frob ARGV[0] before setting MAKE_COMMAND variable.
455         (die): Change back to `directory_before_chdir' before dying.
456         * make.h (PATH_SEPARATOR_CHAR): New macro; differing defns for
457         [__MSDOS__] and not.
458         * job.c [__MSDOS__]: Include <process.h>.
459         [__MSDOS__] (dos_pid, dos_status, dos_bname, dos_bename,
460         dos_batch_file): New variables.
461         (reap_children) [__MSDOS__]: Don't call wait; just examine those vars.
462         (unblock_sigs) [__MSDOS__]: Do nothing.
463         (start_job_command) [__MSDOS__]: Use spawnvpe instead of vfork & exec.
464         (load_too_high) [__MSDOS__]: Always return true.
465         (search_path) [__MSDOS__]: Check for : or / in FILE to punt.
466         Use PATH_SEPARATOR_CHAR instead of ':'.
467         (construct_command_argv_internal) [__MSDOS__]: Wholly different
468         values for sh_chars and sh_cmds.  Wholly new code to handle shell
469         scripts.
470         * function.c (expand_function: `shell') [__MSDOS__]: Wholly new
471         implementation.
472         * dir.c [__MSDOS__] (dosify): New function.
473         (dir_contents_file_exists_p) [__MSDOS__]: Call it on FILENAME and
474         process the result instead of FILENAME itself.
475         (file_impossible_p) [__MSDOS__]: Likewise.
476         * default.c [__MSDOS__]: Define GCC_IS_NATIVE.
477         (default_suffix_rules) [__MSDOS__]: Use `y_tab.c' instead of `y.tab.c'.
478         (default_variables) [GCC_IS_NATIVE]: Set CC and CXX to `gcc', YACC to
479         `bison -y', and LEX to `flex'.
480         * configure.bat, configh.dos: New files.
481         * commands.c (fatal_error_signal) [__MSDOS__]: Just remove
482         intermediates and exit.
484         * commands.c (set_file_variables): Add parens in length
485         computation in .SUFFIXES dep loop to quiet compiler warning.  From
486         Jim Meyering.
488         * read.c (read_makefile): Free FILENAME if we allocated it.  From
489         Jim Meyering.
491 Mon Jul  4 17:47:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
493         * misc.c (safe_stat): New function, EINTR-safe wrapper around stat.
494         * vpath.c (selective_vpath_search): Use safe_stat in place of stat.
495         * read.c (construct_include_path): Use safe_stat in place of stat.
496         * job.c (search_path): Use safe_stat in place of stat.
497         * dir.c (find_directory): Use safe_stat in place of stat.
498         * commands.c (delete_target): Use safe_stat in place of stat.
499         * arscan.c (ar_member_touch) [EINTR]: Do EINTR looping around fstat.
500         * remake.c (name_mtime): Use safe_stat in place of stat.
501         (touch_file) [EINTR]: Do EINTR looping around fstat.
503 Fri Jun 24 05:40:24 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
505         * read.c (read_makefile): Check for a shell command first, and
506         then strip leading tabs before further checking if it's not a
507         shell command line.
509         * make.h [__arm]: Undefine POSIX.
510         [!__GNU_LIBRARY__ && !POSIX && !_POSIX_VERSION]: Don't declare system
511         functions that return int.
513         * job.c (construct_command_argv_internal): After swallowing a
514         backslash-newline combination, if INSTRING is set goto string_char
515         (new label) for normal INSTRING handling code.
517 Sat Jun  4 01:11:20 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
519         * configure.in: Don't check for sys_siglist and _sys_siglist with
520         AC_HAVE_FUNCS.  Instead use two AC_COMPILE_CHECKs.
522 Mon May 23 18:20:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
524         * Version 3.71.1 released.
526         * make.h [!__GNU_LIBRARY__ && !POSIX]: Also test #ifndef
527         _POSIX_VERSION for these declarations.
529         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Remove bogus #ifndefs
530         around #undefs of HAVE_SETREUID and HAVE_SETREGID.
532 Sat May 21 16:26:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
534         * Version 3.71 released.
536         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Don't test [HAVE_SETUID]
537         and [HAVE_SETGID].  Every system has those, and configure doesn't
538         check for them.
540         * make.h [_POSIX_VERSION]: Don't #define POSIX #ifdef ultrix.
542         * compatMakefile (loadavg): Depend on and use loadavg.c instead of
543         getloadavg.c.
544         (loadavg.c): Link or copy it from getloadavg.c.
545         (distclean): Remove loadavg.c.
547 Mon May 16 22:59:04 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
549         * Version 3.70.4.
551         * misc.c [GETLOADAVG_PRIVILEGED] [! POSIX]: Undefine HAVE_SETEUID
552         and HAVE_SETEGID.
554         * default.c (default_terminal_rules): In SCCS rules, put
555         $(SCCS_OUTPUT_OPTION) before $<.  On some systems -G is grokked
556         only before the file name.
557         * configure.in (SCCS_GET_MINUS_G check): Put -G flag before file name.
559 Tue May 10 16:27:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
561         * job.c (construct_command_argv_internal): Swallow
562         backslash-newline combinations inside '' strings too.
564 Thu May  5 04:15:10 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
566         * read.c (do_define): Call collapse_continuations on each line
567         before all else.
569 Mon Apr 25 19:32:02 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
571         * job.c (construct_command_argv_internal): Notice newline inside
572         '' string when RESTP is non-null.
574 Fri Apr 22 17:33:30 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
576         * Version 3.70.3.
578         * remake.c (update_goal_chain): Reset FILE to G->file after the
579         double-colon loop so it is never null for following code.
581         * read.c (read_makefile): Fix `override define' parsing to skip
582         whitespace after `define' properly.
584         * compatMakefile (srcdir): Define as @srcdir@; don't reference
585         $(VPATH).
586         (glob/Makefile): New target.
588 Thu Apr 21 16:16:55 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
590         * Version 3.70.2.
592         * misc.c (remove_comments): Use find_char_unquote.
593         * make.h (find_char_unquote): Declare it.
594         * read.c (find_char_unquote): New function, generalized from
595         find_percent.
596         (find_percent, find_semicolon, parse_file_seq): Use that.
598 Wed Apr 20 18:42:39 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
600         * implicit.c (pattern_search): Always allocate new storage for
601         FILE->stem.  It is not safe to store STEM's address because it
602         might be auto storage.
604         * configure.in: Check for seteuid and setegid.
605         * misc.c [HAVE_SETEUID]: Declare seteuid.
606         [HAVE_SETEGID]: Declare setegid.
607         (make_access, user_access) [HAVE_SETEUID]: Use seteuid.
608         [HAVE_SETEGID]: Use setegid.
610         * remake.c (update_goal_chain): Set STATUS to FILE->update_status,
611         to preserve whether it's 2 for error or 1 for -q trigger.  When
612         STATUS gets nonzero and -q is set, always stop immediately.
613         * main.c (main, decode_switches): Die with 2 for errors.
614         (main): Accept 2 return from update_goal_chain and die with that.
615         * misc.c (fatal, makefile_fatal): Die with 2; 1 is reserved for -q
616         answer.
617         * job.c (reap_children): Die with 2 for error.
618         (start_job_command): Set update_status to 2 for error.  Set it to
619         1 when we would run a command and question_flag is set.
621         * read.c (read_makefile): Don't mark makefiles as precious.  Just
622         like other targets, they can be left inconsistent and in need of
623         remaking by aborted commands.
625         * read.c (read_makefile): Write no error msg for -include file.
627 Tue Apr  5 05:22:19 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
629         * commands.c (fatal_error_signal): Don't unblock signals.
631         * file.h (struct file): Change member `double_colon' from flag to
632         `struct file *'.
633         * read.c (record_files): Set double_colon pointer instead of flag.
634         * main.c (main): When disqualifying makefiles for updating, use
635         double_colon pointer to find all entries for a file.
636         * file.c (enter_file): If there is already a double-colon entry
637         for the file, set NEW->double_colon to that pointer.
638         (file_hash_enter): Use FILE->double_colon to find all entries to
639         set name.
640         * remake.c (update_goal_chain): Do inner loop on double-colon entries.
641         (update_file): Use FILE->double_colon pointer to find all entries.
642         (f_mtime): Likewise.
643         (notice_finished_file): Propagate mtime change to all entries.
645         * variable.c (try_variable_definition): Return after abort.
647 Fri Apr  1 18:44:15 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
649         * read.c (read_makefile): Remove unused variable.
650         (parse_file_seq): When removing an elt that is just `)', properly
651         fix up the previous elt's next pointer.
653 Mon Mar 28 18:31:49 1994  Roland McGrath  (roland@mole.gnu.ai.mit.edu)
655         * configure.in: Do AC_SET_MAKE.
656         * GNUmakefile (Makefile.in): Edit MAKE assignment into @SET_MAKE@.
658 Fri Mar  4 00:02:32 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
660         * function.c (subst_expand): If BY_WORD or SUFFIX_ONLY is set and
661         the search string is the empty string, find a match at the end of
662         each word (using end_of_token in place of sindex).
664         * misc.c (end_of_token): Don't treat backslashes specially; you
665         can no longer escape blanks with backslashes in export, unexport,
666         and vpath.  This was never documented anyway.
668 Thu Mar  3 23:53:46 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
670         * read.c (read_makefile): Variable name for `define' is not just
671         first token; use whole rest of line and strip trailing blanks.
673 Wed Feb 16 16:03:45 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
675         * Version 3.70.1.
677         * read.c (read_makefile): Add -d msg stating args.
679         * read.c (read_makefile): Use isspace to skip over leading
680         whitespace, and explicitly avoid skipping over tabs.  Don't want
681         to skip just spaces though; formfeeds et al should be skipped.
683         * default.c (default_variables) [__hpux]: Add f in ARFLAGS.
685         * arscan.c (ar_name_equal) [__hpux]: Subtract 2 instead of 1 from
686         sizeof ar_name for max length to compare.
688         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Undefine HAVE_SETREUID
689         #ifdef HAVE_SETUID; likewise HAVE_SETREGID and HAVE_SETGID.
691         * main.c (main): Call user_access after setting `program', in case
692         it needs to use it in an error message.
694         * read.c (read_makefile): Ignore an empty line starting with a tab.
696 Thu Feb 10 21:45:31 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
698         * configure.in (AC_SYS_SIGLIST_DECLARED): Use this instead of
699         AC_COMPILE_CHECK that is now its contents.
701 Fri Feb  4 16:28:54 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
703         * make.h: #undef strerror after #include <string.h>.
704         [! ANSI_STRING]: Declare strerror.
706 Thu Feb  3 02:21:22 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
708         * misc.c (strerror): #undef any macro before function definition.
710 Mon Jan 31 19:07:23 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
712         * variable.c (try_variable_definition): Calculate BEG before loop
713         to strip blanks by decrementing END.  Don't decr END to before BEG.
715         * read.c (read_makefile): Skip over leading space characters, but
716         not tabs, after removing continuations and comments (it used to
717         use isspace).
719 Tue Jan 25 16:45:05 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
721         * variable.c (define_automatic_variables): In $(@D) et al, use
722         patsubst to remove trailing slash.
724         * commands.c (delete_target): New function, broken out of
725         delete_child_targets.  Check for archive members and give special msg.
726         (delete_child_targets): Use delete_target.
728 Mon Jan 17 17:03:22 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
730         * default.c (default_suffix_rules): Use $(TEXI2DVI_FLAGS) in
731         texi2dvi rules. Use $(MAKEINFO_FLAGS) in makeinfo rules.
733 Tue Jan 11 19:29:55 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
735         * GNUmakefile (tarfiles): Omit make-doc.
736         (make-$(version).tar): Include make.info*.
738 Fri Jan  7 16:27:00 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
740         * compatMakefile (configure, config.h.in): Comment out rules.
742 Thu Jan  6 18:08:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
744         * compatMakefile (binprefix, manprefix): New variables.
745         (instname): Variable removed.
746         (install): Use $({bin,man}prefix)make in place of $(instname).
747         File targets likewised renamed.
749 Mon Jan  3 17:50:25 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
751         * Version 3.70 released.
753 Thu Dec 23 14:46:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
755         * Version 3.69.3.
757         * read.c (parse_file_seq): Inside multi-word archive ref
758         translation loop, check NEW1==0 at end and break out of the loop.
760         * GNUmakefile (make-$(version).tar): Distribute install.sh.
761         * install.sh: New file.
763         * configure.in (SCCS_GET_MINUS_G check): Put redirection for admin
764         cmds outside subshell parens, to avoid "command not found" msgs
765         from the shell.
767 Wed Dec 22 17:00:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
769         * configure.in (SCCS_GET_MINUS_G check): Put -G flag last in get cmd.
770         Redirect output & error from get to /dev/null.
771         Fix reversed sense of test.
773 Fri Dec 17 15:31:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
775         * configure.in (SCCS_GET_MINUS_G check): Use parens instead of
776         braces inside if condition command; some shells lose.
778 Thu Dec 16 15:10:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
780         * Version 3.69.2.
782         * arscan.c [M_UNIX]: Move #undef M_XENIX for PORTAR stuff.
783         (PORTAR) [M_XENIX]: Define to 0 instead of 1.
785         * main.c (define_makeflags): Only export MAKEFLAGS if !ALL.
787 Wed Dec 15 17:47:48 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
789         * main.c (main): Cast result of pointer arith to unsigned int
790         before passing to define_variable for envars.  Matters when
791         sizeof(unsigned)!=sizeof(ptrdiff_t).
793 Tue Dec 14 14:21:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
795         * configure.in: Add new check for SCCS_GET_MINUS_G.
796         * config.h.in: Add #undef SCCS_GET_MINUS_G.
797         * default.c (default_terminal_rules): Use `$(SCCS_OUTPUT_OPTION)' in
798         place of `-G $@' in SCCS commands.
799         (default_variables) [SCCS_GET_MINUS_G]: Define SCCS_OUTPUT_OPTION
800         to "-G$@".
802         * configure.in (AC_OUTPUT): Put touch stamp-config in second arg
803         (so it goes in config.status), rather than afterward.
805         * ar.c (ar_member_date): Don't call enter_file on the archive file
806         if it doesn't exist (by file_exists_p).
808         * compatMakefile ($(infodir)/make.info): Replace `$$d/foo.info'
809         with `$$dir/make.info' in install-info invocation (oops).
811         * vpath.c (construct_vpath_list): Only set LASTPATH set PATH when
812         we do not unlink and free PATH.
814         * file.c (print_file_data_base): Fix inverted calculation for
815         average files per hash bucket.
817         * read.c (readline): When we see a NUL, give only a warning and
818         synthesize a newline to terminate the building line (used to
819         fatal).  Move fgets call into the loop condition, and after the
820         loop test ferror (used to test !feof in the loop).
822 Fri Dec  3 16:40:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
824         * configure.in: Check for strerror in AC_HAVE_FUNCS.
826 Thu Dec  2 15:37:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
828         Differentiate different flavors of missing makefile error msgs,
829         removing gratuitous `fopen: ' and giving caller for included makefiles.
830         * misc.c [! HAVE_STRERROR]: Define our own strerror here.
831         (perror_with_name, pfatal_with_name): Use strerror instead of
832         replicating its functionality.
833         * read.c (read_makefile): Return int instead of void.
834         (read_all_makefiles, read_makefile): Change callers to notice zero
835         return and give error msg.
837 Thu Nov 11 11:47:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
839         * Version 3.69.1.
841         * default.c: Put `-G $@' before $< in SCCS cmds.
843 Wed Nov 10 06:06:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
845         * read.c (read_makefile): After trying a variable defn, notice if
846         the line begins with a tab, and diagnose an error.
848 Sun Nov  7 08:07:37 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
850         * Version 3.69.
852 Wed Nov  3 06:54:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
854         * Version 3.68.10.
856         * implicit.c (try_implicit_rule): Look for a normal rule before an
857         archive rule.
859 Fri Oct 29 16:45:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
861         * function.c (expand_function: `sort'): Double NWORDS when it
862         overflows, instead of adding five.
864         * compatMakefile (clean): Remove loadavg.
866 Wed Oct 27 17:58:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
868         * Version 3.68.9.
870         * file.h (NEW_MTIME): Define new macro.
871         * main.c (main): Set time of NEW_FILES to NEW_MTIME, not to
872         current time returned from system.  Removed variable NOW.
873         * remake.c (notice_finished_file): Use NEW_MTIME in place of
874         current time here too.
876 Tue Oct 26 19:45:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
878         * Version 3.68.8.
880         * remake.c (update_file_1): Don't clear MUST_MAKE when FILE has no
881         cmds and !DEPS_CHANGED unless also !NOEXIST.
883 Mon Oct 25 15:25:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
885         * read.c (parse_file_seq): When converting multi-word archive
886         refs, ignore a word beginning with a '('.
888 Fri Oct 22 02:53:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
890         * configure.in: Check for sys/timeb.h.
891         * make.h [HAVE_SYS_TIMEB_H]: Test this before including it.
893 Thu Oct 21 16:48:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
895         * Version 3.68.7.
897         * rule.c (convert_suffix_rule): New local TARGPERCENT.  Set it to
898         TARGNAME+1 for "(%.o)", to TARGNAME for "%.?".  Use it in place of
899         TARGNAME to initialize PERCENTS[0].
901 Mon Oct 18 06:49:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
903         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
904         Remove AC_USG; it is no longer used.
906         * file.c (print_file): New function, broken out of
907         print_file_data_base.
908         (print_file_data_base): Call it.
909         * rule.c (print_rule): New function, broken out of
910         print_rule_data_base.
911         (print_rule_data_base): Call it.
913 Thu Oct 14 14:54:03 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
915         * default.c (install_default_suffix_rules): New function, broken
916         out of install_default_implicit_rules.
917         (install_default_implicit_rules): Move suffix rule code there.
918         * make.h: Declare install_default_suffix_rules.
919         * main.c (main): Call install_default_suffix_rules before reading
920         makefiles.  Move convert_to_pattern call before
921         install_default_implicit_rules.
923         * job.h (struct child): Make `pid' member type `pid_t' instead of
924         `int'.
926         * compatMakefile (RANLIB): New variable, set by configure.
927         (glob/libglob.a): Pass RANLIB value down to submake.
929         Fixes for SCO 3.2 "devsys 4.2" from pss@tfn.com (Peter Salvitti).
930         * make.h: Include <sys/timeb.h> before <time.h> for SCO lossage.
931         * job.c [! getdtablesize] [! HAVE_GETDTABLESIZE]: If NOFILE is not
932         defined but NOFILES_MAX is, define it to be that.
934 Mon Oct 11 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
936         * GNUmakefile (make-$(version).tar): Depend on acconfig.h, so it
937         is distributed.
939 Sun Oct  3 15:15:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
941         * default.c (default_terminal_rules): Add `-G $@' to SCCS get cmds.
943 Tue Sep 28 14:18:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
945         * job.c (construct_command_argv_internal): Add ^ to SH_CHARS; it
946         is another symbol for | in some shells.
947         * main.c (main): Add it to CMD_DEFS quoting list as well.
949 Mon Sep 20 18:05:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
951         * job.c (construct_command_argv_internal): Remove '=' from
952         SH_CHARS.  Only punt on '=' if it is unquoted in a word before the
953         first word without an unquoted '='.
955         * main.c (define_makeflags): Set v_export for MAKEFLAGS.
957 Fri Sep 17 00:37:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
959         * remake.c (update_file_1): Use .DEFAULT cmds for phony targets.
961         * make.h [_AIX && _POSIX_SOURCE]: Define POSIX.
963         * commands.c (delete_child_targets): Don't delete phony files.
965         * job.c (start_job_command): Set COMMANDS_RECURSE in FLAGS if we
966         see a `+' at the beginning of the command line.
968 Thu Sep  9 17:57:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
970         * Version 3.68.6.
972 Wed Sep  8 20:14:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
974         * main.c (define_makeflags): Define MAKEFLAGS with o_file, not o_env.
976 Mon Aug 30 12:31:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
978         * expand.c (variable_expand): Fatal on an unterminated reference.
980 Thu Aug 19 16:27:53 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
982         * Version 3.68.5.
984         * variable.c (define_automatic_variables): Define new o_default
985         variable `MAKE_VERSION' from version_string and remote_description.
987         * make.h (version_string, remote_description): Declare these here.
988         * main.c: Don't declare version_string.
989         (print_version): Don't declare remote_description.
991 Wed Aug 18 15:01:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
993         * read.c (read_makefile): Free space pointed to by CONDITIONALS
994         before restoring the old pointer.
996 Mon Aug 16 17:33:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
998         * compatMakefile ($(objs)): Depend on config.h.
1000         * GNUmakefile (build.sh.in): Depend on compatMakefile.
1002         * configure.in: Touch stamp-config after AC_OUTPUT.
1004 Fri Aug 13 16:04:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1006         * Version 3.68.4.
1008 Thu Aug 12 17:18:57 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1010         * make.h: Include <config.h> instead of "config.h".
1012 Wed Aug 11 02:35:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1014         * main.c (main): Make all variables interned from ENVP be v_export.
1015         * variable.c (try_variable_definition): In v_default case, don't
1016         check for an o_file variable that `getenv' finds.
1018         * job.c (reap_children): New local variable ANY_LOCAL; set it
1019         while setting ANY_REMOTE.  If !ANY_LOCAL, don't wait for local kids.
1021         * main.c (main): Don't call decode_env_switches on MFLAGS.  DOC THIS.
1023         * function.c (expand_function): #if 0 out freeing of ENVP since it
1024         is environ.
1026 Mon Aug  9 17:37:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1028         * Version 3.68.3.
1030         * remote-stub.c (remote_status): Set errno to ECHILD before return.
1031         * job.c (reap_children): Scan the chain for remote children and
1032         never call remote_status if there are none.
1034         * function.c (expand_function: `shell'): #if 0 out calling
1035         target_environment; just set ENVP to environ instead.
1037         * job.c (reap_children): Check for negative return from
1038         remote_status and fatal for it.
1039         When blocking local child wait returns 0, then try a blocking call
1040         to remote_status.
1042 Tue Aug  3 00:19:00 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1044         * compatMakefile (clean): Delete make.info* and make.dvi here.
1045         (distclean): Not here.
1047         * dep.h (RM_*): Use #defines instead of enum to avoid lossage from
1048         compilers that don't like enum values used as ints.
1050 Mon Aug  2 16:46:34 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1052         * compatMakefile (loadavg): Add $(LOADLIBES).
1054 Sun Aug  1 16:01:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1056         * Version 3.68.2.
1058         * compatMakefile (loadavg, check-loadavg): New targets.
1059         (check): Depend on check-loadavg.
1061         * compatMakefile (glob/libglob.a): Depend on config.h.
1063         * misc.c (log_access): Write to stderr instead of stdout.
1065 Fri Jul 30 00:07:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1067         * Version 3.68.1.
1069 Thu Jul 29 23:26:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1071         * configure.in (SYS_SIGLIST_DECLARED): In test program include
1072         <unistd.h> #ifdef HAVE_UNISTD_H.
1074         * compatMakefile (.PHONY): Put after `all' et al.
1076         * configure.in: Add AC_IRIX_SUN.
1078 Wed Jul 28 17:41:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1080         * Version 3.68.
1082 Mon Jul 26 14:36:49 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1084         * Version 3.67.8.
1086 Sun Jul 25 22:09:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1088         * Version 3.67.7.
1090         * compatMakefile ($(infodir)/make.info): Don't use $(instname).
1091         Run install-info script if present.
1093 Fri Jul 23 16:03:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1095         * make.h [STAT_MACROS_BROKEN]: Test this instead of [uts].
1097         * configure.in: Add AC_STAT_MACROS_BROKEN.
1099 Wed Jul 14 18:48:11 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1101         * Version 3.67.6.
1103         * read.c (read_makefile): Recognize directive `-include', like
1104         `include' but sets RM_DONTCARE flag.
1106         * variable.c (target_environment): If FILE is nil, use
1107         current_variable_set_list in place of FILE->variables.
1108         * function.c (expand_function: `shell'): Get an environment for
1109         the child from target_environment instead of using environ.
1111         * dep.h: Declare read_all_makefiles here.
1112         (RM_*): Define new enum constants.
1113         * read.c (read_makefile): Second arg is FLAGS instead of TYPE.
1114         Treat it as a bit mask containing RM_*.
1115         (read_all_makefiles): For default makefiles, set D->changed to
1116         RM_DONTCARE instead of 1.
1117         * main.c: Don't declare read_all_makefiles here.
1118         (main): Check `changed' member of read_makefiles elts for RM_*
1119         flags instead of specific integer values.
1121 Mon Jul 12 22:42:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1123         * make.h [sequent && i386]: #undef POSIX.  From trost@cse.ogi.edu.
1125 Thu Jul  8 19:51:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1127         * vpath.c (construct_vpath_list): If ELEM is zero 0, free PATTERN
1128         as well as VPATH.
1129         (build_vpath_lists): Empty `vpaths' around construct_vpath_list
1130         call for $(VPATH).  Expand $(strip $(VPATH)), not just $(VPATH).
1132         * rule.c (convert_suffix_rule): Use alloca instead of xmalloc for
1133         PERCENTS, whose storage is not consumed by create_pattern_rule.
1135         * make.h [__mips && _SYSTYPE_SVR3]: #undef POSIX.
1137 Wed Jun 30 18:11:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1139         * Version 3.67.5.
1141         * rule.c (max_pattern_targets): New variable.
1142         (count_implicit_rule_limits): Compute its value.
1143         * rule.h: Declare it.
1144         * implicit.c (pattern_search): Make TRYRULES max_target_patterns
1145         times bigger.  Move adding new TRYRULES elt inside the inner
1146         targets loop, so each matching target gets its own elt in MATCHES
1147         and CHECKED_LASTSLASH.
1149         * file.c (remove_intermediates): If SIG!=0 say `intermediate file'
1150         instead of just `file' in error msg.
1152 Fri Jun 25 14:55:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1154         * job.c (construct_command_argv): Turn off
1155         --warn-undefined-variables around expansion of SHELL and IFS.
1156         * read.c (tilde_expand): Likewise for HOME.
1157         (read_all_makefiles): Likewise for MAKEFILES.
1158         * vpath.c (build_vpath_lists): Likewise for VPATH.
1160         * main.c (warn_undefined_variables_flag): New flag variable.
1161         (switches): Add --warn-undefined-variables.
1162         * make.h (warn_undefined_variables_flag): Declare it.
1163         * expand.c (warn_undefined): New function.
1164         (reference_variable): Call it if the variable is undefined.
1165         (variable_expand): In substitution ref, call warn_undefined if the
1166         variable is undefined.
1168         * default.c (default_pattern_rules): Add `%.c: %.w %.ch' and
1169         `%.tex: %.w %.ch' rules.
1170         (default_suffix_rules: .w.c, .w.tex): Pass three args: $< - $@.
1171         (default_suffixes): Add `.ch'.
1173 Mon Jun 21 17:55:39 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1175         * default.c (default_suffixes): Replace `.cweb' with `.w'.
1176         (default_suffix_rules): Rename `.cweb.c' and `.cweb.tex' to `.w.c'
1177         and `.w.tex'.
1179 Fri Jun 11 14:42:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1181         * compatMakefile ($(bindir)/$(instname)): Add missing backslash.
1183 Thu Jun 10 18:14:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1185         * Version 3.67.4.
1187         * read.c (multi_glob): Don't free OLD and OLD->name in the
1188         FOUND!=0 fork.  Use new block-local variable F instead of
1189         clobbering OLD.
1191         * ar.c (glob_pattern_p): New function, snarfed from glob/glob.c.
1192         (ar_glob): Call it; return nil immediately if MEMBER_PATTERN
1193         contains no metacharacters.
1195 Wed Jun  9 16:25:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1197         * ar.c (ar_glob{_match,_alphacompare}): New function.
1199         * dep.h [! NO_ARCHIVES]: Declare it.
1200         * read.c (multi_glob) [! NO_ARCHIVES]: Use it on archive member elts.
1202         * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
1203         multi_glob (which doesn't take a 3rd arg).
1204         * rule.c (install_pattern_rule): Likewise.
1205         * default.c (set_default_suffixes): Here too.
1206         * function.c (string_glob): Don't pass gratuitous arg to multi_glob.
1208         * read.c (parse_file_seq) [! NO_ARCHIVES]: Add post-processing
1209         loop to translate archive refs "lib(a b)" into "lib(a) lib(b)".
1211 Mon Jun  7 19:26:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1213         * compatMakefile (installdirs): Actually pass directory names.
1214         ($(bindir)/$(instname)): Test chgrp&&chmod exit status with `if';
1215         if it fails, echo a warning msg, but don't make the rule fail.
1217         * read.c (tilde_expand): New function, broken out of tilde_expand.
1218         (multi_glob): Call it.
1219         (construct_include_path): Expand ~ in directory names.
1220         * dep.h: Declare tilde_expand.
1221         * main.c (enter_command_line_file): Expand ~ at the start of NAME.
1222         (main): Expand ~ in -C args.
1223         * read.c (read_makefile): Expand ~ in FILENAME unless TYPE==2.
1225 Fri Jun  4 13:34:47 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1227         * main.c (decode_env_switches): Use xmalloc instead of alloca for ARGS.
1229         * main.c (main): Put result of alloca in temporary variable with
1230         simple assignment, to make SGI compiler happy.
1232 Thu Jun  3 20:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1234         * Version 3.67.3.
1236         * main.c (main): Before re-execing, remove intermediate files, and
1237         print the data base under -p.  Sexier debugging message.
1239         * implicit.c (pattern_search): Allocate an extra copy of the name
1240         of a winning intermediate file when putting it in FOUND_FILES.
1242 Wed Jun  2 16:38:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1244         * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
1245         multi_glob (which doesn't take a 3rd arg).
1247         * dir.c (dir_contents_file_exists_p): When reading dirents, ignore
1248         chars within D_NAMLEN that are NULs.
1250         * main.c (decode_switches): Don't savestring ARGV[0] to put it
1251         into `other_args'.
1252         For string switch, don't savestring `optarg'.
1253         (main): Don't free elts of makefiles->list that are "-".
1254         Use alloca'd rather than savestring'd storage for elts of
1255         makefiles->list that are temporary file names.
1256         * read.c (read_all_makefiles): Don't free *MAKEFILES.
1257         * file.c (enter_file): Don't strip `./'s.
1258         * main.c (enter_command_line_file): New function.
1259         (main): Use it in place of enter_file for command-line goals from
1260         other_files, and for old_files and new_files.
1262 Mon May 31 18:41:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1264         * Version 3.67.2.
1266         * compatMakefile (.SUFFIXES): Add .info.
1267         ($(infodir)/$(instname).info): Find make.info* in cwd if there,
1268         else in $srcdir.  Use basename to remove dir name from installed name.
1270 Thu May 27 17:35:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1272         * implicit.c (pattern_search): When interning FOUND_FILES, try
1273         lookup_file first; if found, free the storage for our copy of the name.
1275 Wed May 26 14:31:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1277         * Version 3.67.1.
1279         * main.c (decode_switches): In usage msg, write `--switch=ARG' or
1280         `--switch[=OPTARG]' rather than `--switch ARG' or `--switch [ARG]'.
1282 Mon May 24 16:17:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1284         * rule.c (convert_suffix_rule): New function.
1285         (convert_to_pattern): Use it instead of doing all the work here
1286         several times.
1287         For target suffix `.a', generate both the archive magic rule and
1288         the normal rule.
1290         * compatMakefile (distclean): Remove stamp-config.
1292 Sat May 22 16:15:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1294         * Version 3.67.
1296         * file.c (remove_intermediates): Don't write extra space after `rm'.
1298         * main.c (struct command_switch.type): Remove `usage_and_exit'.
1299         (print_usage_flag): New variable.
1300         (switches: --help): Make type `flag', to set print_usage_flag.
1301         (init_switches): Remove `usage_and_exit' case.
1302         (decode_switches): Likewise.
1303         (decode_switches): Print usage if print_usage_flag is set.
1304         When printing usage, die with status of BAD.
1305         (main): Die with 0 if print_version_flag.
1307 Fri May 21 16:09:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1309         * Version 3.66.
1311 Wed May 19 21:30:44 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1313         * compatMakefile (installdirs): New target.
1314         (install): Depend on it.
1316 Sun May 16 20:15:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1318         * Version 3.65.2.
1320 Fri May 14 16:40:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1322         * vpath.c (construct_vpath_list): In removal loop for DIRPATH==0,
1323         set LASTPATH to PATH, not NEXT.
1325         * dir.c (read_dirstream): Break out of loop after incrementing
1326         DS->buckets such that it reaches DIRFILE_BUCKETS; avoid trying to
1327         dereference DS->contents->files[DIRFILE_BUCKETS].
1329         * read.c (read_makefile): Clear no_targets after reading a
1330         targetful rule line.
1332         * main.c (main): If print_version_flag is set, exit after printing
1333         the version.
1334         (switches): Change --version docstring to say it exits.
1336         * make.h [butterfly]: #undef POSIX.
1338 Wed May 12 15:20:21 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1340         * Version 3.65.1.
1342         * arscan.c (ar_scan) [! AIAMAG]: Don't declare LONG_NAME.
1343         [AIAMAG]: Pass TRUNCATE flag arg to (*FUNCTION), always zero.
1345         * function.c (handle_function): Use fatal instead of
1346         makefile_fatal when reading_filename is nil.
1348         * configure.in: Add AC_GETGROUPS_T.
1349         * job.c (search_path): Use GETGROUPS_T in place of gid_t.
1351 Sun May  9 15:41:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1353         * Version 3.65.
1355 Fri May  7 18:34:56 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1357         * function.c (handle_function): Fatal for unmatched paren.
1359 Thu May  6 16:13:41 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1361         * Version 3.64.3.
1363         * commands.c (handling_fatal_signal): New variable.
1364         (fatal_error_signal): Set it.
1365         * job.c (reap_children): Avoid nonreentrant operations if that is set.
1366         * make.h: Declare handling_fatal_signal.
1368         * expand.c (reference_variable): New function, snippet of code
1369         broken out of simple-reference case of variable_expand.
1370         (variable_expand): Use it for simple refs.
1371         (variable_expand): When checking for a computed variable name,
1372         notice a colon that comes before the final CLOSEPAREN.  Expand
1373         only up to the colon, and then replace the pending text with a
1374         copy containing the expanded name and fall through to subst ref
1375         handling.
1376         (variable_expand): Don't bother expanding the name if a colon
1377         appears before the first $.
1378         (expand_argument): Use alloca instead of savestring.
1379         (variable_expand): For subst ref, expand both sides of = before
1380         passing to [pat]subst_expand.  Use find_percent instead of lindex
1381         to check the lhs for a %.
1383 Wed May  5 14:45:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1385         * Version 3.64.2.
1387 Mon May  3 17:00:32 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1389         * arscan.c (ar_name_equal) [AIAMAG]: Abort if TRUNCATED is nonzero.
1391         * read.c (read_makefile): Pass extra arg of 1 to parse_file_seq,
1392         not to multi_glob.
1394 Thu Apr 29 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1396         * Version 3.64.1.
1398         * arscan.c (ar_scan): New local flag var LONG_NAME.  Set it when
1399         we read the member name in any of the fashions that allow it to be
1400         arbitrarily long.  Pass its negation to FUNCTION.
1401         (describe_member): Take TRUNCATED from ar_scan and print it.
1402         (ar_name_equal): Take new arg TRUNCATED; if nonzero, compare only
1403         the first sizeof (struct ar_hdr.ar_name) chars.
1404         (ar_member_pos): Take TRUNCATED from ar_scan, pass to ar_name_equal.
1405         * ar.c (ar_member_date_1): Likewise.
1407 Wed Apr 28 21:18:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1409         * job.c (reap_children): Before calling start_job_command to start
1410         the next command line, reset C->remote by calling start_remote_job_p.
1412 Mon Apr 26 15:56:15 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1414         * arscan.c (ar_scan): New local var NAMEMAP.
1415         In loop, rename NAME to NAMEBUF; new var NAME is a pointer; new
1416         flag IS_NAMEMAP.  When extracting the member name, always put a
1417         null at its end first.  If the name is "//" or "/ARFILENAMES", set
1418         IS_NAMEMAP.  If we have already read in NAMEMAP, and NAME looks
1419         like " /N", get full name from NAMEMAP+N.
1420         Else if NAME looks like "#1/N", read N chars from the
1421         elt data to be the full name.  At end of loop, if IS_NAMEMAP, read
1422         the elt's data into alloca'd NAMEMAP.
1423         (ar_name_equal): #if 0 truncating code.
1425         * make.h: Don't declare vfork at all.  It returns int anyway,
1426         unless <unistd.h> declared it; and we conflicted with some systems.
1428         * main.c (define_makeflags): If FLAGSTRING[1] is '-', define
1429         MAKEFLAGS to all of FLAGSTRING, not &FLAGSTRING[1].  Don't want to
1430         define it to something like "-no-print-directory".
1431         Use %g format instead of %f for floating-valued things.
1433 Thu Apr 22 18:40:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1435         * GNUmakefile (Makefile.in): Use a substitution ref on nolib-deps
1436         to change remote-%.dep to remote-stub.dep.
1438 Wed Apr 21 15:17:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1440         * Version 3.64.
1442 Fri Apr 16 14:22:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1444         * compatMakefile (install): Remove - prefix from chgrp+chmod.
1446         * Version 3.63.8.
1448 Thu Apr 15 18:24:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1450         * acconfig.h: New file; contains "#undef SCCS_GET" for autoheader.
1451         * configure.in: If /usr/sccs/get exists, define SCCS_GET to that,
1452         else to "get".
1453         * default.c (default_variables): Set GET to macro SCCS_GET.
1455         * read.c (parse_file_seq): Take extra arg STRIP; strip `./' only
1456         if nonzero.  I hope this is the last time this argument is added
1457         or removed.
1458         (read_makefile): Pass it 1 when parsing include file names.
1459         Pass it 1 when parsing target file names.
1460         Pass it 1 when parsing static pattern target pattern names.
1461         * rule.c (install_pattern_rule): Pass it 1 when parsing rule deps.
1462         * default.c (set_default_suffixes): Pass it 1 when parsing
1463         default_suffixes.
1464         * function.c (string_glob): Pass it 0 here.
1466 Wed Apr 14 11:32:05 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1468         * misc.c (log_access): New function.
1469         ({init,user,make,child}_access): Call it.
1470         (child_access): Abort if !access_inited.
1472         * main.c (switches: --no-print-directory): Use 1 instead of -1 for
1473         single-letter option.
1474         (init_switches, decode_switches, define_makeflags): An option with
1475         no single-letter version is no longer indicated by a value of -1;
1476         instead a value that is !isalnum.
1477         (init_switches): Don't put such switches into the string, only
1478         into the long_option table.
1480         * make.h [!NSIG] [!_NSIG]: #define NSIG 32.
1482         * job.c [HAVE_WAITPID]: Remove #undef HAVE_UNION_WAIT.  AIX's
1483         bsdcc defined WIF* to use union wait.
1485         * main.c (struct command_switch): Change member `c' to type int.
1486         (switches): Make const.
1487         (decode_switches): Use `const struct command_switch *'.
1488         (define_makeflags): Likewise.
1490         * default.c (default_suffix_rules): Add `-o $@' to makeinfo rules.
1492 Mon Apr 12 12:30:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1494         * Version 3.63.7.
1496         * configure.in (AC_HAVE_HEADERS): Check for string.h and memory.h.
1497         Removed AC_MEMORY_H.
1498         * make.h [USG, NeXT]: Don't test these.
1499         [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
1500         [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
1501         [! ANSI_STRING]: Put decls of bcopy et al here.
1502         [sparc]: Don't test this for alloca.h; HAVE_ALLOCA_H is sufficient.
1503         [HAVE_SIGSETMASK]: Test this rather than USG.
1504         [__GNU_LIBRARY__ || POSIX]: Don't #include <unistd.h> again.
1505         * main.c (main): Handle SIGCHLD if defined, and SIGCLD if defined.
1506         It doesn't hurt to do both if they are both defined, and testing
1507         USG is useless.
1508         * dir.c: Rationalize directory header conditionals.
1509         * arscan.c [HAVE_FCNTL_H]: Test this rather than USG || POSIX.
1511         * default.c (default_suffixes): Add `.txinfo'.
1512         (default_suffix_rules): Add `.txinfo.info' and `.txinfo.dvi' rules.
1514         * variable.c (try_variable_definition): Replace RECURSIVE flag
1515         with enum FLAVOR, which can be simple, recursive, or append.
1516         Recognize += as append flavor.  Set new variable VALUE in a switch
1517         on FLAVOR.  For append flavor, prepend the variable's old value.
1518         If the variable was previously defined recursive, set FLAVOR to
1519         recursive; if it was defined simple, expand the new value before
1520         appending it to the old value.  Pass RECURSIVE flag to
1521         define_variable iff FLAVOR == recursive.
1523         * variable.c (try_variable_definition): Use alloca and bcopy for
1524         NAME, instead of savestring.  Might as well use stack storage
1525         since we free it immediately anyway.
1527 Thu Apr  8 18:04:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1529         * job.c (start_waiting_jobs): Move decl of JOB outside of loop.
1531         * main.c (define_makeflags): Rename `struct flag' member `switch'
1532         to `cs', which is not a reserved word.
1534 Wed Apr  7 15:30:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1536         * job.c (new_job): Call start_waiting_jobs first thing.
1537         (start_waiting_job): Changed return type from void to int.
1538         Return 0 when putting the child on the waiting_jobs chain.
1539         (start_waiting_jobs): Don't check load and job_slots here.
1540         Always take a job off the chain and call start_waiting_job on it;
1541         give up and return when start_waiting_job returns zero.
1543         * main.c (define_makeflags: struct flag): Change member `char c' to
1544         `struct command_switch *switch'.
1545         (ADD_FLAG): Set that to CS instead of CS->c.
1546         If CS->c is -1, increment FLAGSLEN for the long name.
1547         When writing out FLAGS, handle FLAGS->switch->c == -1 and write
1548         the long name instead.
1550         * compatMakefile (stamp-config): New target of old config.h rule.
1551         Touch stamp-config after running config.status.
1552         (config.h): Just depend on stamp-config, and have empty commands.
1554 Mon Apr  5 20:14:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1556         * job.c [HAVE_WAITPID]: #undef HAVE_UNION_WAIT.
1558         * configure.in (AC_HAVE_FUNCS): Check for psignal.
1560 Fri Apr  2 17:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1562         * main.c (long_option_aliases): Remove "new"; it is already an
1563         unambiguous prefix of "new-file".
1565 Sun Mar 28 16:57:17 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1567         * Version 3.63.6.
1569 Wed Mar 24 14:26:19 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1571         * vpath.c (selective_vpath_search): When adding the
1572         name-within-directory at the end of NAME, and we don't add a
1573         slash, don't copy FILENAME in one char too far into NAME.
1575         * variable.c (define_automatic_variables): Find default_shell's
1576         length with strlen, not numerology.
1578 Wed Mar 17 20:02:27 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1580         * main.c (define_makeflags): Add the elts of a string option in
1581         reverse order, so they come out right when reversed again.
1583 Fri Mar 12 15:38:45 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1585         * compatMakefile (make.info): Use `-o make.info'.
1587 Thu Mar 11 14:13:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1589         * compatMakefile (REMOTE): Set to @REMOTE@; change comments to
1590         reflect new use.
1591         (objs): Replace remote.o with remote-$(REMOTE).o.
1592         (srcs): Replace remote.c with remote-$(REMOTE).c.
1593         (remote.o): Rule removed.
1595         * configure.in (REMOTE): Subst this in Makefile et al; default "stub".
1596         Use AC_WITH to grok --with-customs arg to set REMOTE=cstms.
1597         * GNUmakefile (build.sh.in): Filter out remote-% from objs list.
1598         * build.template (REMOTE): New var; set to @REMOTE@.
1599         (objs): Add remote-${REMOTE}.o.
1601 Wed Mar 10 15:12:24 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1603         * Version 3.63.5.
1605         * implicit.c (pattern_search): Fix "dependent"->"dependency" in
1606         "Rejecting impossible" -d msg.
1608         * file.c (file_hash_enter): New local vars {OLD,NEW}BUCKET.  Store
1609         mod'd values there; never mod {OLD,NEW}HASH.
1611 Mon Mar  8 13:32:48 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1613         * remake.c [eta10]: Include <fcntl.h> instead of <sys/file.h>.
1615         * compatMakefile (VPATH): Set this to @srcdir@.
1616         (srcdir): Set this to $(VPATH).
1618         * main.c (main): New local var DIRECTORY_BEFORE_CHDIR.  Save in it
1619         a copy of CURRENT_DIRECTORY after the first getcwd.  Use it
1620         instead of CURRENT_DIRECTORY when chdir'ing back before re-execing.
1622         * remake.c (notice_finished_file): Pass missing SEARCH arg to f_mtime.
1624         * read.c (read_makefile): Remove extraneous arg to parse_file_seq.
1626 Mon Feb 22 14:19:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1628         * compatMakefile ($(infodir)/$(instname).info): Use , instead of /
1629         as the sed delimiter char.
1631 Sun Feb 21 14:11:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1633         * Version 3.63.4.
1635         * rule.h (struct rule): Removed `subdir' member.
1636         * rule.c (new_pattern_rule): No need to clear it.
1637         (count_implicit_rule_limits): Set the `changed' flag in each dep
1638         that refers to a nonexistent directory.  No longer set rule-global
1639         `subdir' flag with that information.
1640         (print_rule_data_base): Don't record info on `subdir' flags.
1642         * implicit.c (pattern_search): Check the DEP->changed flag rather
1643         than the (now gone) RULE->subdir flag.  Also test CHECK_LASTSLASH;
1644         if it is set, the file might exist even though the DEP->changed
1645         flag is set.
1647         * rule.c (count_implicit_rule_limits): Pass "", not ".", as file
1648         name arg to dir_file_exists_p to check for existence of directory.
1650         * implicit.c (pattern_search): Inside dep-finding loop, set
1651         CHECK_LASTSLASH from the value recorded in CHECKED_LASTSLASH[I],
1652         rather than computing it anew.
1654         * commands.c (set_file_variables): Must alloca space for PERCENT
1655         and copy it, to avoid leaving the trailing `)' in the value.
1657         * misc.c (remove_comments): Fixed backslash-checking loop
1658         condition to allow it to look at the first char on the line.
1659         P2 >= LINE, not P2 > LINE.
1661         * compatMakefile ($(bindir)/$(instname)): Before moving $@.new to
1662         $@, rm $@.old and mv $@ to $@.old.
1664         * variable.c (try_variable_definition): Take new args FILENAME and
1665         LINENO.  Fatal if the variable name is empty.
1666         * read.c (read_makefile): Change callers.
1667         * main.c (main): Likewise.
1669         * compatMakefile (group): Define to @KMEM_GROUP@, autoconf magic
1670         that configure will replace with the group owning /dev/kmem.
1672 Mon Feb  8 14:26:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1674         * vpath.c (vpath_search): Take second arg MTIME_PTR, pass thru to
1675         selective_vpath_search.
1676         (selective_vpath_search): Take second arg MTIME_PTR.
1677         If the dir cache thinks a file exists, stat it to make sure, and
1678         put the modtime in *MTIME_PTR.
1679         * remake.c (library_search): Take second arg MTIME_PTR.
1680         When we find a match, record its mtime there.
1681         Pass MTIME_PTR through to vpath_search to do same.
1682         (f_mtime): Pass &MTIME as new 2nd arg to {vpath,library}_search;
1683         store it in FILE->last_mtime if set nonzero.
1684         * implicit.c (pattern_search): Pass nil 2nd arg to vpath_search.
1686         * compatMakefile (remote.o): Prepend `$(srcdir)/' to `remote-*.c',
1687         so globbing looks somewhere it will find things.
1689         * compatMakefile ($(infodir)/$(instname).info): Install `make.info*'
1690         not `$(srcdir)/make.info*'; no need to use basename.
1692 Fri Feb  5 12:52:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1694         * Version 3.63.3.
1696         * compatMakefile (install): Add missing ;\s.
1698         Make -, @, and + prefixes on a pre-expanded command line affect
1699         all lines in the expansion, not just the first.
1700         * commands.h (struct commands): Replace `lines_recurse' member
1701         with `lines_flags'.
1702         (COMMANDS_{RECURSE,SILENT,NOERROR}): New macros, bits to set in
1703         that flag byte.
1704         * commands.c (chop_commands): Set `lines_flags' instead of
1705         `lines_recurse'.  Record not only + but also @ and - prefixes.
1706         * remake.c (notice_finished_file): Check the COMMANDS_RECURSE bit
1707         in FILE->cmds->lines_flags, rather than FILE->cmds->lines_recurse.
1708         * job.c (start_job_command): Replaced RECURSIVE and NOPRINT local
1709         var with FLAGS; initialize it to the appropriate `lines_flags' byte.
1710         Set CHILD->noerror if the COMMANDS_NOERROR bit is set in FLAGS.
1711         Set the COMMANDS_SILENT bit in FLAGS for a @ prefix.
1713         * remake.c (update_goal_chain): Set G->file to its prev after
1714         checking for G being finished, since that check needs to examine
1715         G->file.
1717         * configure.in (union wait check) [HAVE_WAITPID]: Try using
1718         waitpid with a `union wait' STATUS arg.  If waitpid and union wait
1719         don't work together, we should not use union wait.
1721         * Version 3.63.2.
1723         * remake.c (update_goal_chain): When G->file->updated, move
1724         G->file to its prev.  We aren't finished until G->file is nil.
1726 Thu Feb  4 12:53:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1728         * main.c (starting_directory): New global variable.
1729         (main): Set it to cwd after doing -Cs.
1730         (log_working_directory): Use it, rather than computing each time.
1731         * make.h: Declare it.
1733         * compatMakefile (SHELL): Define to /bin/sh for losing Unix makes.
1735         * main.c (decode_env_switches): Allocate (1 + LEN + 1) words for
1736         ARGV, rather than LEN words plus one byte.
1738 Wed Feb  3 18:13:52 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1740         * compatMakefile ($(bindir)/$(instname)): Put - before
1741         install_setgid command line, so its failure won't be an error.
1742         (infodir): New variable.
1743         (install): Depend on $(infodir)/$(instname).info.
1744         ($(infodir)/$(instname).info): New target.
1746         * read.c (read_makefile): If FILENAMES is nil when we see a line
1747         starting with a tab, don't treat it as a command.  Just fall
1748         through, rather than giving an error.
1750         * read.c (read_makefile): If the NO_TARGETS flag is set when we see a
1751         command line, don't clear it before continuing.  We want
1752         subsequent command lines to be ignored as well.
1754         * job.c (new_job): Before expanding each command line, collapse
1755         backslash-newline combinations that are inside var or fn references.
1757 Mon Feb  1 16:00:13 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1759         * compatMakefile (exec_prefix): Default to $(prefix), not /usr/local.
1761         * compatMakefile (make.info): Pass -I$(srcdir) to makeinfo.
1763         * job.c [POSIX] (unblock_sigs): Made global.
1764         [!POSIX] (unblock_sigs): Move defns to job.h.
1765         * job.h [POSIX] (unblock_sigs): Declare.
1767 Sun Jan 31 19:11:05 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1769         * read.c (read_makefile): In vpath parsing, after finding the
1770         pattern token, take entire rest of line as the search path, not
1771         just the next token.
1773         * compatMakefile (remote.o): Depend on remote-*.c.
1775 Thu Jan 28 16:40:29 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1777         * commands.c (set_file_variables): Don't define any F or D versions.
1778         * variable.c (define_automatic_variables): Define them here as
1779         recursively-expanded variables that use the dir and notdir funcs.
1781         * variable.c (target_environment): In v_default case, don't export
1782         o_default or o_automatic variables.
1784         * configure.in (union wait check): Remove ` and ' inside C code;
1785         they confuse the shell script.
1787 Mon Jan 25 13:10:42 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1789         * Version 3.63.1.
1791         * vpath.c (construct_vpath_list): When skipping further processing
1792         of an elt that is ".", don't also skip the code that pushes P past
1793         the next separator.
1795         * compatMakefile (distclean): Don't remove make-*.
1797         * configure.in (HAVE_UNION_WAIT): Try to use WEXITSTATUS if it's
1798         defined.  If one cannot use WEXITSTATUS with a `union wait'
1799         argument, we don't want to believe the system has `union wait' at all.
1801         * remake.c (update_file): Do nothing to print "up to date" msgs.
1802         (update_goal_chain): Do it here instead.
1803         Use the `changed' flag of each goal's `struct dep' to keep track
1804         of whether files_remade (now commands_started) changed around a
1805         call to update_file for that goal.
1806         When a goal is finished, and its file's update_status is zero (i.e.,
1807         success or nothing done), test the `changed' flag and give an "up
1808         to date" msg iff it is clear.
1809         * make.h (files_remade): Renamed to commands_started.
1810         * remake.c: Changed defn.
1811         (update_goal_chain): Changed uses.
1812         * job.c (start_job_command): Increment commands_started here.
1813         (reap_children): Not here.
1815         * remake.c (update_goal_chain): Don't do anything with files'
1816         `prev' members.  update_file now completely handles this.
1818         * variable.c (target_environment): Don't expand recursive
1819         variables if they came from the environment.
1821         * main.c (define_makeflags): For flags with omitted optional args,
1822         store {"", 0} with ADD_FLAG.  When constructing FLAGSTRING, a flag
1823         so stored cannot have more flags appended to the same word.
1825 Fri Jan 22 14:46:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1827         * variable.c (print_variable_set): In vars/bucket calculation,
1828         don't spuriously multiply by 100.
1830         * Version 3.63.
1832         * job.c [!HAVE_UNION_WAIT] (WTERMSIG, WCOREDUMP, WEXITSTATUS):
1833         Don't define if already defined.
1835         * remake.c (update_file): Don't keep track of the command_state before
1836         calling update_file_1.  Remove local variable COMMANDS_FINISHED,
1837         and don't test it to decide to print the "is up to date" msg.
1838         Testing for files_remade having changed should always be sufficient.
1839         The old method lost when we are called in the goal chain run on a
1840         makefile, because the makefile's command_state is already
1841         `cs_finished' from the makefile chain run.
1843         * misc.c [HAVE_SETRE[GU]ID]: Test these to decl setre[gu]id.
1845         * configure.in: Rewrote wait checking.
1846         Use AC_HAVE_HEADERS to check for <sys/wait.h>.
1847         Use AC_HAVE_FUNCS to check for waitpid and wait3.
1848         Use a compile check to test just for `union wait'.
1849         * job.c: Rewrote conditionals accordingly.
1850         [HAVE_WAITPID]: Test this only to define WAIT_NOHANG.
1851         [HAVE_WAIT3]: Likewise.
1852         [HAVE_UNION_WAIT]: Test this to define WAIT_T and W*.
1854         * configure.in: Set CFLAGS and LDFLAGS before all checks.
1856         * dir.c: Add static forward decls of {open,read}_dirstream.
1858 Thu Jan 21 17:18:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1860         * Version 3.62.31.
1862         * job.c [NGROUPS_MAX && NGROUPS_MAX==0]: #undef NGROUPS_MAX.
1864         * compatMakefile (CFLAGS, LDFLAGS): Set to @CFLAGS@/@LDFLAGS@.
1865         * build.template (CFLAGS, LDFLAGS): Same here.
1866         * configure.in: AC_SUBST(CFLAGS) and LDFLAGS.
1867         Set them to -g if not defined in the environment.
1869         * remake.c (library_search): Use LIBNAME consistently, setting it
1870         only once, to be the passed name sans `-l'.
1871         Pass new var FILE to be modified by vpath_search.
1873 Mon Jan 18 14:53:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1875         * Version 3.62.30.
1877         * job.c (start_waiting_jobs): Return when job_slots_used is equal to
1878         job_slots. 
1880         * configure.in: Add AC_CONST for the sake of getopt.
1882         * read.c (read_makefile): Continue after parsing `override'
1883         directive, rather than falling through to lossage.
1884         Check for EOL or blank after "override define".
1886         * compatMakefile (.c.o, remote.o): Put $(CFLAGS) after other switches.
1888 Fri Jan 15 12:52:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1890         * Version 3.62.29.
1892         * main.c (define_makeflags): After writing everything into
1893         FLAGSTRING, only back up two chars if [-1] is a dash, meaning we
1894         just wrote " -".  Always terminate the string at *P.
1896         * remake.c (library_search): When constructing names in std dirs,
1897         use &(*LIB)[2] for the stem, not LIBNAME (which points at the
1898         buffer we are writing into!).
1900 Thu Jan 14 13:50:06 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1902         * read.c (read_makefile): Set IN_IGNORED_DEFINE for "override
1903         define" when IGNORING is true.
1905         * compatMakefile (distclean): Remove config.status and build.sh.
1907 Wed Jan 13 16:01:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1909         * Version 3.62.28.
1911         * misc.c (xmalloc, xrealloc): Cast result of malloc/realloc to
1912         (char *).
1914         * arscan.c (ar_scan) [AIAMAG]: Cast read arg to (char *).
1916         * variable.c (define_automatic_variables): Override SHELL value for
1917         origin o_env_override as well as o_env.
1919         * GNUmakefile (build.sh.in): Don't replace %globobjs%.  Instead,
1920         add the names of the glob objects (w/subdir) to %objs%.
1921         * build.template (globobjs): Removed.
1922         Take basename of $objs before linking.
1924 Tue Jan 12 12:31:06 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1926         * Version 3.62.27.
1928         * configure.in (AC_OUTPUT): Also edit build.sh.
1929         * build.template: New file.
1930         * GNUmakefile (build.sh.in): New rule to create it from build.template.
1931         (make-$(version).tar.Z): Depend on build.sh.in.
1933         * main.c (die): Call print_data_base if -p.
1934         (main): Don't call it here.
1936         * compatMakefile (defines): Add @DEFS@.  configure should turn this
1937         into -DHAVE_CONFIG_H.
1939 Mon Jan 11 14:39:23 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1941         * Version 3.62.26.
1943         * misc.c (init_access): Surround with #ifdef GETLOADAVG_PRIVILEGED.
1944         ({make,user,child}_access) [! GETLOADAVG_PRIVILEGED]: Make no-op.
1945         * compatMakefile (install_setgid): New var, set by configure.
1946         (install): Install setgid $(group) only if $(install_setgid) is true.
1948 Fri Jan  8 15:31:55 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1950         * job.c (load_too_high): If getloadavg fails with errno==0, give a
1951         message saying that load limits are not supported.
1953         * vpath.c (construct_vpath_list): Rewrote path deletion code to
1954         not try to use PATH's next link after freeing PATH.
1956         * main.c (define_makeflags): Rewritten; now handles string-valued
1957         option, and has no arbitrary limits.
1958         (switches): Set `toenv' flag for -I and -v.
1960         * main.c (decode_env_switches): Cast return value of alloca to char *.
1962         * misc.c (child_access) [HAVE_SETREUID, HAVE_SETREGID]: Use
1963         setre[gu]id in place of set[gu]id.
1965 Wed Jan  6 15:06:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1967         * main.c (main): Define MAKEOVERRIDES, MAKE, and MAKE_COMMAND with
1968         origin o_default.
1970         * make.h [POSIX]: Don't test this to use ANSI_STRING.
1971         Testing STDC_HEADERS should be sufficient.
1973         * job.h: Declare start_waiting_jobs.
1975         * read.c (read_makefile): Add missing parens in if stmt that find
1976         conditional directives.
1978         * main.c (main): Declare init_dir.
1979         * implicit.c (pattern_search): Always use two % specs in a
1980         DEBUGP2, and always pass two non-nil args.
1981         Cast field width args to int.
1982         Add missing parens in !RULE->subdir if stmt.
1983         * function.c (expand_function, patsubst_expand): Add parens around
1984         assignments inside `while' stmts.
1985         * commands.c (print_commands): Cast field width args to int.
1987         * read.c (do_define): Cast return value of alloca to (char *).
1989         * main.c (init_switches): New function, broken out of decode_switches.
1990         (decode_switches): Take new arg ENV.  If set, ignore non-option
1991         args; print no error msgs; ignore options with clear `env' flags.
1992         (decode_env_switches): Rewritten to chop envar value into words
1993         and pass them to decode_switches.
1994         (switches): Set `env' flag for -I and -v.
1996         * dir.c (init_dir): Cast free to __glob_closedir_hook's type.
1998 Tue Jan  5 14:52:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2000         * Version 3.62.25.
2002         * job.c [HAVE_SYS_WAIT || !USG]: Don't #include <sys/time.h> and
2003         <sys/resource.h>.  <sys/time.h> interacts badly with <time.h>, and
2004         we don't need these anyway.
2006         * configure.in (AC_HAVE_FUNCS): Check for setre[gu]id.
2007         * misc.c ({user,make}_access): Test #ifndef HAVE_SETRE[GU]ID, not
2008         #ifdef POSIX || USG.  SunOS 4.1 is supposedly POSIX.1 compliant,
2009         but its set[gu]id functions aren't; its setre[gu]id functions work.
2011         * misc.c ({user,make,child}_access): Give name of caller in error msgs.
2013         * job.c (load_too_high): Say "cannot enforce load limit" in error msg.
2015         * configure.in: Call AC_PROG_CC.
2016         * compatMakefile (CC): Define to @CC@ (autoconf magic).
2018         * compatMakefile: Add .NOEXPORT magic target.
2020 Mon Jan  4 17:00:03 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2022         * main.c (print_version): Updated copyright to include 93.
2024 Thu Dec 31 12:26:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2026         * make.h [_AIX]: Don't declare alloca.
2028 Tue Dec 29 13:45:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2030         * Version 3.62.24.
2032         * compatMakefile (objs): Add signame.o.
2033         (srcs): Add signame.[ch].
2035         * compatMakefile (srcs): Add config.h.in.
2036         (remote.o): Add -I. before -I$(srcdir).
2038 Mon Dec 28 15:51:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2040         * Version 3.62.23.
2042         * read.c (readline): Fatal when LEN==0, indicating a line starting
2043         with a NUL.
2044         (readline): Take new arg LINENO, for use in error msg.
2045         (read_makefile, do_define): Pass it.
2047         * compatMakefile (glob/libglob.a): Pass -DHAVE_CONFIG_H in CPPFLAGS.
2048         (.c.o): Add -I. before -I$(srcdir).
2050 Wed Dec 23 12:12:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2052         * read.c (read_makefile): Accept and ignore a rule with no targets.
2054         * compatMakefile (ALLOCA_SRC): New variable.
2055         (srcs): Include its value.
2057         * read.c (struct conditional): Renamed member `max_ignoring' to
2058         `allocated'; added new member `seen_else'.
2059         (conditional_line): Initialize seen_else flag when starting an `if...';
2060         set it when we see an `else'; fatal if set when we see `else'.
2061         (read_makefile): Fatal "missing `endif'" if there are any pending
2062         conditionals, not just if we are still ignoring.
2064 Tue Dec 22 15:36:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2066         * compatMakefile (manext): Set to 1, not l.
2067         ($(mandir)/$(instname).$(manext)): Use $(srcdir) for make.man in cmds.
2069         * file.c (file_hash_enter): Don't call uniquize_deps here.
2070         * read.c (record_files): Likewise.
2071         * implicit.c (pattern_search): Likewise.
2072         * commands.c (set_file_variables): Call it only here.
2074         * default.c (default_variables) [__convex__]: FC=fc.
2076         * variable.c (target_environment): Expand the values of recursively
2077         expanded variables when putting them into the environment.
2078         * expand.c (recursively_expand): Made global.
2079         * make.h (recursively_expand): Declare it.
2081         * remake.c (check_dep): Set FILE->command_state to cs_deps_running
2082         when a dep's command_state is cs_running or cs_deps_running.
2084         * read.c (read_makefile): Changed error msg for spurious cmds to
2085         not say "first target".
2087 Sun Dec 20 17:56:09 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2089         * configure.in: Do AC_CONFIG_HEADER right after AC_INIT.
2090         * make.h (HAVE_CONFIG_H): #include "config.h", then #define this.
2091         * compatMakefile (config.h, configure, config.h.in): New rules.
2092         (defines): Removed @DEFS@.
2094 Thu Dec 17 16:11:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2096         * compatMakefile (realclean): Just depend on distclean; no cmds.
2097         (distclean): Do what realclean did before; also remove Makefile and
2098         config.h; don't remove configure.
2099         (info, dvi): New targets; depend on make.{info,dvi}.
2100         (doc): Removed target.
2101         (MAKEINFO, TEXI2DVI): New vars.
2102         (make.info, make.dvi): Use them instead of explicit cmds.
2104 Wed Dec 16 16:25:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2106         * configure.in: Added fcntl.h to AC_HAVE_HEADERS.  getloadavg cares.
2108 Wed Dec  9 15:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2110         * main.c (long_option_aliases): Add --new-file alias for -W.
2112         * default.c (default_variables): Change all C++ to CXX and C++FLAGS
2113         to CXXFLAGS.
2115         * read.c (do_define): Expand the variable name before using it.
2117         * main.c (main): Define variable "MAKE_COMMAND" to argv[0];
2118         define "MAKE=$(MAKE_COMMAND) $(MAKEOVERRIDES)" always.
2120         * remake.c (library_search): Search for libNAME.a in cwd; look in
2121         vpath before looking in standard dirs, not after.
2122         Changed order of std dirs to: /lib, /usr/lib, ${prefix}/lib.
2124 Mon Nov 23 14:57:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2126         * default.c (default_pattern_rules, default_terminal_rules): Added
2127         brackets around initializers.
2129         * variable.c (try_variable_definition): Don't check for LINE[0]=='\t'.
2130         (try_variable_definition): Expand the name before defining the var.
2132         * job.c (init_siglist): Removed function.
2133         Removed decl of `sys_siglist'.
2134         * make.h [! HAVE_SYS_SIGLIST]: #include "signame.h".
2135         [HAVE_SYS_SIGLIST && !SYS_SIGLIST_DECLARED]: Declare sys_siglist
2136         only under these conditions.
2137         * main.c (main): Don't declare init_siglist.
2138         (main) [! HAVE_SYS_SIGLIST]: Call signame_init instead of init_siglist.
2140 Wed Nov 18 14:52:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2142         * read.c (record_files): Don't try to append to FIRSTDEPS if it's
2143         nil; instead just set it to MOREDEPS.
2145 Mon Nov 16 17:49:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2147         * vpath.c (construct_vpath_list): Initialize P to DIRPATH before
2148         loop that sets MAXELEM.
2150 Fri Nov 13 18:23:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2152         * Version 3.62.22.
2154 Thu Nov 12 15:45:31 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2156         * job.c (start_job_command): Under -n, increment files_remade after
2157         processing (i.e., printing) all command lines.
2159 Tue Nov 10 15:33:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2161         * read.c (record_files): Append new deps if this rule has no
2162         commands; prepend them to existing deps if this rule has no commands.
2164         * dir.c (open_dirstream): Return nil if DIR->contents->files is nil.
2166         * read.c (parse_file_seq): Removed last arg STRIP.  Always strip `./'s.
2167         (read_makefile): Changed callers.
2168         * function.c (string_glob): Likewise.
2169         * rule.c (install_pattern_rule): Likewise.
2171 Mon Nov  9 17:50:16 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2173         * remake.c (files_remade): Made global.
2174         (notice_finished_file): Don't increment files_remade here; this
2175         function gets called in many situations where no remaking was in
2176         fact done.
2177         * job.c (reap_children): Do it here instead, when we know that 
2178         actual commands have been run for the file.
2179         * make.h (files_remade): Declare it.
2181 Thu Nov  5 18:26:10 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2183         * vpath.c (construct_vpath_list): Allow blanks as well as colons to
2184         separate elts in the search path.
2186         * read.c (read_makefile): Don't fatal on extra tokens in `vpath'.
2187         The search path can contain spaces now.
2189 Tue Nov  3 20:44:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2191         * compatMakefile (check): New target; no-op.
2193         * file.c (file_hash_enter): Mod OLDHASH by FILE_BUCKETS after
2194         testing for OLDHASH==0 but before using the value.
2195         (rename_file): Don't mod OLDHASH by FILE_BUCKETS before passing it
2196         to file_hash_enter.
2198         * file.c (rename_file): Notice when OLDFILE->cmds came from
2199         default.c, and don't try to print ->filename in that case.
2201 Sun Oct 25 01:48:23 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2203         * remake.c (update_file): Don't process F->also_make here.
2204         (notice_finished_file): Don't process FILE->also_make if no attempt
2205         to update FILE was actually made.
2206         Fixed to call f_mtime directly to refresh their modtimes.
2208 Sat Oct 24 22:08:59 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2210         * read.c (find_percent): Don't increment P again after skipping
2211         an escaped %.
2213         * expand.c (variable_expand): In call to patsubst_expand, don't
2214         find `%'s ourselves; let that function do it.
2216         * read.c (read_makefile: record_waiting_files): Don't call
2217         record_files if FILENAMES is nil.
2218         (read_makefile): All alternatives in the parsing, except for rule
2219         lines, fall through to the end of the loop.  At the end of the
2220         loop, do record_waiting_files so we notice later spurious cmds.
2222 Fri Oct 23 15:57:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2224         * variable.c (define_automatic_variables): Free old value of SHELL
2225         before replacing it.
2227 Thu Oct 15 18:57:56 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2229         * compatMakefile (.c.o): Add -I$(srcdir)/glob to flags.
2231         * dir.c (open_dirstream): Cast return value to __ptr_t.
2233         * default.c (default_variables: "GET") [_IBMR2]: Use USG defn.
2235         * make.h (MAXPATHLEN): Moved out of #ifndef POSIX.
2236         (GET_PATH_MAX): Moved from #ifdef POSIX to #ifdef PATH_MAX #else.
2237         Define as (get_path_max ()).
2238         [! PATH_MAX] (NEED_GET_PATH_MAX): Define.
2239         [! PATH_MAX] (get_path_max): Declare fn.
2240         * misc.c [NEED_GET_PATH_MAX] (get_path_max): New function.
2242 Mon Oct 12 13:34:45 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2244         * Version 3.62.21.
2246         * job.c (sys_siglist): Only declare #ifndef SYS_SIGLIST_DECLARED.
2247         * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2248         SYS_SIGLIST_DECLARED.
2250         * dir.c (file_impossible): When initializing DIR->contents, set
2251         DIR->contents->dirstream to nil.
2253         * compatMakefile (GLOB): Define new variable.
2254         (objs): Use it, rather than glob/libglob.a explicitly.
2256         * read.c (parse_file_seq): When stripping "./", handle cases like
2257         ".///foo" and "./////".
2258         * file.c (lookup_file, enter_file): Likewise.
2260 Sun Oct 11 17:00:35 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2262         * dir.c (struct dirstream, {open,read}_dirstream): New
2263         data type and functions to read a directory sequentially.
2264         (init_dir): New function to hook it into glob.
2265         * main.c (main): Call init_dir.
2267         * compatMakefile (objs): Added glob/libglob.a.
2268         * configure.in: Remove code to test for glob.
2270 Fri Oct  9 12:08:30 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2272         * read.c (record_files): Generalized test for NAME pointing
2273         somewhere into F->name.
2275         * variable.c (define_variable_in_set): Free old value when replacing.
2277         * read.c (do_define): Free the linebuffer before returning.
2278         (record_files): When clearing .SUFFIXES deps, free their data.
2279         (multi_glob): Free OLD and its data when replacing it with results
2280         of glob run.
2282         * commands.c (set_file_variables): Use alloca in place of xmalloc
2283         for temp space for $^, $?, et al.
2285         * dir.c (struct directory): New member `contents' replaces `files'
2286         and `dirstream'.
2287         (struct directory_contents): New type.
2288         (directories_contents): New hash table.
2289         (dir_struct_file_exists_p): Take a struct directory_contents.
2290         (dir_file_exists_p): Pass it the `contents' member of the dir found.
2291         (dir_struct_file_exists_p): Renamed to dir_contents_file_exists_p;
2292         made static.  Return 0 if DIR is nil (meaning it couldn't be stat'd).
2293         (dir_file_exists_p, find_directory): Change all callers.
2294         (file_impossible): Use DIR->contents, initializing it if nil.
2295         (print_dir_data_base): Use DIR->contents, and print out device and
2296         inode numbers with each directory.
2298         * Changes for performance win from John Gilmore <gnu@cygnus.com>:
2299         * dir.c (DIRECTORY_BUCKETS): Increase to 199.
2300         (DIRFILE_BUCKETS): Decrease to 107.
2301         (find_directory): Allocate and zero a multiple of
2302         sizeof (struct dirfile *), not of sizeof (struct dirfile).
2303         (dir_struct_file_exists_p): New function, nearly all code from
2304         dir_file_exists_p.
2305         (dir_file_exists_p): Just call find_directory+dir_struct_file_exists_p.
2306         * vpath.c (selective_vpath_search): Remove redundant
2307         dir_file_exists_p call.
2309         * configure.in: Comment out glob check; always use our code.
2311 Fri Oct  2 19:41:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2313         * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2314         HAVE_SYS_SIGLIST; after doing #define sys_siglist _sys_siglist, we
2315         do have it.
2317 Wed Sep 30 19:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2319         * main.c (main): Don't do -w automatically if -s.
2321 Tue Sep 29 21:07:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2323         * main.c (printed_version): Move variable inside print_version.
2324         (print_version): Return immediately if printed_version is set.
2325         (die): Don't test printed_version here.
2326         (decode_switches): Under -v, do print_version before giving usage.
2327         (DESCRIPTION_COLUMN): New macro.
2328         (decode_switches): Use it when printing the usage message.
2329         Leave at least two spaces between options and their descriptions.
2331 Fri Sep 25 13:12:42 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2333         * Version 3.62.20.
2335 Wed Sep 16 16:15:22 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2337         * read.c (read_makefile): Save errno value from trying to open
2338         FILENAME, and restore it before erring; otherwise we get the errno
2339         value from the last elt of the search path.
2341 Tue Sep 15 15:12:47 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2343         * main.c (long_option_aliases): Add --stop for -S.
2345         * read.c (word1eq): Do strncmp before dereferencing someplace that
2346         may be out in space.
2348 Wed Sep  9 15:50:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2350         * remake.c (notice_finished_file): If all the command lines were
2351         recursive, don't do the touching.
2353         * job.c (start_job_command): Don't check for + here.
2354         * commands.c (chop_commands): Do it here instead.
2356         * default.c (default_terminal_rules): Prepend + to cmds for RCS.
2358 Wed Sep  2 17:53:08 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2360         * compatMakefile (objs): Include $(ALLOCA).
2362         * make.h [CRAY]: Move #define signal bsdsignal to before #includes.
2364 Thu Aug 27 17:45:43 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
2366         * read.c (default_include_directories): Add INCLUDEDIR first.
2367         * compatMakefile (includedir): Define.
2368         (defines): Add -D for INCLUDEDIR="$(includedir)".
2370         * read.c (read_makefile): Grok multiple files in `include';
2371         globbing too.
2373         * remake.c (library_search): New function.
2374         (library_file_mtime): Remove function.
2375         (f_mtime): Use library_search instead of library_file_mtime.
2376         * compatMakefile (libdir): Define.
2377         (defines): Add -D for LIBDIR="$(libdir)".
2378         * make.texinfo (Libraries/Search): Document change.
2380         * file.c (rename_file): Fix file_hash_enter call with missing arg.
2382 Wed Aug 26 17:10:46 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2384         * Version 3.62.19.
2386         * main.c (main): Set command_state to cs_finished for temp files
2387         made for stdin makefiles.
2389         * main.c (decode_switches): Don't tell getopt to return non-option
2390         args in order.
2391         Ignore an argument of `-'.
2393 Thu Aug 20 13:36:04 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2395         * job.c (start_job_command): If (touch_flag && !RECURSIVE), ignore
2396         the command line and go to the next.
2397         (notice_finished_file): Under -t, touch FILE.
2398         * remake.c (remake_file): Don't touch it here.
2400 Wed Aug 19 16:06:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2402         * function.c (pattern_matches): Use temporary for strlen (WORD)
2403         instead of two function calls.
2405         * compatMakefile (LOAD_AVG): Remove variable and comments.
2407 Tue Aug 18 14:58:58 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2409         * make.texinfo (Running): Node renamed to `make Invocation'.
2411 Fri Aug 14 12:27:10 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2413         * arscan.c (ar_name_equal): Don't compare [MAX-3..MAX] if
2414         NAMELEN != MEMLEN.
2416 Thu Aug 13 17:50:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2418         * Version 3.62.18.
2420         * main.c: Don't #include <time.h>; make.h already does.
2422 Mon Aug 10 17:03:01 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2424         * implicit.c (pattern_search): Fixed copying of suffix when building
2425         also_make elts.
2427         * function.c (expand_function: `shell'): Make sure BUFFER is
2428         null-terminated before replacing newlines.
2430         * compatMakefile (mandir): Use man$(manext), not always manl.
2432 Sun Aug  2 01:42:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2434         * rule.c (new_pattern_rule): Not static.
2435         * rule.h: Declare it.
2437         * file.c (file_hash_enter): New function, most code from rename_file.
2438         (rename_file): Call it.
2439         * file.h (file_hash_enter): Declare it.
2441         * dep.h: Doc fix.
2443 Thu Jul 30 15:40:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2445         * main.c (decode_switches): Handle usage_and_exit when building
2446         long options vector.
2448         * default.c (default_terminal_rules): Make RCS rules use $(CHECKOUT,v).
2449         (default_variables): Define CHECKOUT,v (hairy).
2451         * make.h [!HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2452         sys_siglist to _sys_siglist.
2454 Sun Jul 26 16:56:32 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2456         * NEWS: Add header and tail copyright info like Emacs NEWS.
2458         * make.h [ANSI_STRING]: Don't #define index, rindex, bcmp, bzero,
2459         bcopy if already #define'd.
2460         [STDC_HEADERS] (qsort, abort, exit): Declare here.
2461         [! __GNU_LIBRARY__ && !POSIX]: Not here.
2463         * make.h [_AIX]: #pragma alloca first thing.
2465         * job.c (start_waiting_job): Set the command_state to cs_running
2466         when we queue a job on waiting_jobs.
2468 Fri Jul 24 02:16:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2470         * variable.c (define_automatic_variables): Use "" instead of nil
2471         for empty value.
2473 Thu Jul 23 22:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2475         * Version 3.62.17.
2477         * main.c (struct command_switch.type): Add alternative usage_and_exit.
2478         (command_switches): Add -h/--help.
2480 Thu Jul 16 14:27:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2482         * GNUmakefile (make-$(version).tar.Z): Include NEWS, not CHANGES.
2483         * README.template: Mention NEWS.
2484         * CHANGES: Renamed to NEWS.
2486         * main.c [! STDC_HEADERS] [sun]: Don't declare exit.
2488 Tue Jul 14 18:48:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2490         * main.c (main): Set -o files' command_states to cs_finished.
2492         * rule.c (count_implicit_rule_limits): Decrement num_pattern_rules
2493         when tossing a rule.
2495         * main.c (main): Use alloca only in simple local var assignment,
2496         for braindead SGI compiler.
2498         * rule.c (print_rule_data_base): Barf if num_pattern_rules is
2499         inconsistent with the number computed when listing them.
2501 Mon Jul 13 17:51:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2503         * commands.c (set_file_variables): For $? and $^ elts that are archive
2504         member refs, use member name only.
2506 Fri Jul 10 00:05:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2508         * variable.h (struct variable.export): Add new alternative v_ifset.
2509         * variable.c (target_environment): Check for it.
2510         (define_automatic_variables): Set it for MAKEFILES.
2512 Thu Jul  9 21:24:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2514         * compatMakefile (objs): Remove getloadavg.o; $(extras) gets it.
2515         (remote.o): Use $(srcdir)/remote.c, not $remote.c<.
2516         (distclean, mostlyclean): New targets.
2518 Tue Jul  7 19:12:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2520         * Version 3.62.16.
2522         * compatMakefile (config.status): Remove rule.
2524         * job.c (start_waiting_job): Free C after using C->file, not before.
2526 Sat Jul  4 20:51:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2528         * commands.c, job.c, main.c, make.h, remote-cstms.c: Use #ifdef
2529         HAVE_* instead of #ifndef *_MISSING.
2530         * configure.in: Use AC_HAVE_FUNCS instead of AC_MISSING_FUNCS (gone).
2532 Thu Jul  2 18:47:52 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2534         * main.c (main): makelevel>0 or -C implies -w.
2536 Tue Jun 30 20:50:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2538         * file.c, job.c, function.c: Don't #include <errno.h>.
2539         make.h: Do it here instead.
2540         * arscan.c (ar_member_touch): Don't declare errno.
2542 Thu Jun 25 17:06:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2544         * GNUmakefile (make-$(version).tar.Z): Depend on INSTALL, configure.in.
2546         * remake.c (update_file): If commands or deps are running after
2547         update_file_1 returns, break out of the :: rule (->prev) loop and
2548         just return.
2550         * job.c (job_next_command): New function; code from start_job.
2551         (start_job_command): Renamed from start_job.  Call job_next_command
2552         and recurse for empty command lines and -n.
2553         (start_waiting_job): Call start_job_command, not start_job.
2554         (new_job): Call job_next_command to prime the child structure, and
2555         then call start_waiting_job.
2556         (reap_children): Use job_next_command and start_job_command.
2557         (start_waiting_job): Call start_remote_job_p here, and store its
2558         result in C->remote.  If zero, check the load average and
2559         maybe put C on waiting_jobs.
2560         (start_job_command): Test CHILD->remote rather than calling
2561         start_remote_job_p.  Don't do load avg checking at all here.
2563         * main.c (main): Don't handle SIGILL, SIGIOT, SIGEMT, SIGBUS,
2564         SIGSEGV, SIGFPE or SIGTRAP.
2566         * compatMakefile (glob/libglob.a): Don't pass srcdir to sub-make.
2567         configure will set it in glob/Makefile.
2569 Wed Jun 24 19:40:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2571         * dir.c [DIRENT] (direct): Don't define to dirent.
2572         [! DIRENT] (direct): Define to dirent.
2573         (dir_file_exists_p): Use struct dirent instead of struct direct.
2575         * make.h (getcwd): No space between macro and ( for args!
2577         * job.c (start_job): Don't put the job on waiting_jobs if
2578         job_slots_used==0.
2580         * make.texinfo (Missing): Shortened title.
2582 Tue Jun 23 18:42:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2584         * file.c (remove_intermediates): Print "rm" commands under -n.
2586 Mon Jun 22 16:20:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2588         * Version 3.62.15.
2590 Fri Jun 19 16:20:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2592         * arscan.c [M_UNIX]: #undef M_XENIX.
2594 Wed Jun 17 17:59:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2596         * default.c (default_terminal_rules): Put @ prefix on RCS cmds.
2598 Tue Jun 16 19:24:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2600         * compatMakefile (getloadavg.o): Removed special rule.
2601         (CFLAGS): Don't include $(defines).
2602         (.c.o): Define suffix rule.
2603         (glob/libglob.a): Pass CPPFLAGS=$(defines) to submake.
2604         (GETOPT_SRC, srcs, tagsrcs): Prefix files with $(srcdir)/.
2606         * arscan.c (ar_name_equal): Moved local vars inside #if'd block.
2608         * make.h (max): Removed.
2609         * expand.c (variable_buffer_output): Don't use it.
2611         * compatMakefile (INSTALL): Define.
2612         (Makefile): New rule to make from Makefile.in.
2613         (srcdir): Define.
2614         (VPATH): Define.
2615         (getloadavg.o, remote.o): Use autoconf $foo< hack.
2617         * commands.c (fatal_error_signal): Removed return.
2619 Mon Jun 15 17:42:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2621         * Version 3.62.14.
2623         * make.texinfo (Summary): New node.
2624         (Special Targets): Mention .EXPORT_ALL_VARIABLES here.
2626         * variable.c (max): Moved to make.h.
2628         * compatMakefile (objs, srcs): Added ar & arscan.
2630         * job.c (start_waiting_job): New function, 2nd half of new_job.
2631         (new_job): Call it.
2632         (start_waiting_jobs): New function.
2633         * remake.c (update_goal_chain): Call start_waiting_jobs at the top
2634         of the main loop.
2635         * compatMakefile (objs, srcs): Removed load, added getloadavg.
2637 Fri Jun 12 19:33:16 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2639         * job.c (load_too_high): New function.  Uses getloadavg.
2640         (waiting_jobs): New variable.
2641         (start_job): Don't call wait_to_start_job.  Instead, if
2642         load_too_high returns nonzero, add the child to the
2643         `waiting_jobs' chain and return without starting the job.
2645 Thu Jun 11 00:05:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2647         * expand.c (variable_buffer_output): Made global again.
2648         * variable.h: And declare it.
2650         * arscan.c (PORTAR): Define for all systems if PORT5AR is not defined.
2651         (AR_NAMELEN, AR_TRAILING_SLASH): Removed.
2652         (ar_scan): Don't use it.  Don't #ifdef AR_TRAILING_SLASH; just look
2653         for a slash in the archive at run time.
2654         (ar_name_equal): Rewrote .o hacking to not use AR_NAMELEN, and to
2655         cope with trailing-slash and non-trailing-slash archives.
2657         * main.c (main) [! SETVBUF_REVERSED]: Test this instead of USGr3 et al.
2658         [SETVBUF_REVERSED]: Always allocate a buffer ourselves.
2660         * load.c (load_average) [sgi]: Use sysmp call.
2662         * compatMakefile (INSTALL_DATA, INSTALL_PROGRAM): Define.
2663         ($(bindir)/$(instname), $(mandir)/make.$(manext)): Use them.
2665         * make.h [HAVE_VFORK_H]: #include <vfork.h>.
2666         (vfork, VFORK_NAME): Don't define.
2667         * job.c (start_job): Use "vfork" in place of VFORK_NAME.
2669         * make.h [HAVE_LIMITS_H, HAVE_SYS_PARAM_H]: If #define'd, #include
2670         the each file.  Rearranged PATH_MAX hacking.
2671         * job.c: Rearranged NGROUPS_MAX hacking.
2673         * remake.c (fstat, time): Don't declare.
2675         * compatMakefile (defines): Value is @DEFS@.
2676         (LOADLIBES): Value is @LIBS@.
2677         (extras): Value is @LIBOBJS@.
2678         (ARCHIVES, ARCHIVES_SRC, ALLOCASRC): Removed.
2679         * arscan.c, ar.c: Surround body with #ifndef NO_ARCHIVES.
2681         * misc.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl get*id.
2683         * make.h [GETCWD_MISSING]: Test instead of !USG && !POSIX et al.
2684         (getcwd): Just declare if present.  If not, declare as a macro
2685         using getwd, and declare getwd.
2686         [PATH_MAX] (GET_PATH_MAX): #define to PATH_MAX.
2687         * main.c (main, log_working_directory): Use getcwd instead of getwd.
2689         * main.c (main) [SETLINEBUF_MISSING]: Test this instead of USG.
2691         * make.h (SIGHANDLER, SIGNAL): Removed.
2692         (RETSIGTYPE): Define if not #define'd.
2693         * main.c (main): Use signal in place of SIGNAL.
2695         * main.c [SYS_SIGLIST_MISSING]: Test instead of USG.
2697         * job.c (search_path) [GETGROUPS_MISSING]: Test instead of USG.
2698         [HAVE_UNISTD_H]: Test instead of POSIX to not decl getgroups.
2700         * main.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl chdir.
2701         [! STDC_HEADERS]: Test instead of !POSIX to decl exit & atof.
2703         * job.c (child_handler), commands.c (fatal_error_signal): Return
2704         RETSIGTYPE instead of int.
2705         * main.c (main): Declare fatal_error_signal and child_handler here
2706         to return RETSIGTYPE; removed top-level decl of former.
2708         * commands.c (fatal_error_signal), job.c (unblock_sigs, start_job),
2709         main.c [SIGSETMASK_MISSING]: Test this instead of USG.
2711 Wed Jun 10 22:06:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2713         * job.c [HAVE_WAITPID]: Test this instead of USG.
2714         [! HAVE_UNISTD_H]: Test this instead of !POSIX to declare misc fns.
2715         (GID_T): Don't #define.
2716         (search_path): Use gid_t instead of GID_T.
2717         [GETDTABLESIZE_MISSING, SYS_SIGLIST_MISSING, DUP2_MISSING]: Test
2718         these individually instead of USG for all.
2719         * make.h (ctime): Don't declare.  #include time.h instead.
2720         [HAVE_UNISTD_H]: #include <unistd.h> and #define POSIX #ifdef
2721         _POSIX_VERSION.
2722         * dir.c [__GNU_LIBRARY__] (D_NAMLEN): Define to use d_namlen member.
2723         * make.h [NEED_MEMORY_H]: Only include memory.h #ifdef this.
2725         * arscan.c: Removed #ifdef mess about string.h et al.
2726         Just #include make.h instead.
2727         * make.h (fstat, atol): Declare.
2729         * commands.c (fatal_error_signal): Don't use sigmask to check for
2730         propagated signals; use ||s instead.
2731         (PROPAGATED_SIGNAL_MASK): Removed.
2732         (fatal_error_signal) [POSIX]: Use sigprocmask in place of sigsetmask.
2734         * variable.c (variable_buffer, variable_buffer_length,
2735         initialize_variable_output, variable_output): Moved to expand.c;
2736         made all static.
2737         (struct output_state, save_variable_output,
2738         restore_variable_output): Removed.
2739         * expand.c (initialize_variable_output): Put a NUL at the beginning
2740         of the new buffer after allocating it.
2741         (allocated_variable_expand_for_file): Don't use
2742         {save,restore}_variable_output.  Do it by hand instead, keeping
2743         state on the stack instead of malloc'ing it.
2744         (allocated_variable_expand): Removed.
2745         * variable.h (allocated_variable_expand): Define here as macro.
2746         (variable_buffer_output, initialize_variable_output,
2747         save_variable_output, restore_variable_output): Removed decls.
2749         * read.c (conditional_line): For an if cmd, if any elt of the
2750         conditionals stack is ignoring, just push a new level that ignores
2751         and return 1; don't evaluate the condition.
2753 Thu Jun  4 21:01:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2755         * main.c (main): Put #ifdef's around frobbing SIGSYS and SIGBUS.
2757         * job.c (getdtablesize): Don't declare or #define if already #define'd.
2759 Wed Jun  3 23:42:36 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2761         * file.c (snap_deps): If `.EXPORT_ALL_VARIABLES' is a target, set
2762         export_all_variables.
2763         * make.texinfo (Variables/Recursion): Document .EXPORT_ALL_VARIABLES.
2765 Tue Jun  2 21:08:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2767         * Version 3.62.13.
2769         * commands.c (set_file_variables): Calculate length for ^D and ?D
2770         individually, making sure to give them at least enough space for "./".
2772         * make.h [CRAY]: #define signal to bsdsignal.
2774         * default.c (default_variables) [CRAY]: Define PC, SEGLDR,
2775         CF77PPFLAGS, CF77PP, CFT, CF, and FC.
2777         * arscan.c (AR_HDR_SIZE): Define to sizeof (struct ar_hdr), if it
2778         wasn't defined by <ar.h>.
2780 Thu May 28 00:56:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2782         * Version 3.62.12.
2784 Tue May 26 01:26:30 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2786         * rule.c (new_pattern_rule): Initialize LASTRULE to nil, not
2787         pattern_rules.
2789 Mon May 25 19:02:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2791         * main.c (decode_switches): Initialize all the long_option elt members.
2793 Thu May 21 16:34:24 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
2795         * make.texinfo (Text Functions): Correct filter-out description.
2797 Tue May 19 20:50:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2799         * compatMakefile (realclean): Don't remove backup files.
2801         * main.c (decode_switches): Allocate ARGC+1 elts in `other_args'.
2803 Sun May 17 16:38:48 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2805         * Version 3.62.11.
2807 Thu May 14 16:42:33 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2809         * job.c (reap_children): Don't die if wait returns EINTR.
2811 Wed May 13 18:28:25 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2813         * job.c (reap_children): Always run the next command for a
2814         successful target.  If we are going to die, we don't want to leave
2815         the target partially made.
2817 Tue May 12 00:39:19 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2819         * job.c (construct_command_argv_internal): After loop, if we only
2820         have one word, check it for being a shell command.
2822         * main.c (decode_switches): Allocate ARGC slots in other_args to
2823         begin with, so we never need to worry about growing it.
2824         If we get a non-option arg and POSIXLY_CORRECT is in the
2825         environment, break out of the loop.  After the loop, add all remaining
2826         args to other_args list.
2828         * main.c (decode_switches): For positive_int and floating switches
2829         when optarg is nil, use next arg if it looks right (start with a
2830         digit, or maybe decimal point for floating).
2832         * variable.c (define_automatic_variables): Always set SHELL to
2833         default if it comes from the environment.  Set its export bit.
2834         * make.texinfo (Environment): Document change.
2836 Mon May 11 00:32:46 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2838         * Version 3.62.10.
2840         * compatMakefile (tags, TAGS): Use vars for cmds.
2841         (ETAGS, CTAGS): Define.
2843         * main.c (decode_switches): If a switches elt has a nil long_name,
2844         make the long option name elt be "".
2845         Fixed loop to not ignore all the options.
2847         * make.texinfo (Option Summary): Added long options.
2849         * main.c (switches): Changed -m's description to "-b".
2850         (decode_switches): When printing the usage message, don't print
2851         switches whose descriptions start with -.
2852         When constructing the list of names for switch -C, search the
2853         switches vector for switches whose descriptions are "-C".
2855         * main.c (switches): Call -S --no-keep-going, not --dont-keep-going.
2856         Call -I --include-dir, not --include-path.
2857         (long_option_aliases): Added --new == -W, --assume-new == -W,
2858         --assume-old == -o, --max-load == -l, --dry-run == -n, --recon == -n,
2859         --makefile == -f.
2861         * main.c (switches): Removed bogus "silent" elt.
2862         (long_option_aliases): Define new var.
2863         (decode_switches): Add long_option_aliases onto the end of the long
2864         options vector created for getopt_long.
2865         Look through long_option_aliases for extra names to list
2866         in usage message.
2868 Sat May  9 00:21:05 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2870         * main.c (log_working_directory): Fixed to properly not print the
2871         leaving message when we haven't printed the entering message.
2873 Fri May  8 21:55:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2875         * main.c (struct command_switch): Added elts `long_name', 
2876         `description', and `argdesc'.
2877         (switches): Added initializers for new members.
2878         (decode_switches): Rewritten to use getopt_long.
2879         * compatMakefile (GETOPT, GETOPT_SRC): Define.
2880         (objs, srcs): Include them.
2882         * job.c (child_died): Renamed to dead_children; made static.
2883         (child_handler): Increment dead_children instead of setting child_died.
2884         (reap_children): Decrement dead_children instead of clearing
2885         child_died.  The point of all this is to avoid printing "waiting
2886         for unfinished jobs" when we don't actually need to block.
2887         This happened when multiple SIGCHLDs before reap_children was called.
2889         * job.c (reap_children): If ERR is set, so we don't call start_job
2890         on the child being reaped, instead set its command_state to
2891         cs_finished.
2892         (reap_children, child_handler, new_job): I added several
2893         debugging printf's while fixing this.  I left them in if (debug_flag) 
2894         because they may be useful for debugging this stuff again.
2896 Wed May  6 22:02:37 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2898         * read.c (read_makefile): v_export is not 1.
2900 Mon May  4 17:27:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2902         * Version 3.62.9.
2904         * variable.c (export_all_variables): New variable.
2905         (target_environment): Export variables whose `export' member is
2906         v_default if export_all_variables is set and their names are benign.
2907         * variable.h: Declare export_all_variables.
2908         * read.c (read_makefile): If export or unexport is given with no
2909         args, set or clear export_all_variables, respectively.
2911         * variable.c (target_environment): Exclude MAKELEVEL in the loop,
2912         so it isn't duplicated when we add it at the end.
2914 Sun May  3 17:44:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2916         * Version 3.62.8.
2918         * variable.h (struct variable): Added new member `export'.
2919         * variable.c (define_variable_in_set): Initialize it to v_default.
2920         (target_environment): Don't check for .NOEXPORT.
2921         Export variables whose `export' member is v_default and that would
2922         have been exported under .NOEXPORT, and variables whose `export'
2923         member is v_export.
2924         (try_variable_definition): Return the variable defined.
2925         * variable.h (try_variable_definition): Changed decl.
2926         * read.c (read_makefile): Recognize `export' and `unexport' directives.
2928 Fri May  1 11:39:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2930         * main.c (main) [POSIX]: Reversed args to sigaddset.
2932 Thu Apr 30 17:33:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2934         * job.c [POSIX || !USG] (unblock_sigs): New fn.
2935         (start_job): Block signals before forking.
2936         (new_job): Unblock signals after putting the new child on the chain.
2937         * main.c (main) [POSIX]: Use sigset_t fatal_signal_set instead of
2938         int fatal_signal_mask.
2940         * load.c [sgi] (LDAV_CVT): Define.
2942 Wed Apr 29 17:15:59 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2944         * Version 3.62.7.
2946         * load.c (load_average) [sgi]: Clear the high bit of the address
2947         from the symbol table before looking it up in kmem.
2949         * misc.c (fatal, makefile_fatal): Put *** in fatal error messages.
2950         (remake_file): No longer needed in message here.
2952         * main.c (die): Call reap_children with BLOCK==1.
2954 Tue Apr 28 20:44:35 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2956         * rule.c (freerule): Don't set LASTRULE->next if LASTRULE is nil.
2958 Sun Apr 26 15:09:51 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2960         * rule.c (count_implicit_rule_limits): Initialize LASTRULE to nil,
2961         not to head of chain.  Extract next ptr before we might do
2962         freerule, and use that for next iteration.
2963         (freerule): Still do next ptr frobbing if LASTRULE is nil.
2965 Tue Apr 21 03:16:29 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2967         * job.c (child_error): Removed extra %s from error msg format.
2969         * Version 3.62.6.
2971         * job.c (reap_children): Don't start later commands in a sequence
2972         if ERR is nonzero.
2974         * job.c (new_job): Always call reap_children with BLOCK==0 first thing.
2976         * job.c (reap_children): New function; work that used to be done in
2977         child_handler.
2978         (child_died): New global var.
2979         (child_handler): Now just sets child_died.
2980         (wait_for_children): Removed.
2981         (unknown_children_possible, block_signals, unblock_signals,
2982         push_signals_blocked_p, pop_signals_blocked_p): Removed.
2983         (child_execute_job): Removed call to unblock_signals.
2984         (new_job): Removed calls to push_signals_blocked_p and
2985         pop_signals_blocked_p.
2986         * job.h: Declare reap_children, not wait_for_children.
2987         * commands.c (fatal_error_signal), job.c (new_job),
2988         load.c [LDAV_BASED] (wait_to_start_job), main.c (die),
2989         remake.c (update_goal_chain), function.c (expand_function: `shell'):
2990         Changed wait_for_children calls to reap_children.
2991         Some needed to be loops to wait for all children to die.
2992         * commands.c (fatal_error_signal), main.c (main,
2993         log_working_directory), function.c (expand_function): Removed calls
2994         to push_signals_blocked_p and pop_signals_blocked_p.
2995         * job.h: Removed decls.
2997         * job.h: Added copyright notice.
2999 Wed Apr 15 02:02:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3001         * job.c (child_error): No *** for ignored error.
3003 Tue Apr 14 18:31:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3005         * implicit.c (DEBUGP2): Use do ... while (0) instead of if ... else to
3006         avoid compiler warnings.
3008         * read.c (parse_file_seq): Don't remove ./ when it is followed by a
3009         blank.
3011 Mon Apr 13 21:56:15 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3013         * make.h (DEBUGPR): Use do ... while (0) instead of if ... else to
3014         avoid compiler warnings.
3016         * remake.c (notice_finished_file): Run file_mtime on the also_make
3017         files, so vpath_search can happen.
3019         * GNUmakefile (tests): Use perl test suite from csa@sw.stratus.com.
3020         (alpha-files): Include test suite tar file.
3022 Fri Apr  3 00:50:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3024         * Version 3.62.5.
3026 Wed Apr  1 05:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3028         * remake.c (update_file, update_file_1): Do check_renamed on elts
3029         of dep chains when traversing them.  Something unrelated might have
3030         renamed one of the files the dep chain points to.
3032         * file.c (rename_file): If FILE has been renamed, follow its
3033         `renamed' ptr, so we get to the final real FILE.  Using the renamed
3034         ones loses because they are not in the hash table, so the removal
3035         code loops infinitely.
3037         * read.c (read_all_makefiles): Clobber null terminator into
3038         MAKEFILES expansion, so string passed to read_makefile is properly
3039         terminated.
3041 Mon Mar 30 20:18:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3043         * commands.c (set_file_variables): $* for archive member with
3044         explicit cmds is stem of member, not of whole `lib(member)'.
3046 Thu Mar 26 15:24:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3048         * Version 3.62.4.
3050 Tue Mar 24 05:20:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3052         * rule.c (new_pattern_rule): Rules are identical only if all their
3053         targets match (regardless of order).
3055 Wed Mar 11 13:49:54 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3057         * remake.c (remake_file): Changed error "no way to make" to "no
3058         rule to make".  Fiat Hugh.
3060         * make.texinfo (Last Resort): Describe %:: rules and new .DEFAULT
3061         behavior.
3063         * remake.c (update_file_1): Only use .DEFAULT cmds if FILE is not a
3064         target.
3066 Tue Mar 10 18:13:13 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3068         * remote-stub.c, remote-cstms.c (start_remote_job): Take new arg,
3069         environment to pass to child.
3070         * job.c (start_job): Pass it.
3072 Mon Mar  9 19:00:11 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3074         * file.c (enter_file): Also strip ./s here, to get command-line
3075         target names.
3077         * remote-cstms.c: Add comment telling people to leave me alone.
3079         * compatMakefile (manpage install): Remove target before copying.
3081 Tue Mar  3 18:43:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3083         * make.texinfo (Missing): Renamed to "Incompatibilities and ...".
3084         Added paragraph describing $? incompatibility with Unix and POSIX.2.
3086 Sun Mar  1 15:50:54 1992  Roland McGrath  (roland@nutrimat.gnu.ai.mit.edu)
3088         * function.c (expand_function: `shell'): Don't declare fork or pipe.
3089         Use vfork instead of fork.
3091 Tue Feb 25 22:05:32 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3093         * make.texinfo (Chained Rules): Clarify .PRECIOUS to save
3094         intermediate files.
3096         * load.c [sun] (LDAV_CVT): Define to divide by FSCALE.
3098 Sun Feb 16 02:05:16 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3100         * Version 3.62.3.
3102 Sat Feb 15 17:12:20 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3104         * compatMakefile (makeinfo): Use emacs batch-texinfo-format fn.
3106 Fri Feb 14 00:11:55 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3108         * read.c (read_makefile): Correctly handle define & endef in ifdefs.
3110         * read.c (record_files): Pass arg for %s in error msg.
3112         * main.c (main) [__IBMR2, POSIX]: Use correct (a la USGr3) setvbuf
3113         call.
3115 Wed Feb 12 12:07:39 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3117         * make.texinfo (Libraries/Search): Say it does /usr/local/lib too.
3119 Sun Feb  9 23:06:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3121         * read.c (read_makefile): Check for extraneous `endef' when ignoring.
3123 Thu Feb  6 16:15:48 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3125         * Version 3.62.2.
3127 Tue Feb  4 20:04:46 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3129         * job.c (construct_command_argv_internal): Correctly ignore
3130         whitespace after backslash-NL.
3132 Fri Jan 31 18:30:05 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3134         * compatMakefile: Ignore errors from chgrp and chmod when installing.
3136 Wed Jan 29 18:13:30 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3138         * main.c (main): When setting MAKELEVEL in the env to re-exec,
3139         allocate space so as not to clobber past the end of the old string.
3141         * make.h [HAVE_ALLOCA_H]: Include <alloca.h>
3142         * compatMakefile (defines): Document HAVE_ALLOCA_H.
3144 Mon Jan 20 13:40:05 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3146         * make.h [VFORK_MISSING]: Use fork instead.
3147         * compatMakefile (defines): Document same.
3149         * job.c (construct_command_argv_internal): Don't create an empty
3150         arg if backslash-NL is at beginning of word.
3152 Sun Jan 19 16:26:53 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3154         * main.c [DGUX]: Call setvbuf as for USGr3.
3156         * job.c (construct_command_argv_internal): Notice correctly that
3157         backslash-NL is the end of the arg (because it is replaced with a
3158         space).
3160 Thu Jan 16 18:42:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3162         * job.c (construct_command_argv_internal): If SHELL is nil, set it
3163         to default_shell before proceeding.
3165         * make.h [sgi]: No alloca.h, after all.
3167 Wed Jan 15 12:30:04 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3169         * read.c (multi_glob): Cons up the chain of the results of glob
3170         from back to front, so it comes out in forward order.
3172         * job.c (construct_command_argv_internal): Don't eat char following
3173         backslash-NL.
3175 Mon Jan 13 19:16:56 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3177         * Version 3.62.1.
3179         * default.c (default_variables) [ultrix]: GET=get, like USG.
3181         * job.c (construct_command_argv_internal): Remove tabs following
3182         backslash-NL combos in the input line, so they don't show up when
3183         that line is printed.
3185         * read.c (read_makefile): Don't collapse_continuations the line on
3186         input; do it on the copy we do remove_comments on.
3187         For rule lines, collapse_continuations the line after chopping
3188         ";cmds" off the end, so we don't eat conts in the cmds.
3189         Give error for ";cmds" with no rule.
3190         * job.c (construct_command_argv_internal): Eat backslash-NL combos
3191         when constructing the line to recurse on for slow, too.
3193 Sat Jan 11 02:20:27 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3195         * file.c (enter_file): Don't strip leading `./'s.
3196         * read.c (parse_file_seq): Take new arg STRIP; if nonzero, do it here.
3197         * default.c (set_default_suffixes), function.c (string_glob),
3198         read.c (read_makefile), rule.c (install_pattern_rule): Change callers.
3200         * default.c (default_variables) [_IBMR2]: FC=xlf
3202         * job.c (construct_command_argv_internal): Turn backslash-NL and
3203         following whitespace into a single space, rather than just eating
3204         the backslash.
3206         * make.texinfo (Copying): @include gpl.texinfo, rather than
3207         duplicating its contents.
3209 Fri Nov  8 20:06:03 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3211         * job.c (construct_command_argv_internal): Make sure not to bother
3212         processing an empty line.
3214         * Version 3.62.0.
3216         * job.c (construct_command_argv_internal): Always recurse for slow;
3217         simple case didn't handle finding newlines.
3219 Tue Nov  5 18:51:10 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3221         * job.c (construct_command_argv_internal): Set RESTP properly when
3222         slow; don't \ify past a newline.
3224 Fri Nov  1 19:34:28 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3226         * make.h [sgi]: #include <alloca.h>.
3228 Tue Oct 29 20:57:36 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3230         * Version 3.62.
3232         * remake.c (update_file_1): Check for deps still running before
3233         giving up if any dep has failed.
3235 Sat Oct 26 16:20:00 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3237         * make.h [uts]: #undef S_ISREG and S_ISDIR if defined.
3239 Fri Oct 25 19:50:39 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3241         * Version 3.60.17.
3243 Thu Oct 24 16:58:36 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3245         * job.c (start_job): Don't check for empty cmds before tweaking the
3246         command_ptr.  Just let construct_command_argv do it.
3248 Tue Oct 22 20:21:03 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3250         * remake.c, arscan.c [POSIX]: <fcntl.h> instead of <sys/file.h>.
3252         * make.h [POSIX]: Declare vfork as pid_t.
3254 Mon Oct 21 15:37:30 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3256         * Version 3.60.16.
3258         * job.c (construct_command_argv, construct_command_argv_internal):
3259         Take new 2nd arg RESTP.  If non-NULL, stop parsing at newline, and
3260         store addr of the NL in *RESTP.
3261         (start_job): Don't chop expanded cmd lines up; use above code to do it.
3262         * function.c (expand_function: `shell'): Pass RESTP==NULL.
3264 Sat Oct 19 15:36:34 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3266         * Version 3.60.15.
3268 Fri Oct 18 15:26:55 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3270         * job.c (start_job): If on the same cmds->command_lines elt, look
3271         at cmds->lines_recurse[CHILD->command_line - 1] instead of
3272         [CHILD->command_line].
3274         * dir.c [sgi]: <sys/dir.h>, not ndir or anything else.
3276 Thu Oct 17 16:28:55 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3278         * file.c (print_file_data_base): Remove unused var.
3280         * make.h [NeXT]: No #define ANSI_STRING.
3282 Tue Oct 15 20:08:41 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3284         * Version 3.60.14.
3286 Fri Oct 11 16:23:52 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3288         * make.h: Use PATH_MAX for getwd defn.
3290         * make.h: Move getcwd/getwd outside of #ifndef POSIX, and make it
3291         #if USG||POSIX.
3293 Thu Oct 10 11:53:31 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3295         * Version 3.60.13.
3297         * read.c (read_all_makefiles): When processing MAKEFILES, save the
3298         malloc'd ptr to be freed, instead of freeing part-way thru it.
3300         * remake.c (update_file_1): Don't tweak FILE->also_make.
3301         (update_file): Do it here.  After calling update_file_1, set the
3302         command_state, update_status, and updated members of each also_make
3303         elt to FILE's values.
3305 Tue Oct  8 14:56:04 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3307         * Version 3.60.12.
3309         * remake.c (notice_finished_file): Set command_state of FILE and
3310         its also_make chain to cs_finished here.
3311         * commands.c (execute_file_commands), job.c (child_handler),
3312         remake.c (remake_file): Don't set it before calling
3313         notice_finished_file.
3315         * file.h (struct file): Changed `also_make' to struct dep *.
3316         * job.c (delete_child_targets), file.c (print_file_data_base),
3317         remake.c (notice_finished_file), implicit.c (pattern_search):
3318         Use dep chain instead of array of file names.
3320 Mon Oct  7 17:04:33 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3322         * Version 3.60.11.
3324         * arscan.c: Declare open.
3325         * misc.c: Declare {get,set}{re,}[ug]id.
3326         * variable.c (target_environment): Declare getenv.
3328 Sat Oct  5 15:13:03 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3330         * make.h [NeXT]: <string.h> instead of <strings.h>.
3332 Fri Oct  4 16:05:41 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3334         * default.c (default_suffixes, defualt_suffix_rules): Add .texi
3335         just like .texinfo.
3337         * Version 3.60.10.
3339         * job.c: Move vfork decl into make.h.
3341 Fri Sep 27 18:45:30 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3343         * compatMakefile (glob/libglob.a): Pass CC value to submake.
3345 Thu Sep 26 00:08:15 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3347         * load.c (load_average): Made not static.
3349         * load.c [ultrix && vax]: Define LDAV_TYPE and LDAV_CVT for Ultrix 4.2.
3351 Tue Sep 24 00:17:20 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3353         * Version 3.60.9.
3355         * read.c (record_files): Warn about extra cmds even if the target's
3356         name begins with a dot.  I think the lusers can handle this.
3358 Mon Sep 23 22:33:26 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3360         * make.h, arscan.c: Don't declare bcmp, bzero, or bcopy if they're
3361         #define'd.
3362         * make.h: Declare write and open.
3364         * default.c (default_suffixes, default_suffix_rules,
3365         default_variables): Add .C just like .cc.
3366         * make.texinfo (Catalogue of Rules): Document .C.
3368         * make.man (-w): Fix gramo.
3370 Fri Sep 20 17:18:16 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3372         * make.h: No text after #endif.
3374 Sun Sep 15 16:20:46 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3376         * Version 3.60.8.
3378         * implicit.c (pattern_search): In the second pass, recurse on rule
3379         deps that don't have a %.  Why did I make it not do this?
3381 Fri Sep 14 18:29:39 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3383         * read.c (record_files): For extra cmds, use the last ones given.
3384         If the target's name doesn't begin with a dot (bletch!!), emit a
3385         two-line warning, one line giving the old cmds' location and the
3386         other the new cmds' location.
3388         * misc.c (makefile_error, makefile_fatal): New fns.
3389         * make.h: Declare them.
3390         * Use them instead of error/fatal for all msgs including a file
3391         name and line number.
3393 Thu Sep 13 16:35:54 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3395         * make.h: Declare define_default_variables.
3396         Declare ar_parse_name, instead of ar_name_parse (M-t).
3398 Mon Sep 10 18:35:40 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3400         * Version 3.60.7.
3402         * make.texinfo (Variables: Setting): Say whitespace is removed if
3403         "immediately after =", rather than simply "after =".
3405         * job.c: Don't declare wait #ifdef POSIX.
3407         * make.h [__GNUC__]: #undef alloca and then #define it.
3409         * main.c (main): When pruning makefiles which might loop from the
3410         read_makefiles chain, look at all `prev' entries of double-colon rules.
3412 Fri Sep  7 00:41:53 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3414         * main.c (main): Only remove makefiles with cmds but no deps from
3415         the list of makefiles to be rebuilt if they are :: targets.
3416         : targets with cmds and no deps are not dangerous.
3418 Wed Sep  5 17:35:51 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3420         * compatMakefile (defines): Add comment that some compilers take
3421         ENUM_BITFIELDS but produce bogus code.
3422         (LOAD_AVG): Fix examples to \ "s.
3423         (LOADLIBES): Add comment that SGI Irix needs -lmld for nlist.
3425 Tue Sep  4 20:26:26 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3427         * Version 3.60.6.
3429 Fri Aug 30 19:34:04 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3431         * remake.c (update_file_1): When checking the command_state of
3432         deps, check through the prev chain.
3433         (update_goal_chain): When a target is finished, start checking its
3434         prev (if it has one) instead.
3436 Wed Aug  7 17:32:03 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3438         * rule.c (convert_to_pattern): Allow files with deps to define
3439         suffix rules (really this time).
3441 Mon Aug  5 17:09:21 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3443         * misc.c (user_access, make_access): Do saved-IDs (USG) flavor
3444         #ifdef POSIX.
3446         * file.c (enter_file): Strip ./s here.
3447         * read.c (parse_file_seq): Not here.
3449 Tue Jul 23 23:34:30 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3451         * compatMakefile: Added comment that -lPW alloca is broken on HPUX.
3453 Thu Jul 18 03:10:41 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3455         * Version 3.60.5.
3457         * read.c (read_makefile): Ignore lines containing chars that are
3458         all isspace, not just all isblank.
3460         * make.texinfo (Copying): @include gpl.texinfo, rather than copying
3461         the text.
3462         * gpl.texinfo: New file (symlink to /gd/gnu/doc/gpl.texinfo).
3463         * GNUmakefile: Put gpl.texinfo in distribution.
3465 Tue Jul 16 12:50:35 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3467         * make.h: #define _GNU_SOURCE before including headers.
3468         Include <ctype.h> and define isblank if <ctype.h> doesn't.
3469         * commands.c: Don't include <ctype.h> here.
3470         * *.c: Use isblank instead of explicit ' ' || '\t'.
3472 Mon Jul 15 17:43:38 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3474         * function.c (expand_function: `filter'/`filter-out'): Fixed to not
3475         loop infinitely.
3477 Fri Jul 12 12:18:12 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3479         * function.c (expand_function: `filter'/`filter-out'): Rewritten to
3480         handle filter-out of multiple patterns properly.  Also no longer
3481         mallocs and reallocs for temp array; uses alloca and a linked-list
3482         instead.
3484 Wed Jul 10 22:34:54 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3486         * Version 3.60.4.
3488         * make.texinfo: Moved some @groups that were outside @examples to
3489         be inside them.
3491         * load.c [apollo] (load_average): Define using special syscall for
3492         Apollo DOMAIN/OS SR10.n.
3494 Thu Jul  4 12:32:53 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3496         * make.texinfo (Missing): Added Unix excessive implicit rule
3497         search; mention that POSIX.2 doesn't require any of the missing
3498         features.
3499         (Top): Updated printed manual price to $15.
3501 Wed Jul  3 18:17:50 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3503         * file.c (rename_file): Carry over last_mtime when merging files.
3504         * remake.c (f_mtime): Tail-recurse after renaming VPATH file, to
3505         check for saved date in existing renamed-to file.
3507         * remote-cstms.c (start_remote_job): Use PATH_VAR.
3509         * commands.c [POSIX || __GNU_LIBRARY__]: Don't declare getpid.
3511         * compatMakefile (glob-{clean,realclean}): Run clean/realclean in glob.
3512         (clean, realclean): Require those.
3514         * make.h: Always declare environ.
3515         Don't declare old glob functions.
3517         * GNUmakefile: Make no-lib deps for load.c and remote.c.
3519 Tue Jul  2 18:35:20 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3521         * Version 3.60.3.
3523 Mon Jul  1 16:58:30 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3525         * read.c (multi_glob): Don't pass GLOB_QUOTE flag to glob.
3527         * make.h [POSIX]: Include <unistd.h>, and don't declare things that
3528         should be there.
3530         * main.c (main) [USG && sgi]: malloc a buffer for broken sgi stdio.
3532 Sat Jun 29 11:22:21 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3534         * function.c (expand_function: `shell'): Use alloca for the error
3535         msg buffer, instead of assuming an arbitrary max size.
3537 Fri Jun 28 18:15:08 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3539         * job.c [POSIX] (search_path): Do real 1003.1 goop to get NGROUPS_MAX.
3541 Wed Jun 26 11:04:44 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3543         * default.c (define_default_variables): New fn.
3544         (install_default_implicit_rules): Code for above fn moved there.
3545         * main.c (main): Do define_default_variables before reading the
3546         makefile.
3548 Tue Jun 25 17:30:46 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3550         * main.c (main): Quote ; in MAKEOVERRIDES.
3552 Tue Jun 18 13:56:30 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3554         * compatMakefile: Fixed typo in comment.
3556 Tue Jun 11 00:14:59 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3558         * Version 3.60.2.
3560 Mon Jun 10 14:46:37 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3562         * make.h: Always include <sys/types.h>.
3563         [POSIX]: Include <limits.h> and #define MAXPATHLEN to be PATH_MAX.
3565         * default.c (default_suffix_rules: .texinfo.dvi): Use $(TEXI2DVI).
3566         (default_variables): Define TEXI2DVI.
3568 Thu Jun  6 16:49:19 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3570         * Version 3.60.1.
3572         * make.h (SIGNAL): Cast handler arg to SIGHANDLER type.
3574 Wed Jun  5 06:00:43 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3576         * read.c (multi_glob): Use POSIX.2 `glob' function.
3577         If a glob pattern matches nothing, leave it as is (a la sh, bash).
3578         Also, if can't find USER for ~USER, leave it as is (a la bash).
3580 Mon Jun  3 16:36:00 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3582         * compatMakefile: Rewrote comments about -Ds to be easier to use.
3584         * make.h, arscan.c, remake.c, main.c, dir.c, job.c: Changed tests
3585         of _POSIX_SOURCE to POSIX.
3587         * job.c: Take getdtablesize out of #ifdef __GNU_LIBRARY__.
3588         Put separately #ifdef USG.
3590         * COPYING: Replaced with version 2.
3591         * Changed copyright notices to refer to GPL v2.
3593 Thu May 30 00:31:11 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3595         * make.h: Don't declare sigblock for POSIX.
3597         * main.c (main, log_working_directory) [USG]: Get getcwd failure
3598         mode from errno, not passed buffer like BSD getwd.
3600         * misc.c (child_access): New fn to set access for a child process;
3601         like user_access, but you can't change back.
3602         * make.h: Declare it.
3603         * job.c (exec_command): Use it in place of user_access.
3605 Wed May 29 23:28:48 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3607         * default.c (default_variables) [pyr]: PC = pascal.
3609 Tue May 28 20:24:56 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3611         * variable.c (print_variable): Put a newline before `endef'.
3613 Sat May 25 02:39:52 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3615         * Version 3.60.
3617 Wed May 22 19:41:37 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3619         * Version 3.59.5.
3621 Thu May 16 13:59:24 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3623         * main.c (main): Do USGr3 setvbuf behavior #ifdef APOLLO.
3624         Don't handle SIGCHLD #ifdef USG (Apollo is USG but defines SIGCHLD).
3626 Fri May 10 14:59:33 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3628         * remake.c [sgi]: Don't include <sys/file.h>.
3630 Wed May  8 01:54:08 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3632         * make.h (SIGHANDLER): #define as (void *) #if __STDC__,
3633         else (int (*)()).
3634         (SIGNAL): Use it to cast return value.
3635         * main.c (main): Cast SIG_IGN to SIGHANDLER when comparing.
3636         * job.c (block_signals, unblock_signals): Use SIGNAL instead of signal.
3638         * main.c: Declare mktemp to return char*, not int.
3640         * job.c (new_job): Don't increment files_remade.
3641         * remake.c (notice_finished_file): Do it here.
3643         * read.c (do_define): Don't clobber DEFINITION[-1] on empty defns.
3644         Free storage that is no longer needed.
3646 Wed Apr 24 20:49:48 1991  Roland McGrath  (roland at churchy.gnu.ai.mit.edu)
3648         * misc.c (message): New fn to print informational msgs with
3649         leading "make: " or "make[N]: ".
3650         * make.h: Declare it.
3651         * remake.c (update_file): Use it instead of printf.
3653 Fri Apr 19 05:52:45 1991  Roland McGrath  (roland at churchy.gnu.ai.mit.edu)
3655         * main.c (main): When there are no targets, if there were no
3656         makefiles, print a different error message, which mentions makefiles.
3658 Tue Apr 16 03:22:45 1991  Roland McGrath  (roland at geech.gnu.ai.mit.edu)
3660         * remake.c (update_file): Print "nothing to be done" instead of "is
3661         up to date" if FILE->cmds == 0.
3663         * job.c [!WIFEXITED]: Define if not already defined.
3665 Thu Apr 11 18:00:50 1991  Roland McGrath  (roland at wookumz.gnu.ai.mit.edu)
3667         * arscan.c (ar_name_equal): Fixed truncation comparison.
3669 Tue Apr  2 16:17:35 1991  Roland McGrath  (roland at churchy.gnu.ai.mit.edu)
3671         * glob.c: Use common version from djm.
3672         * dir.c: Snarfed #ifdef mess for <dirent.h> or whatever from glob.c.
3673         (dir_file_exists_p): Ignore directory entries with d_ino==0.
3675 Mon Apr  1 20:49:45 1991  Roland McGrath  (roland at albert.gnu.ai.mit.edu)
3677         * Version 3.59.4.
3679 Fri Mar 29 19:16:18 1991  Roland McGrath  (roland at albert.gnu.ai.mit.edu)
3681         * job.c (free_child): Free CHILD->environment and its elts.
3683 Sat Mar 23 14:08:09 1991  Roland McGrath  (roland at albert.gnu.ai.mit.edu)
3685         * read.c (read_makefile): Don't ignore lines containing only
3686         comments if they start with a tab.  Such lines should be passed to
3687         the shell for it to decide about the comments.
3689         * job.c (free_child): Free CHILD->command_lines and its elts, not
3690         CHILD->commands (which is obsolete).
3691         * job.h, job.c: Remove obsolete `commands' member of `struct child'.
3693 Sun Mar 17 18:40:53 1991  Roland McGrath  (roland at albert.ai.mit.edu)
3695         * remake.c (update_file): Print a msg for a top-level up-to-date
3696         phony target (a different one than for a real file).
3698         * read.c (conditional_line): Boundary check so we don't check the
3699         value of the -1th elt of the stack (which is bogus).
3701 Sat Mar 16 16:58:47 1991  Roland McGrath  (roland at albert.ai.mit.edu)
3703         * read.c (conditional_line): Don't evaluate an if* when we're
3704         already ignoring.  Instead, just push a new level, with a value of
3705         1, to keep ignoring.
3707 Tue Mar 12 00:16:52 1991  Roland McGrath  (roland at geech.ai.mit.edu)
3709         * Version 3.59.3.
3711 Mon Mar 11 23:56:57 1991  Roland McGrath  (roland at geech.ai.mit.edu)
3713         * job.c (construct_command_argv_internal): Quote backslashes
3714         when building the shell -c line.
3716 Fri Mar  8 01:40:18 1991  Roland McGrath  (roland at geech.ai.mit.edu)
3718         * job.c (exec_command): Call user_access rather than setgid(getgid()).
3720         * misc.c (remove_comments): Renamed from collapse_line; took out
3721         collapse_continuations call.
3722         * make.h: Change decl.
3723         * read.c (read_makefile): Collapse continuations on the line buffer
3724         immediately after reading it.  Call remove_comments rather than
3725         collapse_line (which is now defunct).
3727 Thu Feb 21 18:06:51 1991  Roland McGrath  (mcgrath at cygint.cygnus.com)
3729         * misc.c (user_access, make_access): New fns to toggle btwn permissions
3730         for user data (files and spawning children), and permissions for make
3731         (for taking the load average, mostly).
3732         * make.h: Declare them.
3733         * job.c (start_job): Call make_access before wait_to_start_job, and
3734         user_access after.
3735         * main.c (main): Call user_access before doing much.
3737 Mon Feb  3 15:02:03 1991  Roland McGrath  (roland at albert.ai.mit.edu)
3739         * Version 3.59.2.
3741 Tue Jan 29 20:30:50 1991  Roland McGrath  (roland at cygint.cygnus.com)
3743         * read.c (read_all_makefiles): Use allocated_variable_expand to expand
3744         `$(MAKEFILES)', since the results are used across calls to
3745         read_makefile, which could clobber them.
3747 Wed Jan 23 00:24:10 1991  Roland McGrath  (roland at cygint.cygnus.com)
3749         * main.c (main): Call install_default_implicit_rules after reading
3750         makefiles, not before.
3751         * default.c (install_default_implicit_rules): If a suffix-rule file
3752         entry has cmds, don't give it any from default_suffix_rules.
3754 Fri Jan 17 17:39:49 1991  Roland McGrath  (roland at albert.ai.mit.edu)
3756         * arscan.c: Added support for AIX archives.
3758         * remake.c: Don't include ar.h.
3759         * main.c: Removed unused atol decl.
3760         * arscan.c (ar_scan): Declare arg FUNCTION to return long int.
3761         * ar.c (ar_touch): Don't perror for an invalid archive.
3762         * make.h: Declare lseek as long int.
3764         * job.c [hpux]: Define getdtablesize a la USG.
3766 Sun Jan 12 21:08:34 1991  Roland McGrath  (roland at albert.ai.mit.edu)
3768         * Version 3.59.1.
3770 Fri Jan 10 03:48:08 1991  Roland McGrath  (roland at albert.ai.mit.edu)
3772         * job.c (search_path): Take new arg, place to put full pathname (rather
3773         than mallocing it).
3774         (exec_command): Pass it, using auto storage.
3776         * main.c (print_version): Updated copyright years.
3778 Wed Jan  8 19:46:19 1991  Roland McGrath  (roland at albert.ai.mit.edu)
3780         * job.c [_POSIX_SOURCE]: Just #include <sys/wait.h>, and define macro
3781         WAIT_NOHANG in terms of waitpid.
3782         [!_POSIX_SOURCE && (HAVE_SYS_WAIT || !USG)]: Don't #include <signal.h>
3783         (make.h does).
3784         Define macro WAIT_NOHANG in terms of wait3.
3785         (child_handler): #ifdef on WAIT_NOHANG, not HAVE_SYS_WAIT || !USG.
3786         Use WAIT_NOHANG macro instead of wait3.
3788         * file.h (struct file.command_state): Remove unused elt.
3790 Wed Dec 26 18:10:26 1990  Roland McGrath  (roland at albert.ai.mit.edu)
3792         * commands.c (set_file_variables): If FILE got its commands from
3793         .DEFAULT, make $< == $@ (4.3 BSD/POSIX.2d11 compat).
3795 Mon Dec 24 17:36:27 1990  Roland McGrath  (roland at albert.ai.mit.edu)
3797         * default.c (default_variables): Rename 2nd LINK.s defn to LINK.S.
3799 Fri Dec 14 15:05:25 1990  Roland McGrath  (roland at albert.ai.mit.edu)
3801         * vpath.c (selective_vpath_search): Check for makefile-mentioned before
3802         checking for actual existence.  The old order loses if the containing
3803         directory doesn't exist (but a rule might make it).
3805         * make.h [__GNUC__]: Don't #define alloca if already #define'd.
3807         * rule.c (convert_to_pattern): Don't look at the target constructed for
3808         the empty rule when making the null-suffix rule.  Construct it over
3809         again, since the former may have been freed already.
3811 Thu Dec 13 17:21:03 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3813         * make.h [__GNU_LIBRARY__]: Include <unistd.h> to get random fn decls.
3815 Wed Dec 12 17:12:59 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3817         * make.h, arscan.c, glob.c: Only include <memory.h> #ifdef USG.
3819         * variable.c (define_variable_in_set): Replace env_overrides check that
3820         wasn't really redundant (undoing Sep 28 change).  Add comment saying
3821         why this check is necessary.
3823         * job.c, main.c [DGUX]: Needs siglist like USG.
3825 Mon Dec 11 01:19:29 1990  Roland McGrath  (roland at albert.ai.mit.edu)
3827         * default.c [M_XENIX]: For rules that are different for Xenix, use the
3828         generic Unix version #ifdef __GNUC__.
3830         * main.c [M_XENIX]: Use USGr3-style setvbuf call.
3832         * read.c (find_percent): Do backslash folding correctly, not leaving
3833         extra crud on the end of the string.
3835 Sun Dec 10 21:48:36 1990  Roland McGrath  (roland at albert.ai.mit.edu)
3837         * job.c: Don't declare wait3 if it's #defined.
3839         * GNUmakefile, compatMakefile, make.texinfo: Change make-info
3840         to make.info.
3842 Thu Dec  7 21:20:01 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3844         * make.h [STDC_HEADERS || __GNU_LIBRARY__ || _POSIX_SOURCE]: Use
3845         ANSI <string.h> and names for str/mem functions.
3846         Use <stdlib.h> to declare misc fns rather than explicit decls.
3847         [_POSIX_SOURCE]: Don't declare kill (<signal.h> will).
3848         Include <sys/types.h> before <signal.h> because some braindead
3849         nonconformant 1003.1 implementation needs it.
3850         * misc.c: Don't declare malloc, realloc.  Do it in make.h.
3851         * arscan.c, glob.c: Use sequence for string fns from make.h verbatim.
3852         * make.h (S_ISDIR, S_ISREG): Declare if necessary.
3853         * commands.c (delete_child_targets), job.c (search_path), read.c
3854         (construct_include_path): Use S_ISfoo(m) instead of
3855         (m & S_IFMT) == S_IFfoo.
3856         * dir.c, glob.c [_POSIX_SOURCE]: Use dirent.
3858 Wed Nov 29 22:53:32 1990  Roland McGrath  (roland at geech.ai.mit.edu)
3860         * Version 3.59.
3862 Tue Nov 28 16:00:04 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3864         * arscan.c (ar_name_equal) [APOLLO]: Don't do `.o' hacking.  On Apollos
3865         the full file name is elsewhere, and there is no length restriction (or
3866         so I'm told).
3868 Thu Nov 23 17:33:11 1990  Roland McGrath  (roland at albert.ai.mit.edu)
3870         * load.c [hp300 && BSD] (LDAV_CVT): Define for this system.
3872 Tue Nov 21 07:58:40 1990  Roland McGrath  (roland at albert.ai.mit.edu)
3874         * read.c (record_files): Fix trivial bug with deciding to free storage
3875         for a file name.
3877 Thu Nov 16 06:21:38 1990  Roland McGrath  (roland at geech.ai.mit.edu)
3879         * compatMakefile ($(bindir)/make): Install it setgid kmem.
3881 Thu Nov  1 16:12:55 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3883         * GNUmakefile (make-*.tar.Z): Use `h' option to tar (dereference
3884         symlinks), to grab texinfo.tex from wherever it lives.
3886 Tue Oct 30 16:15:20 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3888         * Version 3.58.13.
3890 Fri Oct 26 14:33:34 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3892         * GNUmakefile: make-*.tar.Z: Include texinfo.tex.
3894 Tue Oct 23 19:34:33 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3896         * main.c (define_makeflags): When there are no flags to write, make
3897         sure the array has two leading nulls, since `MAKEFLAGS' is defined from
3898         &flags[1].
3900         * main.c (default_keep_going_flag): New variable (constant one).
3901         (command_switches: -k, -S): Use above for default value.
3902         (define_makeflags): Only write flag/flag_off switches if they are on,
3903         and either there is no default value, or they are not the default.
3905 Mon Oct 22 16:14:44 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3907         * main.c (struct command_switch): New member `no_makefile'.
3908         (command_switches: -n, -q, -t): Set no_makefile == 1.
3909         (define_makeflags): Take new arg MAKEFILE: if nonzero, don't use
3910         options whose `no_makefile' flags are set.
3911         (main): Call define_makeflags with MAKEFILE==1 before remaking
3912         makefiles, and again with MAKEFILE==0 before remaking goals.
3914 Tue Oct  2 17:16:45 1990  Roland McGrath  (roland at geech.ai.mit.edu)
3916         * Version 3.58.12.
3918 Mon Oct  1 15:43:23 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3920         * arscan.c [HPUX]: Use PORTAR==1 format.
3922 Sat Sep 29 16:38:05 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3924         * make.h, remake.c, arscan.c: Don't declare `open'.
3926 Fri Sep 28 04:46:23 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3928         * variable.c (define_variable_in_set): Remove redundant -e check.
3930 Wed Sep 26 00:28:59 1990  Roland McGrath  (roland at geech.ai.mit.edu)
3932         * job.c (start_job): Set RECURSIVE from the right elt of
3933         CHILD->file->cmds->lines_recurse.
3935         * commands.c (chop_commands): Don't botch the line count for allocating
3936         CMDS->lines_recurse.
3938         * Version 3.58.11.
3940         * job.c (start_job): Don't always increment CHILD->command_line!  Only
3941         do it when CHILD->command_ptr has run out!  (Dumb bug.  Sigh.)
3943 Thu Sep 20 02:18:51 1990  Roland McGrath  (roland at geech.ai.mit.edu)
3945         * GNUmakefile [ARCH]: Give explicit rule for remote.{c,dep} to use
3946         variable `REMOTE' for more flags.
3947         ($(prog)): Link in $(LOADLIBES).
3949 Wed Sep 19 02:30:36 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3951         * commands.h (struct commands): New member `ncommand_lines', the number
3952         of elts in `command_lines' et al.
3953         * commands.c (chop_commands): Set `ncommand_lines' elt of CMDS, and
3954         don't put a nil pointer at the end of `command_lines'.
3955         * job.h (struct child): New member `command_lines' to hold
3956         variable-expanded command lines.
3957         * job.c (new_job): Store expanded command lines in `command_lines'
3958         member of new child.  Don't clobber FILE->cmds.
3959         (start_job): Use CHILD->command_lines in place of
3960         CHILD->file->cmds->command_lines.
3962         * variable.h, variable.c, job.c, expand.c: Undo yesterday's change,
3963         which is no longer necessary since we have cleverly avoided the issue.
3965         * job.c (start_job): Don't variable-expand each command line.
3966         (new_job): Do them all here, storing the expansions in the array.
3968 Tue Sep 18 01:23:13 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3970         * variable.h (struct variable): Remove `expanding' member.
3971         * variable.c (define_variable_in_set): Don't initialize it.
3972         * expand.c (struct variable_expanding): New type, a linked list
3973         containing `struct variable' pointers.
3974         (variables_expanding): New variable, the chain of variables currently
3975         being expanded.
3976         (recursively_expand): Don't test and set `expanding' member.
3977         Instead, run through the `variables_expanding' chain looking for a link
3978         referring to V to find self-reference.  Add a new link to the chain,
3979         describing V, before recursive expansion, and pop it off afterward.
3980         * job.c (child_handler): Save `variables_expanding' and clear it before
3981         calling start_job, and restore it afterward.  This avoids major lossage
3982         when the SIGCHLD comes in the middle of variable expansion.
3984 Mon Sep 17 14:46:26 1990  Roland McGrath  (roland at geech.ai.mit.edu)
3986         * job.c, commands.c: Don't define sigmask.
3987         * make.h: Put it here instead.
3989         * variable.c (target_environment): If `.NOEXPORT' was specified as a
3990         target, only export command-line and environment variables, and
3991         file-origin variables that were in the original environment.
3993         * make.man: Add missing ?roff control for `-I' option description.
3995 Thu Sep 13 14:10:02 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3997         * load.c [UMAX]: Move #include <sys/sysdefs.h> to [not UMAX_43].
3999 Wed Sep 12 15:10:15 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
4001         * expand.c (recursively_expand): Don't use `reading_filename' and
4002         `reading_lineno_ptr' if they're nil.
4004 Thu Aug 30 17:32:50 1990  Roland McGrath  (roland at geech)
4006         * Version 3.58.10.
4008 Tue Aug 28 04:06:29 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
4010         * job.c [USG] (unknown_children_possible): New variable, set nonzero
4011         when it's possible for children not in the `children' chain to die.
4012         (block_signals) [USG]: Set it.
4013         (unblock_signals) [USG]: Clear it.
4014         (child_handler) [USG]: Don't complain about unknown children if
4015         `unknown_children_possible' is set.
4017         * read.c (do_define): Make sure there's enough space for the newline,
4018         so we don't write off the end of allocated space.
4020         * arscan.c (ar_name_equal): Fixed to work when MEM is AR_NAMELEN-1 but
4021         NAME is not the same length.
4023 Sat Aug 25 16:17:14 1990  Roland McGrath  (roland at geech)
4025         * job.c (construct_command_argv_internal): Use a static char array for
4026         a constant, since old C has no auto aggregate initializers.
4028 Thu Aug 23 16:11:03 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
4030         * job.c (search_path): If PATH is nil or "" use a default path.
4032 Wed Aug 22 01:05:32 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
4034         * Version 3.58.9.
4036         * job.c (exec_command): Don't take PATH and SHELL args.  Get them from
4037         ENVP.
4038         (child_execute_job): Don't take FILE arg, and don't pass path and shell
4039         to exec_command.
4040         (start_job): Don't pass FILE arg to child_execute_job.
4041         * function.c (expand_function: `shell'): Ditto.
4042         * main.c (main): Don't pass path and shell to exec_command.
4044 Fri Aug 17 23:17:27 1990  Roland McGrath  (roland at geech)
4046         * job.c (construct_command_argv_internal): New fn broken out of
4047         construct_command_argv.  Takes strings SHELL and IFS instead of doing
4048         variable expansion for them.  Recurse to make an argv for SHELL,
4049         passing SHELL==0.  When SHELL==0, don't recurse for shell argv; make a
4050         simple one using /bin/sh.
4051         (construct_command_argv): Do the variable expansions and call above.
4053 Thu Aug 16 19:03:14 1990  Roland McGrath  (roland at geech)
4055         * read.c (multi_glob): For ~USER/FILE, if USER isn't found, don't
4056         change the file name at all.
4058 Tue Aug  7 18:33:28 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4060         * function.c (expand_function: `suffix'/`notdir'): Don't kill the last
4061         space if we never wrote one.
4063         * function.c (expand_function: `suffix'): Retain the dot, like the
4064         documentation says.
4066 Mon Aug  6 14:35:06 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4068         * Version 3.58.8.
4070         * main.c (decode_switches): For positive_int and floating cases, move
4071         SW past the arg (and don't set it to ""), so another switch can follow.
4073 Fri Aug  3 00:43:15 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4075         * job.c (child_execute_job): Use unblock_signals instead of
4076         push_signals_blocked_p (0).
4078         * main.c (fatal_signal_mask): New variable, mask of signals caught with
4079         fatal_error_signal.
4080         (main): Set it.
4081         * job.c ({block,unblock}_children): Renamed to {block,unblock}_signals.
4082         Block/unblock both child signal and signals in fatal_signal_mask.
4083         (children_blocked_p_{stack,max,depth}, {push,pop}_children_blocked_p):
4084         Renamed from children to signals.  Use {block,unblock}_signals instead
4085         of {block,unblock}_children.
4086         * commands.c (fatal_error_signal), job.c (wait_for_children, new_job,
4087         child_execute_job, main, log_working_directory), function.c
4088         (expand_function: `shell'), job.h: Rename {push,pop}_children_blocked_p
4089         to {push,pop}_signals_blocked_p.
4090         * job.c (child_handler): Call {block,unblock}_signals instead of just
4091         {block,unblock}_remote_children.  We need to block the fatal signals.
4093 Thu Aug  2 22:41:06 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4095         * main.c, function.c: Fixed typos in comments.
4097         * file.c (print_file_data_base): Fix computation of avg files/bucket.
4099 Tue Jul 31 22:11:14 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4101         * Version 3.58.7.
4103 Wed Jul 25 16:32:38 1990  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
4105         * arscan.c (ar_name_equal): Fixed to really do it right.
4106         (ar_member_pos): Fixed order of args.
4107         * ar.c (ar_member_date_1): Ditto.
4109 Fri Jul 20 15:30:26 1990  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
4111         * arscan.c (ar_name_equal): Rewritten.  Accounts for a possible
4112         trailing slash in MEM.
4114         * remake.c (f_mtime): Keep track of whether ARNAME is used and free it
4115         if not.  Also free MEMNAME.
4116         * ar.c (ar_member_date, ar_touch): Ditto.
4118         * arscan.c (arscan) [HPUX or hpux]: Treat same as USGr3 PORTAR==1.
4120         * make.h: If NSIG is not defined, but _NSIG is, #define NSIG _NSIG.
4122         * compatMakefile: Don't use $* in explicit rules.
4124         * default.c (default_variables: "PREPROCESS.S"): Include $(CPPFLAGS).
4126         * remake.c (f_mtime): If FILE is an ar ref, get the member modtime.
4128         * function.c (string_glob): Terminate the string properly when it's
4129         empty.
4131 Wed Jul 18 11:26:56 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4133         * Version 3.58.6.
4135         * commands.c (set_file_variables): Fixed computation for ^F/?F elt len.
4137 Sat Jul 14 13:41:24 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4139         * job.c (construct_command_argv): Always use
4140         allocated_variable_expand_for_file instead of variable_expand_for_file
4141         because we might be called from inside a variable expansion (for the
4142         `shell' function).
4144         * function.c (expand_function: `shell'): Free the arglist's storage
4145         correctly.  construct_command_argv only allocates ARGV and ARGV[0].
4147         * job.c (children_blocked_p_idx): Renamed to children_blocked_p_depth.
4148         (push_children_blocked_p, pop_children_blocked_p): Use ..._depth
4149         instead of ..._idx, and do it right!
4151 Wed Jul 11 15:35:43 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4153         * make.h (SIGNAL): New macro to replace `signal' calls.  Does arg and
4154         ret value casts to (void *) #ifdef __STDC__ to avoid conflicts btwn
4155         ANSI and BSD `signal' and handler types.
4156         * main.c (main), job.c (child_handler): Use it.
4158 Fri Jul  6 00:00:38 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4160         * ar.c (ar_member_date, ar_touch): Pass 2nd arg to f_mtime.
4162         * read.c (read_makefile): Search the include path for MAKEFILES
4163         variable makefiles (TYPE == 1), like it says in the manual.
4165         * file.h (struct file), main.c (struct command_switch): Remove trailing
4166         commas from enums.
4168         * commands.c (execute_file_commands): Remove unused variables.
4169         * commands.h: Declare chop_commands.
4170         * make.h: Declare uniquize_deps.
4171         * main.c (main): Remove unused variable.
4172         (decode_switches): Remove unused label.
4173         * remake.c: Include "ar.h" for ar_parse_name decl.
4174         * implicit.c (try_implicit_rule): Remove unused variable.
4175         * function.c (expand_function: `shell'): Declare fork, pipe.
4176         * ar.c: Declare ar_name_equal.
4178         * GNUmakefile: If using gcc, add warning flags to CFLAGS.
4180         * remake.c: Remove decl of ar_member_date, since it's done in make.h.
4182         * remake.c (f_mtime): For ar refs, allow the archive to be found via
4183         VPATH search if we're searching, and change the ar ref accordingly.
4185         * ar.c (ar_parse_name): New global fn to parse archive-member
4186         references into the archive and member names.
4187         (ar_member_date, ar_touch): Use it.
4188         * make.h: Declare it.
4190         * remake.c (f_mtime): After doing rename_file, do check_renamed instead
4191         of assuming rename_file will always set FILE->renamed (which it won't).
4193         * vpath.c (selective_vpath_search): Only accept prospective files that
4194         don't actually exist yet are mentioned in a makefile if the file we are
4195         searching for isn't a target.
4197 Wed Jul  4 04:11:55 1990  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
4199         * remake.c (update_goal_chain): Do check_renamed after calling
4200         file_mtime.
4201         (check_dep): Ditto after update_file.
4203         * file.c (rename_file): Prettied up long message for merging cmds.
4205         * remake.c (update_file_1): Get each dep file's modtime, and allow for
4206         it being renamed, before checking for a circular dep, since a renaming
4207         may have introduced one.
4209 Tue Jul  3 18:15:01 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4211         * ar.c (ar_touch): Don't free ARNAME since enter_file holds onto the
4212         storage.
4214         * function.c (string_glob): Don't leave a trailing space.
4216         * read.c (do_define): Allow leading whitespace before `endef'.
4218 Mon Jul  2 14:10:16 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4220         * implicit.c (pattern_search): No longer take NAME arg.  Instead take
4221         ARCHIVE flag.  If ARCHIVE is nonzero, FILE->name is of the form
4222         "LIB(MEMBER)"; rule for "(MEMBER)" is searched for, and LASTSLASH is
4223         set to nil.  Since NAME was only non-nil when it was the archive member
4224         name passed by try_implicit_rule, this change easily allows turning off
4225         LASTSLASH checking for archive members without excessive kludgery.
4226         (try_implicit_rule): Pass ARCHIVE flag instead of file name.
4228         * Version 3.58.5.
4230         * commands./c (set_file_variables): Don't kill last char of $(^D) elts.
4232 Sat Jun 30 00:53:38 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4234         * ar.c (ar_member_date): Don't free ARNAME since enter_file holds onto
4235         the storage.
4237         * arscan.c (ar_scan) [sun386 && PORTAR == 1]: Treat like USGr3.
4239 Wed Jun 27 14:38:49 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4241         * main.c (main): Put a newline on the debugging message when deciding
4242         not to remake a makefile to avoid a possible loop.
4243         Only decide not to remake makefiles that have commands (as well as
4244         being targets and having no deps).
4246 Fri Jun 22 12:35:37 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4248         * default.c (default_variables): Define `LINK.s' and `LINK.S'.
4249         (default_suffix_rules): Define .S.o rule.
4251         * job.c (construct_command_argv): If we decide to go the slow route,
4252         free all storage for the chopped args.
4253         (start_job): Free the argument list's storage correctly.
4254         construct_command_argv only allocates ARGV and ARGV[0].
4256 Tue Jun 19 18:27:43 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4258         * Version 3.58.4.
4260 Fri Jun 15 21:12:10 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4262         * glob.c: New version from ai-lab which doesn't do [^abc].
4264 Thu Jun  7 00:30:46 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4266         * dir.c: Copied dirent vs direct et al mess from glob.c.
4268         * glob.c: Replaced with updated version from djm.
4269         * glob.c: Check macro DIRENT instead of _POSIX_SOURCE for <dirent.h>.
4270         __GNU_LIBRARY__ implies DIRENT and STDC_HEADERS.
4272 Thu May 31 22:19:49 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4274         * vpath.c (vpath_search): Don't stop the loop if a pattern matches but
4275         the search fails.  All matching patterns have their paths searched
4276         (like it says in the manual).
4278         * make.texinfo (Rules: Directory Search: Selective Search): Say that
4279         multiple `vpath' directives with the same pattern DO accumulate, not
4280         supersede earlier ones.
4282         * vpath.c (print_vpath_data_base): Increment the count of vpaths on
4283         each loop iteration, rather than letting it stay zero.
4285         * Version 3.58.3.
4287         * job.c (block_children, unblock_children): Made static.
4288         (push_children_blocked_p, pop_children_blocked_p): New functions to
4289         push and pop whether children are blocked or not.
4290         * job.h: Declare push_children_blocked_p, pop_children_blocked_p and
4291         not block_children, unblock_children.
4292         * commands.c (fatal_error_signal), job.c (wait_for_children, new_job,
4293         child_execute_job), main.c (main, log_working_directory): Use sequences
4294         of push_children_blocked_p (1) and pop_children_blocked_p () instead of
4295         explicitly blocking and unblocking children.
4296         * function.c (expand_function: `shell'): Don't unblock children.  The
4297         push-pop sequence in wait_for_children makes it unnecessary.
4299 Tue May 29 21:30:00 1990  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
4301         * read.c (do_define): Don't include the last newline in the definition.
4303         * function.c (expand_function: `shell'): Call construct_command_argv
4304         before forking and don't fork if it returns nil.  Free the argument
4305         list's storage before finishing.
4307         * job.c (start_job): Free the storage for the child's argument list
4308         in the parent side of the fork after the child has been spawned.
4310         * job.c (start_job): If construct_command_argv returns nil, go to the
4311         next command line.
4313         * job.c (construct_command_argv): Use the shell if the command contains
4314         an unterminated quote.
4316 Wed May 23 19:54:10 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4318         * Version 3.58.2.
4320         * read.c (read_makefile): Parse "override define" correctly.
4322 Thu May 17 15:25:58 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4324         * arscan.c [USG]: Don't declare memcpy and memcmp.  <memory.h> should
4325         do this anyway (and lack of declarations is harmless).
4327         * remote-customs.c: Renamed to remote-cstms.c for System V.
4328         * remote.c [CUSTOMS]: Changed accordingly.
4330 Sun May 13 14:38:39 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4332         * GNUmakefile: Use same cmds for doc tar.Z as for dist tar.Z (so the
4333         contents go in make-N.NN).
4335 Thu Apr 26 19:33:25 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4337         * Version 3.58.1.
4339 Wed Apr 25 20:27:52 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4341         * job.c (init_siglist): Don't do SIGUSR1 and SIGUSR2 if they are the
4342         same as SIGIO and SIGURG (true on Cray).
4344 Tue Apr 24 20:26:41 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4346         * arscan.c (ar_scan): Do behavior for PORTAR == 1 and USGr3 also
4347         #ifdef APOLLO.
4349 Wed Apr 11 10:00:39 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4351         * job.c (exec_command): Set the effective GID to the real GID.  Somehow
4352         this code got lost.
4354         * implicit.c (pattern_search): Use the right index variable when
4355         seeing if we need to expand FILE->also_make.
4357 Sun Mar  4 09:18:58 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4359         * Version 3.58.0.
4361         * remake.c (remake_file): Treat non-targets without commands under -t
4362         the same as anything else without commands.
4364 Sat Feb 24 17:46:04 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4366         * default.c (default_variables: PREPROCESS.S): Removed $< from defn.
4368         * main.c (main): Ignore arguments that are the empty string, rather
4369         than feeding them to enter_file and barfing therein.
4371 Wed Feb 14 16:28:37 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4373         * main.c (main): Call construct_include_path after doing chdirs.
4375 Thu Feb  8 13:43:44 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4377         * Version 3.58.
4379 Sat Feb  3 22:06:55 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4381         * Version 3.57.7.
4383         * make.texinfo (Implicit: Catalogue of Rules): For RCS, noted that
4384         working files are never overwritten by the default rule.
4386 Thu Feb  1 17:27:54 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4388         * rule.c (count_implicit_rule_limits): Redid loop control to not run
4389         twice on freed rules.
4391         * GNUmakefile: Made `.dep' files be architecture-specific too.
4393         * main.c (main, log_working_directory) [USG]: Block children around
4394         calls to `getwd' (actually `getcwd' on USG), because that function
4395         sometimes spawns a child running /bin/pwd on USG.
4397 Tue Jan 30 14:02:50 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4399         * function.c (subst_expand): Pay attention to SUFFIX_ONLY, putz.
4401 Wed Jan 24 21:03:29 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4403         * make.man: Fixed repeated word.
4405         * make.texinfo (Missing): Reworded a buggy sentence.
4407 Mon Jan 22 12:39:22 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4409         * main.c (print_version): Added 1990 to copyright notice.
4411         * Version 3.57.6.
4413 Sat Jan 20 11:52:01 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4415         * file.c (rename_file): Don't free the storage for the old name, since
4416         it might not have been malloc'd.
4418         * job.c (construct_command_argv): Call
4419         allocated_variable_expand_for_file instead of variable_expand_for_file
4420         to expand `$(SHELL)'.
4422         * make.texinfo (Bugs): Change address from roland@wheaties.ai.mit.edu
4423         to roland@prep.ai.mit.edu.
4425 Tue Jan 16 19:22:33 1990  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
4427         * Version 3.57.5.
4429 Sun Jan 14 16:48:01 1990  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
4431         * job.c (start_job): Only call wait_to_start_job for the first command
4432         line in each sequence.
4434 Thu Jan  4 14:27:20 1990  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
4436         * load.c [LDAV_BASED] (wait_to_start_job): Loop while job_slots_used >
4437         0, not > 1.
4439         * job.c (search_path): Don't return a pointer to local storage.
4440         Allocate data space for the pathname instead.
4442         * function.c (expand_function: `shell'): Don't write garbage if the
4443         child wrote no output.
4445 Wed Jan  3 15:28:30 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4447         * Version 3.57.4.
4449         * file.h (struct file): New member `renamed', a `struct file *' that is
4450         the place this file has been renamed to (or nil).
4451         (check_renamed): Macro to check for a file having been renamed.
4452         Dereferences the renaming and sets the given variable.
4453         * file.c (rename_file): Completely rewritten.  Renames in place if
4454         possible, or moves FILE to a different hash bucket if there is no
4455         existing file with the new name.  If there is an existing file with the
4456         new name, FILE is merged into it and FILE->renamed is set to point to
4457         it.
4458         * variable.c (merge_variable_sets): New fn to merge two variable sets.
4459         (merge_variable_set_lists): New fn to merge two variable set lists.
4460         * variable.h: Declare merge_variable_set_lists.
4461         * remake.c (update_file_1, check_dep): Run `check_renamed' after
4462         calling file_mtime, check_dep.
4463         (update_file): Same after update_file_1.
4464         (update_goal_chain, update_file_1, check_dep): Same after update_file.
4466         * read.c (uniquize_deps): New fn, broken out of record_files, to remove
4467         duplicate deps from a chain.
4468         (record_files): Use it.
4469         * implicit.c (pattern_search): Use uniquize_deps.
4471         * file.h (file_mtime_1): New macro, like file_mtime, but take second
4472         arg, passed to f_mtime.
4473         (file_mtime): Implement as file_mtime_1 (file, 1).
4474         (file_mtime_no_search): New macro: file_mtime (file, 0).
4475         * remake.c (f_mtime): Take new arg SEARCH.  Only do VPATH and `-lNAME'
4476         searching if it is nonzero.
4477         * main.c (main): Use file_mtime_no_search for makefiles.
4478         * remake.c (update_goal_chain): Use file_mtime_no_search if MAKEFILES.
4480         * main.c (printed_version): New variable, init'd to zero.
4481         (print_version): Set it to nonzero before returning.
4482         (die): If -v and !printed_version, call print_version before clean up
4483         and death.
4485         * main.c (log_working_directory): Keep track of whether or not the
4486         "Entering" message has been printed, and return without printing the
4487         "Leaving" message if not.
4489         * main.c (decode_switches): Don't complain about missing args before
4490         checking for a noarg_value elt in the command_switch structure.
4492 Tue Jan  2 15:41:08 1990  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
4494         * make.texinfo (Commands: Recursion: Options/Recursion): Document
4495         special case of -j.
4497         * make.texinfo, main.c, job.c: Changed copyright notices to include
4498         1990.
4500         * make.texinfo (Top): Fixed introductory paragraph, which said that
4501         `make' itself (instead of the manual) has various chapters.
4502         (Variables: Advanced: Substitution Refs): When pxref'ing about
4503         `patsubst', use node `Text Functions', not `Functions'.
4504         Add an xref about `patsubst' after description of $(var:a%b=c%d).
4505         (Functions: Syntax of Functions): Explain why mixing delimiters in
4506         function/var refs is unwise.  Clarify fn arg evaluation order.
4507         (Options): Reworded sentence about `-e'.
4508         (Implicit: Implicit Variables): Don't say `RM' is unused.
4509         Say the dflt values for the flag vars is empty unless otherwise noted,
4510         since some have defaults.
4511         (Implicit: Pattern Rules: Pattern Examples): Clarified use of $< and $@
4512         in first example.
4513         (Implicit: Last Resort): Don't say the .DEFAULT example creates files
4514         "silently".  It's automatic, but not silent.
4515         (Implicit: Search Algorithm): Fixed confusing ungrammatical sentence
4516         for item 5.1.
4517         (Archives: Archive Update): Added missing `next' pointer.
4518         (Archives: Archive Symbols): Note that GNU `ar' deals with this
4519         automatically.
4521         * job.c (search_path): New fn, to search for an executable file in a
4522         search path (broken out of exec_command).
4523         (exec_command): Take fourth arg, the shell program to use (if
4524         necessary).  Use search_path for the program, and the shell program.
4525         Pass args "file args ..." to shell program (with no -c), where FILE is
4526         the full pathname of the program (script) to be run.
4527         (child_execute_job): Pass shell program to exec_command.
4528         * main.c (main): Ditto.
4530         * main.c (main): Don't write a message if exec_command returns, because
4531         it will never return.
4533 Fri Dec 22 16:19:58 1989  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
4535         * default.c (default_variables: "LINK.cc"): Use $(C++FLAGS) instead of
4536         $(CFLAGS).
4538 Wed Dec 20 09:58:48 1989  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
4540         * job.c (new_job): If start_job set the child's `command_state' to
4541         `cs_finished', call notice_finished_file.
4543 Sun Dec 17 19:45:41 1989  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
4545         * Version 3.57.3.
4547 Wed Dec 13 17:57:12 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4549         * rule.c (convert_to_pattern): Accept files with dependencies as
4550         suffix rules.
4552 Thu Nov 30 15:47:13 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4554         * Version 3.57.2.
4556         * function.c (expand_function: `shell'): Don't clobber BUFFER and then
4557         try to free it.
4559         * remake.c (update_file_1): Took code to force remake of nonexistent
4560         deps out of #if 0, and changed the test to nonexistent non-intermediate
4561         deps.  In version 4, I think removing this test completely will
4562         implement the new feature that if a: b and b: c and c is newer than a,
4563         b need not be remade.
4565 Sun Nov 26 16:12:41 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4567         * compatMakefile (load.o, remote.o): Use $*.c instead of explicit file
4568         names so that using VPATH works.
4570 Tue Nov 21 14:57:18 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4572         * Version 3.57.1.
4574 Fri Nov 10 03:28:40 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4576         * remake.c (check_dep): Set *MUST_MAKE_PTR if FILE does not exist after
4577         being updated.  (The exact opposite test was here before; why???)
4578         (update_file_1): Set a dep's `changed' member after updating it if it
4579         is phony and has commands (because they will then always be executed).
4581 Thu Nov  9 13:47:12 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4583         * load.c [UMAX]: #ifdef UMAX_43 include different headers for the
4584         `inq_stats' call.
4585         * compatMakefile (LOAD_AVG): Document UMAX_43.
4587         * Version 3.57.0.
4589         * commands.c (chop_commands): New function to chop commands into lines.
4590         * job.c (new_job): Break that code out, and call chop_commands.
4591         * remake.c (remake_file): Call chop_commands before looking at
4592         FILE->cmds->any_recurse.
4594         * make.texinfo (Running: Goals): Don't say that the default target
4595         won't be taken from an included makefile.
4597         * remake.c (update_file_1): #if 0 out setting MUST_MAKE if a dep
4598         doesn't exist.
4600 Fri Nov  3 15:53:03 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
4602         * Version 3.57.
4604         * variable.c (try_variable_definition): Don't calculate useless value.
4606         * main.c (define_makeflags): Fixed -j propagation.
4608         * commands.c (execute_file_commands): Removed unused variable.
4610 Sun Oct 29 11:11:15 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4612         * commands.c (execute_file_commands): If the commands are empty, call
4613         notice_finished_file before returning.
4615 Sat Oct 28 23:06:32 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4617         * remake.c (update_file_1): Don't always update a target that has no
4618         deps.  Only do this for double-colon targets.
4620 Wed Oct 25 16:36:16 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4622         * main.c (main) [hpux]: hpux == HPUX.
4623         * compatMakefile (defines): Document that HPUX should be defined.
4625 Tue Oct 24 19:19:48 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4627         * Version 3.56.8.
4629         * job.c (exec_command): Fixed what mode bits are checked.
4631         * remake.c (update_file_1): "No cmds and no deps actually changed"
4632         loses if ! FILE->is_target.
4634         * make.texinfo (Variables: Setting): Don't say that spaces after a
4635         variable definition are ignored (since they aren't).
4637 Mon Oct 23 14:34:23 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4639         * Version 3.56.7.
4641         * remake.c (update_file_1): If, after being updated, any dependency
4642         does not exist, remake the target.
4644         * remake.c (update_file_1): Always update if FILE has commands but no
4645         deps.
4647         * commands.c (execute_file_commands): If we return early because there
4648         are no commands, set FILE->updated.
4650 Thu Oct 19 18:47:37 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4652         * arscan.c (ar_scan) [M_XENIX]: Don't run atoi or atol on the
4653         `struct ar_hdr' members that are int or long int on Xenix.
4655 Sat Oct 14 10:43:03 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4657         * arscan.c (ar_scan): Cosmetic clean ups.
4658         (ar_name_equal): New function to compare names, handling truncated
4659         member names and special `.o' truncation.
4660         (ar_member_pos): Use ar_name_equal.
4661         * ar.c (ar_member_date_1): Use ar_name_equal.
4663         * Version 3.56.6.
4665         * file.h (struct file): Made `update_status' a `short int', and moved
4666         it before `command_state' so the bitfields can be packed better.
4668         * remake.c (files_remade): Made global.
4669         (notice_finished_file): Don't increment files_remade.
4670         * job.c (new_job): Do.
4672         * job.c (start_job): Don't return a value.  Always set
4673         CHILD->file->command_state to either cs_running or cs_finished.
4674         (new_job, child_handler): Don't expect start_job to return a value.
4675         Instead, look at the file's command_state.
4677         * commands.c (chop_commands): Merged into job.c (new_job).
4678         * commands.h: Don't declare chop_commands.
4680         * job.c (start_job): Made static.
4681         (new_job): New function to create a `struct child' and call start_job.
4682         (free_child): New function to free a `struct child'.
4683         (child_handler, new_job): Call it.
4684         * job.h: Don't declare start_job.  Do declare new_job.
4685         * commands.c (execute_file_commands): Call new_job.
4687         * commands.c (execute_file_commands): Don't set FILE->update_status if
4688         start_job fails.
4690         * function.c (expand_function): Don't use `reading_filename' and
4691         `reading_lineno_ptr' if they're nil.
4693 Fri Oct 13 18:16:00 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4695         * read.c (find_semicolon): New function to look for an unquoted ; not
4696         preceded by an unquoted # in a string.
4697         (read_makefile): Call it before expanding the line.  If it finds a ;,
4698         cut the line short there before expanding it.  If not, call it again
4699         after expanding.
4701         * commands.c (execute_file_commands): Don't check FILE->command_state.
4702         We won't get called unless it's cs_not_started.
4704         * read.c (read_makefile): Call collapse_line on the variable-expanded
4705         rule line after checking for ; and #.
4707         * job.c (start_job): When there are no more commands, always return 0.
4708         * commands.c (execute_file_commands): Don't put the new child in the
4709         `children' chain unless FILE->command_state is cs_running.
4711         * read.c (read_makefile): Rewrote ;-handling to only do it once (why
4712         did I do it twice??) and to check for a # before the ;.
4714         * job.c (start_job): Set CHILD->file->update_status to 0 when we run
4715         out of commands.  Set it to 1 before returning failure.
4716         (child_handler): Don't set C->file->update_status to 0 when start_job
4717         returns success and commands are not running.
4719         * read.c (read_makefile): If there is a # before the ; for commands,
4720         forget the ; and commands.
4722 Thu Oct 12 15:48:16 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4724         * job.c (child_execute_job): Pass -c to the shell.
4726 Wed Oct 11 18:41:10 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4728         * Version 3.56.5.
4730         * main.c (define_makeflags): Cleaned up to keep better track of dashes
4731         written, etc.
4733         * function.c (expand_function: `shell'): When converting newlines to
4734         spaces in output, search with `index' calls rather than a simple loop.
4736         * main.c (main): Make sure stdout is line-buffered.
4738         * main.c (decode_switches): Always check for missing switch arg.
4740 Mon Oct  9 17:17:23 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4742         * Version 3.56.4.
4744 Sat Oct  7 00:32:25 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4746         * commands.c (set_file_variables): #ifdef NO_ARCHIVES, still set $@ and
4747         $%.
4749         * commands.c (set_file_variables): Include a trailing slash in the
4750         directory variables (@D, etc.).
4752         * job.c (child_handler): Call notice_finished_file after changing a
4753         child's state to `cs_finished'.
4754         * remake.c (update_file_1): Don't call notice_finished_file if
4755         FILE->command_state == cs_finished.
4757 Wed Oct  4 16:09:33 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4759         * Version 3.56.3.
4761 Tue Oct  3 21:09:51 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4763         * read.c (read_all_makefiles): When setting elements of MAKEFILES from
4764         the contents of read_makefiles, make sure we're using the right
4765         element.
4767         * dir.c, glob.c [USGr3 || DIRENT]: Don't define d_ino as d_fileno.
4769         * Version 3.56.2.
4771         * remake.c (update_file_1): Return zero after calling remake_file if
4772         FILE->command_state != cs_finished.  Test update_status thoroughly.
4774         * commands.c (execute_file_commands): Don't call notice_finished_file.
4776         * remake.c (remake_file): Return immediately after calling
4777         execute_file_commands.
4779 Sat Sep 30 14:57:05 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4781         * Version 3.56.1 (alpha).
4783         * file.h (struct file): Made `update_status' not be a bitfield, since
4784         some broken compilers don't handle it right.
4786         * function.c (expand_function: `join'): Don't clobber the pointers and
4787         then try to free them.
4789         * job.c (exec_command): Fixed & vs = precedence problem.
4791 Thu Sep 28 17:29:56 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4793         * remake.c (update_file_1): Fixed typo in debugging output.
4795         * remake.c (library_file_mtime): Search for /usr/local/lib/libLIB.a
4796         after /usr/lib/libLIB.a.
4798 Tue Sep 26 16:07:58 1989  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
4800         * read.c (conditional_line): For `ifeq (a, b)', swallow space after the
4801         comma.
4803 Sun Sep 24 13:25:32 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4805         * function.c (patsubst_function): If BY_WORD and the match is not a
4806         full word, update the text pointer correctly.
4808         * function.c (expand_function: `word'): Don't lose track of the second
4809         arg's expansion and free something else instead.
4811 Fri Sep 22 16:15:29 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4813         * Version 3.56.
4815 Thu Sep 21 14:28:42 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4817         * main.c (main): Make an array of the mtimes of the makefiles before
4818         updating them, and compare their file_mtimes against this later.  Don't
4819         re-exec if a makefile was successfully updated but didn't change.  If a
4820         makefile failed to be remade and no longer exists, die.  If a makefile
4821         failed to be remade, but changed anyway, re-exec.  If a makefile failed
4822         to be remade, but is unchanged, continue on.
4824 Wed Sep 20 18:02:07 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4826         * Version 3.55.6.
4828         * implicit.c (pattern_search): Maintain an array CHECK_LASTSLASH of the
4829         CHECK_LASTSLASH flag values used to match each member of TRYRULES.
4830         When making FILE->stem, if CHECKED_LASTSLASH[FOUNDRULE], prepend the
4831         part of FILENAME before LASTSLASH.
4833 Tue Sep 19 17:44:08 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4835         * dir.c (dir_file_exists_p): Check for FILENAME being nil before
4836         checking for it being "".
4838         * main.c (define_makeflags): Fixed test for whether a flag/flag_off
4839         option was non-default.  Also changed to generate a string that Unix
4840         Make will grok (except for FP/int values and new flags).
4842         * job.c (child_execute_job): Don't use the shell's -c option.
4843         Also fixed an off-by-one bug in the ARGV -> shell arg list copying.
4845 Mon Sep 18 15:17:31 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4847         * Version 3.55.5.
4849         * read.c (parse_file_seq): Check the beginning of the file name for a
4850         `./', not the two chars after the end of the name (Q rather than P).
4852         * job.c (child_execute_job): Include all of ARGV in the arg list for
4853         the shell.
4855         * main.c (define_makeflags): Don't include floating and positive_int
4856         options in !PF.
4858         * job.c (exec_command): Set the effective gid to the real gid before
4859         execing.
4861         * job.c (child_execute_job): Don't clobber the arg list when execing
4862         the shell.
4864 Sun Sep 17 15:27:19 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4866         * main.c (define_makeflags): Moved all the checking inside the switch.
4868         * load.c [LDAV_BASED] (load_average): When we can't get the load
4869         average, return zero instead of running off the end.
4871         * file.c: Include variables.h.
4872         * job.c: Declare dup2 and {block,unblock}_remote_children.
4873         * file.h: Declare f_mtime.
4874         * job.c: Don't declare construct_command_argv, since job.h does.
4875         * function.c, main.c, load.c, remake.c: Include job.h.
4876         * load.c [LDAV_BASED] (load_average): Declare nlist.
4877         * variable.h: Declare print_file_variables.
4878         * job.c [!USG]: Don't declare sigsetmask.
4879         [!USG]: Declare getdtablesize.
4880         Don't declare load_average.  Do declare wait_to_start_job.
4881         Declare vfork, gete[gu]id, execve.
4882         * commands.c: Declare remote_kill, getpid.
4883         * make.h: Declare kill, exit, sigblock, pipe, close, ctime, open,
4884         lseek, read.
4885         * make.h [not USG]: Declare sigsetmask.
4886         * job.h: Declare wait_for_children and {block,unblock}_children.
4888         * dir.c (dir_file_exists_p): If FILENAME is nil, read in the whole
4889         directory.
4890         (find_directory): When we want to read in the whole directory, call
4891         dir_file_exists_p with nil instead of "".
4893         * file.h (struct file), job.h (struct child),
4894           variable.h (struct variable): Use bitfields for flags.
4895         * make.h (ENUM_BITFIELD): If GCC or #ifdef ENUM_BITFIELDS, define as
4896         :BITS, else empty.
4897         * compatMakefile (defines): Document ENUM_BITFIELDS.
4899 Sat Sep 16 12:38:58 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4901         * Version 3.55.4 (alpha).
4903         * GNUmakefile (dist): Depend on default and doc.
4905         * load.c [LDAV_BASED]: Include <nlist.h> rather than <a.out.h>; #ifdef
4906         NLIST_NAME_UNION, use n_un.n_name instead of n_name.
4907         * compatMakefile (LOAD_AVG): Document NLIST_NAME_UNION.
4909         * job.c [USG-ish]: Don't redefine WIF{SIGNALED,EXITED} if they're
4910         already defined.
4912 Fri Sep 15 13:59:42 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4914         * glob.c, dir.c [USGr3 or DIRENT]: If neither d_ino, nor d_fileno is
4915         defined, define d_ino as d_fileno.
4917 Thu Sep 14 18:29:38 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4919         * job.c: Don't declare exec_command static.
4921         * make.texinfo (Name Index): Changed title to include directives.
4923         * Version 3.55.3 (alpha).
4925         * make.texinfo (Running: Options): Document -e.
4927         * main.c (main): Always give imported environment variables origin
4928         `o_env'.
4929         * variable.c (define_variable_in_set): Under -e, if ORIGIN, or an
4930         existing variable's origin, is `o_env', make it `o_env_override'.
4932         * load.c: Use the symbol KERNEL_FILE_NAME instead of KERNEL_FILE.
4933         * compatMakefile: Changed the comment for `LOAD_AVG' accordinly.
4935 Thu Sep  7 16:46:26 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4937         * Version 3.55.2 (alpha).
4939         * variable.c (print_variable_set), rule.c (print_rule_data_base),
4940         file.c (print_file_data_base): If NO_FLOAT is defined, don't use
4941         floating-point for printing statistics.
4942         * compatMakefile (defines): Document NO_FLOAT.
4944         * make.h (HASH): New macro to add the hashing value of one char to a
4945         variable.c.
4946         * file.c (lookup_file, enter_file, rename_file): Use it.
4947         * dir.c (find_directory, dir_file_exists_p, file_impossible_p): Ditto.
4948         * variable.c (define_variable_in_set, lookup_variable): Same here.
4950         * variable.c, file.c, dir.c: Don't define *_BUCKETS if they are already
4951         defined.
4953         * compatMakefile (defines): Added comment about defining NO_ARCHIVES.
4954         (ARCHIVES, ARCHIVES_SRC): New variables for {ar,arscan}.[oc].
4955         (objs, srcs): Use $(ARCHIVES) and $(ARCHIVES_SRC).
4956         * commands.c (set_file_variables), dir.c (file_exists_p),
4957         remake.c (touch_file, name_mtime), implicit.c (try_implicit_rule,
4958         pattern_search), make.h: If NO_ARCHIVES is #defined, don't do any
4959         archive stuff.
4961         * commands.c (set_file_variables): Don't kill the last char of
4962         directory names in $([@*<%?^]D).
4964 Wed Sep  6 15:23:11 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4966         * default.c (default_terminal_rules {%:: %,v}, {%:: RCS/%,v}): Don't
4967         run co if the target exists.
4969         * glob.c (glob_match): [!xyz], rather than [^xyz], means none of [xyz].
4971         * glob.c: Misc minor cosmetic changes.
4973 Tue Sep  5 14:49:56 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
4975         * load.c [LDAV_BASED] (load_average): Check for == -1, rather than < 0
4976         to see if lseek fails.  On some systems, `avenrun' is at an offset >
4977         (2**31)-1, and lseek succeeds, returning a negative value.
4979 Mon Sep  4 11:07:58 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
4981         * rule.c (new_pattern_rule): Return `int' instead of `void': nonzero if
4982         the passed rule was used, zero if not.
4983         (install_pattern_rule): Pay attention to the return from
4984         new_pattern_rule, and don't set the rule's `terminal' flag or give it
4985         commands unless it's used.
4986         (create_pattern_rule): Same idea.
4988         * dir.c (find_directory): Removed unused variable.
4990         * commands.c (execute_file_commands): Removed unused variable.
4992         * read.c (record_files): Don't use NAME after freeing it.
4994 Sat Sep  2 00:33:19 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
4996         * Version 3.55.1 (alpha).
4998         * function.c (string_glob): Don't add spaces after file names that
4999         aren't added.  (Also means don't add spaces without checking the size
5000         of the buffer.)
5002         * remake.c (update_goal_chain): Don't remove makefiles with cmds and no
5003         deps from the chain.
5004         * main.c (main): Do it here, before calling update_goal_chain.
5006         * remake.c (update_goal_chain): When updating fails, change STATUS even
5007         if MAKEFILES is set.  Also stop remaking when updating fails if not
5008         under -k and MAKEFILES is not set.
5010         * remake.c (remake_file, update_file_1, notice_finished_file),
5011         commands.c (execute_file_commands), make.h, commands.h: The functions
5012         remake_file, notice_finished_file, and execute_file_commands no longer
5013         return values, and their callers no longer expect values returned.
5015         * remake.c (notice_finished_file): Don't set FILE's modtime to now if
5016         it is a non-target with no commands.
5018 Fri Sep  1 00:04:39 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
5020         * read.c (read_all_makefiles): After freeing each element on MAKEFILES,
5021         replace it with the name stored in read_makefiles by read_makefile.
5023         * remake.c (update_file_1): Don't decide not to remake if FILE has no
5024         cmds and no deps actually changed if FILE doesn't have any deps.
5026         * file.c (remove_intermediate): Remove precious files that also have
5027         the `dontcare' flag set.
5029         * remake.c (update_file_1): Don't always remake if FILE has cmds but no
5030         deps; only if FILE is double-colon.  (I don't know why this should be
5031         done for double-colon targets, but that's what Unix make does.)
5033         * load.c [LDAV_BASED] (load_average): Write error messages if the
5034         various system calls fail.  Keep track of if we've failed before.
5035         The first time we fail, write a message saying -l won't be enforced.
5036         The first time we succeed after having failed, write a message saying
5037         -l will be enforced again.
5039         * remake.c [USG]: Don't #include <sys/file.h>
5041         * load.c [generic Unix LDAV_BASED]: #include <fcntl.h> #ifdef USG,
5042         else <sys/file.h> instead.
5044         * job.c [USG && !USGr3 && !HAVE_DUP2]: Remove redundant
5045         #include <errno.h> and declaration of `errno'.
5046         [...] (dup2): Fixed so it won't always lose.
5048         * default.c (default_suffix_rules: .texinfo.dvi): Copy, rather than
5049         move, the aux and index files, so the TeX run can use them.
5051         * compatMakefile: Remove redundant comment.
5053         * load.c [generic Unix LDAV_BASED]: Include <a.out.h> instead of
5054         <nlist.h>, since the `struct nlist' declaration in <nlist.h> varies
5055         more than the one in <a.out.h>.
5056         (load_average): Use the `n_un.n_name' field of the `struct nlist',
5057         since the <a.out.h> declaration uses the union.
5059         * main.c (main): For the temporary files made for stdin makefiles, set
5060         the `intermediate' and `dontcare' flags.
5061         * file.c (remove_intermediates): Don't print any messages for files
5062         whose `dontcare' flag is set.  (The only files that will be
5063         intermediate and `dontcare' will be the temporary files made for stdin
5064         makefiles.)
5066         * job.c (exec_command): Made global.
5067         * job.h: Declare it.
5068         * main.c (main): Use exec_command when re-execing.
5070         * make.h: Declare environ.
5071         * make.c: Don't.
5073         * job.c (child_execute_job): New function to perform everything done in
5074         the child side of a fork (for a job or `shell' function).
5075         (start_job): Call it.
5076         * job.h: Declare construct_command_argv and child_execute_job.
5077         * function.c (expand_function: `shell'): Use child_execute_job.
5079 Thu Aug 31 18:42:51 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
5081         * function.c (expand_function: `shell'): Remove a trailing newline
5082         instead of turning it into a space.
5084         * main.c (main): Do init_siglist #ifdef HAVE_SIGLIST.
5086         * job.c [WTERMSIG || (USG && !HAVE_SYS_WAIT)]: Test each W* macro
5087         separately and define all those that aren't defined.
5089 Sat Aug 26 15:13:21 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5091         * ar.c (ar_name): Return zero for `(foo)'.
5093         * Version 3.55.
5095         * make.texinfo (Rules: Multiple Targets): Make this node's `next'
5096         pointer point to `Static Pattern'.
5097         * make.texinfo (Makefiles: MAKEFILES Variable): Make this node's `prev'
5098         pointer point to `Makefile Names'.
5100         * make.1: Renamed to make.man.
5101         * compatMakefile: Define `mandir' and `manext'.
5102         (install): Depend on $(mandir)/make.$(manext).
5103         ($(mandir)/make.$(manext)): Depend on make.man and copy it to $@.
5104         ($(bindir)/make): Use `make' rather than $<; so Unix make can grok it.
5106 Thu Aug 24 03:35:48 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5108         * variable.c (target_environment): Allow variables that start with
5109         underscores.
5111 Wed Aug 23 22:50:32 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5113         * variable.c (target_environment): Reject variables that don't start
5114         with letters.
5116 Tue Aug 22 04:14:29 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5118         * GNUmakefile (make-$(version).tar.Z): Put make.1 (the Unix manual
5119         page) in the tar file.
5121         * variable.c (target_environment): Don't write variables with origin
5122         o_default (i.e., ones from default.c).
5123         * make.texinfo (Commands: Recursion: Variables/Recursion): Document
5124         that default variables are not put in the environment.
5126         * remake.c (update_file_1): Remake all targets with commands but no
5127         deps.
5129 Sat Aug 19 06:03:16 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5131         * remake.c (update_file_1): In the final loop, set the deps'
5132         `changed' members if they are newer than FILE.
5134         * remake.c (update_goal_chain): Under -d, print a message if we decide
5135         not to remake a makefile so as to avoid a possible infinite loop.
5137 Fri Aug 18 20:30:14 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5139         * remake.c (remake_file): Cleaned up.
5141         * commands.c (execute_file_commands): If the commands are empty, set
5142         FILE->update_status to zero before returning.
5144         * remake.c (notice_finished_file): Set `last_mtime' fields to zero
5145         instead of calling name_mtime; file_mtime will do that later if anybody
5146         cares.
5148 Thu Aug 17 10:01:11 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5150         * make.texinfo (Rules: Wildcards: Wildcard Examples): Give this node a
5151         `prev' pointer.
5153         * Version 3.54.9 (alpha).
5155         * make.texinfo: Fixed some @nodes.
5157         * remake.c (check_dep): Don't set *MUST_MAKE_PTR if FILE doesn't exist
5158         after running update_file.
5160         * remake.c (notice_finished_file): If FILE has no commands, pretend its
5161         modtime is now.
5163         * remake.c (update_file_1): In the loops that call update_file on the
5164         deps, compare modtimes before and after (unless deps are still being
5165         made) and set the deps' `changed' members.  Do not set the `changed'
5166         members in the loop that prints the newer/older debugging messages.
5167         * remake.c (update_file_1): If no deps changed and FILE has no
5168         commands, decide it doesn't need remaking.
5170         * remake.c (update_file_1): Print a debugging message if we take
5171         commands from default_file.
5173         * make.texinfo (Rules: Directory Search: Selective Search): Removed
5174         note about warning for `vpath' with a constant pathname, since it isn't
5175         warned about anymore.
5177         * remake.c (update_goal_chain): If MAKEFILES, remove makefiles which
5178         are targets and have no deps.
5179         * make.texinfo (Makefiles: Remaking Makefiles): Document that makefiles
5180         will not be remade if they are targets but have no dependencies.
5182 Tue Aug 15 00:00:08 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
5184         * remake.c (notice_finished_file): Increment files_remade for non-phony
5185         files if they didn't exist before (even if they still don't).
5187         * job.c: Include <errno.h> and declare errno.
5189         * job.c (exec_command): If the execve fails with ENOEXEC (Exec format
5190         error), return instead of exiting the child process.
5192         * job.c (start_job): In the child side, if exec_command fails, try
5193         using the shell.
5195         * job.c (start_job): In the child side, call unblock_children instead
5196         of sigsetmask.
5198         * remake.c (notice_finished_file): Under -n or -q, always increment
5199         files_remade for non-phony files.
5201         * rule.c (intall_pattern_rule): Use find_percent.
5203         * vpath.c (vpath_search): Pass the `percent' members to
5204         pattern_matches.
5206 Mon Aug 14 23:30:24 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
5208         * vpath.c (struct vpath): New member `percent', to hold a pointer into
5209         the pattern where the % is.
5210         (construct_vpath_list): Call find_percent on the pattern and set the
5211         new `percent' member.
5212         * read.c (read_makefile): Don't run find_percent on `vpath' directive
5213         patterns.
5215         * function.c (pattern_matches): Take new arg PERCENT, a pointer into
5216         PATTERN where the % is.  If PERCENT is nil, copy PATTERN into local
5217         space and run find_percent on it.
5218         (expand_function: `filter', `filter-out'): Pass new arg to
5219         pattern_matches.
5220         * read.c (record_files): Pass PATTERN_PERCENT to pattern_matches for
5221         static pattern rules.  Save the percent pointer into implicit rule
5222         targets, and pass them to create_pattern_rule.
5223         * rule.c (convert_to_pattern): Pass new arg to create_pattern_rule.
5224         (create_pattern_rule): Take new arg TARGET_PERCENTS, nil or an array of
5225         pointers into the corresponding elements of TARGETS, where the %s are.
5227 Sun Aug 13 00:29:19 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5229         * Version 3.54.8.
5231         * README.templatate, README-doc.template: New files, turned into README
5232         and README-doc to go into the two distribution tar files.
5233         * GNUmakefile: Added a rule to edit the version number in
5234         README.template and README-doc.template, producing README and
5235         README-doc.
5237         * remake.c (update_goal_chain): If -n or -q is in effect for a
5238         makefile, and it got updated, don't change STATUS, so we can still
5239         return -1 (meaning nothing was done).  This avoids an infinite loop on
5240         "make -n Makefile".
5242 Sat Aug 12 23:14:24 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5244         * remake.c (notice_finished_file): Treat -q the same as -n.
5246         * remake.c (update_goal_chain): Fixed handling of return from
5247         update_file.  If -n or -q is in effect, ignore it.
5249         * job.c (start_job): Don't test for -t.  We should never get called in
5250         that case.
5252 Fri Aug 11 04:09:14 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5254         * function.c (expand_function): Removed unused variables.
5255         (handle_function): Removed unused variable.
5257         * main.c (main): Removed unused variable.
5259 Wed Aug  9 09:37:10 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5261         * Version 3.54.7.
5263         * remake.c (notice_finished_file): If FILE's modtime actually changed,
5264         increment files_remade.
5265         (remake_file): Don't increment files_remade.
5267         * remake.c (update_file): Don't print "up to date" messages for
5268         phony files.
5270         * job.c (child_handler): Don't set C->file->update_status to 1 if
5271         start_job returns nonzero under -n or -t.
5273         * expand.c (variable_expand): Count parens in $(foo:a=b) refs.
5275         * main.c: Removed old declaration of `glob_tilde' (which hasn't existed
5276         for a few months).
5278 Tue Aug  8 23:53:43 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5280         * job.c (exec_command): Fixed to not ignore the last path component and
5281         to do the right thing with an empty path.
5283 Fri Aug  4 15:58:19 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5285         * remake.c (library_file_mtime): Look for libLIB.a, not /libLIB.a.
5286         Do VPATH search on libLIB.a, not /usr/lib/libLIB.a
5288 Thu Aug  3 20:42:00 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5290         * job.c [HAVE_SYS_WAIT or not USG]: If WIFSIGNALED is not defined by
5291         <sys/wait.h>, define it as (WTERMSIG != 0).
5293 Tue Aug  1 19:25:34 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5295         * remake.c (remake_file): If FILE has no commands and is a target,
5296         don't set its time to now.  The time gets reset by notice_finished_file
5297         anyway, and it isn't needed since check_dep checks for nonexistence.
5299         * Version 3.54.6.
5301         * read.c (read_makefile): Don't read off the end of the string after an
5302         `include'.
5304         * job.c (exec_command): New function to search the path for a file and
5305         execute it.
5306         (start_job): Use exec_command rather than execvp.
5308         * read.c (read_makefile): Expand `include' directive args before
5309         parsing them.  Allow trailing whitespace after filename.
5311         * variable.c (target_environment): Put makelevel + 1, rather than
5312         makelevel, in the `MAKELEVEL' envariable.
5314 Sat Jul 29 10:27:04 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5316         * remake.c (notice_finished_file): Don't get the new modtime of phony
5317         files.
5319         * remake.c (remake_file): Run commands instead of touching under -t if
5320         FILE->cmds->any_recurse is set.
5322         * commands.h (struct commands): Add new member `any_recurse', to be set
5323         nonzero if any `lines_recurse' element is nonzero.
5324         * commands.c (chop_commands): Set the `any_recurse' member.
5326         * commands.c (execute_file_commands): Split chopping of commands into
5327         lines into new function chop_commands.
5328         * commands.h: Declare chop_commands.
5330         * read.c (read_makefile): Test for a line beginning with a tab after
5331         checking for conditional lines, but before all other checks.
5333 Fri Jul 28 18:10:29 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5335         * read.c (read_makefile): Match directives against collapsed line
5336         and use that for their args.
5338         * read.c (read_makefile): Warn about extra text after `include'.
5340 Tue Jul 25 14:34:25 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5342         * make.texinfo (Rules: Directory Search: Selective Search): Fixed
5343         example to use correct `vpath' syntax.
5345 Mon Jul 24 12:10:58 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5347         * Version 3.54.5.
5349         * job.c (start_job): In the child side, unblock SIGCHLD.
5351 Fri Jul 21 18:25:59 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5353         * make.h: Don't include <sys/types.h> #ifdef sun.
5355 Mon Jul 17 14:29:10 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5357         * implicit.c (pattern_search): If ar_name (FILENAME), don't check for
5358         directory names.
5360         * job.c (wait_for_children): Changed "waiting for children" message to
5361         "waiting for unfinished jobs".
5363 Fri Jul 14 13:17:13 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5365         * load.c (load_average): Use an unsigned offset into kmem.
5367 Thu Jul 13 18:44:49 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5369         * variable.c (pop_variable_scope): Don't free the head of the chain of
5370         variables in each bucket twice.
5372 Tue Jul 11 06:45:24 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5374         * GNUmakefile: Include COPYING in the doc tar file.
5376         * variable.c, read.c, misc.c, job.c, function.c: Replace some identical
5377         "for" loops with next_token or end_of_token calls.
5379 Mon Jul 10 16:55:08 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5381         * Version 3.54.4.
5383         * compatMakefile: Documented new conditionals.
5385         * job.c: Don't define sys_siglist if HAVE_SIGLIST is defined.
5386         Don't define dup2 if HAVE_DUP2 is defined.
5388         * job.c (child_handler): Interpret the return from start_job correctly.
5390         * remake.c (update_file_1): Don't write "target not remade because of
5391         errors" message under -n or -q.
5393         * read.c: Declare getpwnam.
5395         * glob.c: Use <dirent.h> if DIRENT is defined.
5396         [USG]: Don't declare memcpy, since <memory.h> does.
5398 Fri Jul  7 20:53:13 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5400         * misc.c (collapse_line): Copy the line over in the right place.
5402 Fri Jul  7 18:33:24 1989  Roland McGrath    (fsf at void.ai.mit.edu)
5404         * remake.c: Conditionalize inclusion of <sys/file.h> on not
5405         USG, since HP-UX defines a `struct file' there.
5407 Fri Jul  7 12:11:30 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5409         * job.c: If WTERMSIG is defined by <sys/wait.h>, define WAIT_T as int,
5410         and don't define other macros; this covers HP-UX.
5411         If WTERMSIG is not defined, use int or union wait based on USG and
5412         HAVE_SYS_WAIT; this covers BSD and SysV.
5414         * Version 3.54.3 (alpha).
5416         * job.c [USG and not USGr3]: Include <errno.h> and declare errno.
5418         * job.c (unblock_children [USG]): Declare child_handler.
5420         * job.c: Renamed WRETCODE to WEXITSTATUS.
5421         [HAVE_SYS_WAIT or not USG]: Undefine WTERMSIG, WCOREDUMP, and
5422         WEXITSTATUS before defining them.  The HP-UX <sys/wait.h> defines them.
5424         * main.c (main): If there are no goals, fatal AFTER printing the data
5425         base under -p.
5427 Thu Jul  6 22:43:33 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
5429         * glob.c [USG]: #define rindex as strrchr.
5431         * job.c [USG]: Include <sys/param.h> and #define getdtablesize() as
5432         NOFILE.
5434 Wed Jul  5 09:36:00 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5436         * Version 3.54.2 (alpha).
5438         * expand.c (variable_expand): When expanding recursive variable
5439         references (${${a}}), use the correct delimiters in the constructed
5440         variable reference.
5442 Mon Jul  3 18:29:26 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
5444         * compatMakefile: Clear out and redefine the .SUFFIXES list because
5445         silly Sun 4 make defines .cps.h.
5447         * compatMakefile: Fix comment about -DNO_MINUS_C_MINUS_O.
5449         * remake.c: Include <sys/file.h> for O_* on 4.2.
5451         * commands.c: Define sigmask if it's not defined.
5453 Fri Jun 30 07:33:08 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
5455         * remake.c (remake_file): Don't always increment files_remade.
5457         * variable.c (push_new_variable_scope): Zero the new variable hash
5458         table.
5460 Thu Jun 29 17:14:32 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5462         * expand.c (variable_expand): When terminating the variable expansion
5463         buffer, use variable_buffer_output instead of a simply zero store,
5464         because the buffer may need to be enlarged.
5466 Wed Jun 28 16:53:47 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5468         * Version 3.54.
5470         * default.c (default_suffixes): Added `.ln'.
5471         (default_suffix_rules): Changed lint rules to use -C.
5473 Thu Jun 22 20:49:35 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5475         * job.c (start_job): Set `environ' to CHILD->environment before execing
5476         in the child process!
5478 Tue Jun 20 17:23:13 1989  Roland McGrath  (roland at spiff.ai.mit.edu)
5480         * compatMakefile: Put job.h and rule.h in `srcs'.
5482         * Version 3.53.
5484 Mon Jun 19 16:25:18 1989  Roland McGrath  (roland at spiff.ai.mit.edu)
5486         * job.c (start_job): If there are no more commands, return nonzero
5487         under -n or -t.
5489         * compatMakefile (make): Pass `-f' to mv.
5491         * GNUmakefile: If `ARCH' or `machine' is defined, make $(ARCH)/*.o and
5492         $(ARCH)/make instead of *.o and make.
5494         * function.c (string_glob): Don't try to use freed storage!
5496         * read.c (readline): If there is only one byte of space in the buffer,
5497         enlarge the buffer before reading more.
5499         * arscan.c [M_XENIX]: Miscellaneous minor changes for Xenix.
5501 Sun Jun 18 13:07:45 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5503         * GNUmakefile (depend): Split commands into two lines so they won't be
5504         so long when variable-expanded.
5506         * compatMakefile: Documented MINUS_C_MINUS_O meaning.  The line
5507         describing it got removed when the USG/wait stuff was documented.
5509 Sat Jun 17 22:56:54 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5511         * Version 3.52.
5513 Mon Jun 12 17:45:11 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5515         * remake.c (check_dep): Drop circular dependencies instead of fataling.
5516         (update_file_1 already does this.)
5518         * default.c (default_suffix_rules): For .s -> .o, put the -o flag to
5519         the assembler before the source file name.
5521 Sun Jun 11 12:00:52 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
5523         * Version 3.51.
5525         * make.texinfo (Features): Noted 1003.2 requirement of `+' meaning.
5527         * file.c (remove_intermediates): If !SIG, write a single "rm" command
5528         line, listing all files.
5530         * read.c (read_makefile): Don't free the storage for the passed
5531         filename, since it might not be malloc'd.  When doing an included
5532         makefile, free the name's storage.
5533         (read_all_makefiles): Use variable_expand to find the value of
5534         `MAKEFILES'.  Free the storage for the names of -f makefiles.
5535         (read_makefile): Allocate storage for the makefile name in the
5536         `struct file' in read_makefiles.
5538         * make.texinfo (Running: Instead of Execution): Document the effect of
5539         + and $(MAKE)/${MAKE}.
5541         * make.texinfo (Functions: Foreach Function): Document that if the
5542         iteration variable was undefined before the `foreach' call, it will be
5543         undefined after the call.
5545         * commands.c: Split into commands.c, job.h, and job.c.
5547         * rule.c (try_implicit_rule, pattern_search): Moved to new file
5548         implicit.c.
5550         * rule.c: Split into rule.h, rule.c, and default.c.
5551         * default.c (install_default_pattern_rules): Renamed to
5552         install_default_implicit_rules.
5553         * make.h, main.c (main): Renamed uses.
5555         * make.c: Renamed to misc.c.
5557         * make.c (main, log_working_directory, decode_switches,
5558         decode_env_switches, define_makeflags, die, print_version,
5559         print_data_base): Moved to new file main.c.
5561         * commands.c (execute_file_commands): Don't collapse backslash-newlines
5562         here.  When chopping the commands up into lines, don't chop at
5563         backslash-newlines.
5564         (start_job): Collapse backslash-newlines after printing the line.
5566         * commands.c (start_job): Don't collapse backslash-newlines here.
5567         (execute_file_commands): Collapse backslash-newlines before chopping
5568         the commands up into lines.
5570         * commands.c (set_file_variables): Initialize the length counters for
5571         $^ and $? to zero!
5573         * commands.c (start_job): Use vfork instead of fork.  Someone else says
5574         the child and parent DO have separate file descriptors.
5576         * variable.c: Split internals into variable.c, function expansion into
5577         function.c, and variable expansion into expand.c.
5578         * function.c (handle_function): New function to check for a function
5579         invocation and expand it.
5580         * expand.c (variable_expand): Use handle_function.
5581         * variable.c (push_new_variable_scope): New function to push a new
5582         empty variable set onto the current setlist.
5583         (pop_variable_scope): New function to pop the topmost set from the
5584         current setlist and free its storage.
5585         * function.c (expand_function: `foreach'): Push a new variable scope
5586         for the iteration variable and pop the scope when finished.
5587         * variable.h: Declare new functions.
5588         * variable.c (initialize_variable_output): New function to return a
5589         pointer to the beginning of the output buffer.
5590         (save_variable_output): New function to save the variable output state.
5591         (restore_variable_output): New function to restore it.
5592         * expand.c (variable_expand): Use initialize_variable_output.
5593         (allocated_variable_expand): Use {save,restore}_variable_output.
5594         * variable.c (current_setlist): Renamed to current_variable_set_list
5595         and made global.
5597 Sat Jun 10 00:11:25 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5599         * remake.c (library_file_mtime): Check for libNAME.a in the current
5600         directory before doing VPATH search.
5602         * variable.c (print_variable_set): Don't write "# Variables", and write
5603         fewer blank lines.
5604         (print_variable_data_base): Precede the variables with "# Variables".
5606         * make.c (main): Print the data base under -p after doing everything
5607         else, just before exitting.  This way it gets info determined in
5608         updating the goal targets.
5610         * variable.c (print_variable_data_base): Split into print_variable,
5611         which prints one variable, and print_variable_set, which prints a set.
5612         Replaced with a call to print_variable_set for the global set.
5613         (print_file_variables): New function to print a given file's local
5614         variables.
5616         * file.c (print_file_data_base): Call print_file_variables to print
5617         each file's local variables.
5619         * commands.c (set_file_variables): Actually define the values for
5620         the $^ and $? variables!!!
5622         * make.texinfo (Implicit: Pattern Rules: Automatic): Document new D and
5623         F versions of $^ and $?.
5625         * commands.c (start_job): In the child fork, use getdtablesize and a
5626         loop to close all file descriptors other than 0, 1, and 2.  We need to
5627         do this since not only the bad stdin pipe, but also some directories,
5628         may be open.
5630         * commands.c (start_job): Use fork instead of vfork, because a vfork
5631         parent and child share file descriptors, and our child needs to diddle
5632         with stdin.
5634         * variable.c (initialize_file_variables): When created a new variable
5635         set, zero out the hash table.
5637         * variable.c (target_environment): Don't use variables whose names are
5638         not made up of alphanumerics and underscores.
5640         * remake.c (update_file_1): Set the `parent' member of each dependency
5641         to FILE before updating it.
5643         * file.h (struct file): Add `parent' member.
5645         * variable.c (initialize_file_variables): Don't take second arg PARENT.
5646         Use FILE->parent instead.  If FILE->parent->variables is nil, recurse
5647         to initialize it.
5649         * variable.h: Declare {allocated_}variable_expand_for_file.
5651         * variable.c (allocated_variable_expand): Now
5652         allocated_variable_expand_for_file, calling variable_expand_for_file,
5653         and taking second arg FILE.
5654         (allocated_variable_expand): New function, a wrapper around
5655         allocated_variable_expand_for_file, passing a nil second arg.
5657 Fri Jun  9 12:11:45 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5659         * commands.c (start_job): On the child side of the fork, always close
5660         the bad stdin file descriptor.
5662         * commands.c (struct child): New member `environment', to hold the
5663         environment for the child.
5664         (execute_file_commands): Set the new childs `environment' member to nil
5665         before calling start_job.
5666         (start_job): Set up CHILD->environment before running the commands if
5667         it is nil.
5669         * make.c (main): Don't call new_environ.  `shell' functions will now be
5670         run with the environment make was called with.
5672         * commands.c (child_handler): Don't check C->command_ptr before calling
5673         start_job since we now have to check C->file->cmds->command_lines and
5674         it's easier to let start_job handle all that.
5676         * commands.c (struct child): New member `command_line', to hold an
5677         index into file->cmds->command_lines.
5678         (execute_file_commands): Set the new child's `command_line' to 0 and
5679         its `commands' and `commands_ptr' to nil.
5680         (start_job): When CHILD->command_ptr runs out, increment
5681         CHILD->command_line and run the corresponding line from
5682         CHILD->file->cmds->command_lines.  Run it even under -t, -q, or -n if
5683         the CHILD->file->cmds->lines_recurse element for that line is set.
5685         * commands.c (execute_file_commands): Chop CMDS up into lines, setting
5686         its `command_lines' and `lines_recurse' members, if it wasn't already
5687         chopped.
5689         * commands.h (struct commands): New members `command_lines' and
5690         `lines_recurse'.  The first is an array of chopped-up lines; the second
5691         is an array of flags, each nonzero if the corresponding line is
5692         recursive.
5694         * variable.c (variable_expand_for_file): If FILE is nil, just do a
5695         vanilla variable_expand.
5696         (expand_function: `shell'): Pass second arg (as nil) to
5697         construct_command_argv.
5699         * commands.c (construct_command_argv): Use variable_expand_for_file on
5700         `$(SHELL)' and `$(IFS)' instead of lookup_variable to check those
5701         variables.  This handles file-local and recursive values correctly.
5702         To support this, take an additional argument FILE.
5704         * variable.c (initialize_file_variables): New function to initialize
5705         FILE's variable set list from PARENT's setlist.  PARENT is the
5706         immediate dependent that caused FILE to be remade, or nil if FILE is a
5707         goal.  (When user-level per-file variables are implemented, PARENT
5708         should be passed as nil when defining per-file variables.)
5710         * variable.c (variable_expand_for_file): New function to expand a line
5711         using the variable set of a given file, and reporting error messages
5712         for the file and line number of that file's commands.
5714         * variable.h: Don't declare lookup_variable_for_file.
5716         * variable.c (lookup_variable_*): Turned back into lookup_variable.  It
5717         now uses current_setlist.
5718         (global_setlist): New static `struct variable_set_list', a setlist
5719         containing global_variable_set.
5720         (current_setlist): New static `struct variable_set_list *', a pointer
5721         to the current variable set list.
5722         (define_variable): Define in the current top-level set, not the global
5723         set.
5725         * commands.c (set_file_variables): New function to set up the automatic
5726         variables for a file in its own variable set.
5727         (execute_file_commands): Use set_file_variables.
5729         * variable.c (new_environ): Replaced with target_environment, taking an
5730         argument FILE, and returning an environment for FILE's commands.
5732         * variable.c, variable.h: Remove all global special variable pointers.
5734         * variable.c (define_variable_for_file): New function like
5735         define_variable, but takes additional arg FILE, and defines the
5736         variable in the variable set at the top of FILE's chain.
5737         (lookup_variable_for_file): New function like lookup_variable, but
5738         takes additional arg FILE, and looks the variable up in all of FILE's
5739         variable sets.
5741         * file.h (struct file): New member `variables', a `struct
5742         variable_set_list' containing the list of variable sets used in the
5743         expansion of the file's commands.
5745         * variable.c (variables): Replaced with static `struct variable_set'
5746         global_variable_set.
5747         (define_variable): Now define_variable_in_set, taking additional
5748         argument SET, the `struct variable_set' to define it in.
5749         (define_variable): Use define_variable_in_set with global_variable_set.
5750         (lookup_variable): Now lookup_variable_in_set, taking additional
5751         argument SET, the `struct variable_set' to look it up in.
5752         (lookup_variable): Use lookup_variable_in_set with global_variable_set.
5753         (lookup_variable_in_setlist): New function to look up a variable in a
5754         `struct variable_set_list' using lookup_variable_in_set.
5756         * variable.h (struct variable_set): New structure, containing a hash
5757         table and the number of hash buckets.
5758         (struct variable_set_list): New structure, containing a link for a
5759         linked-list, and a `struct variable_set'.
5761         * commands.c (start_job): Under -n, return what the recursive start_job
5762         call returns, since it might actually start a child.
5764         * make.texinfo (Rules: Wildcards): Document ~ and ~USER expansion.
5766         * commands.c (execute_file_commands): If start_job returns
5767         failure, but -t is set, set FILE->update_status to success.
5768         (start_job): If -t is set, and the commands are not recursive, return
5769         failure (is is done for -q).
5771         * remake.c (touch_file): New function to touch FILE.
5772         (remake_file): Use touch_file.  When touching a file, still do
5773         execute_file_commands.
5775         * remake.c (remake_file): Don't check question_flag (-q), since we
5776         can't know here if the commands are recursive.
5778         * commands.c (start_job): Don't use the `recursive' member of
5779         CHILD->file->cmds.  Instead, check for leading +s and $(MAKE) or
5780         ${MAKE} in the command line here.
5782         * commands.h (struct commands): Remove `recursive' member.
5784         * rule.c (install_default_pattern_rules): Remove use of `recursive'
5785         member.
5787         * read.c (record_files): Don't check commands from $(MAKE) and set
5788         their `recursive' member.
5790         * commands.c (fatal_error_signal): Treat SIGQUIT like SIGINT, SIGHUP,
5791         and SIGTERM, but don't send it to ourselves because it will cause a
5792         core dump.
5794 Thu Jun  8 20:30:04 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5796         * Version 3.50.
5798         * variable.c (variable_expand): Use allocated_variable_expand instead
5799         of expand_argument in a few places.
5801         * variable.c (allocated_variable_expand): Do static variable shuffling
5802         here instead of using expand_argument.
5803         (expand_argument): Use allocated_variable_expand.
5805         * variable.c (recursively_expand): New function to recursively expand
5806         its argument (a `struct variable'), returning the malloc'd value.
5807         (variable_expand): Use recursively_expand.
5809 Sun May 28 12:49:27 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
5811         * make.c (main): Fixed buggy fix in deciding to increase space for
5812         command-line variable definitions.  (First it never did it, then it
5813         always did it; now it does it when necessary.)
5815 Sat May 27 14:01:54 1989  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
5817         * make.c (main): Fixed bug in deciding to increase space for
5818         command-line variable definitions.
5820 Fri May 26 15:48:01 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5822         * read.c (multi_glob): Use allocated_expand_variable for checking
5823         `HOME' variable for ~ expansion, since this may be called from inside a
5824         `wildcard' function expansion.
5826         * variable.h: Declare allocated_expand_variable.
5828         * variable.c (allocated_expand_variable): New function to do variable
5829         expansion in an allocated buffer, rather than the static one.
5831         * make.c (main): Don't set glob_tilde (it no longer exists).
5833         * variable.c (string_glob): Use multi_glob and parse_file_seq.
5835         * read.c (multi_glob): Do ~ expansion here.
5837         * glob.c (glob_tilde, glob_filename): Removed ~ expansion.
5839         * variable.c (define_variable, lookup_variable): Use a smarter hashing
5840         algorithm (the same one used for files and directories).
5841         (VARIABLE_BUCKETS): Increased to 523.
5843         * file.c (enter_file, lookup_file, rename_file): Use a smarter hashing
5844         algorithm, spreading the bits about somewhat.
5846         * make.c (log_working_directory): Under `-p', precede the directory
5847         message with a `#'.
5849         * make.c (print_version): Under `-p', precede each line with a `#'.
5850         (print_data_base): Precede the header line with a `#' and include the
5851         date and time on it.
5853         * vpath.c (print_vpath_data_base): Precede non-directive
5854         lines with `#'s.
5856         * commands.c (print_commands): Precede the non-command line with a `#'.
5858         * rule.c (print_rule_data_base), file.c (print_file_data_base): Precede
5859         non-rule lines with `#'s.
5861         * dir.c (print_dir_data_base): Precede all lines with `#'s.
5863         * variable.c (print_variable_data_base): Changed format so that it can
5864         be makefile input.  Lines that are not variable definitions are
5865         preceded with `#'.  Nonrecursive variable definitions are made with all
5866         dollar signs doubled to reproduce the initial value.  Recursive
5867         variable definitions containing newlines are done with `define'
5868         directives.  Nonrecursive variable definitions containing newlines, and
5869         variable names containing :, =, or newlines, will come out garbled.
5871 Wed May 24 00:20:04 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5873         * Version 3.49.
5875 Tue May 23 19:18:00 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5877         * variable.c (expand_function: `filter'/`filter-out'): Use
5878         find_percent instead of pattern_p.
5880         * variable.c (expand_function: `patsubst'): Pass new args (both nil)
5881         to patsubst_expand.
5882         (variable_expand): For $(var:pat%=rep%) references, pass new args to
5883         patsubst_expand so as to avoid find_percent and thus disallow
5884         quoting the %s.
5886         * read.c (record_files): Pass new args to patsubst_expand.
5888         * variable.c (patsubst_expand): Take two new args: PATTERN_PERCENT
5889         and REPLACE_PERCENT.  Each of these, if non-nil, means that PATTERN
5890         (or REPLACE) has already been run through find_percent, and
5891         PATTERN_PERCENT (or REPLACE_PERCENT) is the result.
5893         * make.h: Declare find_percent instead of pattern_p.
5895         * read.c (pattern_p): Changed to find_percent, returning a pointer
5896         to the %, or nil if there is none.
5897         (record_files): Take another arg, PATTERN_PERCENT, a pointer to the
5898         % in PATTERN.
5899         (read_makefile): Pass PATTERN_PERCENT to record_files.
5901         * make.texinfo (Rules: Static Pattern: Static Usage,
5902         Rules: Directory Search: Selective Search,
5903         Functions: Text Functions): Documented that `%' can be quoted.
5905         * variable.c (expand_function: `filter'/`filter-out'): Use pattern_p
5906         to allow quoted %s in patterns.
5908         * variable.c (patsubst_expand): Use pattern_p on PATTERN and REPLACE
5909         to allow quoted %s.  Quoting backslashes are removed from REPLACE
5910         even if PATTERN contains no unquoted %.
5912         * read.c (pattern_p): Made global.
5913         * make.h: Declare pattern_p.
5915         * read.c (pattern_p): New function to search for an unquoted % in a
5916         string.  Backslashes quote %s and backslashes.  Quoting backslashes
5917         are removed from the string by compacting it into itself.  Returns
5918         nonzero if an unquoted % was found, zero if not.
5919         (record_files): Use pattern_p to check for implicit rules.
5920         (read_makefile): Use pattern_p to check for static pattern rules.
5921         Also use it to allow quoted %s in `vpath' patterns; warn about
5922         `vpath' patterns with no %s.
5924 Mon May 22 16:31:52 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
5926         * glob.c (glob_filename): Replace a `1' with the `l' that should
5927         have been there.  This incidentally stops it from dumping core.
5929         * glob.c (glob_filename): If the path is just a directory, with no
5930         file name pattern, return the directory alone.
5932         * glob.c (glob_tilde): New global variable (int), defaults to zero.
5933         (glob_filename): If glob_tilde is nonzero, expand ~ or ~USER.
5935         * variable.c (string_glob): Keep a static allocated buffer for file
5936         names taken from the list, instead of allocating and freeing one
5937         every time.
5939 Fri May 19 18:06:26 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5941         * make.c (decode_switches): Get floating numbers from the right string.
5943 Sun May 14 13:48:04 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
5945         * commands.c (delete_child_targets): When deleting `also_make'
5946         files, include the target's name in the message:
5947                 make: *** [foo] Deleting file `bar'
5949 Sat May 13 17:34:26 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
5951         * make.c (max_load_average, default_load_average): Default to -1.
5953         * load.c (wait_to_start_job): Return if max_load_average is < 0.0,
5954         not equal.
5956 Fri May 12 16:08:05 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
5958         * variable.c (variable_buffer_output): Don't try to do pointer
5959         arithmetic between objects not in the same array.
5961 Wed May 10 15:55:29 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5963         * rule.c [M_XENIX] (default_suffix_rules, default_variables): Minor
5964         changes to allow for strange compiler syntax.
5966         * rule.c (default_variables): Don't include "> $@" in
5967         $(PREPROCESS.S), since it's already in the .S.s rule.
5969         * file.c (enter_file): Make a new double-colon file the `prev'
5970         member of the bottom `prev' file (the one whose `prev' is nil).
5972         * read.c (do_define): Append newlines after copying the lines into
5973         the value buffer, so we end up with a trailing newline.
5975         * make.c (print_version): If the global variable
5976         `remote_description' is not nil or "", append "-%s" (its value) to
5977         the version number.
5978         * remote-*.c: Define remote_description appropriately.
5980 Sun May  7 15:15:53 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5982         * commands.c (error_status): Converted to new function child_error,
5983         taking new arguments TARGET_NAME and IGNORED, and writing an error
5984         message: "*** [target] Error 1" (or signal #, etc.), appending
5985         " (ignored)" if IGNORED is nonzero.
5986         (child_handler): Use child_error instead of error_status.
5988         * compatMakefile (all): Don't depend on `doc'.
5990         * compatMakefile (clean): Don't remove make-info*.
5991         (realclean): New rule, depends on `clean', removes tags, TAGS,
5992         and all Info and TeX files.
5994 Thu May  4 17:00:46 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5996         * variable.c (print_variable_data_base), file.c
5997         (print_file_data_base), rule.c (print_rule_data_base),
5998         Use floating-point for averages and percentages.
6000         * make.c (print_data_base): Print messages before and after the data
6001         base information.
6003         * commands.c (print_commands): Changed output format to separate
6004         lines in commands and prefix them with tabs.
6006         * dir.c (print_dir_data_base): Changed output format slightly.
6008         * vpath.c (struct vpath, construct_vpath_list,
6009         selective_vpath_search): Remove the `exists' member and its uses.
6011         * vpath.c (print_vpath_data_base): New function to print all
6012         selective and general VPATH search paths (for -p).
6014         * make.c (print_data_base): Call print_vpath_data_base.
6016         * file.c (print_file_data_base): Changed format to look more like a
6017         makefile rule.  Now reports all information in the `struct file'.
6019         * rule.c (print_rule_data_base): Changed format of display from:
6020           %: (terminal)
6021            depends on: RCS/%,v
6022         to:
6023           %: RCS/%,v
6024             is terminal.
6025             references nonexistent subdirectory.
6026         Also include number and percent that refer to nonexistent
6027         subdirectories.
6029 Thu Apr 27 15:45:40 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6031         * make.c (main): Figure out the level of recursion before writing
6032         the `Entering directory' message.
6033         * variable.c (define_automatic_variables): Don't figure out the
6034         level of recursion from `MAKELEVEL'.  It's now done in main.
6036         * Version 3.48.
6038 Wed Apr 26 16:39:17 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6040         * commands.c (child_handler): Set `update_status' to zero when there
6041         are no more commands.
6043         * make.c (log_working_directory): If MAKELEVEL > 0, indicate the
6044         recurson in the message (make[1]: ...).
6046         * commands.c (child_handler): Change status to `cs_finished' when
6047         commands fail.
6049         * commands.c (start_job): Return 0 (success) if there were no more
6050         commands for the child.
6051         (child_handler): Change the status to `cs_finished' when start_job
6052         fails to start the commands.
6054         * make.c (main): Don't handle SIGEMT if it's not defined.
6055         Do handle SIGDANGER if it is defined.
6057         * commands.c (child_handler): Reorganized inner loop so that it
6058         doesn't try to inspect the child before finding it.
6060 Tue Apr 25 16:28:24 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6062         * make.c (end_of_token): Fixed bug wherein backslashes caused
6063         immediate return.
6065         * Version 3.47.
6067         * make.texinfo (Implicit: Pattern Rules: Automatic): Document
6068         setting of `$*' for explicit rules.  Add note clarifying that
6069         automatic variables, though referred to in the documentation as
6070         `$<', etc. are no different than `$(<)', etc.
6072 Fri Apr 21 18:00:12 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6074         * file.c (enter_file): Don't strip leading `./'s.
6076         * read.c (parse_file_seq): Strip leading `./'s.
6078 Thu Apr 13 17:26:41 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6080         * make.texinfo (Commands: Parallel, Running: Options): Document that
6081         -l with no argument removes a previous load limit.
6083         * make.c (struct command_switch): New member `default_value'.
6084         (default_job_slots): Default value (of 1) for -j.
6085         (default_load_average): Default value (of 0, unlimited) for -l.
6086         (command_switches): Use default values for -j and -l.
6087         Also, -l without an arg now means no load limit.
6088         (define_makeflags): Don't write positive_int or floating options
6089         whose values are their defaults.
6091         * make.c (main): Under -w, write a `Leaving directory' message
6092         before re-execing.
6094 Tue Apr 11 16:46:29 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6096         * Version 3.46.
6098         * Makefile: Provide an easy place for system-specific definitions
6099         (-DUSG, etc.) and extra object files (for whatever).
6101         * make.texinfo: Miscellaneous fixes from RMS.
6103 Mon Apr 10 19:31:34 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6105         * rule.c (pattern_search): Put rules with `subdir' flags set in
6106         TRYRULES, since these might be valid with VPATHs.  In the TRYRULES
6107         loop, don't do lookup_file or file_exists_p calls for dependencies
6108         of rules with `subdir' flags set, but still do vpath_search calls
6109         and intermediate-file searches.
6111 Thu Apr  6 16:33:00 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6113         * make.texinfo (Implicit: Pattern Rules: Automatic): Document the
6114         new definition of $* for explicit rules.
6116         * commands.c (execute_file_commands): If FILE->stem is nil, figure
6117         out if FILE->name ends in a suffix in the .SUFFIXES list; if so,
6118         store the name sans suffix in FILE->stem (and $*).
6120 Wed Apr  5 15:24:48 1989  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
6122         * file.c (remove_intermediates): Don't use `file_exists_p' to check
6123         for the existence of intermediate files, because the hashed
6124         directories will probably be out of date.
6126         * commands.c (child_handler): Free the good stdin before running the
6127         next command line.
6129         * commands.c [USG] (init_siglist): Don't case SIGEMT if it's not
6130         defined.  Do case SIGDANGER (for IBM RT) if it is defined.
6132         * commands.c: Changed `SYS_WAIT' to `HAVE_SYS_WAIT'.
6133         (child_handler): Use `wait3' if HAVE_SYS_WAIT is #defined.
6135         * file.c (enter_file): If any `./'s are stripped off, allocate a new
6136         copy of the shortened name.
6138         * rule.c (pattern_search): Allocate the right length strings for
6139         `also_make' members.
6141 Sat Apr  1 13:28:38 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6143         * Version 3.45.
6145         * GNUmakefile: Make a separate tarfile of the DVI and info files.
6147         * make.c (define_makeflags): If a switch that takes an argument has
6148         its default value, put the switch in MAKEFLAGS with no arguments.
6150         * make.c (command_switches): Pass `-l' in MAKEFLAGS.
6152 Wed Mar 29 17:50:05 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6154         * GNUmakefile: Don't include the DVI and info files in the dist.
6156         * commands.c (child_handler): Don't call
6157         check_changed_{directories,vpaths}.
6159         * make.h: Don't declare check_changed_{directories,vpaths}.
6161         * vpath.c (check_changed_vpaths): Removed this function.
6163         * dir.c (struct directory): Remove `modtime' member.
6164         (find_directory): Don't set `modtime' member.
6165         (check_changed_directories): Removed this function.
6167         * remake.c (update_file_1): Set FILE->command_state to cs_finished
6168         if it didn't need to be remade.
6170         * remake.c (update_file): Only write the "up to date" message if the
6171         target went from `not_started' state to `finished' state without
6172         incrementing the count of files remade.
6174         * commands.c [USG] (init_siglist): If both SIGCHLD and SIGCLD are
6175         defined, don't put them both in the `switch'.
6177 Tue Mar 28 15:37:02 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6179         * file.c (rename_file): Change FILE's name!!!
6181         * rule.c (create_pattern_rule): Set the `terminal' member of the new
6182         rule after calling new_pattern_rule, which zeros it.
6184         * rule.c (default_variables): Use $(C++) in $(COMPILE.cc)!
6186 Sun Mar 26 15:52:30 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6188         * Makefile: Added a `clean' target.
6190 Fri Mar 24 15:08:46 1989  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
6192         * Version 3.44.
6194         * file.c (rename_file): If a `struct file' for the renamed-to name
6195         exists, and it is a target or has deps or commands, barf.
6196         If not just remove the old one for put in the new one.
6198         * remake.c (update_file_1, check_dep): Changed it back so that equal
6199         modtimes to NOT make dependencies be considered newer.  RCS checks
6200         out files with equal modtimes as the RCS files, so this screws it.
6202         * make.h, glob.c: If __GNUC__ is defined, use __builtin_alloca.
6204         * Makefile: Use variables `ALLOCA' and `ALLOCASRC' so systems
6205         without a good standard alloca can get it from the Emacs
6206         distribution (or somewhere).
6208         * dir.c: Don't include <sys/stat.h>, since make.h does.
6210         * make.c: Removed debugging version of getwd.
6212 Thu Mar 23 16:16:27 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6214         * Version 3.43.
6216         * remake.c (update_file_1): If a dependency loop is found, don't
6217         fatal.  Emit an error message and remove the dependency.
6219         * remake.c (library_file_mtime): Fixed to use the right names.
6220         (update_file_1, check_dep): Consider a dependency "newer" than its
6221         dependent if they have the same modification time.
6223 Wed Mar 22 19:31:35 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6225         * file.c (remove_intermediates): Don't try to remove nonexistent files.
6227 Mon Mar 20 10:21:22 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6229         * Version 3.42.
6231         * rule.c (default_variables): Set F77 to $(FC) and F77FLAGS to
6232         $(FFLAGS) so explicit rules expecting these (which are in System V)
6233         will work.  However, there is no way to make setting these affect
6234         the implicit rules, unless we trash FC and FFLAGS (which BSD uses).
6235         [USG]: Set GET to `get' rather than `/usr/sccs/get'.
6237 Sun Mar 19 20:00:27 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6239         * vpath.c (construct_vpath_list): Don't replace VPATH[ELEM] with
6240         dir_name (V), because the latter may get freed.
6242 Sat Mar 18 15:01:39 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6244         * Version 3.41.
6246         * make.texinfo: Cleaned-up edition 0.1 Beta from RMS and Bob Chassell.
6248         * file.c (rename_file): If a file with the new name already existed,
6249         use the same storage space, after freeing the old file's name, deps,
6250         and `also_make' member, preserving the link in the chain.
6251         Also write an error message telling the user to report the incident;
6252         I don't think this should be able to happen, but I'm not sure.
6254         * file.c (rename_file): Don't add the hash values of the old and new
6255         names together!  Reset HASHVAL before computing the second value.
6257         * dir.c (check_changed_directories): Zero the new file hash table
6258         after allocating it.
6260         * dir.c (dir_file_exists_p): If FILENAME is "", return 1 if the
6261         directory exists.
6263         * vpath.c (check_changed_vpaths): New function to run through the
6264         search paths of all VPATHs, making the `exists' members correspond
6265         to reality.
6267         * commands.c (child_handler): Call check_changed_vpaths.
6269         * make.h: Declare check_changed_vpaths.
6271         * vpath.c (struct vpath): New element `exists', an array of char
6272         flags; exists[N] is nonzero if searchpath[N] exists.
6273         (construct_vpath_list): Set the `exists' member.
6274         (selective_vpath_search): Don't search directories whose `exists'
6275         elements are zero.
6277         * read.c (read_makefile): Set the `dontcare' flag of makefiles
6278         from the MAKEFILES variable if they were not mentioned anywhere but
6279         in the MAKEFILES variable.
6281         * read.c (read_makefile): Don't write an error message if fopen
6282         fails for a makefile from the MAKEFILES variable.
6284         * dir.c (struct directory): Add `modtime' member to record the
6285         modification time of the directory when it was opened.
6286         (check_changed_directories): New function to check all known
6287         directories; if their modtimes have changed since they were opened,
6288         their file tables are cleared and they are reset to be read in.
6290         * commands.c (child_handler): Call check_changed_directories before
6291         returning.
6292         make.h: Declare check_changed_directories.
6294 Tue Mar 14 20:07:13 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6296         * Version 3.40.
6298         * make.c (print_version): Made the copyright say 1988, 1989.
6300         * read.c (read_all_makefiles): Don't set *MAKEFILES to the name of
6301         the end of the read_makefiles chain, since the latter may be from an
6302         included makefile.  (Why did I do this before?)
6304         * make.c (main): Set argv[0] to "" if it was nil.  Don't put the
6305         command-line variable definitions into argv[0], only into the MAKE
6306         variable!
6308 Sun Mar  5 20:44:08 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6310         * ar.c (ar_member_date, ar_touch): Remove the trailing ) from the
6311         member name.
6313 Fri Mar  3 18:15:15 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6315         * commands.c (construct_command_argv): Initialize NEW_ARGV to 0.  At
6316         `slow' label, if NEW_ARGV is not 0, free it; then allocate 4 strings.
6318 Tue Feb 28 14:29:39 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6320         * Version 3.39.
6322         * COPYING, make.texinfo: New GNU General Public License, version 1.
6324         * *.c, *.h, Makefile: New copyright notices for the new GNU General
6325         Public License, version 1.
6327         * commands.c [USG]: Define WRETCODE correctly (again).
6329         * variable.c (expand_function: `shell'): Don't capture the standard
6330         error output of the shell command.
6332         * ar.c (ar_touch, ar_member_date): Allocate MEMNAME with the right
6333         length.
6335         * load.c [not UMAX] (load_average): Don't clobber the first nlist
6336         member when trying to set the second!
6338 Thu Feb 23 13:13:53 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6340         * commands.c (child_handler): Really ignore errors under -i and for
6341         - lines, don't just print a different message.
6343         * make.c (decode_switches): Fixed handling of arguments (or lack
6344         thereof) to switches.
6346 Wed Feb 22 16:25:39 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6348         * commands.c (construct_command_argv): Don't clobber LINE when
6349         checking the IFS variable.
6351 Sun Feb 19 11:17:07 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6353         * load.c [UMAX, not NO_LDAV] (load_average): Return 0.0 rather than
6354         randomness when calls fail.
6356         * Version 3.38.
6358         * commands.c (fatal_error_signal): If handling a user kill signal
6359         (TERM, INT, HUP), wait for the children without printing the
6360         "Waiting for children" message, since they will die quickly.
6362         * Version 3.37.
6364         * remote-stub.c (remote_status): Take another arg, BLOCK.  If this
6365         is nonzero block waiting for remote children.  If not, return 0 if
6366         we would have to block.
6368         * commands.c (child_handler) [not USG]: If called as a signal
6369         handler, use wait3 and don't block.
6370         [USG]: If called as a signal handler, return after handling one child.
6372 Sat Feb 18 13:37:04 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6374         * file.c (snap_deps): Process all double-colon entries of each file,
6375         not just the first one.
6377         * Version 3.36.
6379         * remote-stub.c: remote.c renamed.
6380         remote.c: Just include remote-stub.c
6382         * commands.c (child_handler): If we were called as a signal handler,
6383         return after handling one child.
6385         * commands.c [not USG]: Include <signal.h> and define `sigmask' if
6386         <signal.h> doesn't.
6387         (block_children, unblock_children): Use sigmask rather than
6388         bitshifting explicitly (and incorrectly).
6390         * remote.c (remote_kill): New function to send a signal to a
6391         remote child.
6393         * commands.c (fatal_error_signal): If we get a SIGTERM, send one to
6394         each living child.  If we get a SIGTERM, SIGINT, or SIGHUP, delete
6395         all pending targets before waiting for children.
6396         (struct child): Add new member `deleted'.
6397         (start_job): Initialize `deleted' member to 0.
6398         (delete_child_targets): New function to delete a given child's
6399         targets, unless the `deleted' flag in the `struct child' says they
6400         have already been deleted.  Sets this flag before returning.
6402 Thu Feb 16 18:32:07 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6404         * commands.c [USG]: Define `WRETCODE' correctly (X & 0xff00).
6406 Tue Feb 14 16:05:00 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6408         * commands.c (construct_command_argv): Don't make the 0th element of
6409         the argument list be "sh" when executing /bin/sh, because start_job
6410         uses the 0th element as the program name.
6412 Sun Feb 12 17:42:05 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6414         * Version 3.35.
6416         * read.c (readline): Put a null in the beginning of the buffer
6417         before starting the reading loop.
6419         * read.c (read_makefile): Made main reading loop while
6420         !feof (infile), and removed EOF check after calling readline.
6422 Sun Feb  5 19:52:38 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6424         * remote.c (block_remote_children, unblock_remote_children): New
6425         (stub) functions to block and restore asynchronous notification of
6426         remote child death.
6428         * commands.c (block_children): Call block_remote_children.
6429         (unblock_children): Call unblock_remote_children.
6430         (child_handler): If called as a signal handler, block remote
6431         children on entry and unblock them before returning.
6433         * commands.c (child_handler): For unknown children, if they are
6434         remote, give their remote ID; if local, give their PID and make's.
6436         * commands.c (execute_file_command): Don't put a new child in the
6437         chain unless start_job succeeds.  Block children before calling
6438         start_job, and unblock them after putting the child in the chain and
6439         incrementing `job_slots_used' (if start_job succeeded).
6441         * commands.c (block_children, unblock_children): Make these globally
6442         visible (not `static').
6443         commands.h: Declare block_children and unblock_children.
6445         * variable.c (expand_function: `shell'): Use
6446         `shell_function_completed'.  Block children before forking and
6447         unblock after `shell_function_pid' is set properly and
6448         `shell_functon_completed' is reset to 0.
6450         * commands.c (child_handler): When the child of the `shell' function
6451         completes, set `shell_function_completed' to 1 if it actually ran,
6452         or -1 if it didn't (due to fork or exec failure).
6454         * commands.c (block_children, unblock_children): New functions to
6455         block and unblock the child termination signal.
6456         (wait_for_children): Use block_children and unblock_children.
6457         (execute_file_commands): Block children around the critical section
6458         wherein a new child is put on the chain.
6460         * make.c (main): Change the environment to contain the correct
6461         MAKELEVEL before re-execing.
6463 Sat Feb  4 18:28:48 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6465         * Version 3.34.
6467 Fri Feb  3 16:36:49 1989  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
6469         * rule.c (default_variables): Fixed $(LINK.c).
6471 Wed Feb  1 18:05:07 1989  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
6473         * Version 3.33.
6475         * version.c: Removed copyright notice, since this is a one-line file.
6477         * commands.c (error_status): Made it return BUF, rather than running
6478         off the end (this apparently worked on Sun 3s for some reason).
6480         * ar.c, commands.c, dep.h, load.c, make.c, make.h, read.c, remake.c,
6481         rule.c, variable.c, Makefile: Changed copyrght notices to cover 1989.
6483 Mon Jan 30 15:51:28 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
6485         * Version 3.32.
6487 Fri Jan 27 20:09:24 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6489         * remake.c (remake_file): Don't touch phony targets.
6491         * rule.c (convert_to_pattern): Fixed an incorrect length passed to
6492         savestring.
6494         * variable.c (expand_function: `shell'): Close the read side of the
6495         pipe on the parent side of the fork.
6497         * commands.c (start_job): On the child of the fork, close the
6498         BAD_STDIN fd if we're not using it.
6500         * read.c (record_files): A file beginning with a dot can be a
6501         default target if it also contains a slash (as in `../foo').
6503         * commands.c (wait_for_children): For BSD, block SIGCHLD rather than
6504         ignoring it to avoid a race condition when child_handler is returning.
6506         * commands.c (child_handler): Do blocking waits.
6507         (error_status): Return a string describing exit status.  (Split out
6508         of child_handler).
6510         * read.c (multi_glob): Change VECTOR to VEC for Alliant.
6512 Thu Jan  5 00:06:51 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
6514         * Version 3.31.
6516         * make.texinfo (Features): Noted $(foo:PAT=SUB) from SunOS 4.0.
6518         * make.texinfo (Options/Recursion): -d and -p go in the environment.
6520         * load.c: Include "commands.h".
6522 Wed Jan  4 17:49:25 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
6524         * make.c (switches): -d and -p can come from the environment and are
6525         put into it.
6527         * read.c (record_files): Fixed the checking for duplicate deps so it
6528         doesn't clobber the first one.
6530         * make.texinfo: Documented default implicit rule changes.
6532         * rule.c: Revamped default suffix rules.  They now use Sun's style
6533         of using variables `COMPILE.c', `LINK.c', etc. for each suffix, and
6534         use `TARGET_ARCH' and `TARGET_MACH' variable where appropriate.
6535         Also support Modula-2 compilation (suffixes .sym, .def, and .mod).
6536         Ratfor Yacc support is gone, since nobody has yacc -r.
6537         All EFL support is gone, since nobody uses EFL.
6539         * ar.c, arscan.c: Don't assume `long int' and `int' are the same.
6541         * commands.c [USG]: Fixed wait status bit encoding.
6542         [USG and not USGr3] (dup2): Define this for SysVr2.
6544         * make.h, dep.h, make.c [iAPX286]: Make allowances for this
6545         brain-damaged compiler.
6547         * make.texinfo (Variables: Flavors): Fixed a typo.
6549 Tue Jan  3 18:09:31 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
6551         * ar.c (ar_member_date, ar_touch): Truncate member names to 15 chars.
6553         * Version 3.30.
6555         * commands.c [SYS_WAIT]: If this is defined, use BSD <sys/wait.h>
6556         and wait3 even if USG.
6558         * read.c (record_files): Defining .DEFAULT with no deps or commands
6559         clears its commands.
6561         * rule.c (default_suffixes): Added `.sh'.
6562         (default_suffix_rules): Added single-suffix .sh rule, copies source
6563         to target and makes target executable.
6564         make.texinfo (Catalogue of Rules): Documented .sh rule and its use
6565         in conjunction with SCCS.
6567         * rule.c (set_default_suffixes): Define variable `SUFFIXES' to the
6568         default list ("" under -r).
6569         make.texinfo (Suffix Rules): Document `SUFFIXES' variable.
6571         * rule.c (default_variables), make.texinfo (Implicit Variables):
6572         Variable AR defaults to `ar', ARFLAGS to `rv', and RM to `rm -f'.
6574         * rule.c (install_default_pattern_rules): Default variables are made
6575         recursive.
6576         (default_variables): Added "CPP", defined to "$(CC) -E".
6577         (default_suffixes): Added `.S', before `.s'.
6578         (default_suffix_rules): New rule for .S to .s, runs CPP.
6579         All rules that use CPP now include "$(CPPFLAGS)".
6580         make.texinfo (Catalogue of Implicit Rules, Implicit Variables):
6581         Documented above changes.
6583         * commands.c [USG] (sys_siglist): Don't define.
6584         [USG] (init_siglist): New function to initialize sys_siglist.
6586         * make.texinfo (Variables: Reference): Documented `$(foo:PAT=SUB)'
6587         references.
6589         * variable.c (variable_expand): A reference `$(foo:PAT=SUB)' is
6590         equivalent to `$(patsubst PAT,SUB,$(foo))'.
6592         * variable.c (variable_expand): Free the storage for the expansion
6593         of a recursive variable when it is nod longer needed.
6595         * variable.c (variable_expand): When checking for `$($(foo))', use
6596         lindex so as not to search for the second `$' outside the parens.
6598         * make.c (struct stringlist, main, decode_switches): Changed `index'
6599         member to `idx'.
6601 Sat Dec 24 16:02:32 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6603         * commands.c (wait_for_children [USG]): Handle SIGCLD with SIG_DFL,
6604         rather than SIG_IGN.  Ignoring SIGCLD reportedly makes wait return -1.
6606         * arscan.c [USGr3]: Define PORTAR to 1 (as with sun386).
6607         (ar_scan [USGr3]): Remove trailing slashes from member names.
6609 Thu Dec 22 17:54:05 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
6611         * make.texinfo (Makefiles: Overriding Makefiles): New node
6612         documenting use of .DEFAULT to have one makefile defer unmakeable
6613         targets to another.
6615         * make.texinfo (Implicit: Using Implicit, Implicit: Last Resort):
6616         Mention empty commands and xref node `Empty Commands'.
6618 Wed Dec 21 20:12:40 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6620         * Version 3.29.
6622         * make.c (struct command_switch, command_switches, et al): New
6623         member `noarg_value', if not nil, ptr to value to use if no arg is
6624         given to a switch that would otherwise require one.  The -j option
6625         can now be given w/o an arg, to mean infinite jobs.
6626         * commands.c: If job_slots is zero, infinite jobs.
6628         * read.c (read_all_makefiles, read_makefile): Make makefiles precious.
6630         * make.c (decode_switches): For a positive_int or floating option,
6631         if we moved to the next argument word, but found no argument for the
6632         option, move back to the correct word.
6634         * make.c (decode_switches): If we got any unknown options, die after
6635         processing all arguments.
6637         * GNUmakefile: Moved `include depend' to the end, so the default
6638         goal will be set before then.
6640         * load.c (wait_to_start_job [Unix, UMAX]): Merged into one version
6641         under #ifdef LDAV_BASED.  Only loop while we have jobs running.
6642         Sleep for increasing amounts (increase one second per iteration)
6643         before checking the load average (after the first check).
6644         Get the load average from function load_average.
6645         (wait_to_start_job [not LDAV_BASED]): Always return.
6646         (load_average [UMAX]): Fetch load average for Encore UMAX.
6647         (load_average [not NO_LDAV]): Fetch load average from /dev/kmem.
6648         [not NO_LDAV]: Define LDAV_BASED.
6650 Tue Dec 20 18:54:50 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6652         * Version 3.28.
6654         * commands.c (wait_for_children): Take second arg, ERROR.  If
6655         nonzero, and there are children, print a message on stderr.
6656         (execute_file_commands, fatal_error_signal): Pass second arg.
6657         * make.c (die), remake.c (update_goal_chain), variable.c
6658         (expand_function: `shell'): Ditto.
6660 Sat Dec 17 01:05:38 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6662         * commands.c (start_job): Call wait_to_start_job before forking.
6664         * load.c (load_average): Converted to wait_to_start_job.
6666         * remote.c: New file for remote execution functions.
6667         (start_remote_job_p): Return nonzero if the next job should be run
6668         remotely.
6669         (start_remote_job): Start a remote job and return an ID for it.
6670         (remote_status): Get status of dead remote children.
6672 Fri Dec 16 16:51:07 1988  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
6674         * commands.c (start_job): If start_remote_job_p () returns nonzero,
6675         call start_remote_job to start the job rather than fork and exec.
6676         (child_handler):
6678         * commands.c (execute_file_commands): Moved load average checking to
6679         start_job.
6681         * commands.c (child_handler: USG): Record the pid wait returns.
6683         * load.c (UMAX): Added some #include's needed for UMAX.
6685         * read.c (multi_glob), variable.c (string_glob): Ignore a (char **)
6686         -1 return from glob_filename.
6688         * variable.c (variable_expand): Make sure we don't increment past
6689         the end of the string we were passed.
6691         * variable.c (variable_expand): Terminate the expansion.
6693         * file.c (rename_file): If there is already a file under the new
6694         name, set its contents equal to FILE's (ick).
6696         * variable.c (define_automatic_variables): Pass all the args to
6697         define_variable when defining MAKELEVEL!
6699         * commands.c (execute_file_commands): If max_load_average > 0, and
6700         we have children running, don't start up another child until the
6701         load average goes below max_load_average.
6703         * make.c: New variable `max_load_average'.
6704         (struct command_switch, decode_switches, decode_env_switches):
6705         Handle floating-point (double) args.
6706         (command_switches): Added `-l' switch to set `max_load_average'.
6708         * load.c (load_average): New file and function to return a double
6709         that is the current load average (1.00 scale).
6710         * GNUmakefile, oldMakefile: Pass flags in $(LOAD_AVG) for load.c.
6712 Thu Dec 15 15:22:08 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
6714         * Makefile: Renamed to oldMakefile.
6715         * GNUmakefile: Make Makefile from oldMakefile and depend.
6717         * read.c (read_all_makefiles): When putting the default makefiles in
6718         the read_makefiles chain so they will be remade, put them in the
6719         right order.
6721         * remake.c (update_goal_chain): If MAKEFILES is nonzero, always make
6722         in serial, and return as soon as one goal whose `changed' member is
6723         nonzero  is successfully remade.
6725         * commands.c: Don't include <sys/fcntl.h>.
6727         * commands.c (construct_command_argv): Added ` to sh_chars.
6729         * make.h: Don't declare construct_makeflags.
6731         * make.c (main): Set up MAKEFLAGS and MFLAGS and make an environment
6732         both before and after reading the makefiles, so the makefiles can
6733         use them and possible change them, and later children will get the
6734         right information.
6735         (construct_makeflags): Replaced with define_makeflags (static void),
6736         which defines the two variables.
6737         * variable.c (define_automatic_variables): Don't define MAKEFLAGS
6738         and MFLAGS.
6740 Mon Dec 12 14:40:31 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
6742         * Version 3.27.
6744         * commands.c (child_handler): Reset the handler to ourselves when
6745         called for USG, since it has no safe signals.
6747         * commands.c: For USG, use an int rather than a `union wait' for
6748         wait calls, and dissect it with bitmasks.
6749         (child_handler): No wait3 system call in USG.  Since we can't
6750         protect from hanging, always return immediately if we have no
6751         children we know about and we're not running a `shell' function.
6752         (There is still the danger of hanging waiting for a child that died
6753         without our being notified.)
6755         * remake.c: Include <fcntl.h> instead of <sys/file.h>.  What we need
6756         is really in <fcntl.h>, and while BSD <sys/file.h> includes
6757         <fcntl.h>, USG doesn't.
6759         * make.c (main): Figure out the program name before doing anything
6760         which might need it (in a call to error or fatal).
6762         * dir.c, glob.c: Use `struct dirent' and <dirent.h> for USGr3.
6764         * arscan.c (ar_scan): Added missing & before buf (which is an int)
6765         if SARMAG is not defined (SysV).
6767 Fri Dec  9 18:44:13 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
6769         * Version 3.26.
6771         * dir.c (find_directory, dir_file_exists_p): Keep track of how many
6772         directories we have open and don't let it be more than
6773         MAX_OPEN_DIRECTORIES (currently 10).
6775         * variable.c (expand_function: `foreach'): Use expand_argument
6776         rather than variable_expand so each repetition doesn't clobber the
6777         last!!!
6779 Mon Dec  5 15:58:46 1988  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
6781         * Version 3.25.
6783         * Makefile: Define `install' target.
6785         * GNUmakefile: Don't include GNUmakefile or depend in the
6786         distribution file.
6788 Wed Nov 30 15:53:42 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
6790         * commands.c (execute_file_commands): Don't clobber a null into
6791         random storage if there were no $^ and/or $? words.
6793         * remake.c (check_dep): Set *MUST_MAKE_PTR nonzero if a dependency
6794         doesn't exist.
6796         * ar.c (ar_member_date, ar_touch): Make sure the modtime of the
6797         archive file itself is known before we fetch or change the modtime
6798         of one of its members.
6800         * read.c (read_makefile): Expand variable and function references
6801         before parsing rules so variable can contain special characters
6802         (colons and semicolons).
6804 Sat Nov 26 11:36:31 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
6806         * variable.c (expand_function: `filter', `filter-out'): Fixed so
6807         that filter-out works right.
6809         * variable.c (expand_function: `filter', `filter-out'): Made these
6810         functions use each word of their first argument as a pattern.
6812 Fri Nov 25 10:51:47 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6814         * Version 3.24.
6816         * read.c (record_files): If a target is listed more than once in a
6817         single rule (that defines commands), give a warning message rather
6818         than the counter-intuitive message saying commands were already
6819         defined (in the same place).
6821         * make.c (fatal, error): Made them both take 6 args since there is
6822         at least one error message that need that many.  Too bad vfprintf is
6823         not universal!
6825         * Version 3.23.
6827         * read.c (read_makefile): Moved the construction of the `struct
6828         commands' into record_files.  Call record_files before recursing for an
6829         included makefile so the higher-up will determine the default goal.
6830         (record_files): Take arguments COMMANDS, COMMANDS_IDX and
6831         COMMANDS_STARTED and construct a `struct commands.
6833 Thu Nov 24 14:36:33 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6835         * Version 3.22.
6837         * make.c (main): Made it a fatal error if we can't move back to the
6838         directory we started in before re-execing.
6840         * make.c (main): Get the current directory before doing anything
6841         else, so we know it even if we don't need it for the value of
6842         `MAKE', since we might want it when re-execing.
6844 Wed Nov 23 13:34:44 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
6846         * Version 3.21.
6848         * read.c (record_files): Eliminate duplicate deps in a chain.
6850         * variable.c (expand_function: `sort'): Pass the right number to
6851         qsort, not one less.
6853         * remake.c (remake_file): Always call notice_finished_file if
6854         FILE->command_state == cs_finished.
6856         * commands.c (execute_file_commands): Call notice_finished_file to
6857         set FILE's status correctly when start_job fails (because it's out
6858         of commands or running under -n).
6860 Fri Nov 18 15:31:12 1988  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
6862         * Version 3.20.
6864         * remake.c (update_file_1): Set the `update_status' of FILE to
6865         nonzero and set FILE's `updated' bit if we have decided to give up
6866         on remaking FILE because of errors in the dependencies.
6868         * rule.c (pattern_search): Debugging messages use `dependency' (vs.
6869         `dependent') properly.
6871         * make.texinfo (Conditionals: Conditional Syntax): Function index
6872         entries for `ifndef' and `ifneq'.
6874         * variable.c (define_automatic_variables): Define `MAKELEVEL' to the
6875         decimal number of the makelevel, since it may be malformed or blank.
6877         * remake.c (remake_file): Call notice_finished_file after touching.
6879 Sat Nov 12 19:29:34 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6881         * Version 3.19.
6883         * GNUmakefile (dist): Pass the `-f' flag to compress.
6885         * vpath.c (build_vpath_lists): Check for VPATHS being nil after
6886         constructing the general VPATH list from the `VPATH' variable.
6888 Fri Nov 11 08:02:26 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6890         * make.c (fatal, error): Made error messages for recursive runs be
6891         shorter.
6893 Thu Nov 10 16:51:36 1988  Roland McGrath  (mcgrath at basil.Berkeley.EDU)
6895         * Version 3.18.
6897         * read.c (read_makefile): Made it eat leading spaces and formfeeds
6898         (but not tabs), like it's documented to.
6900         * read.c (read_makefile): Let included makefiles determine the
6901         default goal, as is done by System V Make.
6903 Tue Nov  1 19:03:08 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6905         * variable.c (new_environ): Don't increment VCNT when a variable is
6906         rejected.
6908 Fri Oct 28 16:54:15 1988  Roland McGrath  (mcgrath at basil.Berkeley.EDU)
6910         * Version 3.17.
6912         * rule.c (convert_to_pattern): Don't use the same storage for a name
6913         in two rules since new_pattern_rule may free this storage when a
6914         rule is discarded.
6916         * rule.c (new_pattern_rule): Undid useless change I made Oct 25.
6918 Thu Oct 27 19:17:53 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6920         * Version 3.16.
6922         * GNUmakefile, Makefile: Fixed a typo in a comment.
6923         * Makefile: Removed malloc.o from object file list.
6925         * variable.c: Removed old debugging #define's for xmalloc and
6926         xrealloc so non-ANSI cpp's won't barf.
6928         * make.c (main): Made local array for temp file name static so
6929         compilers that don't do auto aggregate initialization won't barf.
6931         * read.c: Removed static declaration of copy_dep_chain since it is
6932         no longer static.
6934 Tue Oct 25 16:59:30 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
6936         * rule.c (new_pattern_rule): If we threw out the new rule because it
6937         matched an old one and OVERRIDE was zero, don't put the freed
6938         pointer in the chain!
6940 Wed Oct 19 15:07:43 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
6942         * Version 3.15.
6944         * variable.c (expand_function: `sort'): Don't do the sorting and
6945         writing out if there were no words in the first place.
6947         * remake.c (remake_file): Only fail with a "no way to make" message
6948         for a dependency (non-target) file.  If we don't know how to remake
6949         a target file, pretend it was successfully remade and is very new.
6951         * remake.c (remake_file): Don't increment `files_remade' for a
6952         non-target file we don't know how to remake.
6954         * read.c (record_files): Don't die with "both : and :: entries" for
6955         a file whose `is_target' flag is not set.
6957 Tue Oct 18 17:24:11 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6959         * variable.c (expand_function: `patsubst', `subst'): Free the right
6960         things!
6962         * variable.c (expand_function: `subst'): Don't clobber the
6963         pointer to the end of the second arg and then try to use it!!!
6965 Mon Oct 17 16:44:45 1988  Roland McGrath  (mcgrath at catnip.Berkeley.EDU)
6967         * variable.c (expand_function: `patsubst'): Don't clobber the
6968         pointer to the end of the second arg and then try to use it!!!
6970         * variable.c (expand_function: `word' function): Made it parse its
6971         second argument correctly.
6973         * ar.c (ar_touch): Return 1 rather than -1 for on errors.
6975 Sat Oct 15 15:12:16 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
6977         * Version 3.14.
6979         * GNUmakefile: Removed explicit rule for make.dvi since the built-in
6980         implicit rule now works.
6982         * rule.c (default_suffix_rules): Fixed .texinfo.dvi rule yet again
6983         so that it really works, now that parens are counted.
6985         * remake.c (update_file_1): Set FILE's `updated' flag after calling
6986         remake_file if it failed or finished immediately.
6988         * remake.c (update_file): Use the `updated' flag rather than the
6989         command state to decide if a file was fully considered, and
6990         therefore might give an "up to date" message.
6992         * variable.c (expand_function): Made all functions that take more
6993         than one argument count parens of the appropriate flavor in their
6994         args and ignore commands nested in parens.
6996 Fri Oct 14 18:35:00 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6998         * read.c (read_all_makefiles): Pass second arg to read_makefile for
6999         default makefiles.
7001 Thu Oct 13 16:40:08 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7003         * Version 3.13.
7005         * GNUmakefile: Added an explicit rule for make.dvi since the
7006         built-in .texinfo.dvi implicit rule is screwed up.
7008         * rule.c (default_suffix_rules): Added a comment that the
7009         .texinfo.dvi rule does not work because of an ahem, feature of Make
7010         that at some point will be fixed--er, enhanced to alleviate this
7011         difficulty.
7013         * rule.c (default_suffix_rules): Fixed Texinfo -> DVI rule (again).
7015         * make.texinfo (Commands: Execution): Documented new competing for
7016         standard input among children.
7018         * commands.c (struct child): Added `good_stdin' flag to tell if this
7019         child has the stdin that doesn't point into nirvana.
7020         (good_stdin_used): New variable to tell if any child has the good
7021         standard input.
7022         (child_handler): Reset `good_stdin_used' if a dead child's
7023         `good_stdin' flag is set.
7024         (start_job): Give the new child the good standard input if
7025         `good_stdin_used' is no set, and set the child's `good_stdin' flag
7026         appropriately.
7028         * rule.c (default_suffix_rules): Changed Texinfo -> DVI rule to work
7029         better (I hope).
7031         * read.c (read_all_makefiles): Stop reading default makefiles after
7032         one is found.
7034         * read.c (read_makefile): Reset `reading_filename' and
7035         `reading_lineno_ptr' after recursing for an included makefile.
7037         * GNUmakefile: New GNU Make-specific makefile that does everything
7038         Makefile does plus distribution stuff, and doesn't contain any hacks
7039         to try to work with Unix make.
7041         * Makefile: Removed distribution stuff.
7043         * make.c (main): Use mktemp to construct the names of temporary
7044         files used for standard input makefiles.
7046         * make.c (main): Don't turn standard input into a broken pipe.
7048         * commands.c (start_job): Keep two extra file descriptors around: a
7049         good standard input, and a bad one that reads from a broken pipe.
7050         On the child side of the fork, if there are other children, give
7051         this one the broken pipe so they won't compete; if this is the only
7052         one, give it the good standard input.
7054         * make.h: Declare notice_finished_file.
7056         * commands.c (execute_file_commands): Use noticed_finished_file
7057         after waiting for the child when there is only one job slot.
7059         * remake.c (notice_finished_file): New function to re-check mtime's
7060         and such things to be done when commands finish.
7061         (update_file_1): Use notice_finished_file.
7063         * commands.c (child_handler, execute_file_commands): Use new
7064         variable `job_slots_used' to record the number of jobs currently
7065         running, rather than diddling with `job_slots'.
7066         (execute_file_commands): Increment `job_slots_used' before calling
7067         start_job and decrement it on failure to avoid race condition.
7068         If there is only one job slot, wait for the child to finish and
7069         return its status so commands are run in linear order, as if there
7070         were no parallelism.
7072 Wed Oct 12 15:59:03 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7074         * remake.c (remake_file): Don't print a "No way to make" message for
7075         targets whose `dontcare' flags are set.
7077         * read.c (read_all_makefiles): Set the `dontcare' flag of the
7078         `struct file' each default makefile added to the chain.
7080         * file.h (struct file): Add `dontcare' member.
7082         * read.c (read_all_makefiles): When no default makefiles are found,
7083         put the names of all those tried in the `read_makefiles' chain so
7084         they will be updated if possible, giving their `struct dep's'
7085         `changed' members the value of 0 so we won't care if they cannot be
7086         found or remade.
7088         * make.texinfo (Makefiles: Remaking Makefiles): Documented that
7089         default makefiles will be remade if not found.
7091         * read.c (read_all_makefiles): If no default makefiles can be found,
7092         go through the list of default names, trying to make one, stopping
7093         if one is made.
7095         * remake.c (remake_file): Set STATUS to 0 after successfully touching.
7097         * dir.c (file_impossible, file_impossible_p): Don't clobber FILENAME
7098         to "" and then try to to a strcmp on it!!!
7100 Mon Oct 10 16:09:18 1988  Roland McGrath  (mcgrath at cinnamon.Berkeley.EDU)
7102         * make.c (main): Don't do `dir_load (".")'.
7104         * rule.c (count_implicit_rule_limits), vpath.c
7105         (construct_vpath_list): Test the existence of a given directory by
7106         `dir_file_exists_p (DIR, ".")' and assume that if this returns zero,
7107         it means the directory really does not exist.
7109         * dir.c (struct dirdata): Replaced with `struct directory' for
7110         directories, each containing a chain of `struct dirfiles', one for
7111         each file (real or impossible).
7112         (dir_load): Removed.
7113         (find_directory): New function to find the `struct directory' for a
7114         named directory and return it (possibly creating a new one).
7115         (dir_file_exists_p): Read the directory on the fly if its stream is
7116         still valid (and ever was) if the file we're looking for is not
7117         already in the hash tables.
7118         (file_impossible, file_impossible_p, dir_name, print_dir_data_base):
7119         Use the new directory/file scheme.
7121         * make.texinfo: Miscellaneous editorial changes and clarifiactions.
7123         * commands.c (struct child): Remove `environ' member.
7124         (child_handler, start_job, execute_file_commands): Remove use of
7125         `environ' member and new_environ.
7127         * make.c (main): Call new_environ after reading makefiles.
7129         * variable.h: Declare `new_environ' to return void.
7131         * variable.c (new_environ): Put the environment in `environ' and
7132         return void.
7134 Fri Oct  7 15:48:39 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
7136         * Version 3.12.
7138         * Makefile: Don't make the uncompressed tar file.
7140         * variable.c (expand_function: `shell' function): Made it not expect
7141         read to null-terminate the buffer.
7143         * Makefile: Made it use a temporary symlink to . rather than a
7144         temporary directory to make the distribution tar file.
7146 Thu Oct  6 17:52:35 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
7148         * Version 3.11.
7150         * make.texinfo: Fixed a line that got garbaged somehow.
7152 Mon Oct  3 16:14:39 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
7154         * make.c (main): Try to move back to the directory we started in
7155         before re-exec ourself.
7157         * remake.c (update_file_1): A double-colon target with no deps
7158         always needs to be remade.
7160         * remake.c (remake_file): Changed "No way to make" message to say
7161         `target' rather than `file'.
7163 Sun Oct  2 12:50:47 1988  Roland McGrath  (mcgrath at catnip.Berkeley.EDU)
7165         * remake.c (update_file_1): Set FILE->update_status to the return
7166         value of remake_file.
7168         * rule.c (convert_to_pattern): Fixed swapped lengths passed to
7169         xmalloc for source/target suffixes.
7171         * make.texinfo: Documented that MAKEFLAGS and MFLAGS are read in
7172         from makefiles.  Updated the `Features' section a bit.
7174         * make.c (main): Read switches from MAKEFLAGS and MFLAGS variables
7175         after reading in makefiles.
7177         * make.c (main): Put a line "/tmp/foo:;" rather than ".PHONY:
7178         /tmp/foo" in front of temp files made for stdin makefiles.
7180         * remake.c (update_file): Test the state of the right `struct file'
7181         for double-colon files.
7183         * make.c (main): Put a ".PHONY: /tmp/foo" line in front of temp
7184         files made for stdin makefiles so they won't be remade when we
7185         re-exec.  Kludge-o-matic!!
7187         * remake.c (update_goal_chain): Judge files as being finished based
7188         on their `updated' flag, not their state.
7190         * read.c (read_makefile): Don't check for FILENAME being "-".
7191         (read_all_makefiles): Set each element of MAKEFILES to the name put
7192         in READ_MAKEFILES by read_makefile, since read_makefile may free the
7193         storage for the name it is passed, and someone might want to look at
7194         the elements of MAKEFILES again.
7196         * make.c (main): For each `-f' flag with arg `-' (standard input),
7197         read standard input into a temp file and pass the temp file's name
7198         to read_all_makefiles, after making sure it will not be remade.
7200         * make.c (construct_makeflags): Always put out `-j1'.
7202 Sat Oct  1 00:19:59 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7204         * commands.c (execute_file_commands): If commands are nothing but
7205         whitespace, set the state to `cs_finished' before returning 0.
7207         * make.c (decode_switches): Allocate space for args in stringlists
7208         so they can be freed later.
7210         * make.h: Declare `makelevel'.
7212         * variable.c (makelevel): Moved to make.c (and made global).
7214         * make.c (fatal, error): Print the makelevel if it's > 0.
7215         (perror_with_name): Use error rather than calling fprintf directly.
7216         (pfatal_with_name): Use fatal rather than fprintf and die.
7218         * variable.c (new_environ): Don't put default variables (origin
7219         `o_default') into the environment; they just take up space.
7221         * read.c (read_makefile): Don't add FILENAME to the chain of read
7222         makefiles if it's "-" (standard input).
7224         * remake.c (update_goal_chain): Set STATUS correctly when nothing
7225         happens (as well as in all other situations).
7227         * make.c (construct_makeflags): Put a `-' before each switch and
7228         spaces between them.
7230         * Version 3.10.
7232         * commands.c (wait_for_children): Don't check if `children' is nil.
7233         This is the case when waiting for the child of a `shell' function.
7235         * dir.c (dir_load): Don't add a hash-table entry for directory
7236         DIRNAME and filename "" if DIRNAME doesn't exist.
7238         * commands.c (execute_file_commands): Return 0 after start_job
7239         returns 1 (failure) under the -n flag.
7241         * remake.c (remake_file): Set the state to `cs_finished' when not
7242         calling execute_file_commands.
7244         * remake.c (update_goal_chain): Second arg is now MAKEFILES, nonzero
7245         meaning to disable -t, -q, and -n for each target unless the target
7246         was also given on the command-line.
7248         * read.c (read_makefile): Enter the `struct file's for the makefiles
7249         added to the `read_makefiles' `struct dep' chain.
7251         * remake.c (update_goal_chain): Made it not enter the files for the
7252         goals in the chain.  It will already have been done.
7254         * rule.c (convert_to_pattern): Null-terminate the names of targets
7255         and deps of the pattern rules properly.
7257 Fri Sep 30 18:56:20 1988  Roland McGrath  (mcgrath at nutmeg.Berkeley.EDU)
7259         * make.c (main): Call install_default_pattern_rules.
7261         * make.h: Declare copy_dep_chain.
7263         * read.c (copy_dep_chain): Moved to make.c (and made global).
7265         * make.c (main): Call update_goal_chain to update goals.
7266         Update read makefiles and re-exec self if they change.
7268         * remake.c (update_file): Make this function static.
7269         (update_goal_chain): New function to update a `struct dep' chain of
7270         goals, waiting until they are all finished before returning.
7272         * make.h: Don't declare update_file.  Declare update_goal_chain.
7274         * make.c (main): Call snap_deps, etc. that were in read_all_makefiles.
7276         * read.c (find_makefile): Removed this function.
7277         (read_all_makefiles): Don't update makefiles, don't diddle with
7278         pattern rules, don't call snap_deps, etc.  Return a `struct dep'
7279         chain of all makefiles read.
7280         (read_makefile): Now takes two args: FILENAME and TYPE, which is 0
7281         for a normal makefile, 1 for MAKEFILES variable or 2 for an included
7282         makefile.  Add a `struct dep' containing the name of the makefile
7283         (as it was found in the search path for type 2s), and TYPE in the
7284         `changed' member to the global `read_makefiles' chain.
7286         * make.h, rule.c (displace_pattern_rules,
7287         add_displaced_pattern_rules): Removed these functions.
7289         * read.c (read_makefile): Variable-expand the name of an `include'd
7290         makefile before calling find_makefile on it.
7292         * file.c (snap_deps): If the `struct file' for a `struct dep'
7293         already exists, free the `struct dep's `name' member before setting
7294         it to nil (since this info is in the `struct file').
7296         * read.c (copy_dep_chain): Made it copy each name rather than
7297         leaving multiple `struct dep's with the same pointers.
7299 Thu Sep 29 19:08:13 1988  Roland McGrath  (mcgrath at catnip.Berkeley.EDU)
7301         * make.c (decode_switches): Fixed second decode_env_switches call to
7302         use correct length of "MFLAGS" (6, not 5).
7304         * read.c (read_makefile): Don't stop reading when readline returns
7305         zero lines read.  Only stop when the stream reaches EOF.  This makes
7306         it recognize the last line of a makefile without a newline.
7308         * remake.c (remake_file): If we don't know how to make FILE, set its
7309         command state to `cs_finished'.
7311         * remake.c (update_file): Don't write the "up to date" message if
7312         update_file_1 returned a nonzero status.
7314 Wed Sep 28 16:30:07 1988  Roland McGrath  (mcgrath at catnip.Berkeley.EDU)
7316         * commands.c (child_handler): Set the `update_status' member
7317         properly for ignored errors.
7319         * rule.c (convert_to_pattern): Made it not care about if the target
7320         suffix comes before the source suffix in the .SUFFIXES list.
7322         * make.texinfo: Misc editorial changes.
7324         * commands.c (wait_for_children): Return immediately if `children'
7325         is nil (there are no children).
7327 Tue Sep 27 15:33:14 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
7329         * Version 3.09.
7331         * commands.c (struct child): New member `command_ptr' to hold the
7332         current position in the commands.  The `commands' member is never
7333         changed.
7334         (start_job, child_handler, execute_file_commands): Use new method
7335         for `commands' and `command_ptr' members.
7337         * make.c (decode_env_switches): Skip past an invalid letter (instead
7338         of looping forever).
7340         * commands.c (struct child): Add `environ' member to hold the
7341         environment for this child.
7342         (execute_file_commands): Get a new environment from new_environ and
7343         put in the the new `struct child's `environ' member.
7344         (child_handler): When freeing a child, free its `commands' member, the
7345         elements of its `environ' array and its `environ' member itself.
7346         (start_job): Set `environ' to the child's `environ' member before
7347         exec'ing the command.
7349         * variable.h, variable.c (new_environ): Made it return the new
7350         environment, not putting it in `environ'.
7352         * remake.c (update_file): Don't give a "is up to date" message
7353         unless no files were remade and the state went from `cs_not_started'
7354         to `cs_finished', so repeat calls to finish jobs won't get the message.
7356 Mon Sep 26 16:26:08 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
7358         * Version 3.08.
7360         * make.texinfo (Commands: Execution): Documented that children will
7361         be waited for rather than killed.
7363         * commands.c (fatal_error_signal): Wait for children.
7364         (kill_children): Removed this function.
7366         * make.c (main, die): Wait for children to die, don't kill them.
7368         * variable.c (expand_function): Use wait_for_children.
7370         * make.c (main): Use wait_for_children rather than child_handler.
7372         * commands.c (wait_for_children): New function to block waiting for
7373         children, insuring that child_handler is not called recursively.
7374         (execute_file_commands, kill_children): Use wait_for_children.
7376         * commands.c (child_handler): Start up additional commands in a
7377         sequence after an ignored error.
7379         * remake.c (update_file): Don't print "`foo' is up to date" messages
7380         when update_file_1 returns while commands are executing.
7382         * remake.c (update_file_1): Pass the file name to name_mtime, not
7383         the bloody `struct file', dammit!!
7385         * commands.c (child_handler): Print out the "*** ..." error message
7386         when not under -i.  (I somehow forgot this.)
7388         * remake.c (update_file_1): Use name_mtime rather than file_mtime to
7389         re-get the mtime of a file whose commands have finished.
7391         * make.c (command_switches, decode_switches, decode_env_switches):
7392         Make all switches that take string args allow them right after the
7393         switch letter.
7395         * commands.c (child_handler): Check for a child being the `shell'
7396         function's command returning and set the global variable for
7397         expand_function to check.
7399         * variable.c (expand_function): For the `shell' function, instead of
7400         waiting for the child shell ourselves, let child_handler do it and
7401         loop around waiting for something to happen.
7403         * make.c (print_version): Made the copyright year static, not dynamic.
7405         * make.h, make.c: Remove construct_argv function.
7407         * make.c (main): Say "no goal target" instead of "no target".
7409         * make.texinfo (Commands: Parallel): Don't send SIGKILL.
7411         * commands.c (kill_children): Don't send SIGKILL to children that
7412         aren't killed by the first signal.
7414         * make.c (main), commands.c (kill_children): Decide between SIGCHLD
7415         and SIGCLD based on whether or not SIGCHLD is defined, not on USG.
7417         * Makefile: Link make with $(LOADLIBES).
7419         * read.c (construct_include_path): Fixed another bad xrealloc call.
7421         * make.c (decode_switches): Fixed an xrealloc call with no first arg.
7423 Sat Sep 24 01:16:21 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
7425         * Version 3.07.
7427         * remake.c (update_file_1): If deps are running, set state to
7428         `cs_deps_running' and return 0.  If deps are done, run commands.
7430         * commands.c (child_handler): Made it delete non-precious targets
7431         killed by fatal signals.
7433         * make.texinfo: Documented parallelism.
7435 Fri Sep 23 16:52:27 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
7437         * remake.c (update_file_1): Don't return if FILE's state is
7438         `cs_deps_running'.  In that case, we need to run through and check
7439         the states of all our dependencies.
7441         * commands.c (execute_file_commands): Decrement `job_slots' after
7442         starting a new job to run file commands.
7444         * commands.c (start_job): Made it set the state to `cs_running'.
7446         * make.c (main): Fixed usage of `g', `lastgoal', and `goals' in the
7447         goal-making loop.
7449         * commands.c (child_handler): When commands finish, set the
7450         corresponding file's `update_status' and `updated' flags as
7451         appropriate, and reset the modtimes of the file and any `also_make'
7452         files it has.
7454         * remake.c (remake_file): Don't re-set `last_mtime' and set `updated'.
7456         * commands.c (fatal_error_signal): Don't swallow all the children
7457         with a loop around `wait ((union wait *) 0)'!!!
7459         * make.c (struct command_switch): Added `positive_int' type.
7460         (switches): Added -j (job_slots).
7461         (construct_makeflags, decode_switches, decode_env_switches):
7462         Handle`positive_int'-type switches.
7464         * glob.c (glob_vector): Rename local variable `vector' to `VeCtOr'.
7465         This is said to avoid a conflict with some system's global `vector'
7466         variable.
7468         * variable.c (expand_function): Made the `shell' function use
7469         construct_command_argv and do its own child control and piping.
7471         * make.c (main): Turn standard input into a broken pipe after
7472         reading in all makefiles (the last time it will be needed).
7474         * commands.c (struct child): Remove `pipe_fd' member.  We don't use
7475         pipes any more.
7476         (start_job): Return 0 for success, 1 or failure (rather than void).
7477         Don't use pipes.  Don't turn the child's stdin into a broken pipe.
7478         (child_handler): Print "*** Error" messages when necessary.
7479         Die on failed commands when -k was not given.
7480         (execute_file_commands): Check the return of start_job and remove
7481         the child from the chain and return failure if it is nonzero.
7483         * make.c (die): New function to clean up and exit.
7484         (fatal, pfatal_with_name): Use die.
7486 Thu Sep 22 14:27:11 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
7488         * commands.c (struct child): Added `commands', `pipe_fd', and
7489         `noerror' members to keep track of info about a command thread.
7490         (start_job): New function to start a job and update the argument
7491         `struct child' to reflect its status.
7492         (execute_file_commands): Merged run_file_commands back in.
7493         Made it use new start_job function.
7495         * rule.c (freerule): Don't free the `struct commands' of the
7496         discarded rule.  It may be used in more than one place.
7498         * commands.c (execute_command_line): Made it not try to delete the
7499         possibly partly-made file.  The child_handler function will do this.
7500         (fatal_error_signal): Ditto + call kill_children.
7502         * make.h: Declare job_slots.
7504         * make.c (main): Collect goals in a dep chain and run through this
7505         chain waiting for a child, eliminating finished goals, updating all
7506         remaining goals, and quitting if they fail and not -k.
7508         * commands.c (child_handler): If called with SIG < 0, - SIG is the
7509         max number of children to bury.
7511         * commands.c (child_handler): If called with SIG as zero,
7512         block waiting for running children.
7513         (kill_children): Call child_handler with zero rather than SIGCHLD.
7515         * remake.c (update_file_1): Use the `command_state' member of FILE
7516         and its dependencies to determine what commands are running, what to
7517         do, etc.  If commands or dep commands are running when we are
7518         called, return success (0).  If commands finished since the last
7519         time we were called, return their status.
7521         * commands.h: Declare kill_children.
7523         * commands.c: Define `struct child' to keep track of child
7524         processes, with the chain in `children'.
7525         (child_handler): New function to catch child-termination signals
7526         (SIGCHLD, or SIGCLD for USG), store the returned status in the
7527         appropriate structure, take the now-obsolete `struct child' out of
7528         the chain, and free its storage.
7529         (execute_file_commands): Put all of the stuff invloving running the
7530         commands into new function run_file_commands.  Execute_file_commands
7531         now does process management for the commands, while
7532         run_file_commands (which is run in a subprocess) runs the commands.
7533         (kill_children): New function to kill all running children by
7534         sending them signal SIG.  If there are any children still living
7535         after they are all sent SIG, they are all sent SIGKILL.
7537         * make.c (main): Catch SIGCHLD (SIGCLD for USG) with child_handler.
7539         * commands.h: Declare child_handler function.
7541         * commands.c (execute_file_commands): Check the `command_state'
7542         member of FILE and return 0 if it is `cs_running' or
7543         `cs_deps_running' and return the stored status if it is `cs_finished'.
7545         * file.h (struct file): Added `command_state' member.
7547         * commands.c (execute_command_line): Add `$' to the list of
7548         characters special to the shell.
7550 Wed Sep 21 15:57:41 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
7552         * read.c (read_all_makefiles): Call convert_to_pattern before
7553         recomputing the limits after adding the displaced rules.
7555         * make.c (main): Move calls to snap_deps, convert_to_pattern, and
7556         build_vpath_lists to read_all_makefiles.
7558         * read.c (read_all_makefiles): Install the default pattern rules
7559         before checking to remake the makefiles, displace these rules before
7560         reading in the makefiles, and then add the displaced rules to the
7561         chain after reading in all the makefiles.
7563         * make.c (main): Don't call install_default_pattern_rules or
7564         count_implicit_rule_limits.
7566         * make.h: Declare displace_pattern_rules and
7567         add_displaced_pattern_rules.
7569         * rule.c (displace_pattern_rules, add_displaced_pattern_rules): New
7570         functions to stow the chain and add the stowed chain on the end of
7571         the current chain.
7573         * make.texinfo (Implicit: Search Algorithm): Fixed PREV reference.
7575         * make.c (main): Call construct_include_path right after decoding
7576         the switches.
7578         * read.c (find_makefile): Use rename_file.
7580         * file.h: Declare rename_file.
7582         * file.c (rename_file): New function to rename a `struct file' and
7583         put it in the correct hash bucket.
7585         * read.c (find_makefile): New function to find and update a makefile.
7586          (read_all_makefilese): Use find_makefile.
7587          (read_makefile): Don't do updating.  Removed UPDATEIT arg.
7589         * remake.c (update_file_1): Took out setting the `updated' member to
7590         -1 rather than 1 sometimes.
7592         * make.c (main): Made it print version info before doing anything else.
7594         * remake.c (library_file_mtime, f_mtime): Removed use of last two
7595         arguments to vpath_search.
7597         * rule.c (pattern_search): Removed use of last two arguments
7598         to vpath_search.
7600         * vpath.c (vpath_search, selective_vpath_search): Removed unused
7601         DIRPREFIX and DPLEN args.
7603         * read.c (read_makefile): Also turn off -n when updating makefiles.
7605 Tue Sep 20 17:01:10 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
7607         * Makefile: Put tags files in the tarfile.
7609         * read.c (read_makefile): Get the modtime of the makefile via a stat
7610         call so that a later file_mtime call won't do VPATH search for it.
7612         * read.c (read_makefile): Don't turn off -t and -q if the makefile
7613         was a command-line target.
7615         * make.c (main): Enter command-line targets as files and set their
7616         `cmd_target' members.
7618         * file.h (struct file): Added `cmd_target' member.
7620         * read.c (read_makefile): Temporarily turn off -t and -q while
7621         updating makefiles.
7623         * make.c (main): Don't use arg 0 from other_args (which is now
7624         argv[0]; i.e., the program's name).
7626         * read.c (read_makefile): Only return nonzero if commands were
7627         actually run to remake the makefile.
7629         * remake.c (update_file_1): Set FILE->updated to -1 if no commands
7630         were actually run (because no update was done or -t was given).
7632         * make.c (decode_switches): Fixed bug wherein xrealloc was passed
7633         bad args if it tried to expand other_args->list.
7635         * read.c (read_all_makefiles): Made it not look at the `MAKE'
7636         variable, just use argv[0].
7638 Sun Sep 18 17:34:11 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
7640         * read.c (rerun_make): New function to re-exec make.
7642         * make.c (construct_makeflags, construct_argv): New functions to
7643         construct the `MAKEFLAGS' variable and to construct an arg list from
7644         parsed info.
7646         * read.c (read_makefile): New arg UPDATEIT, if nonzero, says to
7647         update the makefile as a target before reading it in.  When reading
7648         included makefiles, pass this as zero.  Now returns nonzero if the
7649         makefile was updated, zero if not.
7650         (read_all_makefiles): Pass a nonzero UPDATEIT arg to read_makefile
7651         for all default and -f makefiles and all makefiles from the
7652         `MAKEFILES' variable.  If any of the makefiles has changed, re-exec
7653         self to re-read them.
7655         * remake.c (update_file): Print a "File `foo' up to date'" message
7656         under -p.
7658         * commands.c (execute_file_commands): Allocate one byte for each of
7659         $^ and $< rather than zero if they are to be empty.
7661 Fri Sep 16 13:59:59 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7663         * Version 3.06.
7665         * make.c (command_switches): Fixed entry for `-o' switch.
7667         * make.texinfo: Renamed -c switch to -C.
7669         * make.c: Renamed -c switch to -C.
7671         * Miscellaneous de-linting.
7673         * read.c (record_files): Made it not free the storage for the name
7674         if it started with `./' and was therefore not quite the same as in
7675         the `struct file'.
7677         * read.c (record_files): If commands were specified twice, the error
7678         message specifies in what files and at what line numbers.
7680         * make.c (main): If any of the signals we usually fatal on were
7681         ignored by the parent (probably a shell), ignore them.
7683         * make.c (main): Print version info for -v, -p, or -d.
7684         (print_data_base): Don't print version info.  It will be done in main.
7686         * variable.c: Increased number of hash buckets to 257.
7688         * file.c: Increased number of hash buckets to 1007.
7690         * rule.c (count_implicit_rule_limits): Moved comptation of
7691         `maxsuffix' to convert_to_pattern, since that function uses
7692         `maxsuffix', and must be called before count_implicit_rule_limits.
7694         * rule.c (pattern_search): If an existent (non-intermediate)
7695         dependendency was found via a terminal rule, set its
7696         `tried_implicit' flag, so it will never have implicit rule search done.
7698         * glob.c: Bug fix to avoid alloca(0).
7700         * arscan.c: USG and Sun386i fixes.
7702 Thu Sep 15 19:40:26 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
7704         * make.texinfo: Fixed some typos and spelling errors.
7706 Wed Sep  7 14:20:39 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
7708         * make.c (decode_switches): Fixed bug wherein a bad option would
7709         give a useless error message and loop forever.
7711 Tue Sep  6 14:36:02 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7713         * make.texinfo: Documented `shell' function.
7715         * variable.c (expand_function): New function `shell', does
7716         backquote-style command expansion of its arg.
7718         * commands.c (execute_command_line): Second arg OUTBUF, if not nil,
7719         gets filled in with a malloc'd buffer containing the piped stdout of
7720         the command.
7721         (execute_file_commands): Use above (pass nil).
7723 Mon Sep  5 17:03:49 1988  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
7725         * Makefile: Added copyright notice.
7726         Added a comment about defining `NO_MINUS_C_MINUS_O' if necessary.
7728         * Version 3.05.
7730         * rule.c (default_suffix_rules): Don't pass `-o' switches with `-c'
7731         switches if `NO_MINUS_C_MINUS_O' is #define'd.
7733         * make.texinfo: Documented `GNUmakefile'.
7735         * read.c (read_all_makefiles): Made it try default makefile
7736         `GNUmakefile' before others.
7738         * make.texinfo: Added new-style Texinfo header thingies.
7740 Sat Sep  3 18:09:39 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
7742         * Version 3.04.
7744         * make.texinfo (Chained Rules): Added a @cindex about using
7745         .PRECIOUS to preserve intermediate files.
7747         * remake.c (update_file_1): Made it not just return before executing
7748         commands under -p.
7750         * rule.c (default_pattern_rules, default_variables): Made it use
7751         `$(AR)' for `ar r' (to put files in archives).
7753         * vpath.c (build_vpath_lists): Made it recursively expand the
7754         `VPATH' variable (by using variable_expand instead of lookup_variable).
7756         * read.c (conditional_line): Made it not swallow whitespace after
7757         the comma in an `ifeq' using the `(a,b)' syntax.
7759         * rule.c (count_implicit_rule_limits): Made it not crash if a
7760         pattern rule dep begins with `/'.
7762 Sun Aug 28 15:51:12 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
7764         * make.texinfo: Clarified that the arg to the `origin' function is a
7765         variable *name*, not a reference.
7767         * make.texinfo: Clarified that both -Idir and -I dir are allowed.
7769 Sat Aug 27 13:49:28 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7771         * remake.c (remake_file): Made touching phonies work right.
7773 Wed Aug 24 20:40:48 1988  Roland McGrath  (mcgrath at nutmeg.Berkeley.EDU)
7775         * make.texinfo: Removed reference to `RANLIB' variable.
7777         * Version 3.03.
7779         * variables.c (expand_function): Added `origin' function.
7780         * make.texinfo: Documented same.
7782         * read.c (record_files): Made double-colon entries work.
7784 Sat Aug 20 21:09:39 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7786         * make.c (collapse_continuations): Bug fix from RMS.
7788         * rule.c (install_default_pattern_rules): Made it set the
7789         `in_use' flag of the created rules to zero, rather than letting
7790         it be random garbage.
7792         * rule.c (pattern_search): Fixed putting `also make' targets into
7793         file strucutres.
7795         * read.c (record_files): Fixed bug which made double-colon entries
7796         make it read off into space.
7798         * make.c (decode_switches): Made it understand `ignored' switches
7799         rather than dumping core.
7801 Sun Aug 14 16:49:00 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7803         * read.c (read_makefile): Made `include' filenames be
7804         variable-expanded.
7806         * read.c (read_makefile): Fixed an error message.
7808         * read.c (read_makefile): Made it accept ^L's as whitespace.
7809         * make.c (next_token, end_of_token): Ditto.
7811         * vpath.c (vpath_search): Fixed it so that the general VPATH (from
7812         the variable) is always checked, even if a selective VPATH (from a
7813         directive) matched the filename.
7815 Sat Aug 13 14:20:46 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7817         * make.c (decode_switches, main): Made the command switches be
7818         processed from a table of switches, variables, and types.  No
7819         functions are passed argc and argv any more.  They are passed arrays
7820         of strings they need to process.
7821         * read.c (read_all_makefiles): Made it take an array rather than
7822         argc and argv.
7823         (construct_include_path): Ditto.
7825         * make.c (collapse_continuations): Made it work right (I hope).
7827         * make.texinfo: Minor editorial changes.
7829         * read.c (read_makefile): Minor speed improvement by freeing and
7830         then mallocing something rather than reallocing it to avoid the
7831         unnecessary bcopy.
7833 Thu Aug 11 00:10:43 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7835         * make.texinfo: Fixed some unquoted @'s.
7837         * make.texinfo: Documented multiple-target pattern rules.
7838         Miscellaneous minor editorial changes and corrections.
7840         * make.texinfo (Implicit: Catalogue of Rules): Removed the list of
7841         variables.  That's what the next section is for.
7842         (Implicit: Implicit Variables): Made it agree with reality.
7844 Wed Aug 10 00:55:39 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7846         * variable.c (print_variable_data_base): Fixed bug which made -p
7847         dump core.  (This was a really idiotic bug.)
7849         * rule.c (pattern_search): Fixed a bug which made it make the
7850         `also_make' member of the file in question nil if the first of
7851         the successful rule's targets was the matching one.
7852         Made it use only as much storage as necessary in the `also_make'
7853         member.
7854         (create_pattern): Made it use only as much storage as necessary in
7855         the `lens' and `suffixes' members of the created rule.
7857         * remake.c (library_file_mtime): Made it `static'.
7859         * file.c: Added a declaration for `errno', which is declared in some
7860         <errno.h>'s, but not all.
7862         * file.h (struct file): Added `also_make' member for multiple-target
7863         implicit rules.
7864         * rule.c (pattern_search): Made it put the names of files updated by
7865         the given file's commands in its `also_make' member.
7866         * remake.c (update_file_1): Made it mark the files in a file's
7867         `also_make' member as updated when the file is updated.
7869         * variable.c (try_variable_definition): Fixed a bug which made it
7870         define a variable with the name of the whole definition when there
7871         was no space before the = or :=.
7873         * make.texinfo (Features): Made the changes which were made in RCS
7874         revision 2.7 but somehow lost since then.  Added -W.
7876 Tue Aug  9 10:04:50 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7878         * variable.h: Added `o_default' to `enum variable_origin'.
7879         * variable.c (print_variable_data_base): Made it print the origins of
7880         the variables.
7881         * rule.c (install_default_pattern_rules): Made it define the default
7882         variables with origin `o_default'.
7884         * make.texinfo: Documented -W.
7886         * make.c (decode_switches, main): Added the -W flag to give files a
7887         time-stamp of now, for a `what if' effect when used with -n.
7889         * commands.c (print_commands): Made it say `(built-in)' for commands
7890         that are built into the default ruleset.
7892         * read.c (record_file): Made .SUFFIXES get its deps frontwards (again).
7893         * rule.c (set_default_suffixes, convert_to_pattern): Made it read
7894         .SUFFIXES's deps frontwards, so the converted rules will not be in
7895         reverse order.
7897         * rule.c (new_pattern_rule): Fixed a bug wherein it would keep
7898         searching after it had removed a matching rule and ended up diddling
7899         with freed storage.
7901         * rule.c (freerule): Made it take the given rule off the chain.
7902         (new_pattern_rule, count_implicit_rule_limits): Use freerule to
7903         remove rules from the chain.
7905         * vpath.c (construct_vpath_list): Made it return after cleaning out
7906         all previous searchpaths when given a nil DIRPATH arg, so it won't
7907         go into the construction code and dump core dereferencing a nil
7908         pointer.
7910         * variable.c (patsubst_expand): Fixed a bug which made it not match
7911         correctly and sometimes dump core.
7913 Mon Aug  8 16:35:48 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7915         * rule.c (default_suffix_rules): Made the .texinfo.dvi rule remove
7916         the files used in the comparison to determine whether or not a
7917         second TeX run is necessary.
7919         * make.texinfo: Fixed some overfull TeX hboxes.
7921         * make.texinfo (Implicit: Catalogue of Rules): Fixed a Texinfo error.
7923         * rule.c (create_pattern_rule): Fixed bug wherein index was not
7924         being passed its second arg.
7926         * read.c (getline): Merged back into readline.
7928         * rule.c (default_suffixes, default_suffix_rules,
7929         default_variables): Added .texinfo.info rule.
7930         * make.texinfo (Implicit: Catalogue of Rules): Documented
7931         .texinfo.dvi and .texinfo.info rules.
7933         * make.texinfo (Top): Changed `last updated' date to be correct (for
7934         the last time it was updated, not today).  Changed `for version
7935         3.00' since it's not going to be called that.
7937 Sat Aug  6 19:51:10 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7939         * commands.c (print_commands): Added this function to print the
7940         contents of a `struct commands' for -p.
7941         * rule.c (print_rule_data_base): Use above.
7942         * file.c (print_file_data_base): Ditto.
7944         * rule.c (count_implicit_rule_limits, new_pattern_rule,
7945         install_pattern_rule, print_rule_data_base): Made it understand the
7946         changed `struct rule' and act accordingly.
7947         (freerule): Added this function to free all the storage used by a rule.
7949         * rule.c (pattern_search): Made it grok multiple targets of pattern
7950         rules.  The matching is done properly, but at present, only the
7951         matching pattern's target is used to give deps and commands.
7953 Fri Aug  5 18:00:29 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7955         * rule.c (struct rule): Changed name, namelen, and patsuffix members
7956         to targets, lens, and suffixes, which are arrays, for multiple targets.
7957         (create_pattern_rule): Now takes first arg TARGETS, a nil-terminated
7958         array of targets, rather than a single target and patsuffix pointer.
7960         * read.c (record_files): If it finds an implicit pattern rule, it
7961         collects all the targets into an array and passes the whole thing to
7962         create_pattern_rule.  If there are non-pattern targets, it is a
7963         fatal error.
7965 Tue Aug  2 15:06:38 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7967         * make.c (readline): Split backslash-newline checking from reading
7968         and buffer-expanding.
7969         (getline): Created to do the reading and buffer-expanding formerly
7970         done in readline.
7972         * rule.c (pattern_search): Made it reject nonterminal match-anything
7973         rules when a specific rule has matched, rather than rejecting
7974         terminal match-anything rules in this case.
7976         * rule.c (convert_to_pattern): Fixed a bug caused when the change to
7977         make it only recognize two-suffix rules whose target suffixes
7978         precede their dependency suffixes which made it work in the opposite
7979         direction (even worse than it started out).
7981         * rule.c (pattern_search): Made it reject nonterminal match-anything
7982         rules as intermediate targets when searching for both real and
7983         intermediate dependencies, rather than only when searching for
7984         intermediate ones.
7986 Sun Jul 31 00:33:56 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7988         * rule.c (convert_to_pattern): Made it only recognize two-suffix
7989         rules whose target suffix comes before the dependency suffix in the
7990         .SUFFIXES list.
7992         * variable.c (define_automatic_variables): Made all automatic
7993         variables be defined with origin `o_automatic'.
7995         * variable.h: Added `o_automatic' to `enum variable_origin'
7997         * file.c (remove_intermediates): Made it not print an error message
7998         if the error was that the file does not exist.
8000         * rule.c: Removed `recursive' member from `struct rule'.
8002         * remake.c (library_file_mtime): Made it not use the directory hash
8003         functions, as reading in and hashing /usr/lib and /lib is slow and
8004         most likely unnecessary.
8006         * remake.c (remake_file): Changed message from ``No specification
8007         for making'' to ``No way to make'' so it will be short enough that
8008         most filenames will fit on a line.
8009         Made it look at the `recursive' member of the `struct commands',
8010         rather than of the `struct file' (which no longer has one).
8012         * commands.c (execute_file_commands): Made it look at the
8013         `recursive' member of the `struct commands', rather than of the
8014         `struct file' (which no longer has one).
8016         * file.h: Removed `recursive' member from `struct file'.
8018         * commands.h: Added `recursive' member to `struct commands'.
8020         * dep.h: Removed unused `quotedparen' member from `struct nameseq'
8021         and `struct dep'.
8023         * read.c (dequote): Removed this function.
8024         (multi_glob): Removed reference to `quotedparen' member of
8025         a `struct nameseq' and calls to dequote.
8027         * read.c (record_files): Made it set the stem for $* for all static
8028         pattern rules, not just those with commands given at that time.
8029         Removed check for recursive commands.
8030         Made it check for pairs of .SUFFIXES dependencies to reject as
8031         default goals as well as single ones (that don't start with dots).
8032         (read_makefile): Added checks for recursive commands to set
8033         the `recursive' flag in the `struct commands'.
8035 Sat Jul 30 15:47:23 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
8037         * make.c (find_next_token): Made the LENGTHPTR arg optionally nil.
8039         * make.c: Removed `files_made' variable which is defined static in
8040         remake.c and used only there.
8041         (main): Cleaned up somewhat.
8042         (decode_switches): Cleaned up a bit.  Made an unknown option be a
8043         non-fatal error.
8044         (decode_env_switches): Made LEN arg unsigned.  Cleaned up.
8045         (print_version): Made it say ``see the source'' rather than ``see
8046         the source file'', since there is more than one.
8048         * file.h: Made `num_intermediates' declared unsigned.
8050         * file.c: Made `num_intermediates' variable unsigned.
8051         (remove_intermediates): Removed unused FORMAT arg.
8052         (enter_file): Made it handle double-colon files properly, adding the
8053         new entry as the old entry's prev pointer.
8055         * dir.c: Re-indented the `struct dir' definition to be right.
8056         (dir_load): Cleaned up slighty.
8057         (file_exists_p): Removed comment saying we could use `access', since
8058         that is a bad idea (except for setuid programs).  Cleaned up slightly.
8060         * commands.c: Changed some comments slightly.
8061         (execute_file_commands): Cleaned up a bit.  Changed some comments,
8062         added others.  Moved freeing of storage for $^ and $? to the same
8063         place as for the other automatic variables.
8064         (execute_command_line): Made `#' trigger a shell.
8065         Added some comments.  Cleaned up a bit.  Put all the special chars
8066         that trigger shells into an array easily changeable at the top.
8068         * ar.c: Added comments explaining each function.
8069         (ar_scan_1): Merged into ar_member_date.
8070         (ar_member_date): Changed call to ar_scan_1 to the body of that
8071         function.
8072         (ar_member_date_1): Simplified to a ?: expression rather than an
8073         if-else statement.
8074         (ar_member_touch): Changed error handling around a bit.
8075         None of these errors are fatal now.
8077         * variable.c (subst_expand): Added a new arg BY_WORD, to do substs
8078         only on full words.
8079         (patsubst_expand): Fixed bug which made calls whose patterns
8080         contained no `%' to not work correctly, by using above.
8081         (variable_expand): Pass extra arg to `subst_expand'.
8083         * variable.c (expand_function): Fixed bug which made `foreach' calls
8084         with one-word lists run off into never-never land.
8086 Fri Jul 29 20:12:36 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
8088         * variable.c (expand_function): Made a very minor speed improvement
8089         by avoiding an unnecessary strlen call.
8091 Wed Jul 27 16:01:47 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
8093         * rule.c (default_suffixes): Rearranged the list somewhat; added
8094         `.el' and `.elc' to speed things up (especially when building
8095         Emacs), for the same reason `.h' is there.
8097         * read.c (record_files): Changed `lineno' from `long' to
8098         `unsigned int'.
8100 Sun Jul 24 02:15:30 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
8102         * variable.c (expand_function): Eliminated use of `wstok'
8103         because it is non-reentrant and unreliable.
8104         Fixed a minor bug which would cause something not to be freed.
8105         * make.c (wstok): Removed `wstok' because it is no longer used.
8107         * variable.c (expand_function): Made `foreach' function put
8108         spaces between output texts like it's supposed to.
8109         
8110 Sat Jul 23 17:32:55 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
8112         * rule.c (default_suffixes, default_suffix_rules): Added rule
8113         to make %.dvi from %.texinfo.
8115         * dir.c (print_dir_data_base): Made it say a bit more.
8117 Fri Jul 22 23:13:16 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
8119         * make.c (print_data_base): Split this function up into one
8120         for each thing.
8121         * variable.c (print_variable_data_base): One of the above.
8122         * rule.c (print_rule_data_base): Ditto.
8123         * file.c (print_file_data_base): Ditto.
8124         * dir.c (print_dir_data_base): Ditto.
8126         * rule.c (install_pattern_rule): Fixed a bug which caused the
8127         terminal and recursive flags to always be zero for rules
8128         entered by this function.
8130         * make.texinfo (Rules: Double-colon): Added a paragraph
8131         explaining the purpose of double-colon rules.
8133         * make.texinfo (Implicit: Catalogue of Rules): Updated to
8134         reflect new C++, TeX, Web, and Texinfo rules.  Other slight
8135         editorial changes.
8137         * commands.c (execute_file_commands): Fixed a bug wherein
8138         random memory could get written for files with no deps.
8139         
8140 Wed Jul 20 19:30:31 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
8142         * read.c (readline): Fix bug wherein it would not recognize a
8143         backslash-newline if the buffer filled up and was enlarged
8144         right before reading the newline.
8145         
8146 Tue Jul 19 19:55:02 1988  Roland McGrath  (mcgrath at chilli.Berkeley.EDU)
8148         * read.c: Added default suffix rules for .cc (using $(C++),
8149         which defaults to `g++', and $(C++FLAGS)), .tex, .dvi, .web
8150         and .cweb (using $(TEX), $(WEAVE), $(TANGLE), $(CWEAVE) and
8151         $(CTANGLE)).
8152         
8153 Sat Jul 16 21:24:28 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
8155         * Made error formats use %u rather than %ld for line numbers,
8156         which are now unsigned int's rather than long's.
8158         * read.c (conditional_line): Fixed some bugs caused by use of
8159         unsigned int rather than int in one place.
8161         * read.c (conditional_line): Put the info about active
8162         conditionals in a struct.
8163         (read_makefile): Make a new struct of info about conditionals
8164         for included makefiles and restore the old one after the
8165         included makefile has been read.
8167         * read.c (read_makefile): Don't try to read a makefile with
8168         name "" after giving an error message because an `include'
8169         directive gave no filename.
8171         * read.c (read_makefile): Give an error message for
8172         non-whitespace text after the filename in an `include' directive.
8174         * make.c (error): Take five args, like `fatal'.  It managed to
8175         lose with only two.  Is there a better way to do this without vfprintf?
8177         * read.c (read_makefile): Commands consisting of only
8178         whitespace are not the same as no commands.  I thought I'd
8179         fixed this bug months ago; it seems to have come back.
8181         * make.c (collapse_continuations): All whitespace around a
8182         backslash-newline combination is turned into a single space.
8184         * Added COPYING file and copyright notices to all files.
8186         * make.texinfo (Running: Goals): Fix a typo.
8188         * read.c (do_define): Take an arg for the origin of the
8189         variable being defined.
8190         (read_makefile): Grok `override define'.
8192         * make.texinfo (Variables: Override Directive, Defining):
8193         Document the `override define' combination directive.
8195         * ar.c (ar_member_date): Make a 0 return from `ar_scan' return
8196         (time_t) -1 (nonexistent file), rather than (time_t) 0, which,
8197         when put in the `struct file', makes `file_mtime' try to get
8198         the mtime over and over again.
8200         * variable.c (pattern_matches): Fix a bug that made patterns
8201         not beginning with `%' never match.
8202         
8203 Fri Jul 15 21:01:44 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
8205         * Took Make out of RCS.
8207         * Split the monolithic `make.c' into several smaller files.