.
[make.git] / ChangeLog
blobd08660fda0388b9c7a3dcd9119a4a1bffa3bf478
1 Mon Mar 13 00:45:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3         * read.c (parse_file_seq): Rearranged `l(a b)' -> `l(a) l(b)' loop
4         to not skip the elt immediately preceding `l(...'.
6 Fri Mar 10 13:56:49 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8         * Version 3.72.11.
10         * read.c (find_char_unquote): Make second arg a string of stop
11         chars instead of a single stop char.  Stop when any char in the
12         string is hit.  All callers changed.
13         (find_semicolon): Pass stop chars "#;" to one find_char_unquote call,
14         instead of using two calls.  If the match is not a ; but a #,
15         return zero.
16         * misc.c: Changed find_char_unquote callers here too.
18         * Version 3.72.10.
20         * read.c (read_makefile, parse_file_seq): Fix typo __MS_DOS__ ->
21         __MSDOS__.
23         * GNUmakefile (globfiles): Add glob/configure.bat.
24         (distfiles): Add configh.dos, configure.bat.
26 Wed Mar  8 13:10:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
28         Fixes for MS-DOS from DJ Delorie.
29         * read.c (read_makefile, parse_file_seq) [__MS_DOS__]: Don't see :
30         as separator in "C:\...".
31         * configh.dos (STDC_HEADERS): Define only if undefined.
32         (HAVE_SYS_PARAM_H): Don't define this.
33         (HAVE_STRERROR): Define this.
34         * job.c (construct_command_argv_internal) [__MSDOS__]: Fix typos.
36         * Version 3.72.9.
38         * main.c (decode_switches): Reset optind to 1 instead of 0.
40 Tue Mar  7 17:31:06 1995  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
42         * main.c (decode_switches): If non-option arg is "-", ignore it.
44 Mon Mar  6 23:57:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
46         * Version 3.72.8.
48 Wed Feb 22 21:26:36 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
50         * Version 3.72.7.
52 Tue Feb 21 22:10:43 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
54         * main.c (main): Pass missing arg to tmpnam.
56         * configure.in: Check for strsignal.
57         * job.c (child_error): Use strsignal.
58         * main.c (main): Don't call signame_init #ifdef HAVE_STRSIGNAL.
60         * misc.c (strerror): Fix swapped args in sprintf.
62 Mon Feb 13 11:50:08 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
64         * configure.in (CFLAGS, LDFLAGS): Don't set these variables.
66 Fri Feb 10 18:44:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
68         * main.c (print_version): Add 95 to copyright years.
70         * Version 3.72.6.
72         * job.c (start_job_command): Remember to call notice_finished_file
73         under -n when not recursing.  To do this, consolidate that code
74         under the empty command case and goto there for the -n case.
76 Tue Feb  7 13:36:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
78         * make.h [! STDC_HEADERS]: Don't declare qsort.  Sun headers
79         declare it int.
81 Mon Feb  6 17:37:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
83         * read.c (read_makefile): For bogus line starting with tab, ignore
84         it if blank after removing comments.
86         * main.c: Cast results of `alloca' to `char *'.
87         * expand.c: Likewise.
89 Sun Feb  5 18:35:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
91         * Version 3.72.5.
93         * configure.in: Check for mktemp.
94         * main.c (main) [! HAVE_MKTEMP]: Use tmpnam instead of mktemp.
96         * configure.in (make_cv_sysconf_open_max): New check for `sysconf
97         (_SC_OPEN_MAX)'.
98         * acconfig.h: Added #undef HAVE_SYSCONF_OPEN_MAX.
99         * job.c [HAVE_SYSCONF_OPEN_MAX] (getdtablesize): Define as macro
100         using sysconf.
102 Fri Jan 27 04:42:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
104         * remake.c (update_file_1): When !MUST_MAKE, don't set
105         FILE->update_status to zero before calling notice_finished_file.
106         (notice_finished_file): Touch only when FILE->update_status is zero.
107         (remake_file): Set FILE->update_status to zero after not calling
108         execute_file_command and deciding to touch instead.
110 Thu Jan 26 01:29:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
112         * main.c (debug_signal_handler): New function; toggles debug_flag.
113         (main): Handle SIGUSR1 with that.
115 Mon Jan 16 15:46:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
117         * compatMakefile (realclean): Remove Info files.
119 Sun Jan 15 08:23:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
121         * Version 3.72.4.
123         * job.c (start_job_command): Save and restore environ around vfork
124         call.
125         (search_path): Function #if 0'd out.
126         (exec_command): Use execvp instead of search_path.
128         * expand.c (variable_expand): Rewrote computed variable name and
129         substitution reference handling to be simpler.  First expand the
130         entire text between the parens if it contains any $s, then examine
131         the result of that for subtitution references and do no further
132         expansion while parsing them.
134         * job.c (construct_command_argv_internal): Handle " quoting too,
135         when no backslash, $ or ` characters appear inside the quotes.
137         * configure.in (union wait check): If WEXITSTATUS and WTERMSIG are
138         defined, just use int.
140 Tue Jan 10 06:27:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
142         * default.c (default_variables) [__hpux]: Remove special
143         definition of ARFLAGS.  Existence of the `f' flag is not
144         consistent across HPUX versions; and one might be using GNU ar
145         anyway.
147         * compatMakefile (clean): Don't remove Info files.
149         * compatMakefile (check): Remove gratuitous target declaration.
151 Sat Jan  7 11:38:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
153         * compatMakefile (ETAGS, CTAGS): Don't use -t.
155         * arscan.c (ar_name_equal) [cray]: Subtract 1 like [__hpux].
157         * main.c (decode_switches): For --help, print usage to stdout.
159 Mon Dec  5 12:42:18 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
161         * Version 3.72.3.
163         * remake.c (update_file_1): Do set_command_state (FILE,
164         cs_not_started) only if old state was deps_running.
166 Mon Nov 28 14:24:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
168         * job.c (start_waiting_job): Use set_command_state.
170         * build.template (CPPFLAGS): New variable.
171         (prefix, exec_prefix): Set from @...@.
172         (compilation loop): Pass $CPPFLAGS to compiler.
174         * GNUmakefile (build.sh.in): Make it executable.
176         * GNUmakefile (globfiles): Add configure.in, configure.
178         * Version 3.72.2.
180         * configure.in (AC_OUTPUT): Don't write glob/Makefile.
182         * configure.in (AC_CHECK_SYMBOL): Use AC_DEFINE_UNQUOTED.
184         * configure.in: Don't check for ranlib.
186 Tue Nov 22 22:42:40 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
188         * remake.c (notice_finished_file): Only mark also_make's as
189         updated if really ran cmds.
191 Tue Nov 15 06:32:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
193         * configure.in: Put dnls before random whitespace.
195 Sun Nov 13 05:02:25 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
197         * compatMakefile (CPPFLAGS): New variable, set from @CPPFLAGS@.
198         (RANLIB): Variable removed.
199         (prefix, exec_prefix): Set these from @...@.
200         (.c.o): Use $(CPPFLAGS).
201         (glob/libglob.a): Don't pass down variables to sub-make.
202         glob/Makefile should be configured properly by configure.
203         (distclean): Remove config.log and config.cache (autoconf stuff).
205 Mon Nov  7 13:58:06 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
207         * acconfig.h: Add #undef HAVE_UNION_WAIT.
208         * configure.in: Converted to Autoconf v2.
209         * dir.c: Test HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H instead
210         of DIRENT, SYSDIR, NDIR.
211         * build.sh.in (prefix, exec_prefix): Set these from @...@.
212         (CPPFLAGS): New variable, set from @CPPFLAGS@.
213         (compiling loop): Pass $CPPFLAGS before $CFLAGS.
214         * install.sh: File renamed to install-sh.
216         * main.c (define_makeflags): When no flags, set WORDS to zero.
218 Sun Nov  6 18:34:01 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
220         * Version 3.72.1.
222         * main.c (define_makeflags): Terminate properly when FLAGSTRING is
223         empty.
225 Fri Nov  4 16:02:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
227         * Version 3.72.
229 Tue Nov  1 01:18:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
231         * Version 3.71.5.
233         * job.c (start_job_command): When ARGV is nil, only set
234         update_state and call notice_finished_file if job_next_command
235         returns zero.
237         * job.c (start_job_command): Call notice_finished_file for empty
238         command line.
240 Thu Oct 27 02:02:45 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
242         * file.c (snap_deps): Set COMMANDS_SILENT for .SILENT, not
243         COMMANDS_NOERROR.
245 Wed Oct 26 02:14:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
247         * Version 3.71.4.
249 Tue Oct 25 22:49:24 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
251         * file.c (snap_deps): Set command_flags bits in all :: entries.
253 Mon Oct 24 18:47:50 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
255         * make.h (posix_pedantic): Declare it.
256         * main.c (main): Move checks .IGNORE, .SILENT, .POSIX to
257         snap_deps.
258         * file.c (snap_deps): Check .IGNORE, .SILENT, .POSIX here instead
259         of in main.  If .IGNORE has deps, OR COMMANDS_NOERROR into their
260         command_flags and don't set -i.  Likewise .SILENT.
261         * job.c (start_job_command): In FLAGS initialization, OR in
262         CHILD->file->command_flags.
263         * file.h (struct file): New member `command_flags'.
265 Sun Oct 16 01:01:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
267         * main.c (switches): Bump flag values for --no-print-directory and
268         --warn-undefined-variables, so neither is 1 (which indicates a
269         nonoption argument).
271 Sat Oct 15 23:39:48 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
273         * main.c (main): Add missing code in .IGNORE test.
275 Mon Oct 10 04:09:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
277         * variable.c (define_automatic_variables): Define +D and +F.
279 Sat Oct  1 04:07:48 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
281         * main.c (main): Define hidden automatic variable with command
282         vars, and MAKEOVERRIDES to a reference to that.
283         (define_makeflags): If posix_pedantic, write a reference to that
284         instead.
286 Thu Sep 29 00:14:26 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
288         * main.c (posix_pedantic): New variable.
289         (main): Set posix_pedantic if .POSIX is a target.
290         Fix .IGNORE and .SILENT checks to require is_target.
292         * commands.c (set_file_variables): Define new automatic variable
293         $+, like $^ but before calling uniquize_deps.
295         * job.c (reap_children): Call delete_child_targets for non-signal
296         error if .DELETE_ON_ERROR is a target.
298 Tue Sep 27 01:57:14 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
300         * Version 3.71.3.
302 Mon Sep 26 18:16:55 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
304         * job.c (reap_children): Don't change C->file->command_state when
305         dying.  Test it only after calling start_job_command for a new
306         command line.  When no more cmds, just set C->file->update_status.
307         (start_job_command): When the last line is empty or under -n, set
308         C->file->update_status.
309         (start_waiting_job): Grok cs_not_started after start_job_command
310         as success.
311         (new_job): Set C->file->update_status when there are no cmds.
312         (job_next_command): When out of lines, don't set
313         CHILD->file->update_status or CHILD->file->command_state.
315         * main.c (quote_as_word): Renamed from shell_quote.  Take new arg;
316         if nonzero, also double $s.
317         (main): Define MAKEOVERRIDES from command_variables here.
318         (define_makeflags): Don't use command_variables here; instead write a
319         reference $(MAKEOVERRIDES) in MAKEFLAGS.  Make vars recursive.
321         * dir.c [__MSDOS__]: Fixed typo.
323         * vpath.c (selective_vpath_search): Reset EXISTS when stat fails.
325 Sat Sep 10 03:01:35 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
327         * remake.c: Include <assert.h> and use assert instead of printfs
328         and abort.
330         * main.c (decode_switches): Loop until optind hits ARGC, not just
331         until getopt_long returns EOF.  Initialize C to zero before loop;
332         in loop if C is EOF, set optarg from ARGV[optind++], else call
333         getopt_long.
334         (decode_env_switches): Use variable_expand instead of
335         allocated_variable_expand.  Allocate a fresh buffer to copy split
336         words into; scan characters by hand to break words and
337         debackslashify.
338         (shell_quote): New function.
339         (define_makeflags): Allocate doubled space for switch args, and command
340         variable names and values; use shell_quote to quote those things.
342 Fri Sep  9 01:37:47 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
344         * Version 3.71.2.
346         * acconfig.h: Add HAVE_SYS_SIGLIST and HAVE__SYS_SIGLIST.
348         * main.c (decode_switches): The non-option return from getopt is
349         1, not 0.
350         (command_variables): New type and variable.
351         (decode_switches, decode_env_switches): After making a variable
352         definition, record the struct variable pointer in the
353         command_variables chain.
354         (define_makeflags): If ALL, write variable definitions for
355         command_variables.
357         * main.c (other_args): Variable removed.
358         (goals, lastgoal): New static variables (moved from auto in main).
359         (main): Don't process OTHER_ARGS at all.
360         Don't set variable MAKEOVERRIDES at all; define MAKE to just
361         $(MAKE_COMMAND).
362         (init_switches): Prepend a - {return in order} instead of a +
363         {require order}.
364         (decode_switches): Don't set OTHER_ARGS at all.
365         Grok '\0' return from getopt_long as non-option argument; try
366         variable definition and (if !ENV) enter goal targets here.
367         (decode_env_switches): Use allocated_variable_expand to store value.
368         Use find_next_token to simplify word-splitting loop.  Don't
369         prepend a dash to uninterpreted value.  Instead, if split into
370         only one word, try variable definition and failing that prepend a
371         dash to the word and pass it to decode_switches as a single arg.
373 Wed Sep  7 03:02:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
375         * remake.c (notice_finished_file): Only recheck modtimes if
376         FILE->command_state was cs_running on entry (meaning the commands
377         actually just ran).
378         (update_file_1): Whenever we set FILE->update_status, call
379         notice_finished_file instead of just set_command_state.
380         * job.c (start_job_command): Whenever we set
381         CHILD->file->update_status, call notice_finished_file instead of
382         just set_command_state.
384 Tue Sep  6 19:13:54 1994  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
386         * default.c: Add missing ".
388         * job.c: Changed all assignments of command_state members to calls
389         to set_command_state.
390         * remake.c: Likewise.
391         * file.c (set_command_state): New function.
392         * file.h: Declare set_command_state.
394         * main.c (init_switches): Put a + first in options.
396 Mon Jul 25 18:07:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
398         Merge MSDOS/GO32 port from DJ Delorie <dj@ctron.com>.
399         * vpath.c: Changed all uses of ':' to PATH_SEPARATOR_CHAR.
400         * main.c (directory_before_chdir): New variable, moved out of main
401         (was local).
402         (main) [__MSDOS__]: Look for \ or : to delimit last component of
403         PROGRAM.  Don't frob ARGV[0] before setting MAKE_COMMAND variable.
404         (die): Change back to `directory_before_chdir' before dying.
405         * make.h (PATH_SEPARATOR_CHAR): New macro; differing defns for
406         [__MSDOS__] and not.
407         * job.c [__MSDOS__]: Include <process.h>.
408         [__MSDOS__] (dos_pid, dos_status, dos_bname, dos_bename,
409         dos_batch_file): New variables.
410         (reap_children) [__MSDOS__]: Don't call wait; just examine those vars.
411         (unblock_sigs) [__MSDOS__]: Do nothing.
412         (start_job_command) [__MSDOS__]: Use spawnvpe instead of vfork & exec.
413         (load_too_high) [__MSDOS__]: Always return true.
414         (search_path) [__MSDOS__]: Check for : or / in FILE to punt.
415         Use PATH_SEPARATOR_CHAR instead of ':'.
416         (construct_command_argv_internal) [__MSDOS__]: Wholly different
417         values for sh_chars and sh_cmds.  Wholly new code to handle shell
418         scripts.
419         * function.c (expand_function: `shell') [__MSDOS__]: Wholly new
420         implementation.
421         * dir.c [__MSDOS__] (dosify): New function.
422         (dir_contents_file_exists_p) [__MSDOS__]: Call it on FILENAME and
423         process the result instead of FILENAME itself.
424         (file_impossible_p) [__MSDOS__]: Likewise.
425         * default.c [__MSDOS__]: Define GCC_IS_NATIVE.
426         (default_suffix_rules) [__MSDOS__]: Use `y_tab.c' instead of `y.tab.c'.
427         (default_variables) [GCC_IS_NATIVE]: Set CC and CXX to `gcc', YACC to
428         `bison -y', and LEX to `flex'.
429         * configure.bat, configh.dos: New files.
430         * commands.c (fatal_error_signal) [__MSDOS__]: Just remove
431         intermediates and exit.
433         * commands.c (set_file_variables): Add parens in length
434         computation in .SUFFIXES dep loop to quiet compiler warning.  From
435         Jim Meyering.
437         * read.c (read_makefile): Free FILENAME if we allocated it.  From
438         Jim Meyering.
440 Mon Jul  4 17:47:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
442         * misc.c (safe_stat): New function, EINTR-safe wrapper around stat.
443         * vpath.c (selective_vpath_search): Use safe_stat in place of stat.
444         * read.c (construct_include_path): Use safe_stat in place of stat.
445         * job.c (search_path): Use safe_stat in place of stat.
446         * dir.c (find_directory): Use safe_stat in place of stat.
447         * commands.c (delete_target): Use safe_stat in place of stat.
448         * arscan.c (ar_member_touch) [EINTR]: Do EINTR looping around fstat.
449         * remake.c (name_mtime): Use safe_stat in place of stat.
450         (touch_file) [EINTR]: Do EINTR looping around fstat.
452 Fri Jun 24 05:40:24 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
454         * read.c (read_makefile): Check for a shell command first, and
455         then strip leading tabs before further checking if it's not a
456         shell command line.
458         * make.h [__arm]: Undefine POSIX.
459         [!__GNU_LIBRARY__ && !POSIX && !_POSIX_VERSION]: Don't declare system
460         functions that return int.
462         * job.c (construct_command_argv_internal): After swallowing a
463         backslash-newline combination, if INSTRING is set goto string_char
464         (new label) for normal INSTRING handling code.
466 Sat Jun  4 01:11:20 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
468         * configure.in: Don't check for sys_siglist and _sys_siglist with
469         AC_HAVE_FUNCS.  Instead use two AC_COMPILE_CHECKs.
471 Mon May 23 18:20:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
473         * Version 3.71.1 released.
475         * make.h [!__GNU_LIBRARY__ && !POSIX]: Also test #ifndef
476         _POSIX_VERSION for these declarations.
478         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Remove bogus #ifndefs
479         around #undefs of HAVE_SETREUID and HAVE_SETREGID.
481 Sat May 21 16:26:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
483         * Version 3.71 released.
485         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Don't test [HAVE_SETUID]
486         and [HAVE_SETGID].  Every system has those, and configure doesn't
487         check for them.
489         * make.h [_POSIX_VERSION]: Don't #define POSIX #ifdef ultrix.
491         * compatMakefile (loadavg): Depend on and use loadavg.c instead of
492         getloadavg.c.
493         (loadavg.c): Link or copy it from getloadavg.c.
494         (distclean): Remove loadavg.c.
496 Mon May 16 22:59:04 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
498         * Version 3.70.4.
500         * misc.c [GETLOADAVG_PRIVILEGED] [! POSIX]: Undefine HAVE_SETEUID
501         and HAVE_SETEGID.
503         * default.c (default_terminal_rules): In SCCS rules, put
504         $(SCCS_OUTPUT_OPTION) before $<.  On some systems -G is grokked
505         only before the file name.
506         * configure.in (SCCS_GET_MINUS_G check): Put -G flag before file name.
508 Tue May 10 16:27:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
510         * job.c (construct_command_argv_internal): Swallow
511         backslash-newline combinations inside '' strings too.
513 Thu May  5 04:15:10 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
515         * read.c (do_define): Call collapse_continuations on each line
516         before all else.
518 Mon Apr 25 19:32:02 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
520         * job.c (construct_command_argv_internal): Notice newline inside
521         '' string when RESTP is non-null.
523 Fri Apr 22 17:33:30 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
525         * Version 3.70.3.
527         * remake.c (update_goal_chain): Reset FILE to G->file after the
528         double-colon loop so it is never null for following code.
530         * read.c (read_makefile): Fix `override define' parsing to skip
531         whitespace after `define' properly.
533         * compatMakefile (srcdir): Define as @srcdir@; don't reference
534         $(VPATH).
535         (glob/Makefile): New target.
537 Thu Apr 21 16:16:55 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
539         * Version 3.70.2.
541         * misc.c (remove_comments): Use find_char_unquote.
542         * make.h (find_char_unquote): Declare it.
543         * read.c (find_char_unquote): New function, generalized from
544         find_percent.
545         (find_percent, find_semicolon, parse_file_seq): Use that.
547 Wed Apr 20 18:42:39 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
549         * implicit.c (pattern_search): Always allocate new storage for
550         FILE->stem.  It is not safe to store STEM's address because it
551         might be auto storage.
553         * configure.in: Check for seteuid and setegid.
554         * misc.c [HAVE_SETEUID]: Declare seteuid.
555         [HAVE_SETEGID]: Declare setegid.
556         (make_access, user_access) [HAVE_SETEUID]: Use seteuid.
557         [HAVE_SETEGID]: Use setegid.
559         * remake.c (update_goal_chain): Set STATUS to FILE->update_status,
560         to preserve whether it's 2 for error or 1 for -q trigger.  When
561         STATUS gets nonzero and -q is set, always stop immediately.
562         * main.c (main, decode_switches): Die with 2 for errors.
563         (main): Accept 2 return from update_goal_chain and die with that.
564         * misc.c (fatal, makefile_fatal): Die with 2; 1 is reserved for -q
565         answer.
566         * job.c (reap_children): Die with 2 for error.
567         (start_job_command): Set update_status to 2 for error.  Set it to
568         1 when we would run a command and question_flag is set.
570         * read.c (read_makefile): Don't mark makefiles as precious.  Just
571         like other targets, they can be left inconsistent and in need of
572         remaking by aborted commands.
574         * read.c (read_makefile): Write no error msg for -include file.
576 Tue Apr  5 05:22:19 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
578         * commands.c (fatal_error_signal): Don't unblock signals.
580         * file.h (struct file): Change member `double_colon' from flag to
581         `struct file *'.
582         * read.c (record_files): Set double_colon pointer instead of flag.
583         * main.c (main): When disqualifying makefiles for updating, use
584         double_colon pointer to find all entries for a file.
585         * file.c (enter_file): If there is already a double-colon entry
586         for the file, set NEW->double_colon to that pointer.
587         (file_hash_enter): Use FILE->double_colon to find all entries to
588         set name.
589         * remake.c (update_goal_chain): Do inner loop on double-colon entries.
590         (update_file): Use FILE->double_colon pointer to find all entries.
591         (f_mtime): Likewise.
592         (notice_finished_file): Propagate mtime change to all entries.
594         * variable.c (try_variable_definition): Return after abort.
596 Fri Apr  1 18:44:15 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
598         * read.c (read_makefile): Remove unused variable.
599         (parse_file_seq): When removing an elt that is just `)', properly
600         fix up the previous elt's next pointer.
602 Mon Mar 28 18:31:49 1994  Roland McGrath  (roland@mole.gnu.ai.mit.edu)
604         * configure.in: Do AC_SET_MAKE.
605         * GNUmakefile (Makefile.in): Edit MAKE assignment into @SET_MAKE@.
607 Fri Mar  4 00:02:32 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
609         * function.c (subst_expand): If BY_WORD or SUFFIX_ONLY is set and
610         the search string is the empty string, find a match at the end of
611         each word (using end_of_token in place of sindex).
613         * misc.c (end_of_token): Don't treat backslashes specially; you
614         can no longer escape blanks with backslashes in export, unexport,
615         and vpath.  This was never documented anyway.
617 Thu Mar  3 23:53:46 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
619         * read.c (read_makefile): Variable name for `define' is not just
620         first token; use whole rest of line and strip trailing blanks.
622 Wed Feb 16 16:03:45 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
624         * Version 3.70.1.
626         * read.c (read_makefile): Add -d msg stating args.
628         * read.c (read_makefile): Use isspace to skip over leading
629         whitespace, and explicitly avoid skipping over tabs.  Don't want
630         to skip just spaces though; formfeeds et al should be skipped.
632         * default.c (default_variables) [__hpux]: Add f in ARFLAGS.
634         * arscan.c (ar_name_equal) [__hpux]: Subtract 2 instead of 1 from
635         sizeof ar_name for max length to compare.
637         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Undefine HAVE_SETREUID
638         #ifdef HAVE_SETUID; likewise HAVE_SETREGID and HAVE_SETGID.
640         * main.c (main): Call user_access after setting `program', in case
641         it needs to use it in an error message.
643         * read.c (read_makefile): Ignore an empty line starting with a tab.
645 Thu Feb 10 21:45:31 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
647         * configure.in (AC_SYS_SIGLIST_DECLARED): Use this instead of
648         AC_COMPILE_CHECK that is now its contents.
650 Fri Feb  4 16:28:54 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
652         * make.h: #undef strerror after #include <string.h>.
653         [! ANSI_STRING]: Declare strerror.
655 Thu Feb  3 02:21:22 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
657         * misc.c (strerror): #undef any macro before function definition.
659 Mon Jan 31 19:07:23 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
661         * variable.c (try_variable_definition): Calculate BEG before loop
662         to strip blanks by decrementing END.  Don't decr END to before BEG.
664         * read.c (read_makefile): Skip over leading space characters, but
665         not tabs, after removing continuations and comments (it used to
666         use isspace).
668 Tue Jan 25 16:45:05 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
670         * variable.c (define_automatic_variables): In $(@D) et al, use
671         patsubst to remove trailing slash.
673         * commands.c (delete_target): New function, broken out of
674         delete_child_targets.  Check for archive members and give special msg.
675         (delete_child_targets): Use delete_target.
677 Mon Jan 17 17:03:22 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
679         * default.c (default_suffix_rules): Use $(TEXI2DVI_FLAGS) in
680         texi2dvi rules. Use $(MAKEINFO_FLAGS) in makeinfo rules.
682 Tue Jan 11 19:29:55 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
684         * GNUmakefile (tarfiles): Omit make-doc.
685         (make-$(version).tar): Include make.info*.
687 Fri Jan  7 16:27:00 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
689         * compatMakefile (configure, config.h.in): Comment out rules.
691 Thu Jan  6 18:08:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
693         * compatMakefile (binprefix, manprefix): New variables.
694         (instname): Variable removed.
695         (install): Use $({bin,man}prefix)make in place of $(instname).
696         File targets likewised renamed.
698 Mon Jan  3 17:50:25 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
700         * Version 3.70 released.
702 Thu Dec 23 14:46:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
704         * Version 3.69.3.
706         * read.c (parse_file_seq): Inside multi-word archive ref
707         translation loop, check NEW1==0 at end and break out of the loop.
709         * GNUmakefile (make-$(version).tar): Distribute install.sh.
710         * install.sh: New file.
712         * configure.in (SCCS_GET_MINUS_G check): Put redirection for admin
713         cmds outside subshell parens, to avoid "command not found" msgs
714         from the shell.
716 Wed Dec 22 17:00:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
718         * configure.in (SCCS_GET_MINUS_G check): Put -G flag last in get cmd.
719         Redirect output & error from get to /dev/null.
720         Fix reversed sense of test.
722 Fri Dec 17 15:31:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
724         * configure.in (SCCS_GET_MINUS_G check): Use parens instead of
725         braces inside if condition command; some shells lose.
727 Thu Dec 16 15:10:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
729         * Version 3.69.2.
731         * arscan.c [M_UNIX]: Move #undef M_XENIX for PORTAR stuff.
732         (PORTAR) [M_XENIX]: Define to 0 instead of 1.
734         * main.c (define_makeflags): Only export MAKEFLAGS if !ALL.
736 Wed Dec 15 17:47:48 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
738         * main.c (main): Cast result of pointer arith to unsigned int
739         before passing to define_variable for envars.  Matters when
740         sizeof(unsigned)!=sizeof(ptrdiff_t).
742 Tue Dec 14 14:21:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
744         * configure.in: Add new check for SCCS_GET_MINUS_G.
745         * config.h.in: Add #undef SCCS_GET_MINUS_G.
746         * default.c (default_terminal_rules): Use `$(SCCS_OUTPUT_OPTION)' in
747         place of `-G $@' in SCCS commands.
748         (default_variables) [SCCS_GET_MINUS_G]: Define SCCS_OUTPUT_OPTION
749         to "-G$@".
751         * configure.in (AC_OUTPUT): Put touch stamp-config in second arg
752         (so it goes in config.status), rather than afterward.
754         * ar.c (ar_member_date): Don't call enter_file on the archive file
755         if it doesn't exist (by file_exists_p).
757         * compatMakefile ($(infodir)/make.info): Replace `$$d/foo.info'
758         with `$$dir/make.info' in install-info invocation (oops).
760         * vpath.c (construct_vpath_list): Only set LASTPATH set PATH when
761         we do not unlink and free PATH.
763         * file.c (print_file_data_base): Fix inverted calculation for
764         average files per hash bucket.
766         * read.c (readline): When we see a NUL, give only a warning and
767         synthesize a newline to terminate the building line (used to
768         fatal).  Move fgets call into the loop condition, and after the
769         loop test ferror (used to test !feof in the loop).
771 Fri Dec  3 16:40:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
773         * configure.in: Check for strerror in AC_HAVE_FUNCS.
775 Thu Dec  2 15:37:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
777         Differentiate different flavors of missing makefile error msgs,
778         removing gratuitous `fopen: ' and giving caller for included makefiles.
779         * misc.c [! HAVE_STRERROR]: Define our own strerror here.
780         (perror_with_name, pfatal_with_name): Use strerror instead of
781         replicating its functionality.
782         * read.c (read_makefile): Return int instead of void.
783         (read_all_makefiles, read_makefile): Change callers to notice zero
784         return and give error msg.
786 Thu Nov 11 11:47:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
788         * Version 3.69.1.
790         * default.c: Put `-G $@' before $< in SCCS cmds.
792 Wed Nov 10 06:06:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
794         * read.c (read_makefile): After trying a variable defn, notice if
795         the line begins with a tab, and diagnose an error.
797 Sun Nov  7 08:07:37 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
799         * Version 3.69.
801 Wed Nov  3 06:54:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
803         * Version 3.68.10.
805         * implicit.c (try_implicit_rule): Look for a normal rule before an
806         archive rule.
808 Fri Oct 29 16:45:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
810         * function.c (expand_function: `sort'): Double NWORDS when it
811         overflows, instead of adding five.
813         * compatMakefile (clean): Remove loadavg.
815 Wed Oct 27 17:58:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
817         * Version 3.68.9.
819         * file.h (NEW_MTIME): Define new macro.
820         * main.c (main): Set time of NEW_FILES to NEW_MTIME, not to
821         current time returned from system.  Removed variable NOW.
822         * remake.c (notice_finished_file): Use NEW_MTIME in place of
823         current time here too.
825 Tue Oct 26 19:45:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
827         * Version 3.68.8.
829         * remake.c (update_file_1): Don't clear MUST_MAKE when FILE has no
830         cmds and !DEPS_CHANGED unless also !NOEXIST.
832 Mon Oct 25 15:25:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
834         * read.c (parse_file_seq): When converting multi-word archive
835         refs, ignore a word beginning with a '('.
837 Fri Oct 22 02:53:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
839         * configure.in: Check for sys/timeb.h.
840         * make.h [HAVE_SYS_TIMEB_H]: Test this before including it.
842 Thu Oct 21 16:48:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
844         * Version 3.68.7.
846         * rule.c (convert_suffix_rule): New local TARGPERCENT.  Set it to
847         TARGNAME+1 for "(%.o)", to TARGNAME for "%.?".  Use it in place of
848         TARGNAME to initialize PERCENTS[0].
850 Mon Oct 18 06:49:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
852         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
853         Remove AC_USG; it is no longer used.
855         * file.c (print_file): New function, broken out of
856         print_file_data_base.
857         (print_file_data_base): Call it.
858         * rule.c (print_rule): New function, broken out of
859         print_rule_data_base.
860         (print_rule_data_base): Call it.
862 Thu Oct 14 14:54:03 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
864         * default.c (install_default_suffix_rules): New function, broken
865         out of install_default_implicit_rules.
866         (install_default_implicit_rules): Move suffix rule code there.
867         * make.h: Declare install_default_suffix_rules.
868         * main.c (main): Call install_default_suffix_rules before reading
869         makefiles.  Move convert_to_pattern call before
870         install_default_implicit_rules.
872         * job.h (struct child): Make `pid' member type `pid_t' instead of
873         `int'.
875         * compatMakefile (RANLIB): New variable, set by configure.
876         (glob/libglob.a): Pass RANLIB value down to submake.
878         Fixes for SCO 3.2 "devsys 4.2" from pss@tfn.com (Peter Salvitti).
879         * make.h: Include <sys/timeb.h> before <time.h> for SCO lossage.
880         * job.c [! getdtablesize] [! HAVE_GETDTABLESIZE]: If NOFILE is not
881         defined but NOFILES_MAX is, define it to be that.
883 Mon Oct 11 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
885         * GNUmakefile (make-$(version).tar): Depend on acconfig.h, so it
886         is distributed.
888 Sun Oct  3 15:15:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
890         * default.c (default_terminal_rules): Add `-G $@' to SCCS get cmds.
892 Tue Sep 28 14:18:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
894         * job.c (construct_command_argv_internal): Add ^ to SH_CHARS; it
895         is another symbol for | in some shells.
896         * main.c (main): Add it to CMD_DEFS quoting list as well.
898 Mon Sep 20 18:05:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
900         * job.c (construct_command_argv_internal): Remove '=' from
901         SH_CHARS.  Only punt on '=' if it is unquoted in a word before the
902         first word without an unquoted '='.
904         * main.c (define_makeflags): Set v_export for MAKEFLAGS.
906 Fri Sep 17 00:37:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
908         * remake.c (update_file_1): Use .DEFAULT cmds for phony targets.
910         * make.h [_AIX && _POSIX_SOURCE]: Define POSIX.
912         * commands.c (delete_child_targets): Don't delete phony files.
914         * job.c (start_job_command): Set COMMANDS_RECURSE in FLAGS if we
915         see a `+' at the beginning of the command line.
917 Thu Sep  9 17:57:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
919         * Version 3.68.6.
921 Wed Sep  8 20:14:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
923         * main.c (define_makeflags): Define MAKEFLAGS with o_file, not o_env.
925 Mon Aug 30 12:31:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
927         * expand.c (variable_expand): Fatal on an unterminated reference.
929 Thu Aug 19 16:27:53 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
931         * Version 3.68.5.
933         * variable.c (define_automatic_variables): Define new o_default
934         variable `MAKE_VERSION' from version_string and remote_description.
936         * make.h (version_string, remote_description): Declare these here.
937         * main.c: Don't declare version_string.
938         (print_version): Don't declare remote_description.
940 Wed Aug 18 15:01:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
942         * read.c (read_makefile): Free space pointed to by CONDITIONALS
943         before restoring the old pointer.
945 Mon Aug 16 17:33:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
947         * compatMakefile ($(objs)): Depend on config.h.
949         * GNUmakefile (build.sh.in): Depend on compatMakefile.
951         * configure.in: Touch stamp-config after AC_OUTPUT.
953 Fri Aug 13 16:04:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
955         * Version 3.68.4.
957 Thu Aug 12 17:18:57 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
959         * make.h: Include <config.h> instead of "config.h".
961 Wed Aug 11 02:35:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
963         * main.c (main): Make all variables interned from ENVP be v_export.
964         * variable.c (try_variable_definition): In v_default case, don't
965         check for an o_file variable that `getenv' finds.
967         * job.c (reap_children): New local variable ANY_LOCAL; set it
968         while setting ANY_REMOTE.  If !ANY_LOCAL, don't wait for local kids.
970         * main.c (main): Don't call decode_env_switches on MFLAGS.  DOC THIS.
972         * function.c (expand_function): #if 0 out freeing of ENVP since it
973         is environ.
975 Mon Aug  9 17:37:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
977         * Version 3.68.3.
979         * remote-stub.c (remote_status): Set errno to ECHILD before return.
980         * job.c (reap_children): Scan the chain for remote children and
981         never call remote_status if there are none.
983         * function.c (expand_function: `shell'): #if 0 out calling
984         target_environment; just set ENVP to environ instead.
986         * job.c (reap_children): Check for negative return from
987         remote_status and fatal for it.
988         When blocking local child wait returns 0, then try a blocking call
989         to remote_status.
991 Tue Aug  3 00:19:00 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
993         * compatMakefile (clean): Delete make.info* and make.dvi here.
994         (distclean): Not here.
996         * dep.h (RM_*): Use #defines instead of enum to avoid lossage from
997         compilers that don't like enum values used as ints.
999 Mon Aug  2 16:46:34 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1001         * compatMakefile (loadavg): Add $(LOADLIBES).
1003 Sun Aug  1 16:01:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1005         * Version 3.68.2.
1007         * compatMakefile (loadavg, check-loadavg): New targets.
1008         (check): Depend on check-loadavg.
1010         * compatMakefile (glob/libglob.a): Depend on config.h.
1012         * misc.c (log_access): Write to stderr instead of stdout.
1014 Fri Jul 30 00:07:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1016         * Version 3.68.1.
1018 Thu Jul 29 23:26:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1020         * configure.in (SYS_SIGLIST_DECLARED): In test program include
1021         <unistd.h> #ifdef HAVE_UNISTD_H.
1023         * compatMakefile (.PHONY): Put after `all' et al.
1025         * configure.in: Add AC_IRIX_SUN.
1027 Wed Jul 28 17:41:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1029         * Version 3.68.
1031 Mon Jul 26 14:36:49 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1033         * Version 3.67.8.
1035 Sun Jul 25 22:09:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1037         * Version 3.67.7.
1039         * compatMakefile ($(infodir)/make.info): Don't use $(instname).
1040         Run install-info script if present.
1042 Fri Jul 23 16:03:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1044         * make.h [STAT_MACROS_BROKEN]: Test this instead of [uts].
1046         * configure.in: Add AC_STAT_MACROS_BROKEN.
1048 Wed Jul 14 18:48:11 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1050         * Version 3.67.6.
1052         * read.c (read_makefile): Recognize directive `-include', like
1053         `include' but sets RM_DONTCARE flag.
1055         * variable.c (target_environment): If FILE is nil, use
1056         current_variable_set_list in place of FILE->variables.
1057         * function.c (expand_function: `shell'): Get an environment for
1058         the child from target_environment instead of using environ.
1060         * dep.h: Declare read_all_makefiles here.
1061         (RM_*): Define new enum constants.
1062         * read.c (read_makefile): Second arg is FLAGS instead of TYPE.
1063         Treat it as a bit mask containing RM_*.
1064         (read_all_makefiles): For default makefiles, set D->changed to
1065         RM_DONTCARE instead of 1.
1066         * main.c: Don't declare read_all_makefiles here.
1067         (main): Check `changed' member of read_makefiles elts for RM_*
1068         flags instead of specific integer values.
1070 Mon Jul 12 22:42:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1072         * make.h [sequent && i386]: #undef POSIX.  From trost@cse.ogi.edu.
1074 Thu Jul  8 19:51:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1076         * vpath.c (construct_vpath_list): If ELEM is zero 0, free PATTERN
1077         as well as VPATH.
1078         (build_vpath_lists): Empty `vpaths' around construct_vpath_list
1079         call for $(VPATH).  Expand $(strip $(VPATH)), not just $(VPATH).
1081         * rule.c (convert_suffix_rule): Use alloca instead of xmalloc for
1082         PERCENTS, whose storage is not consumed by create_pattern_rule.
1084         * make.h [__mips && _SYSTYPE_SVR3]: #undef POSIX.
1086 Wed Jun 30 18:11:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1088         * Version 3.67.5.
1090         * rule.c (max_pattern_targets): New variable.
1091         (count_implicit_rule_limits): Compute its value.
1092         * rule.h: Declare it.
1093         * implicit.c (pattern_search): Make TRYRULES max_target_patterns
1094         times bigger.  Move adding new TRYRULES elt inside the inner
1095         targets loop, so each matching target gets its own elt in MATCHES
1096         and CHECKED_LASTSLASH.
1098         * file.c (remove_intermediates): If SIG!=0 say `intermediate file'
1099         instead of just `file' in error msg.
1101 Fri Jun 25 14:55:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1103         * job.c (construct_command_argv): Turn off
1104         --warn-undefined-variables around expansion of SHELL and IFS.
1105         * read.c (tilde_expand): Likewise for HOME.
1106         (read_all_makefiles): Likewise for MAKEFILES.
1107         * vpath.c (build_vpath_lists): Likewise for VPATH.
1109         * main.c (warn_undefined_variables_flag): New flag variable.
1110         (switches): Add --warn-undefined-variables.
1111         * make.h (warn_undefined_variables_flag): Declare it.
1112         * expand.c (warn_undefined): New function.
1113         (reference_variable): Call it if the variable is undefined.
1114         (variable_expand): In substitution ref, call warn_undefined if the
1115         variable is undefined.
1117         * default.c (default_pattern_rules): Add `%.c: %.w %.ch' and
1118         `%.tex: %.w %.ch' rules.
1119         (default_suffix_rules: .w.c, .w.tex): Pass three args: $< - $@.
1120         (default_suffixes): Add `.ch'.
1122 Mon Jun 21 17:55:39 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1124         * default.c (default_suffixes): Replace `.cweb' with `.w'.
1125         (default_suffix_rules): Rename `.cweb.c' and `.cweb.tex' to `.w.c'
1126         and `.w.tex'.
1128 Fri Jun 11 14:42:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1130         * compatMakefile ($(bindir)/$(instname)): Add missing backslash.
1132 Thu Jun 10 18:14:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1134         * Version 3.67.4.
1136         * read.c (multi_glob): Don't free OLD and OLD->name in the
1137         FOUND!=0 fork.  Use new block-local variable F instead of
1138         clobbering OLD.
1140         * ar.c (glob_pattern_p): New function, snarfed from glob/glob.c.
1141         (ar_glob): Call it; return nil immediately if MEMBER_PATTERN
1142         contains no metacharacters.
1144 Wed Jun  9 16:25:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1146         * ar.c (ar_glob{_match,_alphacompare}): New function.
1148         * dep.h [! NO_ARCHIVES]: Declare it.
1149         * read.c (multi_glob) [! NO_ARCHIVES]: Use it on archive member elts.
1151         * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
1152         multi_glob (which doesn't take a 3rd arg).
1153         * rule.c (install_pattern_rule): Likewise.
1154         * default.c (set_default_suffixes): Here too.
1155         * function.c (string_glob): Don't pass gratuitous arg to multi_glob.
1157         * read.c (parse_file_seq) [! NO_ARCHIVES]: Add post-processing
1158         loop to translate archive refs "lib(a b)" into "lib(a) lib(b)".
1160 Mon Jun  7 19:26:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1162         * compatMakefile (installdirs): Actually pass directory names.
1163         ($(bindir)/$(instname)): Test chgrp&&chmod exit status with `if';
1164         if it fails, echo a warning msg, but don't make the rule fail.
1166         * read.c (tilde_expand): New function, broken out of tilde_expand.
1167         (multi_glob): Call it.
1168         (construct_include_path): Expand ~ in directory names.
1169         * dep.h: Declare tilde_expand.
1170         * main.c (enter_command_line_file): Expand ~ at the start of NAME.
1171         (main): Expand ~ in -C args.
1172         * read.c (read_makefile): Expand ~ in FILENAME unless TYPE==2.
1174 Fri Jun  4 13:34:47 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1176         * main.c (decode_env_switches): Use xmalloc instead of alloca for ARGS.
1178         * main.c (main): Put result of alloca in temporary variable with
1179         simple assignment, to make SGI compiler happy.
1181 Thu Jun  3 20:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1183         * Version 3.67.3.
1185         * main.c (main): Before re-execing, remove intermediate files, and
1186         print the data base under -p.  Sexier debugging message.
1188         * implicit.c (pattern_search): Allocate an extra copy of the name
1189         of a winning intermediate file when putting it in FOUND_FILES.
1191 Wed Jun  2 16:38:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1193         * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
1194         multi_glob (which doesn't take a 3rd arg).
1196         * dir.c (dir_contents_file_exists_p): When reading dirents, ignore
1197         chars within D_NAMLEN that are NULs.
1199         * main.c (decode_switches): Don't savestring ARGV[0] to put it
1200         into `other_args'.
1201         For string switch, don't savestring `optarg'.
1202         (main): Don't free elts of makefiles->list that are "-".
1203         Use alloca'd rather than savestring'd storage for elts of
1204         makefiles->list that are temporary file names.
1205         * read.c (read_all_makefiles): Don't free *MAKEFILES.
1206         * file.c (enter_file): Don't strip `./'s.
1207         * main.c (enter_command_line_file): New function.
1208         (main): Use it in place of enter_file for command-line goals from
1209         other_files, and for old_files and new_files.
1211 Mon May 31 18:41:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1213         * Version 3.67.2.
1215         * compatMakefile (.SUFFIXES): Add .info.
1216         ($(infodir)/$(instname).info): Find make.info* in cwd if there,
1217         else in $srcdir.  Use basename to remove dir name from installed name.
1219 Thu May 27 17:35:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1221         * implicit.c (pattern_search): When interning FOUND_FILES, try
1222         lookup_file first; if found, free the storage for our copy of the name.
1224 Wed May 26 14:31:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1226         * Version 3.67.1.
1228         * main.c (decode_switches): In usage msg, write `--switch=ARG' or
1229         `--switch[=OPTARG]' rather than `--switch ARG' or `--switch [ARG]'.
1231 Mon May 24 16:17:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1233         * rule.c (convert_suffix_rule): New function.
1234         (convert_to_pattern): Use it instead of doing all the work here
1235         several times.
1236         For target suffix `.a', generate both the archive magic rule and
1237         the normal rule.
1239         * compatMakefile (distclean): Remove stamp-config.
1241 Sat May 22 16:15:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1243         * Version 3.67.
1245         * file.c (remove_intermediates): Don't write extra space after `rm'.
1247         * main.c (struct command_switch.type): Remove `usage_and_exit'.
1248         (print_usage_flag): New variable.
1249         (switches: --help): Make type `flag', to set print_usage_flag.
1250         (init_switches): Remove `usage_and_exit' case.
1251         (decode_switches): Likewise.
1252         (decode_switches): Print usage if print_usage_flag is set.
1253         When printing usage, die with status of BAD.
1254         (main): Die with 0 if print_version_flag.
1256 Fri May 21 16:09:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1258         * Version 3.66.
1260 Wed May 19 21:30:44 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1262         * compatMakefile (installdirs): New target.
1263         (install): Depend on it.
1265 Sun May 16 20:15:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1267         * Version 3.65.2.
1269 Fri May 14 16:40:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1271         * vpath.c (construct_vpath_list): In removal loop for DIRPATH==0,
1272         set LASTPATH to PATH, not NEXT.
1274         * dir.c (read_dirstream): Break out of loop after incrementing
1275         DS->buckets such that it reaches DIRFILE_BUCKETS; avoid trying to
1276         dereference DS->contents->files[DIRFILE_BUCKETS].
1278         * read.c (read_makefile): Clear no_targets after reading a
1279         targetful rule line.
1281         * main.c (main): If print_version_flag is set, exit after printing
1282         the version.
1283         (switches): Change --version docstring to say it exits.
1285         * make.h [butterfly]: #undef POSIX.
1287 Wed May 12 15:20:21 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1289         * Version 3.65.1.
1291         * arscan.c (ar_scan) [! AIAMAG]: Don't declare LONG_NAME.
1292         [AIAMAG]: Pass TRUNCATE flag arg to (*FUNCTION), always zero.
1294         * function.c (handle_function): Use fatal instead of
1295         makefile_fatal when reading_filename is nil.
1297         * configure.in: Add AC_GETGROUPS_T.
1298         * job.c (search_path): Use GETGROUPS_T in place of gid_t.
1300 Sun May  9 15:41:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1302         * Version 3.65.
1304 Fri May  7 18:34:56 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1306         * function.c (handle_function): Fatal for unmatched paren.
1308 Thu May  6 16:13:41 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1310         * Version 3.64.3.
1312         * commands.c (handling_fatal_signal): New variable.
1313         (fatal_error_signal): Set it.
1314         * job.c (reap_children): Avoid nonreentrant operations if that is set.
1315         * make.h: Declare handling_fatal_signal.
1317         * expand.c (reference_variable): New function, snippet of code
1318         broken out of simple-reference case of variable_expand.
1319         (variable_expand): Use it for simple refs.
1320         (variable_expand): When checking for a computed variable name,
1321         notice a colon that comes before the final CLOSEPAREN.  Expand
1322         only up to the colon, and then replace the pending text with a
1323         copy containing the expanded name and fall through to subst ref
1324         handling.
1325         (variable_expand): Don't bother expanding the name if a colon
1326         appears before the first $.
1327         (expand_argument): Use alloca instead of savestring.
1328         (variable_expand): For subst ref, expand both sides of = before
1329         passing to [pat]subst_expand.  Use find_percent instead of lindex
1330         to check the lhs for a %.
1332 Wed May  5 14:45:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1334         * Version 3.64.2.
1336 Mon May  3 17:00:32 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1338         * arscan.c (ar_name_equal) [AIAMAG]: Abort if TRUNCATED is nonzero.
1340         * read.c (read_makefile): Pass extra arg of 1 to parse_file_seq,
1341         not to multi_glob.
1343 Thu Apr 29 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1345         * Version 3.64.1.
1347         * arscan.c (ar_scan): New local flag var LONG_NAME.  Set it when
1348         we read the member name in any of the fashions that allow it to be
1349         arbitrarily long.  Pass its negation to FUNCTION.
1350         (describe_member): Take TRUNCATED from ar_scan and print it.
1351         (ar_name_equal): Take new arg TRUNCATED; if nonzero, compare only
1352         the first sizeof (struct ar_hdr.ar_name) chars.
1353         (ar_member_pos): Take TRUNCATED from ar_scan, pass to ar_name_equal.
1354         * ar.c (ar_member_date_1): Likewise.
1356 Wed Apr 28 21:18:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1358         * job.c (reap_children): Before calling start_job_command to start
1359         the next command line, reset C->remote by calling start_remote_job_p.
1361 Mon Apr 26 15:56:15 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1363         * arscan.c (ar_scan): New local var NAMEMAP.
1364         In loop, rename NAME to NAMEBUF; new var NAME is a pointer; new
1365         flag IS_NAMEMAP.  When extracting the member name, always put a
1366         null at its end first.  If the name is "//" or "/ARFILENAMES", set
1367         IS_NAMEMAP.  If we have already read in NAMEMAP, and NAME looks
1368         like " /N", get full name from NAMEMAP+N.
1369         Else if NAME looks like "#1/N", read N chars from the
1370         elt data to be the full name.  At end of loop, if IS_NAMEMAP, read
1371         the elt's data into alloca'd NAMEMAP.
1372         (ar_name_equal): #if 0 truncating code.
1374         * make.h: Don't declare vfork at all.  It returns int anyway,
1375         unless <unistd.h> declared it; and we conflicted with some systems.
1377         * main.c (define_makeflags): If FLAGSTRING[1] is '-', define
1378         MAKEFLAGS to all of FLAGSTRING, not &FLAGSTRING[1].  Don't want to
1379         define it to something like "-no-print-directory".
1380         Use %g format instead of %f for floating-valued things.
1382 Thu Apr 22 18:40:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1384         * GNUmakefile (Makefile.in): Use a substitution ref on nolib-deps
1385         to change remote-%.dep to remote-stub.dep.
1387 Wed Apr 21 15:17:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1389         * Version 3.64.
1391 Fri Apr 16 14:22:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1393         * compatMakefile (install): Remove - prefix from chgrp+chmod.
1395         * Version 3.63.8.
1397 Thu Apr 15 18:24:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1399         * acconfig.h: New file; contains "#undef SCCS_GET" for autoheader.
1400         * configure.in: If /usr/sccs/get exists, define SCCS_GET to that,
1401         else to "get".
1402         * default.c (default_variables): Set GET to macro SCCS_GET.
1404         * read.c (parse_file_seq): Take extra arg STRIP; strip `./' only
1405         if nonzero.  I hope this is the last time this argument is added
1406         or removed.
1407         (read_makefile): Pass it 1 when parsing include file names.
1408         Pass it 1 when parsing target file names.
1409         Pass it 1 when parsing static pattern target pattern names.
1410         * rule.c (install_pattern_rule): Pass it 1 when parsing rule deps.
1411         * default.c (set_default_suffixes): Pass it 1 when parsing
1412         default_suffixes.
1413         * function.c (string_glob): Pass it 0 here.
1415 Wed Apr 14 11:32:05 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1417         * misc.c (log_access): New function.
1418         ({init,user,make,child}_access): Call it.
1419         (child_access): Abort if !access_inited.
1421         * main.c (switches: --no-print-directory): Use 1 instead of -1 for
1422         single-letter option.
1423         (init_switches, decode_switches, define_makeflags): An option with
1424         no single-letter version is no longer indicated by a value of -1;
1425         instead a value that is !isalnum.
1426         (init_switches): Don't put such switches into the string, only
1427         into the long_option table.
1429         * make.h [!NSIG] [!_NSIG]: #define NSIG 32.
1431         * job.c [HAVE_WAITPID]: Remove #undef HAVE_UNION_WAIT.  AIX's
1432         bsdcc defined WIF* to use union wait.
1434         * main.c (struct command_switch): Change member `c' to type int.
1435         (switches): Make const.
1436         (decode_switches): Use `const struct command_switch *'.
1437         (define_makeflags): Likewise.
1439         * default.c (default_suffix_rules): Add `-o $@' to makeinfo rules.
1441 Mon Apr 12 12:30:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1443         * Version 3.63.7.
1445         * configure.in (AC_HAVE_HEADERS): Check for string.h and memory.h.
1446         Removed AC_MEMORY_H.
1447         * make.h [USG, NeXT]: Don't test these.
1448         [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
1449         [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
1450         [! ANSI_STRING]: Put decls of bcopy et al here.
1451         [sparc]: Don't test this for alloca.h; HAVE_ALLOCA_H is sufficient.
1452         [HAVE_SIGSETMASK]: Test this rather than USG.
1453         [__GNU_LIBRARY__ || POSIX]: Don't #include <unistd.h> again.
1454         * main.c (main): Handle SIGCHLD if defined, and SIGCLD if defined.
1455         It doesn't hurt to do both if they are both defined, and testing
1456         USG is useless.
1457         * dir.c: Rationalize directory header conditionals.
1458         * arscan.c [HAVE_FCNTL_H]: Test this rather than USG || POSIX.
1460         * default.c (default_suffixes): Add `.txinfo'.
1461         (default_suffix_rules): Add `.txinfo.info' and `.txinfo.dvi' rules.
1463         * variable.c (try_variable_definition): Replace RECURSIVE flag
1464         with enum FLAVOR, which can be simple, recursive, or append.
1465         Recognize += as append flavor.  Set new variable VALUE in a switch
1466         on FLAVOR.  For append flavor, prepend the variable's old value.
1467         If the variable was previously defined recursive, set FLAVOR to
1468         recursive; if it was defined simple, expand the new value before
1469         appending it to the old value.  Pass RECURSIVE flag to
1470         define_variable iff FLAVOR == recursive.
1472         * variable.c (try_variable_definition): Use alloca and bcopy for
1473         NAME, instead of savestring.  Might as well use stack storage
1474         since we free it immediately anyway.
1476 Thu Apr  8 18:04:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1478         * job.c (start_waiting_jobs): Move decl of JOB outside of loop.
1480         * main.c (define_makeflags): Rename `struct flag' member `switch'
1481         to `cs', which is not a reserved word.
1483 Wed Apr  7 15:30:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1485         * job.c (new_job): Call start_waiting_jobs first thing.
1486         (start_waiting_job): Changed return type from void to int.
1487         Return 0 when putting the child on the waiting_jobs chain.
1488         (start_waiting_jobs): Don't check load and job_slots here.
1489         Always take a job off the chain and call start_waiting_job on it;
1490         give up and return when start_waiting_job returns zero.
1492         * main.c (define_makeflags: struct flag): Change member `char c' to
1493         `struct command_switch *switch'.
1494         (ADD_FLAG): Set that to CS instead of CS->c.
1495         If CS->c is -1, increment FLAGSLEN for the long name.
1496         When writing out FLAGS, handle FLAGS->switch->c == -1 and write
1497         the long name instead.
1499         * compatMakefile (stamp-config): New target of old config.h rule.
1500         Touch stamp-config after running config.status.
1501         (config.h): Just depend on stamp-config, and have empty commands.
1503 Mon Apr  5 20:14:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1505         * job.c [HAVE_WAITPID]: #undef HAVE_UNION_WAIT.
1507         * configure.in (AC_HAVE_FUNCS): Check for psignal.
1509 Fri Apr  2 17:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1511         * main.c (long_option_aliases): Remove "new"; it is already an
1512         unambiguous prefix of "new-file".
1514 Sun Mar 28 16:57:17 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1516         * Version 3.63.6.
1518 Wed Mar 24 14:26:19 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1520         * vpath.c (selective_vpath_search): When adding the
1521         name-within-directory at the end of NAME, and we don't add a
1522         slash, don't copy FILENAME in one char too far into NAME.
1524         * variable.c (define_automatic_variables): Find default_shell's
1525         length with strlen, not numerology.
1527 Wed Mar 17 20:02:27 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1529         * main.c (define_makeflags): Add the elts of a string option in
1530         reverse order, so they come out right when reversed again.
1532 Fri Mar 12 15:38:45 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1534         * compatMakefile (make.info): Use `-o make.info'.
1536 Thu Mar 11 14:13:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1538         * compatMakefile (REMOTE): Set to @REMOTE@; change comments to
1539         reflect new use.
1540         (objs): Replace remote.o with remote-$(REMOTE).o.
1541         (srcs): Replace remote.c with remote-$(REMOTE).c.
1542         (remote.o): Rule removed.
1544         * configure.in (REMOTE): Subst this in Makefile et al; default "stub".
1545         Use AC_WITH to grok --with-customs arg to set REMOTE=cstms.
1546         * GNUmakefile (build.sh.in): Filter out remote-% from objs list.
1547         * build.template (REMOTE): New var; set to @REMOTE@.
1548         (objs): Add remote-${REMOTE}.o.
1550 Wed Mar 10 15:12:24 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1552         * Version 3.63.5.
1554         * implicit.c (pattern_search): Fix "dependent"->"dependency" in
1555         "Rejecting impossible" -d msg.
1557         * file.c (file_hash_enter): New local vars {OLD,NEW}BUCKET.  Store
1558         mod'd values there; never mod {OLD,NEW}HASH.
1560 Mon Mar  8 13:32:48 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1562         * remake.c [eta10]: Include <fcntl.h> instead of <sys/file.h>.
1564         * compatMakefile (VPATH): Set this to @srcdir@.
1565         (srcdir): Set this to $(VPATH).
1567         * main.c (main): New local var DIRECTORY_BEFORE_CHDIR.  Save in it
1568         a copy of CURRENT_DIRECTORY after the first getcwd.  Use it
1569         instead of CURRENT_DIRECTORY when chdir'ing back before re-execing.
1571         * remake.c (notice_finished_file): Pass missing SEARCH arg to f_mtime.
1573         * read.c (read_makefile): Remove extraneous arg to parse_file_seq.
1575 Mon Feb 22 14:19:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1577         * compatMakefile ($(infodir)/$(instname).info): Use , instead of /
1578         as the sed delimiter char.
1580 Sun Feb 21 14:11:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1582         * Version 3.63.4.
1584         * rule.h (struct rule): Removed `subdir' member.
1585         * rule.c (new_pattern_rule): No need to clear it.
1586         (count_implicit_rule_limits): Set the `changed' flag in each dep
1587         that refers to a nonexistent directory.  No longer set rule-global
1588         `subdir' flag with that information.
1589         (print_rule_data_base): Don't record info on `subdir' flags.
1591         * implicit.c (pattern_search): Check the DEP->changed flag rather
1592         than the (now gone) RULE->subdir flag.  Also test CHECK_LASTSLASH;
1593         if it is set, the file might exist even though the DEP->changed
1594         flag is set.
1596         * rule.c (count_implicit_rule_limits): Pass "", not ".", as file
1597         name arg to dir_file_exists_p to check for existence of directory.
1599         * implicit.c (pattern_search): Inside dep-finding loop, set
1600         CHECK_LASTSLASH from the value recorded in CHECKED_LASTSLASH[I],
1601         rather than computing it anew.
1603         * commands.c (set_file_variables): Must alloca space for PERCENT
1604         and copy it, to avoid leaving the trailing `)' in the value.
1606         * misc.c (remove_comments): Fixed backslash-checking loop
1607         condition to allow it to look at the first char on the line.
1608         P2 >= LINE, not P2 > LINE.
1610         * compatMakefile ($(bindir)/$(instname)): Before moving $@.new to
1611         $@, rm $@.old and mv $@ to $@.old.
1613         * variable.c (try_variable_definition): Take new args FILENAME and
1614         LINENO.  Fatal if the variable name is empty.
1615         * read.c (read_makefile): Change callers.
1616         * main.c (main): Likewise.
1618         * compatMakefile (group): Define to @KMEM_GROUP@, autoconf magic
1619         that configure will replace with the group owning /dev/kmem.
1621 Mon Feb  8 14:26:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1623         * vpath.c (vpath_search): Take second arg MTIME_PTR, pass thru to
1624         selective_vpath_search.
1625         (selective_vpath_search): Take second arg MTIME_PTR.
1626         If the dir cache thinks a file exists, stat it to make sure, and
1627         put the modtime in *MTIME_PTR.
1628         * remake.c (library_search): Take second arg MTIME_PTR.
1629         When we find a match, record its mtime there.
1630         Pass MTIME_PTR through to vpath_search to do same.
1631         (f_mtime): Pass &MTIME as new 2nd arg to {vpath,library}_search;
1632         store it in FILE->last_mtime if set nonzero.
1633         * implicit.c (pattern_search): Pass nil 2nd arg to vpath_search.
1635         * compatMakefile (remote.o): Prepend `$(srcdir)/' to `remote-*.c',
1636         so globbing looks somewhere it will find things.
1638         * compatMakefile ($(infodir)/$(instname).info): Install `make.info*'
1639         not `$(srcdir)/make.info*'; no need to use basename.
1641 Fri Feb  5 12:52:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1643         * Version 3.63.3.
1645         * compatMakefile (install): Add missing ;\s.
1647         Make -, @, and + prefixes on a pre-expanded command line affect
1648         all lines in the expansion, not just the first.
1649         * commands.h (struct commands): Replace `lines_recurse' member
1650         with `lines_flags'.
1651         (COMMANDS_{RECURSE,SILENT,NOERROR}): New macros, bits to set in
1652         that flag byte.
1653         * commands.c (chop_commands): Set `lines_flags' instead of
1654         `lines_recurse'.  Record not only + but also @ and - prefixes.
1655         * remake.c (notice_finished_file): Check the COMMANDS_RECURSE bit
1656         in FILE->cmds->lines_flags, rather than FILE->cmds->lines_recurse.
1657         * job.c (start_job_command): Replaced RECURSIVE and NOPRINT local
1658         var with FLAGS; initialize it to the appropriate `lines_flags' byte.
1659         Set CHILD->noerror if the COMMANDS_NOERROR bit is set in FLAGS.
1660         Set the COMMANDS_SILENT bit in FLAGS for a @ prefix.
1662         * remake.c (update_goal_chain): Set G->file to its prev after
1663         checking for G being finished, since that check needs to examine
1664         G->file.
1666         * configure.in (union wait check) [HAVE_WAITPID]: Try using
1667         waitpid with a `union wait' STATUS arg.  If waitpid and union wait
1668         don't work together, we should not use union wait.
1670         * Version 3.63.2.
1672         * remake.c (update_goal_chain): When G->file->updated, move
1673         G->file to its prev.  We aren't finished until G->file is nil.
1675 Thu Feb  4 12:53:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1677         * main.c (starting_directory): New global variable.
1678         (main): Set it to cwd after doing -Cs.
1679         (log_working_directory): Use it, rather than computing each time.
1680         * make.h: Declare it.
1682         * compatMakefile (SHELL): Define to /bin/sh for losing Unix makes.
1684         * main.c (decode_env_switches): Allocate (1 + LEN + 1) words for
1685         ARGV, rather than LEN words plus one byte.
1687 Wed Feb  3 18:13:52 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1689         * compatMakefile ($(bindir)/$(instname)): Put - before
1690         install_setgid command line, so its failure won't be an error.
1691         (infodir): New variable.
1692         (install): Depend on $(infodir)/$(instname).info.
1693         ($(infodir)/$(instname).info): New target.
1695         * read.c (read_makefile): If FILENAMES is nil when we see a line
1696         starting with a tab, don't treat it as a command.  Just fall
1697         through, rather than giving an error.
1699         * read.c (read_makefile): If the NO_TARGETS flag is set when we see a
1700         command line, don't clear it before continuing.  We want
1701         subsequent command lines to be ignored as well.
1703         * job.c (new_job): Before expanding each command line, collapse
1704         backslash-newline combinations that are inside var or fn references.
1706 Mon Feb  1 16:00:13 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1708         * compatMakefile (exec_prefix): Default to $(prefix), not /usr/local.
1710         * compatMakefile (make.info): Pass -I$(srcdir) to makeinfo.
1712         * job.c [POSIX] (unblock_sigs): Made global.
1713         [!POSIX] (unblock_sigs): Move defns to job.h.
1714         * job.h [POSIX] (unblock_sigs): Declare.
1716 Sun Jan 31 19:11:05 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1718         * read.c (read_makefile): In vpath parsing, after finding the
1719         pattern token, take entire rest of line as the search path, not
1720         just the next token.
1722         * compatMakefile (remote.o): Depend on remote-*.c.
1724 Thu Jan 28 16:40:29 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1726         * commands.c (set_file_variables): Don't define any F or D versions.
1727         * variable.c (define_automatic_variables): Define them here as
1728         recursively-expanded variables that use the dir and notdir funcs.
1730         * variable.c (target_environment): In v_default case, don't export
1731         o_default or o_automatic variables.
1733         * configure.in (union wait check): Remove ` and ' inside C code;
1734         they confuse the shell script.
1736 Mon Jan 25 13:10:42 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1738         * Version 3.63.1.
1740         * vpath.c (construct_vpath_list): When skipping further processing
1741         of an elt that is ".", don't also skip the code that pushes P past
1742         the next separator.
1744         * compatMakefile (distclean): Don't remove make-*.
1746         * configure.in (HAVE_UNION_WAIT): Try to use WEXITSTATUS if it's
1747         defined.  If one cannot use WEXITSTATUS with a `union wait'
1748         argument, we don't want to believe the system has `union wait' at all.
1750         * remake.c (update_file): Do nothing to print "up to date" msgs.
1751         (update_goal_chain): Do it here instead.
1752         Use the `changed' flag of each goal's `struct dep' to keep track
1753         of whether files_remade (now commands_started) changed around a
1754         call to update_file for that goal.
1755         When a goal is finished, and its file's update_status is zero (i.e.,
1756         success or nothing done), test the `changed' flag and give an "up
1757         to date" msg iff it is clear.
1758         * make.h (files_remade): Renamed to commands_started.
1759         * remake.c: Changed defn.
1760         (update_goal_chain): Changed uses.
1761         * job.c (start_job_command): Increment commands_started here.
1762         (reap_children): Not here.
1764         * remake.c (update_goal_chain): Don't do anything with files'
1765         `prev' members.  update_file now completely handles this.
1767         * variable.c (target_environment): Don't expand recursive
1768         variables if they came from the environment.
1770         * main.c (define_makeflags): For flags with omitted optional args,
1771         store {"", 0} with ADD_FLAG.  When constructing FLAGSTRING, a flag
1772         so stored cannot have more flags appended to the same word.
1774 Fri Jan 22 14:46:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1776         * variable.c (print_variable_set): In vars/bucket calculation,
1777         don't spuriously multiply by 100.
1779         * Version 3.63.
1781         * job.c [!HAVE_UNION_WAIT] (WTERMSIG, WCOREDUMP, WEXITSTATUS):
1782         Don't define if already defined.
1784         * remake.c (update_file): Don't keep track of the command_state before
1785         calling update_file_1.  Remove local variable COMMANDS_FINISHED,
1786         and don't test it to decide to print the "is up to date" msg.
1787         Testing for files_remade having changed should always be sufficient.
1788         The old method lost when we are called in the goal chain run on a
1789         makefile, because the makefile's command_state is already
1790         `cs_finished' from the makefile chain run.
1792         * misc.c [HAVE_SETRE[GU]ID]: Test these to decl setre[gu]id.
1794         * configure.in: Rewrote wait checking.
1795         Use AC_HAVE_HEADERS to check for <sys/wait.h>.
1796         Use AC_HAVE_FUNCS to check for waitpid and wait3.
1797         Use a compile check to test just for `union wait'.
1798         * job.c: Rewrote conditionals accordingly.
1799         [HAVE_WAITPID]: Test this only to define WAIT_NOHANG.
1800         [HAVE_WAIT3]: Likewise.
1801         [HAVE_UNION_WAIT]: Test this to define WAIT_T and W*.
1803         * configure.in: Set CFLAGS and LDFLAGS before all checks.
1805         * dir.c: Add static forward decls of {open,read}_dirstream.
1807 Thu Jan 21 17:18:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1809         * Version 3.62.31.
1811         * job.c [NGROUPS_MAX && NGROUPS_MAX==0]: #undef NGROUPS_MAX.
1813         * compatMakefile (CFLAGS, LDFLAGS): Set to @CFLAGS@/@LDFLAGS@.
1814         * build.template (CFLAGS, LDFLAGS): Same here.
1815         * configure.in: AC_SUBST(CFLAGS) and LDFLAGS.
1816         Set them to -g if not defined in the environment.
1818         * remake.c (library_search): Use LIBNAME consistently, setting it
1819         only once, to be the passed name sans `-l'.
1820         Pass new var FILE to be modified by vpath_search.
1822 Mon Jan 18 14:53:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1824         * Version 3.62.30.
1826         * job.c (start_waiting_jobs): Return when job_slots_used is equal to
1827         job_slots. 
1829         * configure.in: Add AC_CONST for the sake of getopt.
1831         * read.c (read_makefile): Continue after parsing `override'
1832         directive, rather than falling through to lossage.
1833         Check for EOL or blank after "override define".
1835         * compatMakefile (.c.o, remote.o): Put $(CFLAGS) after other switches.
1837 Fri Jan 15 12:52:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1839         * Version 3.62.29.
1841         * main.c (define_makeflags): After writing everything into
1842         FLAGSTRING, only back up two chars if [-1] is a dash, meaning we
1843         just wrote " -".  Always terminate the string at *P.
1845         * remake.c (library_search): When constructing names in std dirs,
1846         use &(*LIB)[2] for the stem, not LIBNAME (which points at the
1847         buffer we are writing into!).
1849 Thu Jan 14 13:50:06 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1851         * read.c (read_makefile): Set IN_IGNORED_DEFINE for "override
1852         define" when IGNORING is true.
1854         * compatMakefile (distclean): Remove config.status and build.sh.
1856 Wed Jan 13 16:01:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1858         * Version 3.62.28.
1860         * misc.c (xmalloc, xrealloc): Cast result of malloc/realloc to
1861         (char *).
1863         * arscan.c (ar_scan) [AIAMAG]: Cast read arg to (char *).
1865         * variable.c (define_automatic_variables): Override SHELL value for
1866         origin o_env_override as well as o_env.
1868         * GNUmakefile (build.sh.in): Don't replace %globobjs%.  Instead,
1869         add the names of the glob objects (w/subdir) to %objs%.
1870         * build.template (globobjs): Removed.
1871         Take basename of $objs before linking.
1873 Tue Jan 12 12:31:06 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1875         * Version 3.62.27.
1877         * configure.in (AC_OUTPUT): Also edit build.sh.
1878         * build.template: New file.
1879         * GNUmakefile (build.sh.in): New rule to create it from build.template.
1880         (make-$(version).tar.Z): Depend on build.sh.in.
1882         * main.c (die): Call print_data_base if -p.
1883         (main): Don't call it here.
1885         * compatMakefile (defines): Add @DEFS@.  configure should turn this
1886         into -DHAVE_CONFIG_H.
1888 Mon Jan 11 14:39:23 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1890         * Version 3.62.26.
1892         * misc.c (init_access): Surround with #ifdef GETLOADAVG_PRIVILEGED.
1893         ({make,user,child}_access) [! GETLOADAVG_PRIVILEGED]: Make no-op.
1894         * compatMakefile (install_setgid): New var, set by configure.
1895         (install): Install setgid $(group) only if $(install_setgid) is true.
1897 Fri Jan  8 15:31:55 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1899         * job.c (load_too_high): If getloadavg fails with errno==0, give a
1900         message saying that load limits are not supported.
1902         * vpath.c (construct_vpath_list): Rewrote path deletion code to
1903         not try to use PATH's next link after freeing PATH.
1905         * main.c (define_makeflags): Rewritten; now handles string-valued
1906         option, and has no arbitrary limits.
1907         (switches): Set `toenv' flag for -I and -v.
1909         * main.c (decode_env_switches): Cast return value of alloca to char *.
1911         * misc.c (child_access) [HAVE_SETREUID, HAVE_SETREGID]: Use
1912         setre[gu]id in place of set[gu]id.
1914 Wed Jan  6 15:06:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1916         * main.c (main): Define MAKEOVERRIDES, MAKE, and MAKE_COMMAND with
1917         origin o_default.
1919         * make.h [POSIX]: Don't test this to use ANSI_STRING.
1920         Testing STDC_HEADERS should be sufficient.
1922         * job.h: Declare start_waiting_jobs.
1924         * read.c (read_makefile): Add missing parens in if stmt that find
1925         conditional directives.
1927         * main.c (main): Declare init_dir.
1928         * implicit.c (pattern_search): Always use two % specs in a
1929         DEBUGP2, and always pass two non-nil args.
1930         Cast field width args to int.
1931         Add missing parens in !RULE->subdir if stmt.
1932         * function.c (expand_function, patsubst_expand): Add parens around
1933         assignments inside `while' stmts.
1934         * commands.c (print_commands): Cast field width args to int.
1936         * read.c (do_define): Cast return value of alloca to (char *).
1938         * main.c (init_switches): New function, broken out of decode_switches.
1939         (decode_switches): Take new arg ENV.  If set, ignore non-option
1940         args; print no error msgs; ignore options with clear `env' flags.
1941         (decode_env_switches): Rewritten to chop envar value into words
1942         and pass them to decode_switches.
1943         (switches): Set `env' flag for -I and -v.
1945         * dir.c (init_dir): Cast free to __glob_closedir_hook's type.
1947 Tue Jan  5 14:52:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1949         * Version 3.62.25.
1951         * job.c [HAVE_SYS_WAIT || !USG]: Don't #include <sys/time.h> and
1952         <sys/resource.h>.  <sys/time.h> interacts badly with <time.h>, and
1953         we don't need these anyway.
1955         * configure.in (AC_HAVE_FUNCS): Check for setre[gu]id.
1956         * misc.c ({user,make}_access): Test #ifndef HAVE_SETRE[GU]ID, not
1957         #ifdef POSIX || USG.  SunOS 4.1 is supposedly POSIX.1 compliant,
1958         but its set[gu]id functions aren't; its setre[gu]id functions work.
1960         * misc.c ({user,make,child}_access): Give name of caller in error msgs.
1962         * job.c (load_too_high): Say "cannot enforce load limit" in error msg.
1964         * configure.in: Call AC_PROG_CC.
1965         * compatMakefile (CC): Define to @CC@ (autoconf magic).
1967         * compatMakefile: Add .NOEXPORT magic target.
1969 Mon Jan  4 17:00:03 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1971         * main.c (print_version): Updated copyright to include 93.
1973 Thu Dec 31 12:26:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1975         * make.h [_AIX]: Don't declare alloca.
1977 Tue Dec 29 13:45:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1979         * Version 3.62.24.
1981         * compatMakefile (objs): Add signame.o.
1982         (srcs): Add signame.[ch].
1984         * compatMakefile (srcs): Add config.h.in.
1985         (remote.o): Add -I. before -I$(srcdir).
1987 Mon Dec 28 15:51:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1989         * Version 3.62.23.
1991         * read.c (readline): Fatal when LEN==0, indicating a line starting
1992         with a NUL.
1993         (readline): Take new arg LINENO, for use in error msg.
1994         (read_makefile, do_define): Pass it.
1996         * compatMakefile (glob/libglob.a): Pass -DHAVE_CONFIG_H in CPPFLAGS.
1997         (.c.o): Add -I. before -I$(srcdir).
1999 Wed Dec 23 12:12:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2001         * read.c (read_makefile): Accept and ignore a rule with no targets.
2003         * compatMakefile (ALLOCA_SRC): New variable.
2004         (srcs): Include its value.
2006         * read.c (struct conditional): Renamed member `max_ignoring' to
2007         `allocated'; added new member `seen_else'.
2008         (conditional_line): Initialize seen_else flag when starting an `if...';
2009         set it when we see an `else'; fatal if set when we see `else'.
2010         (read_makefile): Fatal "missing `endif'" if there are any pending
2011         conditionals, not just if we are still ignoring.
2013 Tue Dec 22 15:36:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2015         * compatMakefile (manext): Set to 1, not l.
2016         ($(mandir)/$(instname).$(manext)): Use $(srcdir) for make.man in cmds.
2018         * file.c (file_hash_enter): Don't call uniquize_deps here.
2019         * read.c (record_files): Likewise.
2020         * implicit.c (pattern_search): Likewise.
2021         * commands.c (set_file_variables): Call it only here.
2023         * default.c (default_variables) [__convex__]: FC=fc.
2025         * variable.c (target_environment): Expand the values of recursively
2026         expanded variables when putting them into the environment.
2027         * expand.c (recursively_expand): Made global.
2028         * make.h (recursively_expand): Declare it.
2030         * remake.c (check_dep): Set FILE->command_state to cs_deps_running
2031         when a dep's command_state is cs_running or cs_deps_running.
2033         * read.c (read_makefile): Changed error msg for spurious cmds to
2034         not say "first target".
2036 Sun Dec 20 17:56:09 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2038         * configure.in: Do AC_CONFIG_HEADER right after AC_INIT.
2039         * make.h (HAVE_CONFIG_H): #include "config.h", then #define this.
2040         * compatMakefile (config.h, configure, config.h.in): New rules.
2041         (defines): Removed @DEFS@.
2043 Thu Dec 17 16:11:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2045         * compatMakefile (realclean): Just depend on distclean; no cmds.
2046         (distclean): Do what realclean did before; also remove Makefile and
2047         config.h; don't remove configure.
2048         (info, dvi): New targets; depend on make.{info,dvi}.
2049         (doc): Removed target.
2050         (MAKEINFO, TEXI2DVI): New vars.
2051         (make.info, make.dvi): Use them instead of explicit cmds.
2053 Wed Dec 16 16:25:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2055         * configure.in: Added fcntl.h to AC_HAVE_HEADERS.  getloadavg cares.
2057 Wed Dec  9 15:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2059         * main.c (long_option_aliases): Add --new-file alias for -W.
2061         * default.c (default_variables): Change all C++ to CXX and C++FLAGS
2062         to CXXFLAGS.
2064         * read.c (do_define): Expand the variable name before using it.
2066         * main.c (main): Define variable "MAKE_COMMAND" to argv[0];
2067         define "MAKE=$(MAKE_COMMAND) $(MAKEOVERRIDES)" always.
2069         * remake.c (library_search): Search for libNAME.a in cwd; look in
2070         vpath before looking in standard dirs, not after.
2071         Changed order of std dirs to: /lib, /usr/lib, ${prefix}/lib.
2073 Mon Nov 23 14:57:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2075         * default.c (default_pattern_rules, default_terminal_rules): Added
2076         brackets around initializers.
2078         * variable.c (try_variable_definition): Don't check for LINE[0]=='\t'.
2079         (try_variable_definition): Expand the name before defining the var.
2081         * job.c (init_siglist): Removed function.
2082         Removed decl of `sys_siglist'.
2083         * make.h [! HAVE_SYS_SIGLIST]: #include "signame.h".
2084         [HAVE_SYS_SIGLIST && !SYS_SIGLIST_DECLARED]: Declare sys_siglist
2085         only under these conditions.
2086         * main.c (main): Don't declare init_siglist.
2087         (main) [! HAVE_SYS_SIGLIST]: Call signame_init instead of init_siglist.
2089 Wed Nov 18 14:52:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2091         * read.c (record_files): Don't try to append to FIRSTDEPS if it's
2092         nil; instead just set it to MOREDEPS.
2094 Mon Nov 16 17:49:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2096         * vpath.c (construct_vpath_list): Initialize P to DIRPATH before
2097         loop that sets MAXELEM.
2099 Fri Nov 13 18:23:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2101         * Version 3.62.22.
2103 Thu Nov 12 15:45:31 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2105         * job.c (start_job_command): Under -n, increment files_remade after
2106         processing (i.e., printing) all command lines.
2108 Tue Nov 10 15:33:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2110         * read.c (record_files): Append new deps if this rule has no
2111         commands; prepend them to existing deps if this rule has no commands.
2113         * dir.c (open_dirstream): Return nil if DIR->contents->files is nil.
2115         * read.c (parse_file_seq): Removed last arg STRIP.  Always strip `./'s.
2116         (read_makefile): Changed callers.
2117         * function.c (string_glob): Likewise.
2118         * rule.c (install_pattern_rule): Likewise.
2120 Mon Nov  9 17:50:16 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2122         * remake.c (files_remade): Made global.
2123         (notice_finished_file): Don't increment files_remade here; this
2124         function gets called in many situations where no remaking was in
2125         fact done.
2126         * job.c (reap_children): Do it here instead, when we know that 
2127         actual commands have been run for the file.
2128         * make.h (files_remade): Declare it.
2130 Thu Nov  5 18:26:10 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2132         * vpath.c (construct_vpath_list): Allow blanks as well as colons to
2133         separate elts in the search path.
2135         * read.c (read_makefile): Don't fatal on extra tokens in `vpath'.
2136         The search path can contain spaces now.
2138 Tue Nov  3 20:44:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2140         * compatMakefile (check): New target; no-op.
2142         * file.c (file_hash_enter): Mod OLDHASH by FILE_BUCKETS after
2143         testing for OLDHASH==0 but before using the value.
2144         (rename_file): Don't mod OLDHASH by FILE_BUCKETS before passing it
2145         to file_hash_enter.
2147         * file.c (rename_file): Notice when OLDFILE->cmds came from
2148         default.c, and don't try to print ->filename in that case.
2150 Sun Oct 25 01:48:23 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2152         * remake.c (update_file): Don't process F->also_make here.
2153         (notice_finished_file): Don't process FILE->also_make if no attempt
2154         to update FILE was actually made.
2155         Fixed to call f_mtime directly to refresh their modtimes.
2157 Sat Oct 24 22:08:59 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2159         * read.c (find_percent): Don't increment P again after skipping
2160         an escaped %.
2162         * expand.c (variable_expand): In call to patsubst_expand, don't
2163         find `%'s ourselves; let that function do it.
2165         * read.c (read_makefile: record_waiting_files): Don't call
2166         record_files if FILENAMES is nil.
2167         (read_makefile): All alternatives in the parsing, except for rule
2168         lines, fall through to the end of the loop.  At the end of the
2169         loop, do record_waiting_files so we notice later spurious cmds.
2171 Fri Oct 23 15:57:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2173         * variable.c (define_automatic_variables): Free old value of SHELL
2174         before replacing it.
2176 Thu Oct 15 18:57:56 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2178         * compatMakefile (.c.o): Add -I$(srcdir)/glob to flags.
2180         * dir.c (open_dirstream): Cast return value to __ptr_t.
2182         * default.c (default_variables: "GET") [_IBMR2]: Use USG defn.
2184         * make.h (MAXPATHLEN): Moved out of #ifndef POSIX.
2185         (GET_PATH_MAX): Moved from #ifdef POSIX to #ifdef PATH_MAX #else.
2186         Define as (get_path_max ()).
2187         [! PATH_MAX] (NEED_GET_PATH_MAX): Define.
2188         [! PATH_MAX] (get_path_max): Declare fn.
2189         * misc.c [NEED_GET_PATH_MAX] (get_path_max): New function.
2191 Mon Oct 12 13:34:45 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2193         * Version 3.62.21.
2195         * job.c (sys_siglist): Only declare #ifndef SYS_SIGLIST_DECLARED.
2196         * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2197         SYS_SIGLIST_DECLARED.
2199         * dir.c (file_impossible): When initializing DIR->contents, set
2200         DIR->contents->dirstream to nil.
2202         * compatMakefile (GLOB): Define new variable.
2203         (objs): Use it, rather than glob/libglob.a explicitly.
2205         * read.c (parse_file_seq): When stripping "./", handle cases like
2206         ".///foo" and "./////".
2207         * file.c (lookup_file, enter_file): Likewise.
2209 Sun Oct 11 17:00:35 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2211         * dir.c (struct dirstream, {open,read}_dirstream): New
2212         data type and functions to read a directory sequentially.
2213         (init_dir): New function to hook it into glob.
2214         * main.c (main): Call init_dir.
2216         * compatMakefile (objs): Added glob/libglob.a.
2217         * configure.in: Remove code to test for glob.
2219 Fri Oct  9 12:08:30 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2221         * read.c (record_files): Generalized test for NAME pointing
2222         somewhere into F->name.
2224         * variable.c (define_variable_in_set): Free old value when replacing.
2226         * read.c (do_define): Free the linebuffer before returning.
2227         (record_files): When clearing .SUFFIXES deps, free their data.
2228         (multi_glob): Free OLD and its data when replacing it with results
2229         of glob run.
2231         * commands.c (set_file_variables): Use alloca in place of xmalloc
2232         for temp space for $^, $?, et al.
2234         * dir.c (struct directory): New member `contents' replaces `files'
2235         and `dirstream'.
2236         (struct directory_contents): New type.
2237         (directories_contents): New hash table.
2238         (dir_struct_file_exists_p): Take a struct directory_contents.
2239         (dir_file_exists_p): Pass it the `contents' member of the dir found.
2240         (dir_struct_file_exists_p): Renamed to dir_contents_file_exists_p;
2241         made static.  Return 0 if DIR is nil (meaning it couldn't be stat'd).
2242         (dir_file_exists_p, find_directory): Change all callers.
2243         (file_impossible): Use DIR->contents, initializing it if nil.
2244         (print_dir_data_base): Use DIR->contents, and print out device and
2245         inode numbers with each directory.
2247         * Changes for performance win from John Gilmore <gnu@cygnus.com>:
2248         * dir.c (DIRECTORY_BUCKETS): Increase to 199.
2249         (DIRFILE_BUCKETS): Decrease to 107.
2250         (find_directory): Allocate and zero a multiple of
2251         sizeof (struct dirfile *), not of sizeof (struct dirfile).
2252         (dir_struct_file_exists_p): New function, nearly all code from
2253         dir_file_exists_p.
2254         (dir_file_exists_p): Just call find_directory+dir_struct_file_exists_p.
2255         * vpath.c (selective_vpath_search): Remove redundant
2256         dir_file_exists_p call.
2258         * configure.in: Comment out glob check; always use our code.
2260 Fri Oct  2 19:41:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2262         * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2263         HAVE_SYS_SIGLIST; after doing #define sys_siglist _sys_siglist, we
2264         do have it.
2266 Wed Sep 30 19:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2268         * main.c (main): Don't do -w automatically if -s.
2270 Tue Sep 29 21:07:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2272         * main.c (printed_version): Move variable inside print_version.
2273         (print_version): Return immediately if printed_version is set.
2274         (die): Don't test printed_version here.
2275         (decode_switches): Under -v, do print_version before giving usage.
2276         (DESCRIPTION_COLUMN): New macro.
2277         (decode_switches): Use it when printing the usage message.
2278         Leave at least two spaces between options and their descriptions.
2280 Fri Sep 25 13:12:42 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2282         * Version 3.62.20.
2284 Wed Sep 16 16:15:22 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2286         * read.c (read_makefile): Save errno value from trying to open
2287         FILENAME, and restore it before erring; otherwise we get the errno
2288         value from the last elt of the search path.
2290 Tue Sep 15 15:12:47 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2292         * main.c (long_option_aliases): Add --stop for -S.
2294         * read.c (word1eq): Do strncmp before dereferencing someplace that
2295         may be out in space.
2297 Wed Sep  9 15:50:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2299         * remake.c (notice_finished_file): If all the command lines were
2300         recursive, don't do the touching.
2302         * job.c (start_job_command): Don't check for + here.
2303         * commands.c (chop_commands): Do it here instead.
2305         * default.c (default_terminal_rules): Prepend + to cmds for RCS.
2307 Wed Sep  2 17:53:08 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2309         * compatMakefile (objs): Include $(ALLOCA).
2311         * make.h [CRAY]: Move #define signal bsdsignal to before #includes.
2313 Thu Aug 27 17:45:43 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
2315         * read.c (default_include_directories): Add INCLUDEDIR first.
2316         * compatMakefile (includedir): Define.
2317         (defines): Add -D for INCLUDEDIR="$(includedir)".
2319         * read.c (read_makefile): Grok multiple files in `include';
2320         globbing too.
2322         * remake.c (library_search): New function.
2323         (library_file_mtime): Remove function.
2324         (f_mtime): Use library_search instead of library_file_mtime.
2325         * compatMakefile (libdir): Define.
2326         (defines): Add -D for LIBDIR="$(libdir)".
2327         * make.texinfo (Libraries/Search): Document change.
2329         * file.c (rename_file): Fix file_hash_enter call with missing arg.
2331 Wed Aug 26 17:10:46 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2333         * Version 3.62.19.
2335         * main.c (main): Set command_state to cs_finished for temp files
2336         made for stdin makefiles.
2338         * main.c (decode_switches): Don't tell getopt to return non-option
2339         args in order.
2340         Ignore an argument of `-'.
2342 Thu Aug 20 13:36:04 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2344         * job.c (start_job_command): If (touch_flag && !RECURSIVE), ignore
2345         the command line and go to the next.
2346         (notice_finished_file): Under -t, touch FILE.
2347         * remake.c (remake_file): Don't touch it here.
2349 Wed Aug 19 16:06:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2351         * function.c (pattern_matches): Use temporary for strlen (WORD)
2352         instead of two function calls.
2354         * compatMakefile (LOAD_AVG): Remove variable and comments.
2356 Tue Aug 18 14:58:58 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2358         * make.texinfo (Running): Node renamed to `make Invocation'.
2360 Fri Aug 14 12:27:10 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2362         * arscan.c (ar_name_equal): Don't compare [MAX-3..MAX] if
2363         NAMELEN != MEMLEN.
2365 Thu Aug 13 17:50:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2367         * Version 3.62.18.
2369         * main.c: Don't #include <time.h>; make.h already does.
2371 Mon Aug 10 17:03:01 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2373         * implicit.c (pattern_search): Fixed copying of suffix when building
2374         also_make elts.
2376         * function.c (expand_function: `shell'): Make sure BUFFER is
2377         null-terminated before replacing newlines.
2379         * compatMakefile (mandir): Use man$(manext), not always manl.
2381 Sun Aug  2 01:42:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2383         * rule.c (new_pattern_rule): Not static.
2384         * rule.h: Declare it.
2386         * file.c (file_hash_enter): New function, most code from rename_file.
2387         (rename_file): Call it.
2388         * file.h (file_hash_enter): Declare it.
2390         * dep.h: Doc fix.
2392 Thu Jul 30 15:40:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2394         * main.c (decode_switches): Handle usage_and_exit when building
2395         long options vector.
2397         * default.c (default_terminal_rules): Make RCS rules use $(CHECKOUT,v).
2398         (default_variables): Define CHECKOUT,v (hairy).
2400         * make.h [!HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2401         sys_siglist to _sys_siglist.
2403 Sun Jul 26 16:56:32 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2405         * NEWS: Add header and tail copyright info like Emacs NEWS.
2407         * make.h [ANSI_STRING]: Don't #define index, rindex, bcmp, bzero,
2408         bcopy if already #define'd.
2409         [STDC_HEADERS] (qsort, abort, exit): Declare here.
2410         [! __GNU_LIBRARY__ && !POSIX]: Not here.
2412         * make.h [_AIX]: #pragma alloca first thing.
2414         * job.c (start_waiting_job): Set the command_state to cs_running
2415         when we queue a job on waiting_jobs.
2417 Fri Jul 24 02:16:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2419         * variable.c (define_automatic_variables): Use "" instead of nil
2420         for empty value.
2422 Thu Jul 23 22:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2424         * Version 3.62.17.
2426         * main.c (struct command_switch.type): Add alternative usage_and_exit.
2427         (command_switches): Add -h/--help.
2429 Thu Jul 16 14:27:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2431         * GNUmakefile (make-$(version).tar.Z): Include NEWS, not CHANGES.
2432         * README.template: Mention NEWS.
2433         * CHANGES: Renamed to NEWS.
2435         * main.c [! STDC_HEADERS] [sun]: Don't declare exit.
2437 Tue Jul 14 18:48:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2439         * main.c (main): Set -o files' command_states to cs_finished.
2441         * rule.c (count_implicit_rule_limits): Decrement num_pattern_rules
2442         when tossing a rule.
2444         * main.c (main): Use alloca only in simple local var assignment,
2445         for braindead SGI compiler.
2447         * rule.c (print_rule_data_base): Barf if num_pattern_rules is
2448         inconsistent with the number computed when listing them.
2450 Mon Jul 13 17:51:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2452         * commands.c (set_file_variables): For $? and $^ elts that are archive
2453         member refs, use member name only.
2455 Fri Jul 10 00:05:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2457         * variable.h (struct variable.export): Add new alternative v_ifset.
2458         * variable.c (target_environment): Check for it.
2459         (define_automatic_variables): Set it for MAKEFILES.
2461 Thu Jul  9 21:24:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2463         * compatMakefile (objs): Remove getloadavg.o; $(extras) gets it.
2464         (remote.o): Use $(srcdir)/remote.c, not $remote.c<.
2465         (distclean, mostlyclean): New targets.
2467 Tue Jul  7 19:12:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2469         * Version 3.62.16.
2471         * compatMakefile (config.status): Remove rule.
2473         * job.c (start_waiting_job): Free C after using C->file, not before.
2475 Sat Jul  4 20:51:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2477         * commands.c, job.c, main.c, make.h, remote-cstms.c: Use #ifdef
2478         HAVE_* instead of #ifndef *_MISSING.
2479         * configure.in: Use AC_HAVE_FUNCS instead of AC_MISSING_FUNCS (gone).
2481 Thu Jul  2 18:47:52 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2483         * main.c (main): makelevel>0 or -C implies -w.
2485 Tue Jun 30 20:50:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2487         * file.c, job.c, function.c: Don't #include <errno.h>.
2488         make.h: Do it here instead.
2489         * arscan.c (ar_member_touch): Don't declare errno.
2491 Thu Jun 25 17:06:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2493         * GNUmakefile (make-$(version).tar.Z): Depend on INSTALL, configure.in.
2495         * remake.c (update_file): If commands or deps are running after
2496         update_file_1 returns, break out of the :: rule (->prev) loop and
2497         just return.
2499         * job.c (job_next_command): New function; code from start_job.
2500         (start_job_command): Renamed from start_job.  Call job_next_command
2501         and recurse for empty command lines and -n.
2502         (start_waiting_job): Call start_job_command, not start_job.
2503         (new_job): Call job_next_command to prime the child structure, and
2504         then call start_waiting_job.
2505         (reap_children): Use job_next_command and start_job_command.
2506         (start_waiting_job): Call start_remote_job_p here, and store its
2507         result in C->remote.  If zero, check the load average and
2508         maybe put C on waiting_jobs.
2509         (start_job_command): Test CHILD->remote rather than calling
2510         start_remote_job_p.  Don't do load avg checking at all here.
2512         * main.c (main): Don't handle SIGILL, SIGIOT, SIGEMT, SIGBUS,
2513         SIGSEGV, SIGFPE or SIGTRAP.
2515         * compatMakefile (glob/libglob.a): Don't pass srcdir to sub-make.
2516         configure will set it in glob/Makefile.
2518 Wed Jun 24 19:40:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2520         * dir.c [DIRENT] (direct): Don't define to dirent.
2521         [! DIRENT] (direct): Define to dirent.
2522         (dir_file_exists_p): Use struct dirent instead of struct direct.
2524         * make.h (getcwd): No space between macro and ( for args!
2526         * job.c (start_job): Don't put the job on waiting_jobs if
2527         job_slots_used==0.
2529         * make.texinfo (Missing): Shortened title.
2531 Tue Jun 23 18:42:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2533         * file.c (remove_intermediates): Print "rm" commands under -n.
2535 Mon Jun 22 16:20:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2537         * Version 3.62.15.
2539 Fri Jun 19 16:20:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2541         * arscan.c [M_UNIX]: #undef M_XENIX.
2543 Wed Jun 17 17:59:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2545         * default.c (default_terminal_rules): Put @ prefix on RCS cmds.
2547 Tue Jun 16 19:24:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2549         * compatMakefile (getloadavg.o): Removed special rule.
2550         (CFLAGS): Don't include $(defines).
2551         (.c.o): Define suffix rule.
2552         (glob/libglob.a): Pass CPPFLAGS=$(defines) to submake.
2553         (GETOPT_SRC, srcs, tagsrcs): Prefix files with $(srcdir)/.
2555         * arscan.c (ar_name_equal): Moved local vars inside #if'd block.
2557         * make.h (max): Removed.
2558         * expand.c (variable_buffer_output): Don't use it.
2560         * compatMakefile (INSTALL): Define.
2561         (Makefile): New rule to make from Makefile.in.
2562         (srcdir): Define.
2563         (VPATH): Define.
2564         (getloadavg.o, remote.o): Use autoconf $foo< hack.
2566         * commands.c (fatal_error_signal): Removed return.
2568 Mon Jun 15 17:42:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2570         * Version 3.62.14.
2572         * make.texinfo (Summary): New node.
2573         (Special Targets): Mention .EXPORT_ALL_VARIABLES here.
2575         * variable.c (max): Moved to make.h.
2577         * compatMakefile (objs, srcs): Added ar & arscan.
2579         * job.c (start_waiting_job): New function, 2nd half of new_job.
2580         (new_job): Call it.
2581         (start_waiting_jobs): New function.
2582         * remake.c (update_goal_chain): Call start_waiting_jobs at the top
2583         of the main loop.
2584         * compatMakefile (objs, srcs): Removed load, added getloadavg.
2586 Fri Jun 12 19:33:16 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2588         * job.c (load_too_high): New function.  Uses getloadavg.
2589         (waiting_jobs): New variable.
2590         (start_job): Don't call wait_to_start_job.  Instead, if
2591         load_too_high returns nonzero, add the child to the
2592         `waiting_jobs' chain and return without starting the job.
2594 Thu Jun 11 00:05:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2596         * expand.c (variable_buffer_output): Made global again.
2597         * variable.h: And declare it.
2599         * arscan.c (PORTAR): Define for all systems if PORT5AR is not defined.
2600         (AR_NAMELEN, AR_TRAILING_SLASH): Removed.
2601         (ar_scan): Don't use it.  Don't #ifdef AR_TRAILING_SLASH; just look
2602         for a slash in the archive at run time.
2603         (ar_name_equal): Rewrote .o hacking to not use AR_NAMELEN, and to
2604         cope with trailing-slash and non-trailing-slash archives.
2606         * main.c (main) [! SETVBUF_REVERSED]: Test this instead of USGr3 et al.
2607         [SETVBUF_REVERSED]: Always allocate a buffer ourselves.
2609         * load.c (load_average) [sgi]: Use sysmp call.
2611         * compatMakefile (INSTALL_DATA, INSTALL_PROGRAM): Define.
2612         ($(bindir)/$(instname), $(mandir)/make.$(manext)): Use them.
2614         * make.h [HAVE_VFORK_H]: #include <vfork.h>.
2615         (vfork, VFORK_NAME): Don't define.
2616         * job.c (start_job): Use "vfork" in place of VFORK_NAME.
2618         * make.h [HAVE_LIMITS_H, HAVE_SYS_PARAM_H]: If #define'd, #include
2619         the each file.  Rearranged PATH_MAX hacking.
2620         * job.c: Rearranged NGROUPS_MAX hacking.
2622         * remake.c (fstat, time): Don't declare.
2624         * compatMakefile (defines): Value is @DEFS@.
2625         (LOADLIBES): Value is @LIBS@.
2626         (extras): Value is @LIBOBJS@.
2627         (ARCHIVES, ARCHIVES_SRC, ALLOCASRC): Removed.
2628         * arscan.c, ar.c: Surround body with #ifndef NO_ARCHIVES.
2630         * misc.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl get*id.
2632         * make.h [GETCWD_MISSING]: Test instead of !USG && !POSIX et al.
2633         (getcwd): Just declare if present.  If not, declare as a macro
2634         using getwd, and declare getwd.
2635         [PATH_MAX] (GET_PATH_MAX): #define to PATH_MAX.
2636         * main.c (main, log_working_directory): Use getcwd instead of getwd.
2638         * main.c (main) [SETLINEBUF_MISSING]: Test this instead of USG.
2640         * make.h (SIGHANDLER, SIGNAL): Removed.
2641         (RETSIGTYPE): Define if not #define'd.
2642         * main.c (main): Use signal in place of SIGNAL.
2644         * main.c [SYS_SIGLIST_MISSING]: Test instead of USG.
2646         * job.c (search_path) [GETGROUPS_MISSING]: Test instead of USG.
2647         [HAVE_UNISTD_H]: Test instead of POSIX to not decl getgroups.
2649         * main.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl chdir.
2650         [! STDC_HEADERS]: Test instead of !POSIX to decl exit & atof.
2652         * job.c (child_handler), commands.c (fatal_error_signal): Return
2653         RETSIGTYPE instead of int.
2654         * main.c (main): Declare fatal_error_signal and child_handler here
2655         to return RETSIGTYPE; removed top-level decl of former.
2657         * commands.c (fatal_error_signal), job.c (unblock_sigs, start_job),
2658         main.c [SIGSETMASK_MISSING]: Test this instead of USG.
2660 Wed Jun 10 22:06:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2662         * job.c [HAVE_WAITPID]: Test this instead of USG.
2663         [! HAVE_UNISTD_H]: Test this instead of !POSIX to declare misc fns.
2664         (GID_T): Don't #define.
2665         (search_path): Use gid_t instead of GID_T.
2666         [GETDTABLESIZE_MISSING, SYS_SIGLIST_MISSING, DUP2_MISSING]: Test
2667         these individually instead of USG for all.
2668         * make.h (ctime): Don't declare.  #include time.h instead.
2669         [HAVE_UNISTD_H]: #include <unistd.h> and #define POSIX #ifdef
2670         _POSIX_VERSION.
2671         * dir.c [__GNU_LIBRARY__] (D_NAMLEN): Define to use d_namlen member.
2672         * make.h [NEED_MEMORY_H]: Only include memory.h #ifdef this.
2674         * arscan.c: Removed #ifdef mess about string.h et al.
2675         Just #include make.h instead.
2676         * make.h (fstat, atol): Declare.
2678         * commands.c (fatal_error_signal): Don't use sigmask to check for
2679         propagated signals; use ||s instead.
2680         (PROPAGATED_SIGNAL_MASK): Removed.
2681         (fatal_error_signal) [POSIX]: Use sigprocmask in place of sigsetmask.
2683         * variable.c (variable_buffer, variable_buffer_length,
2684         initialize_variable_output, variable_output): Moved to expand.c;
2685         made all static.
2686         (struct output_state, save_variable_output,
2687         restore_variable_output): Removed.
2688         * expand.c (initialize_variable_output): Put a NUL at the beginning
2689         of the new buffer after allocating it.
2690         (allocated_variable_expand_for_file): Don't use
2691         {save,restore}_variable_output.  Do it by hand instead, keeping
2692         state on the stack instead of malloc'ing it.
2693         (allocated_variable_expand): Removed.
2694         * variable.h (allocated_variable_expand): Define here as macro.
2695         (variable_buffer_output, initialize_variable_output,
2696         save_variable_output, restore_variable_output): Removed decls.
2698         * read.c (conditional_line): For an if cmd, if any elt of the
2699         conditionals stack is ignoring, just push a new level that ignores
2700         and return 1; don't evaluate the condition.
2702 Thu Jun  4 21:01:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2704         * main.c (main): Put #ifdef's around frobbing SIGSYS and SIGBUS.
2706         * job.c (getdtablesize): Don't declare or #define if already #define'd.
2708 Wed Jun  3 23:42:36 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2710         * file.c (snap_deps): If `.EXPORT_ALL_VARIABLES' is a target, set
2711         export_all_variables.
2712         * make.texinfo (Variables/Recursion): Document .EXPORT_ALL_VARIABLES.
2714 Tue Jun  2 21:08:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2716         * Version 3.62.13.
2718         * commands.c (set_file_variables): Calculate length for ^D and ?D
2719         individually, making sure to give them at least enough space for "./".
2721         * make.h [CRAY]: #define signal to bsdsignal.
2723         * default.c (default_variables) [CRAY]: Define PC, SEGLDR,
2724         CF77PPFLAGS, CF77PP, CFT, CF, and FC.
2726         * arscan.c (AR_HDR_SIZE): Define to sizeof (struct ar_hdr), if it
2727         wasn't defined by <ar.h>.
2729 Thu May 28 00:56:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2731         * Version 3.62.12.
2733 Tue May 26 01:26:30 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2735         * rule.c (new_pattern_rule): Initialize LASTRULE to nil, not
2736         pattern_rules.
2738 Mon May 25 19:02:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2740         * main.c (decode_switches): Initialize all the long_option elt members.
2742 Thu May 21 16:34:24 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
2744         * make.texinfo (Text Functions): Correct filter-out description.
2746 Tue May 19 20:50:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2748         * compatMakefile (realclean): Don't remove backup files.
2750         * main.c (decode_switches): Allocate ARGC+1 elts in `other_args'.
2752 Sun May 17 16:38:48 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2754         * Version 3.62.11.
2756 Thu May 14 16:42:33 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2758         * job.c (reap_children): Don't die if wait returns EINTR.
2760 Wed May 13 18:28:25 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2762         * job.c (reap_children): Always run the next command for a
2763         successful target.  If we are going to die, we don't want to leave
2764         the target partially made.
2766 Tue May 12 00:39:19 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2768         * job.c (construct_command_argv_internal): After loop, if we only
2769         have one word, check it for being a shell command.
2771         * main.c (decode_switches): Allocate ARGC slots in other_args to
2772         begin with, so we never need to worry about growing it.
2773         If we get a non-option arg and POSIXLY_CORRECT is in the
2774         environment, break out of the loop.  After the loop, add all remaining
2775         args to other_args list.
2777         * main.c (decode_switches): For positive_int and floating switches
2778         when optarg is nil, use next arg if it looks right (start with a
2779         digit, or maybe decimal point for floating).
2781         * variable.c (define_automatic_variables): Always set SHELL to
2782         default if it comes from the environment.  Set its export bit.
2783         * make.texinfo (Environment): Document change.
2785 Mon May 11 00:32:46 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2787         * Version 3.62.10.
2789         * compatMakefile (tags, TAGS): Use vars for cmds.
2790         (ETAGS, CTAGS): Define.
2792         * main.c (decode_switches): If a switches elt has a nil long_name,
2793         make the long option name elt be "".
2794         Fixed loop to not ignore all the options.
2796         * make.texinfo (Option Summary): Added long options.
2798         * main.c (switches): Changed -m's description to "-b".
2799         (decode_switches): When printing the usage message, don't print
2800         switches whose descriptions start with -.
2801         When constructing the list of names for switch -C, search the
2802         switches vector for switches whose descriptions are "-C".
2804         * main.c (switches): Call -S --no-keep-going, not --dont-keep-going.
2805         Call -I --include-dir, not --include-path.
2806         (long_option_aliases): Added --new == -W, --assume-new == -W,
2807         --assume-old == -o, --max-load == -l, --dry-run == -n, --recon == -n,
2808         --makefile == -f.
2810         * main.c (switches): Removed bogus "silent" elt.
2811         (long_option_aliases): Define new var.
2812         (decode_switches): Add long_option_aliases onto the end of the long
2813         options vector created for getopt_long.
2814         Look through long_option_aliases for extra names to list
2815         in usage message.
2817 Sat May  9 00:21:05 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2819         * main.c (log_working_directory): Fixed to properly not print the
2820         leaving message when we haven't printed the entering message.
2822 Fri May  8 21:55:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2824         * main.c (struct command_switch): Added elts `long_name', 
2825         `description', and `argdesc'.
2826         (switches): Added initializers for new members.
2827         (decode_switches): Rewritten to use getopt_long.
2828         * compatMakefile (GETOPT, GETOPT_SRC): Define.
2829         (objs, srcs): Include them.
2831         * job.c (child_died): Renamed to dead_children; made static.
2832         (child_handler): Increment dead_children instead of setting child_died.
2833         (reap_children): Decrement dead_children instead of clearing
2834         child_died.  The point of all this is to avoid printing "waiting
2835         for unfinished jobs" when we don't actually need to block.
2836         This happened when multiple SIGCHLDs before reap_children was called.
2838         * job.c (reap_children): If ERR is set, so we don't call start_job
2839         on the child being reaped, instead set its command_state to
2840         cs_finished.
2841         (reap_children, child_handler, new_job): I added several
2842         debugging printf's while fixing this.  I left them in if (debug_flag) 
2843         because they may be useful for debugging this stuff again.
2845 Wed May  6 22:02:37 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2847         * read.c (read_makefile): v_export is not 1.
2849 Mon May  4 17:27:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2851         * Version 3.62.9.
2853         * variable.c (export_all_variables): New variable.
2854         (target_environment): Export variables whose `export' member is
2855         v_default if export_all_variables is set and their names are benign.
2856         * variable.h: Declare export_all_variables.
2857         * read.c (read_makefile): If export or unexport is given with no
2858         args, set or clear export_all_variables, respectively.
2860         * variable.c (target_environment): Exclude MAKELEVEL in the loop,
2861         so it isn't duplicated when we add it at the end.
2863 Sun May  3 17:44:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2865         * Version 3.62.8.
2867         * variable.h (struct variable): Added new member `export'.
2868         * variable.c (define_variable_in_set): Initialize it to v_default.
2869         (target_environment): Don't check for .NOEXPORT.
2870         Export variables whose `export' member is v_default and that would
2871         have been exported under .NOEXPORT, and variables whose `export'
2872         member is v_export.
2873         (try_variable_definition): Return the variable defined.
2874         * variable.h (try_variable_definition): Changed decl.
2875         * read.c (read_makefile): Recognize `export' and `unexport' directives.
2877 Fri May  1 11:39:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2879         * main.c (main) [POSIX]: Reversed args to sigaddset.
2881 Thu Apr 30 17:33:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2883         * job.c [POSIX || !USG] (unblock_sigs): New fn.
2884         (start_job): Block signals before forking.
2885         (new_job): Unblock signals after putting the new child on the chain.
2886         * main.c (main) [POSIX]: Use sigset_t fatal_signal_set instead of
2887         int fatal_signal_mask.
2889         * load.c [sgi] (LDAV_CVT): Define.
2891 Wed Apr 29 17:15:59 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2893         * Version 3.62.7.
2895         * load.c (load_average) [sgi]: Clear the high bit of the address
2896         from the symbol table before looking it up in kmem.
2898         * misc.c (fatal, makefile_fatal): Put *** in fatal error messages.
2899         (remake_file): No longer needed in message here.
2901         * main.c (die): Call reap_children with BLOCK==1.
2903 Tue Apr 28 20:44:35 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2905         * rule.c (freerule): Don't set LASTRULE->next if LASTRULE is nil.
2907 Sun Apr 26 15:09:51 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2909         * rule.c (count_implicit_rule_limits): Initialize LASTRULE to nil,
2910         not to head of chain.  Extract next ptr before we might do
2911         freerule, and use that for next iteration.
2912         (freerule): Still do next ptr frobbing if LASTRULE is nil.
2914 Tue Apr 21 03:16:29 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2916         * job.c (child_error): Removed extra %s from error msg format.
2918         * Version 3.62.6.
2920         * job.c (reap_children): Don't start later commands in a sequence
2921         if ERR is nonzero.
2923         * job.c (new_job): Always call reap_children with BLOCK==0 first thing.
2925         * job.c (reap_children): New function; work that used to be done in
2926         child_handler.
2927         (child_died): New global var.
2928         (child_handler): Now just sets child_died.
2929         (wait_for_children): Removed.
2930         (unknown_children_possible, block_signals, unblock_signals,
2931         push_signals_blocked_p, pop_signals_blocked_p): Removed.
2932         (child_execute_job): Removed call to unblock_signals.
2933         (new_job): Removed calls to push_signals_blocked_p and
2934         pop_signals_blocked_p.
2935         * job.h: Declare reap_children, not wait_for_children.
2936         * commands.c (fatal_error_signal), job.c (new_job),
2937         load.c [LDAV_BASED] (wait_to_start_job), main.c (die),
2938         remake.c (update_goal_chain), function.c (expand_function: `shell'):
2939         Changed wait_for_children calls to reap_children.
2940         Some needed to be loops to wait for all children to die.
2941         * commands.c (fatal_error_signal), main.c (main,
2942         log_working_directory), function.c (expand_function): Removed calls
2943         to push_signals_blocked_p and pop_signals_blocked_p.
2944         * job.h: Removed decls.
2946         * job.h: Added copyright notice.
2948 Wed Apr 15 02:02:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2950         * job.c (child_error): No *** for ignored error.
2952 Tue Apr 14 18:31:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2954         * implicit.c (DEBUGP2): Use do ... while (0) instead of if ... else to
2955         avoid compiler warnings.
2957         * read.c (parse_file_seq): Don't remove ./ when it is followed by a
2958         blank.
2960 Mon Apr 13 21:56:15 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2962         * make.h (DEBUGPR): Use do ... while (0) instead of if ... else to
2963         avoid compiler warnings.
2965         * remake.c (notice_finished_file): Run file_mtime on the also_make
2966         files, so vpath_search can happen.
2968         * GNUmakefile (tests): Use perl test suite from csa@sw.stratus.com.
2969         (alpha-files): Include test suite tar file.
2971 Fri Apr  3 00:50:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2973         * Version 3.62.5.
2975 Wed Apr  1 05:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2977         * remake.c (update_file, update_file_1): Do check_renamed on elts
2978         of dep chains when traversing them.  Something unrelated might have
2979         renamed one of the files the dep chain points to.
2981         * file.c (rename_file): If FILE has been renamed, follow its
2982         `renamed' ptr, so we get to the final real FILE.  Using the renamed
2983         ones loses because they are not in the hash table, so the removal
2984         code loops infinitely.
2986         * read.c (read_all_makefiles): Clobber null terminator into
2987         MAKEFILES expansion, so string passed to read_makefile is properly
2988         terminated.
2990 Mon Mar 30 20:18:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2992         * commands.c (set_file_variables): $* for archive member with
2993         explicit cmds is stem of member, not of whole `lib(member)'.
2995 Thu Mar 26 15:24:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2997         * Version 3.62.4.
2999 Tue Mar 24 05:20:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3001         * rule.c (new_pattern_rule): Rules are identical only if all their
3002         targets match (regardless of order).
3004 Wed Mar 11 13:49:54 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3006         * remake.c (remake_file): Changed error "no way to make" to "no
3007         rule to make".  Fiat Hugh.
3009         * make.texinfo (Last Resort): Describe %:: rules and new .DEFAULT
3010         behavior.
3012         * remake.c (update_file_1): Only use .DEFAULT cmds if FILE is not a
3013         target.
3015 Tue Mar 10 18:13:13 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3017         * remote-stub.c, remote-cstms.c (start_remote_job): Take new arg,
3018         environment to pass to child.
3019         * job.c (start_job): Pass it.
3021 Mon Mar  9 19:00:11 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3023         * file.c (enter_file): Also strip ./s here, to get command-line
3024         target names.
3026         * remote-cstms.c: Add comment telling people to leave me alone.
3028         * compatMakefile (manpage install): Remove target before copying.
3030 Tue Mar  3 18:43:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3032         * make.texinfo (Missing): Renamed to "Incompatibilities and ...".
3033         Added paragraph describing $? incompatibility with Unix and POSIX.2.
3035 Sun Mar  1 15:50:54 1992  Roland McGrath  (roland@nutrimat.gnu.ai.mit.edu)
3037         * function.c (expand_function: `shell'): Don't declare fork or pipe.
3038         Use vfork instead of fork.
3040 Tue Feb 25 22:05:32 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3042         * make.texinfo (Chained Rules): Clarify .PRECIOUS to save
3043         intermediate files.
3045         * load.c [sun] (LDAV_CVT): Define to divide by FSCALE.
3047 Sun Feb 16 02:05:16 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3049         * Version 3.62.3.
3051 Sat Feb 15 17:12:20 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3053         * compatMakefile (makeinfo): Use emacs batch-texinfo-format fn.
3055 Fri Feb 14 00:11:55 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3057         * read.c (read_makefile): Correctly handle define & endef in ifdefs.
3059         * read.c (record_files): Pass arg for %s in error msg.
3061         * main.c (main) [__IBMR2, POSIX]: Use correct (a la USGr3) setvbuf
3062         call.
3064 Wed Feb 12 12:07:39 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3066         * make.texinfo (Libraries/Search): Say it does /usr/local/lib too.
3068 Sun Feb  9 23:06:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3070         * read.c (read_makefile): Check for extraneous `endef' when ignoring.
3072 Thu Feb  6 16:15:48 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3074         * Version 3.62.2.
3076 Tue Feb  4 20:04:46 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3078         * job.c (construct_command_argv_internal): Correctly ignore
3079         whitespace after backslash-NL.
3081 Fri Jan 31 18:30:05 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3083         * compatMakefile: Ignore errors from chgrp and chmod when installing.
3085 Wed Jan 29 18:13:30 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3087         * main.c (main): When setting MAKELEVEL in the env to re-exec,
3088         allocate space so as not to clobber past the end of the old string.
3090         * make.h [HAVE_ALLOCA_H]: Include <alloca.h>
3091         * compatMakefile (defines): Document HAVE_ALLOCA_H.
3093 Mon Jan 20 13:40:05 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3095         * make.h [VFORK_MISSING]: Use fork instead.
3096         * compatMakefile (defines): Document same.
3098         * job.c (construct_command_argv_internal): Don't create an empty
3099         arg if backslash-NL is at beginning of word.
3101 Sun Jan 19 16:26:53 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3103         * main.c [DGUX]: Call setvbuf as for USGr3.
3105         * job.c (construct_command_argv_internal): Notice correctly that
3106         backslash-NL is the end of the arg (because it is replaced with a
3107         space).
3109 Thu Jan 16 18:42:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3111         * job.c (construct_command_argv_internal): If SHELL is nil, set it
3112         to default_shell before proceeding.
3114         * make.h [sgi]: No alloca.h, after all.
3116 Wed Jan 15 12:30:04 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3118         * read.c (multi_glob): Cons up the chain of the results of glob
3119         from back to front, so it comes out in forward order.
3121         * job.c (construct_command_argv_internal): Don't eat char following
3122         backslash-NL.
3124 Mon Jan 13 19:16:56 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3126         * Version 3.62.1.
3128         * default.c (default_variables) [ultrix]: GET=get, like USG.
3130         * job.c (construct_command_argv_internal): Remove tabs following
3131         backslash-NL combos in the input line, so they don't show up when
3132         that line is printed.
3134         * read.c (read_makefile): Don't collapse_continuations the line on
3135         input; do it on the copy we do remove_comments on.
3136         For rule lines, collapse_continuations the line after chopping
3137         ";cmds" off the end, so we don't eat conts in the cmds.
3138         Give error for ";cmds" with no rule.
3139         * job.c (construct_command_argv_internal): Eat backslash-NL combos
3140         when constructing the line to recurse on for slow, too.
3142 Sat Jan 11 02:20:27 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3144         * file.c (enter_file): Don't strip leading `./'s.
3145         * read.c (parse_file_seq): Take new arg STRIP; if nonzero, do it here.
3146         * default.c (set_default_suffixes), function.c (string_glob),
3147         read.c (read_makefile), rule.c (install_pattern_rule): Change callers.
3149         * default.c (default_variables) [_IBMR2]: FC=xlf
3151         * job.c (construct_command_argv_internal): Turn backslash-NL and
3152         following whitespace into a single space, rather than just eating
3153         the backslash.
3155         * make.texinfo (Copying): @include gpl.texinfo, rather than
3156         duplicating its contents.
3158 Fri Nov  8 20:06:03 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3160         * job.c (construct_command_argv_internal): Make sure not to bother
3161         processing an empty line.
3163         * Version 3.62.0.
3165         * job.c (construct_command_argv_internal): Always recurse for slow;
3166         simple case didn't handle finding newlines.
3168 Tue Nov  5 18:51:10 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3170         * job.c (construct_command_argv_internal): Set RESTP properly when
3171         slow; don't \ify past a newline.
3173 Fri Nov  1 19:34:28 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3175         * make.h [sgi]: #include <alloca.h>.
3177 Tue Oct 29 20:57:36 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3179         * Version 3.62.
3181         * remake.c (update_file_1): Check for deps still running before
3182         giving up if any dep has failed.
3184 Sat Oct 26 16:20:00 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3186         * make.h [uts]: #undef S_ISREG and S_ISDIR if defined.
3188 Fri Oct 25 19:50:39 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3190         * Version 3.60.17.
3192 Thu Oct 24 16:58:36 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3194         * job.c (start_job): Don't check for empty cmds before tweaking the
3195         command_ptr.  Just let construct_command_argv do it.
3197 Tue Oct 22 20:21:03 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3199         * remake.c, arscan.c [POSIX]: <fcntl.h> instead of <sys/file.h>.
3201         * make.h [POSIX]: Declare vfork as pid_t.
3203 Mon Oct 21 15:37:30 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3205         * Version 3.60.16.
3207         * job.c (construct_command_argv, construct_command_argv_internal):
3208         Take new 2nd arg RESTP.  If non-NULL, stop parsing at newline, and
3209         store addr of the NL in *RESTP.
3210         (start_job): Don't chop expanded cmd lines up; use above code to do it.
3211         * function.c (expand_function: `shell'): Pass RESTP==NULL.
3213 Sat Oct 19 15:36:34 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3215         * Version 3.60.15.
3217 Fri Oct 18 15:26:55 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3219         * job.c (start_job): If on the same cmds->command_lines elt, look
3220         at cmds->lines_recurse[CHILD->command_line - 1] instead of
3221         [CHILD->command_line].
3223         * dir.c [sgi]: <sys/dir.h>, not ndir or anything else.
3225 Thu Oct 17 16:28:55 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3227         * file.c (print_file_data_base): Remove unused var.
3229         * make.h [NeXT]: No #define ANSI_STRING.
3231 Tue Oct 15 20:08:41 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3233         * Version 3.60.14.
3235 Fri Oct 11 16:23:52 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3237         * make.h: Use PATH_MAX for getwd defn.
3239         * make.h: Move getcwd/getwd outside of #ifndef POSIX, and make it
3240         #if USG||POSIX.
3242 Thu Oct 10 11:53:31 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3244         * Version 3.60.13.
3246         * read.c (read_all_makefiles): When processing MAKEFILES, save the
3247         malloc'd ptr to be freed, instead of freeing part-way thru it.
3249         * remake.c (update_file_1): Don't tweak FILE->also_make.
3250         (update_file): Do it here.  After calling update_file_1, set the
3251         command_state, update_status, and updated members of each also_make
3252         elt to FILE's values.
3254 Tue Oct  8 14:56:04 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3256         * Version 3.60.12.
3258         * remake.c (notice_finished_file): Set command_state of FILE and
3259         its also_make chain to cs_finished here.
3260         * commands.c (execute_file_commands), job.c (child_handler),
3261         remake.c (remake_file): Don't set it before calling
3262         notice_finished_file.
3264         * file.h (struct file): Changed `also_make' to struct dep *.
3265         * job.c (delete_child_targets), file.c (print_file_data_base),
3266         remake.c (notice_finished_file), implicit.c (pattern_search):
3267         Use dep chain instead of array of file names.
3269 Mon Oct  7 17:04:33 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3271         * Version 3.60.11.
3273         * arscan.c: Declare open.
3274         * misc.c: Declare {get,set}{re,}[ug]id.
3275         * variable.c (target_environment): Declare getenv.
3277 Sat Oct  5 15:13:03 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3279         * make.h [NeXT]: <string.h> instead of <strings.h>.
3281 Fri Oct  4 16:05:41 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3283         * default.c (default_suffixes, defualt_suffix_rules): Add .texi
3284         just like .texinfo.
3286         * Version 3.60.10.
3288         * job.c: Move vfork decl into make.h.
3290 Fri Sep 27 18:45:30 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3292         * compatMakefile (glob/libglob.a): Pass CC value to submake.
3294 Thu Sep 26 00:08:15 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3296         * load.c (load_average): Made not static.
3298         * load.c [ultrix && vax]: Define LDAV_TYPE and LDAV_CVT for Ultrix 4.2.
3300 Tue Sep 24 00:17:20 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3302         * Version 3.60.9.
3304         * read.c (record_files): Warn about extra cmds even if the target's
3305         name begins with a dot.  I think the lusers can handle this.
3307 Mon Sep 23 22:33:26 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3309         * make.h, arscan.c: Don't declare bcmp, bzero, or bcopy if they're
3310         #define'd.
3311         * make.h: Declare write and open.
3313         * default.c (default_suffixes, default_suffix_rules,
3314         default_variables): Add .C just like .cc.
3315         * make.texinfo (Catalogue of Rules): Document .C.
3317         * make.man (-w): Fix gramo.
3319 Fri Sep 20 17:18:16 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3321         * make.h: No text after #endif.
3323 Sun Sep 15 16:20:46 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3325         * Version 3.60.8.
3327         * implicit.c (pattern_search): In the second pass, recurse on rule
3328         deps that don't have a %.  Why did I make it not do this?
3330 Fri Sep 14 18:29:39 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3332         * read.c (record_files): For extra cmds, use the last ones given.
3333         If the target's name doesn't begin with a dot (bletch!!), emit a
3334         two-line warning, one line giving the old cmds' location and the
3335         other the new cmds' location.
3337         * misc.c (makefile_error, makefile_fatal): New fns.
3338         * make.h: Declare them.
3339         * Use them instead of error/fatal for all msgs including a file
3340         name and line number.
3342 Thu Sep 13 16:35:54 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3344         * make.h: Declare define_default_variables.
3345         Declare ar_parse_name, instead of ar_name_parse (M-t).
3347 Mon Sep 10 18:35:40 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3349         * Version 3.60.7.
3351         * make.texinfo (Variables: Setting): Say whitespace is removed if
3352         "immediately after =", rather than simply "after =".
3354         * job.c: Don't declare wait #ifdef POSIX.
3356         * make.h [__GNUC__]: #undef alloca and then #define it.
3358         * main.c (main): When pruning makefiles which might loop from the
3359         read_makefiles chain, look at all `prev' entries of double-colon rules.
3361 Fri Sep  7 00:41:53 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3363         * main.c (main): Only remove makefiles with cmds but no deps from
3364         the list of makefiles to be rebuilt if they are :: targets.
3365         : targets with cmds and no deps are not dangerous.
3367 Wed Sep  5 17:35:51 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3369         * compatMakefile (defines): Add comment that some compilers take
3370         ENUM_BITFIELDS but produce bogus code.
3371         (LOAD_AVG): Fix examples to \ "s.
3372         (LOADLIBES): Add comment that SGI Irix needs -lmld for nlist.
3374 Tue Sep  4 20:26:26 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3376         * Version 3.60.6.
3378 Fri Aug 30 19:34:04 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3380         * remake.c (update_file_1): When checking the command_state of
3381         deps, check through the prev chain.
3382         (update_goal_chain): When a target is finished, start checking its
3383         prev (if it has one) instead.
3385 Wed Aug  7 17:32:03 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3387         * rule.c (convert_to_pattern): Allow files with deps to define
3388         suffix rules (really this time).
3390 Mon Aug  5 17:09:21 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3392         * misc.c (user_access, make_access): Do saved-IDs (USG) flavor
3393         #ifdef POSIX.
3395         * file.c (enter_file): Strip ./s here.
3396         * read.c (parse_file_seq): Not here.
3398 Tue Jul 23 23:34:30 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3400         * compatMakefile: Added comment that -lPW alloca is broken on HPUX.
3402 Thu Jul 18 03:10:41 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3404         * Version 3.60.5.
3406         * read.c (read_makefile): Ignore lines containing chars that are
3407         all isspace, not just all isblank.
3409         * make.texinfo (Copying): @include gpl.texinfo, rather than copying
3410         the text.
3411         * gpl.texinfo: New file (symlink to /gd/gnu/doc/gpl.texinfo).
3412         * GNUmakefile: Put gpl.texinfo in distribution.
3414 Tue Jul 16 12:50:35 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3416         * make.h: #define _GNU_SOURCE before including headers.
3417         Include <ctype.h> and define isblank if <ctype.h> doesn't.
3418         * commands.c: Don't include <ctype.h> here.
3419         * *.c: Use isblank instead of explicit ' ' || '\t'.
3421 Mon Jul 15 17:43:38 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3423         * function.c (expand_function: `filter'/`filter-out'): Fixed to not
3424         loop infinitely.
3426 Fri Jul 12 12:18:12 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3428         * function.c (expand_function: `filter'/`filter-out'): Rewritten to
3429         handle filter-out of multiple patterns properly.  Also no longer
3430         mallocs and reallocs for temp array; uses alloca and a linked-list
3431         instead.
3433 Wed Jul 10 22:34:54 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3435         * Version 3.60.4.
3437         * make.texinfo: Moved some @groups that were outside @examples to
3438         be inside them.
3440         * load.c [apollo] (load_average): Define using special syscall for
3441         Apollo DOMAIN/OS SR10.n.
3443 Thu Jul  4 12:32:53 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3445         * make.texinfo (Missing): Added Unix excessive implicit rule
3446         search; mention that POSIX.2 doesn't require any of the missing
3447         features.
3448         (Top): Updated printed manual price to $15.
3450 Wed Jul  3 18:17:50 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3452         * file.c (rename_file): Carry over last_mtime when merging files.
3453         * remake.c (f_mtime): Tail-recurse after renaming VPATH file, to
3454         check for saved date in existing renamed-to file.
3456         * remote-cstms.c (start_remote_job): Use PATH_VAR.
3458         * commands.c [POSIX || __GNU_LIBRARY__]: Don't declare getpid.
3460         * compatMakefile (glob-{clean,realclean}): Run clean/realclean in glob.
3461         (clean, realclean): Require those.
3463         * make.h: Always declare environ.
3464         Don't declare old glob functions.
3466         * GNUmakefile: Make no-lib deps for load.c and remote.c.
3468 Tue Jul  2 18:35:20 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3470         * Version 3.60.3.
3472 Mon Jul  1 16:58:30 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3474         * read.c (multi_glob): Don't pass GLOB_QUOTE flag to glob.
3476         * make.h [POSIX]: Include <unistd.h>, and don't declare things that
3477         should be there.
3479         * main.c (main) [USG && sgi]: malloc a buffer for broken sgi stdio.
3481 Sat Jun 29 11:22:21 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3483         * function.c (expand_function: `shell'): Use alloca for the error
3484         msg buffer, instead of assuming an arbitrary max size.
3486 Fri Jun 28 18:15:08 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3488         * job.c [POSIX] (search_path): Do real 1003.1 goop to get NGROUPS_MAX.
3490 Wed Jun 26 11:04:44 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3492         * default.c (define_default_variables): New fn.
3493         (install_default_implicit_rules): Code for above fn moved there.
3494         * main.c (main): Do define_default_variables before reading the
3495         makefile.
3497 Tue Jun 25 17:30:46 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3499         * main.c (main): Quote ; in MAKEOVERRIDES.
3501 Tue Jun 18 13:56:30 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3503         * compatMakefile: Fixed typo in comment.
3505 Tue Jun 11 00:14:59 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3507         * Version 3.60.2.
3509 Mon Jun 10 14:46:37 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3511         * make.h: Always include <sys/types.h>.
3512         [POSIX]: Include <limits.h> and #define MAXPATHLEN to be PATH_MAX.
3514         * default.c (default_suffix_rules: .texinfo.dvi): Use $(TEXI2DVI).
3515         (default_variables): Define TEXI2DVI.
3517 Thu Jun  6 16:49:19 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3519         * Version 3.60.1.
3521         * make.h (SIGNAL): Cast handler arg to SIGHANDLER type.
3523 Wed Jun  5 06:00:43 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3525         * read.c (multi_glob): Use POSIX.2 `glob' function.
3526         If a glob pattern matches nothing, leave it as is (a la sh, bash).
3527         Also, if can't find USER for ~USER, leave it as is (a la bash).
3529 Mon Jun  3 16:36:00 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3531         * compatMakefile: Rewrote comments about -Ds to be easier to use.
3533         * make.h, arscan.c, remake.c, main.c, dir.c, job.c: Changed tests
3534         of _POSIX_SOURCE to POSIX.
3536         * job.c: Take getdtablesize out of #ifdef __GNU_LIBRARY__.
3537         Put separately #ifdef USG.
3539         * COPYING: Replaced with version 2.
3540         * Changed copyright notices to refer to GPL v2.
3542 Thu May 30 00:31:11 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3544         * make.h: Don't declare sigblock for POSIX.
3546         * main.c (main, log_working_directory) [USG]: Get getcwd failure
3547         mode from errno, not passed buffer like BSD getwd.
3549         * misc.c (child_access): New fn to set access for a child process;
3550         like user_access, but you can't change back.
3551         * make.h: Declare it.
3552         * job.c (exec_command): Use it in place of user_access.
3554 Wed May 29 23:28:48 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3556         * default.c (default_variables) [pyr]: PC = pascal.
3558 Tue May 28 20:24:56 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3560         * variable.c (print_variable): Put a newline before `endef'.
3562 Sat May 25 02:39:52 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3564         * Version 3.60.
3566 Wed May 22 19:41:37 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3568         * Version 3.59.5.
3570 Thu May 16 13:59:24 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3572         * main.c (main): Do USGr3 setvbuf behavior #ifdef APOLLO.
3573         Don't handle SIGCHLD #ifdef USG (Apollo is USG but defines SIGCHLD).
3575 Fri May 10 14:59:33 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3577         * remake.c [sgi]: Don't include <sys/file.h>.
3579 Wed May  8 01:54:08 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3581         * make.h (SIGHANDLER): #define as (void *) #if __STDC__,
3582         else (int (*)()).
3583         (SIGNAL): Use it to cast return value.
3584         * main.c (main): Cast SIG_IGN to SIGHANDLER when comparing.
3585         * job.c (block_signals, unblock_signals): Use SIGNAL instead of signal.
3587         * main.c: Declare mktemp to return char*, not int.
3589         * job.c (new_job): Don't increment files_remade.
3590         * remake.c (notice_finished_file): Do it here.
3592         * read.c (do_define): Don't clobber DEFINITION[-1] on empty defns.
3593         Free storage that is no longer needed.
3595 Wed Apr 24 20:49:48 1991  Roland McGrath  (roland at churchy.gnu.ai.mit.edu)
3597         * misc.c (message): New fn to print informational msgs with
3598         leading "make: " or "make[N]: ".
3599         * make.h: Declare it.
3600         * remake.c (update_file): Use it instead of printf.
3602 Fri Apr 19 05:52:45 1991  Roland McGrath  (roland at churchy.gnu.ai.mit.edu)
3604         * main.c (main): When there are no targets, if there were no
3605         makefiles, print a different error message, which mentions makefiles.
3607 Tue Apr 16 03:22:45 1991  Roland McGrath  (roland at geech.gnu.ai.mit.edu)
3609         * remake.c (update_file): Print "nothing to be done" instead of "is
3610         up to date" if FILE->cmds == 0.
3612         * job.c [!WIFEXITED]: Define if not already defined.
3614 Thu Apr 11 18:00:50 1991  Roland McGrath  (roland at wookumz.gnu.ai.mit.edu)
3616         * arscan.c (ar_name_equal): Fixed truncation comparison.
3618 Tue Apr  2 16:17:35 1991  Roland McGrath  (roland at churchy.gnu.ai.mit.edu)
3620         * glob.c: Use common version from djm.
3621         * dir.c: Snarfed #ifdef mess for <dirent.h> or whatever from glob.c.
3622         (dir_file_exists_p): Ignore directory entries with d_ino==0.
3624 Mon Apr  1 20:49:45 1991  Roland McGrath  (roland at albert.gnu.ai.mit.edu)
3626         * Version 3.59.4.
3628 Fri Mar 29 19:16:18 1991  Roland McGrath  (roland at albert.gnu.ai.mit.edu)
3630         * job.c (free_child): Free CHILD->environment and its elts.
3632 Sat Mar 23 14:08:09 1991  Roland McGrath  (roland at albert.gnu.ai.mit.edu)
3634         * read.c (read_makefile): Don't ignore lines containing only
3635         comments if they start with a tab.  Such lines should be passed to
3636         the shell for it to decide about the comments.
3638         * job.c (free_child): Free CHILD->command_lines and its elts, not
3639         CHILD->commands (which is obsolete).
3640         * job.h, job.c: Remove obsolete `commands' member of `struct child'.
3642 Sun Mar 17 18:40:53 1991  Roland McGrath  (roland at albert.ai.mit.edu)
3644         * remake.c (update_file): Print a msg for a top-level up-to-date
3645         phony target (a different one than for a real file).
3647         * read.c (conditional_line): Boundary check so we don't check the
3648         value of the -1th elt of the stack (which is bogus).
3650 Sat Mar 16 16:58:47 1991  Roland McGrath  (roland at albert.ai.mit.edu)
3652         * read.c (conditional_line): Don't evaluate an if* when we're
3653         already ignoring.  Instead, just push a new level, with a value of
3654         1, to keep ignoring.
3656 Tue Mar 12 00:16:52 1991  Roland McGrath  (roland at geech.ai.mit.edu)
3658         * Version 3.59.3.
3660 Mon Mar 11 23:56:57 1991  Roland McGrath  (roland at geech.ai.mit.edu)
3662         * job.c (construct_command_argv_internal): Quote backslashes
3663         when building the shell -c line.
3665 Fri Mar  8 01:40:18 1991  Roland McGrath  (roland at geech.ai.mit.edu)
3667         * job.c (exec_command): Call user_access rather than setgid(getgid()).
3669         * misc.c (remove_comments): Renamed from collapse_line; took out
3670         collapse_continuations call.
3671         * make.h: Change decl.
3672         * read.c (read_makefile): Collapse continuations on the line buffer
3673         immediately after reading it.  Call remove_comments rather than
3674         collapse_line (which is now defunct).
3676 Thu Feb 21 18:06:51 1991  Roland McGrath  (mcgrath at cygint.cygnus.com)
3678         * misc.c (user_access, make_access): New fns to toggle btwn permissions
3679         for user data (files and spawning children), and permissions for make
3680         (for taking the load average, mostly).
3681         * make.h: Declare them.
3682         * job.c (start_job): Call make_access before wait_to_start_job, and
3683         user_access after.
3684         * main.c (main): Call user_access before doing much.
3686 Mon Feb  3 15:02:03 1991  Roland McGrath  (roland at albert.ai.mit.edu)
3688         * Version 3.59.2.
3690 Tue Jan 29 20:30:50 1991  Roland McGrath  (roland at cygint.cygnus.com)
3692         * read.c (read_all_makefiles): Use allocated_variable_expand to expand
3693         `$(MAKEFILES)', since the results are used across calls to
3694         read_makefile, which could clobber them.
3696 Wed Jan 23 00:24:10 1991  Roland McGrath  (roland at cygint.cygnus.com)
3698         * main.c (main): Call install_default_implicit_rules after reading
3699         makefiles, not before.
3700         * default.c (install_default_implicit_rules): If a suffix-rule file
3701         entry has cmds, don't give it any from default_suffix_rules.
3703 Fri Jan 17 17:39:49 1991  Roland McGrath  (roland at albert.ai.mit.edu)
3705         * arscan.c: Added support for AIX archives.
3707         * remake.c: Don't include ar.h.
3708         * main.c: Removed unused atol decl.
3709         * arscan.c (ar_scan): Declare arg FUNCTION to return long int.
3710         * ar.c (ar_touch): Don't perror for an invalid archive.
3711         * make.h: Declare lseek as long int.
3713         * job.c [hpux]: Define getdtablesize a la USG.
3715 Sun Jan 12 21:08:34 1991  Roland McGrath  (roland at albert.ai.mit.edu)
3717         * Version 3.59.1.
3719 Fri Jan 10 03:48:08 1991  Roland McGrath  (roland at albert.ai.mit.edu)
3721         * job.c (search_path): Take new arg, place to put full pathname (rather
3722         than mallocing it).
3723         (exec_command): Pass it, using auto storage.
3725         * main.c (print_version): Updated copyright years.
3727 Wed Jan  8 19:46:19 1991  Roland McGrath  (roland at albert.ai.mit.edu)
3729         * job.c [_POSIX_SOURCE]: Just #include <sys/wait.h>, and define macro
3730         WAIT_NOHANG in terms of waitpid.
3731         [!_POSIX_SOURCE && (HAVE_SYS_WAIT || !USG)]: Don't #include <signal.h>
3732         (make.h does).
3733         Define macro WAIT_NOHANG in terms of wait3.
3734         (child_handler): #ifdef on WAIT_NOHANG, not HAVE_SYS_WAIT || !USG.
3735         Use WAIT_NOHANG macro instead of wait3.
3737         * file.h (struct file.command_state): Remove unused elt.
3739 Wed Dec 26 18:10:26 1990  Roland McGrath  (roland at albert.ai.mit.edu)
3741         * commands.c (set_file_variables): If FILE got its commands from
3742         .DEFAULT, make $< == $@ (4.3 BSD/POSIX.2d11 compat).
3744 Mon Dec 24 17:36:27 1990  Roland McGrath  (roland at albert.ai.mit.edu)
3746         * default.c (default_variables): Rename 2nd LINK.s defn to LINK.S.
3748 Fri Dec 14 15:05:25 1990  Roland McGrath  (roland at albert.ai.mit.edu)
3750         * vpath.c (selective_vpath_search): Check for makefile-mentioned before
3751         checking for actual existence.  The old order loses if the containing
3752         directory doesn't exist (but a rule might make it).
3754         * make.h [__GNUC__]: Don't #define alloca if already #define'd.
3756         * rule.c (convert_to_pattern): Don't look at the target constructed for
3757         the empty rule when making the null-suffix rule.  Construct it over
3758         again, since the former may have been freed already.
3760 Thu Dec 13 17:21:03 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3762         * make.h [__GNU_LIBRARY__]: Include <unistd.h> to get random fn decls.
3764 Wed Dec 12 17:12:59 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3766         * make.h, arscan.c, glob.c: Only include <memory.h> #ifdef USG.
3768         * variable.c (define_variable_in_set): Replace env_overrides check that
3769         wasn't really redundant (undoing Sep 28 change).  Add comment saying
3770         why this check is necessary.
3772         * job.c, main.c [DGUX]: Needs siglist like USG.
3774 Mon Dec 11 01:19:29 1990  Roland McGrath  (roland at albert.ai.mit.edu)
3776         * default.c [M_XENIX]: For rules that are different for Xenix, use the
3777         generic Unix version #ifdef __GNUC__.
3779         * main.c [M_XENIX]: Use USGr3-style setvbuf call.
3781         * read.c (find_percent): Do backslash folding correctly, not leaving
3782         extra crud on the end of the string.
3784 Sun Dec 10 21:48:36 1990  Roland McGrath  (roland at albert.ai.mit.edu)
3786         * job.c: Don't declare wait3 if it's #defined.
3788         * GNUmakefile, compatMakefile, make.texinfo: Change make-info
3789         to make.info.
3791 Thu Dec  7 21:20:01 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3793         * make.h [STDC_HEADERS || __GNU_LIBRARY__ || _POSIX_SOURCE]: Use
3794         ANSI <string.h> and names for str/mem functions.
3795         Use <stdlib.h> to declare misc fns rather than explicit decls.
3796         [_POSIX_SOURCE]: Don't declare kill (<signal.h> will).
3797         Include <sys/types.h> before <signal.h> because some braindead
3798         nonconformant 1003.1 implementation needs it.
3799         * misc.c: Don't declare malloc, realloc.  Do it in make.h.
3800         * arscan.c, glob.c: Use sequence for string fns from make.h verbatim.
3801         * make.h (S_ISDIR, S_ISREG): Declare if necessary.
3802         * commands.c (delete_child_targets), job.c (search_path), read.c
3803         (construct_include_path): Use S_ISfoo(m) instead of
3804         (m & S_IFMT) == S_IFfoo.
3805         * dir.c, glob.c [_POSIX_SOURCE]: Use dirent.
3807 Wed Nov 29 22:53:32 1990  Roland McGrath  (roland at geech.ai.mit.edu)
3809         * Version 3.59.
3811 Tue Nov 28 16:00:04 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3813         * arscan.c (ar_name_equal) [APOLLO]: Don't do `.o' hacking.  On Apollos
3814         the full file name is elsewhere, and there is no length restriction (or
3815         so I'm told).
3817 Thu Nov 23 17:33:11 1990  Roland McGrath  (roland at albert.ai.mit.edu)
3819         * load.c [hp300 && BSD] (LDAV_CVT): Define for this system.
3821 Tue Nov 21 07:58:40 1990  Roland McGrath  (roland at albert.ai.mit.edu)
3823         * read.c (record_files): Fix trivial bug with deciding to free storage
3824         for a file name.
3826 Thu Nov 16 06:21:38 1990  Roland McGrath  (roland at geech.ai.mit.edu)
3828         * compatMakefile ($(bindir)/make): Install it setgid kmem.
3830 Thu Nov  1 16:12:55 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3832         * GNUmakefile (make-*.tar.Z): Use `h' option to tar (dereference
3833         symlinks), to grab texinfo.tex from wherever it lives.
3835 Tue Oct 30 16:15:20 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3837         * Version 3.58.13.
3839 Fri Oct 26 14:33:34 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3841         * GNUmakefile: make-*.tar.Z: Include texinfo.tex.
3843 Tue Oct 23 19:34:33 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3845         * main.c (define_makeflags): When there are no flags to write, make
3846         sure the array has two leading nulls, since `MAKEFLAGS' is defined from
3847         &flags[1].
3849         * main.c (default_keep_going_flag): New variable (constant one).
3850         (command_switches: -k, -S): Use above for default value.
3851         (define_makeflags): Only write flag/flag_off switches if they are on,
3852         and either there is no default value, or they are not the default.
3854 Mon Oct 22 16:14:44 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3856         * main.c (struct command_switch): New member `no_makefile'.
3857         (command_switches: -n, -q, -t): Set no_makefile == 1.
3858         (define_makeflags): Take new arg MAKEFILE: if nonzero, don't use
3859         options whose `no_makefile' flags are set.
3860         (main): Call define_makeflags with MAKEFILE==1 before remaking
3861         makefiles, and again with MAKEFILE==0 before remaking goals.
3863 Tue Oct  2 17:16:45 1990  Roland McGrath  (roland at geech.ai.mit.edu)
3865         * Version 3.58.12.
3867 Mon Oct  1 15:43:23 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3869         * arscan.c [HPUX]: Use PORTAR==1 format.
3871 Sat Sep 29 16:38:05 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3873         * make.h, remake.c, arscan.c: Don't declare `open'.
3875 Fri Sep 28 04:46:23 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3877         * variable.c (define_variable_in_set): Remove redundant -e check.
3879 Wed Sep 26 00:28:59 1990  Roland McGrath  (roland at geech.ai.mit.edu)
3881         * job.c (start_job): Set RECURSIVE from the right elt of
3882         CHILD->file->cmds->lines_recurse.
3884         * commands.c (chop_commands): Don't botch the line count for allocating
3885         CMDS->lines_recurse.
3887         * Version 3.58.11.
3889         * job.c (start_job): Don't always increment CHILD->command_line!  Only
3890         do it when CHILD->command_ptr has run out!  (Dumb bug.  Sigh.)
3892 Thu Sep 20 02:18:51 1990  Roland McGrath  (roland at geech.ai.mit.edu)
3894         * GNUmakefile [ARCH]: Give explicit rule for remote.{c,dep} to use
3895         variable `REMOTE' for more flags.
3896         ($(prog)): Link in $(LOADLIBES).
3898 Wed Sep 19 02:30:36 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3900         * commands.h (struct commands): New member `ncommand_lines', the number
3901         of elts in `command_lines' et al.
3902         * commands.c (chop_commands): Set `ncommand_lines' elt of CMDS, and
3903         don't put a nil pointer at the end of `command_lines'.
3904         * job.h (struct child): New member `command_lines' to hold
3905         variable-expanded command lines.
3906         * job.c (new_job): Store expanded command lines in `command_lines'
3907         member of new child.  Don't clobber FILE->cmds.
3908         (start_job): Use CHILD->command_lines in place of
3909         CHILD->file->cmds->command_lines.
3911         * variable.h, variable.c, job.c, expand.c: Undo yesterday's change,
3912         which is no longer necessary since we have cleverly avoided the issue.
3914         * job.c (start_job): Don't variable-expand each command line.
3915         (new_job): Do them all here, storing the expansions in the array.
3917 Tue Sep 18 01:23:13 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3919         * variable.h (struct variable): Remove `expanding' member.
3920         * variable.c (define_variable_in_set): Don't initialize it.
3921         * expand.c (struct variable_expanding): New type, a linked list
3922         containing `struct variable' pointers.
3923         (variables_expanding): New variable, the chain of variables currently
3924         being expanded.
3925         (recursively_expand): Don't test and set `expanding' member.
3926         Instead, run through the `variables_expanding' chain looking for a link
3927         referring to V to find self-reference.  Add a new link to the chain,
3928         describing V, before recursive expansion, and pop it off afterward.
3929         * job.c (child_handler): Save `variables_expanding' and clear it before
3930         calling start_job, and restore it afterward.  This avoids major lossage
3931         when the SIGCHLD comes in the middle of variable expansion.
3933 Mon Sep 17 14:46:26 1990  Roland McGrath  (roland at geech.ai.mit.edu)
3935         * job.c, commands.c: Don't define sigmask.
3936         * make.h: Put it here instead.
3938         * variable.c (target_environment): If `.NOEXPORT' was specified as a
3939         target, only export command-line and environment variables, and
3940         file-origin variables that were in the original environment.
3942         * make.man: Add missing ?roff control for `-I' option description.
3944 Thu Sep 13 14:10:02 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3946         * load.c [UMAX]: Move #include <sys/sysdefs.h> to [not UMAX_43].
3948 Wed Sep 12 15:10:15 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3950         * expand.c (recursively_expand): Don't use `reading_filename' and
3951         `reading_lineno_ptr' if they're nil.
3953 Thu Aug 30 17:32:50 1990  Roland McGrath  (roland at geech)
3955         * Version 3.58.10.
3957 Tue Aug 28 04:06:29 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3959         * job.c [USG] (unknown_children_possible): New variable, set nonzero
3960         when it's possible for children not in the `children' chain to die.
3961         (block_signals) [USG]: Set it.
3962         (unblock_signals) [USG]: Clear it.
3963         (child_handler) [USG]: Don't complain about unknown children if
3964         `unknown_children_possible' is set.
3966         * read.c (do_define): Make sure there's enough space for the newline,
3967         so we don't write off the end of allocated space.
3969         * arscan.c (ar_name_equal): Fixed to work when MEM is AR_NAMELEN-1 but
3970         NAME is not the same length.
3972 Sat Aug 25 16:17:14 1990  Roland McGrath  (roland at geech)
3974         * job.c (construct_command_argv_internal): Use a static char array for
3975         a constant, since old C has no auto aggregate initializers.
3977 Thu Aug 23 16:11:03 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3979         * job.c (search_path): If PATH is nil or "" use a default path.
3981 Wed Aug 22 01:05:32 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3983         * Version 3.58.9.
3985         * job.c (exec_command): Don't take PATH and SHELL args.  Get them from
3986         ENVP.
3987         (child_execute_job): Don't take FILE arg, and don't pass path and shell
3988         to exec_command.
3989         (start_job): Don't pass FILE arg to child_execute_job.
3990         * function.c (expand_function: `shell'): Ditto.
3991         * main.c (main): Don't pass path and shell to exec_command.
3993 Fri Aug 17 23:17:27 1990  Roland McGrath  (roland at geech)
3995         * job.c (construct_command_argv_internal): New fn broken out of
3996         construct_command_argv.  Takes strings SHELL and IFS instead of doing
3997         variable expansion for them.  Recurse to make an argv for SHELL,
3998         passing SHELL==0.  When SHELL==0, don't recurse for shell argv; make a
3999         simple one using /bin/sh.
4000         (construct_command_argv): Do the variable expansions and call above.
4002 Thu Aug 16 19:03:14 1990  Roland McGrath  (roland at geech)
4004         * read.c (multi_glob): For ~USER/FILE, if USER isn't found, don't
4005         change the file name at all.
4007 Tue Aug  7 18:33:28 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4009         * function.c (expand_function: `suffix'/`notdir'): Don't kill the last
4010         space if we never wrote one.
4012         * function.c (expand_function: `suffix'): Retain the dot, like the
4013         documentation says.
4015 Mon Aug  6 14:35:06 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4017         * Version 3.58.8.
4019         * main.c (decode_switches): For positive_int and floating cases, move
4020         SW past the arg (and don't set it to ""), so another switch can follow.
4022 Fri Aug  3 00:43:15 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4024         * job.c (child_execute_job): Use unblock_signals instead of
4025         push_signals_blocked_p (0).
4027         * main.c (fatal_signal_mask): New variable, mask of signals caught with
4028         fatal_error_signal.
4029         (main): Set it.
4030         * job.c ({block,unblock}_children): Renamed to {block,unblock}_signals.
4031         Block/unblock both child signal and signals in fatal_signal_mask.
4032         (children_blocked_p_{stack,max,depth}, {push,pop}_children_blocked_p):
4033         Renamed from children to signals.  Use {block,unblock}_signals instead
4034         of {block,unblock}_children.
4035         * commands.c (fatal_error_signal), job.c (wait_for_children, new_job,
4036         child_execute_job, main, log_working_directory), function.c
4037         (expand_function: `shell'), job.h: Rename {push,pop}_children_blocked_p
4038         to {push,pop}_signals_blocked_p.
4039         * job.c (child_handler): Call {block,unblock}_signals instead of just
4040         {block,unblock}_remote_children.  We need to block the fatal signals.
4042 Thu Aug  2 22:41:06 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4044         * main.c, function.c: Fixed typos in comments.
4046         * file.c (print_file_data_base): Fix computation of avg files/bucket.
4048 Tue Jul 31 22:11:14 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4050         * Version 3.58.7.
4052 Wed Jul 25 16:32:38 1990  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
4054         * arscan.c (ar_name_equal): Fixed to really do it right.
4055         (ar_member_pos): Fixed order of args.
4056         * ar.c (ar_member_date_1): Ditto.
4058 Fri Jul 20 15:30:26 1990  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
4060         * arscan.c (ar_name_equal): Rewritten.  Accounts for a possible
4061         trailing slash in MEM.
4063         * remake.c (f_mtime): Keep track of whether ARNAME is used and free it
4064         if not.  Also free MEMNAME.
4065         * ar.c (ar_member_date, ar_touch): Ditto.
4067         * arscan.c (arscan) [HPUX or hpux]: Treat same as USGr3 PORTAR==1.
4069         * make.h: If NSIG is not defined, but _NSIG is, #define NSIG _NSIG.
4071         * compatMakefile: Don't use $* in explicit rules.
4073         * default.c (default_variables: "PREPROCESS.S"): Include $(CPPFLAGS).
4075         * remake.c (f_mtime): If FILE is an ar ref, get the member modtime.
4077         * function.c (string_glob): Terminate the string properly when it's
4078         empty.
4080 Wed Jul 18 11:26:56 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4082         * Version 3.58.6.
4084         * commands.c (set_file_variables): Fixed computation for ^F/?F elt len.
4086 Sat Jul 14 13:41:24 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4088         * job.c (construct_command_argv): Always use
4089         allocated_variable_expand_for_file instead of variable_expand_for_file
4090         because we might be called from inside a variable expansion (for the
4091         `shell' function).
4093         * function.c (expand_function: `shell'): Free the arglist's storage
4094         correctly.  construct_command_argv only allocates ARGV and ARGV[0].
4096         * job.c (children_blocked_p_idx): Renamed to children_blocked_p_depth.
4097         (push_children_blocked_p, pop_children_blocked_p): Use ..._depth
4098         instead of ..._idx, and do it right!
4100 Wed Jul 11 15:35:43 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4102         * make.h (SIGNAL): New macro to replace `signal' calls.  Does arg and
4103         ret value casts to (void *) #ifdef __STDC__ to avoid conflicts btwn
4104         ANSI and BSD `signal' and handler types.
4105         * main.c (main), job.c (child_handler): Use it.
4107 Fri Jul  6 00:00:38 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4109         * ar.c (ar_member_date, ar_touch): Pass 2nd arg to f_mtime.
4111         * read.c (read_makefile): Search the include path for MAKEFILES
4112         variable makefiles (TYPE == 1), like it says in the manual.
4114         * file.h (struct file), main.c (struct command_switch): Remove trailing
4115         commas from enums.
4117         * commands.c (execute_file_commands): Remove unused variables.
4118         * commands.h: Declare chop_commands.
4119         * make.h: Declare uniquize_deps.
4120         * main.c (main): Remove unused variable.
4121         (decode_switches): Remove unused label.
4122         * remake.c: Include "ar.h" for ar_parse_name decl.
4123         * implicit.c (try_implicit_rule): Remove unused variable.
4124         * function.c (expand_function: `shell'): Declare fork, pipe.
4125         * ar.c: Declare ar_name_equal.
4127         * GNUmakefile: If using gcc, add warning flags to CFLAGS.
4129         * remake.c: Remove decl of ar_member_date, since it's done in make.h.
4131         * remake.c (f_mtime): For ar refs, allow the archive to be found via
4132         VPATH search if we're searching, and change the ar ref accordingly.
4134         * ar.c (ar_parse_name): New global fn to parse archive-member
4135         references into the archive and member names.
4136         (ar_member_date, ar_touch): Use it.
4137         * make.h: Declare it.
4139         * remake.c (f_mtime): After doing rename_file, do check_renamed instead
4140         of assuming rename_file will always set FILE->renamed (which it won't).
4142         * vpath.c (selective_vpath_search): Only accept prospective files that
4143         don't actually exist yet are mentioned in a makefile if the file we are
4144         searching for isn't a target.
4146 Wed Jul  4 04:11:55 1990  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
4148         * remake.c (update_goal_chain): Do check_renamed after calling
4149         file_mtime.
4150         (check_dep): Ditto after update_file.
4152         * file.c (rename_file): Prettied up long message for merging cmds.
4154         * remake.c (update_file_1): Get each dep file's modtime, and allow for
4155         it being renamed, before checking for a circular dep, since a renaming
4156         may have introduced one.
4158 Tue Jul  3 18:15:01 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4160         * ar.c (ar_touch): Don't free ARNAME since enter_file holds onto the
4161         storage.
4163         * function.c (string_glob): Don't leave a trailing space.
4165         * read.c (do_define): Allow leading whitespace before `endef'.
4167 Mon Jul  2 14:10:16 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4169         * implicit.c (pattern_search): No longer take NAME arg.  Instead take
4170         ARCHIVE flag.  If ARCHIVE is nonzero, FILE->name is of the form
4171         "LIB(MEMBER)"; rule for "(MEMBER)" is searched for, and LASTSLASH is
4172         set to nil.  Since NAME was only non-nil when it was the archive member
4173         name passed by try_implicit_rule, this change easily allows turning off
4174         LASTSLASH checking for archive members without excessive kludgery.
4175         (try_implicit_rule): Pass ARCHIVE flag instead of file name.
4177         * Version 3.58.5.
4179         * commands./c (set_file_variables): Don't kill last char of $(^D) elts.
4181 Sat Jun 30 00:53:38 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4183         * ar.c (ar_member_date): Don't free ARNAME since enter_file holds onto
4184         the storage.
4186         * arscan.c (ar_scan) [sun386 && PORTAR == 1]: Treat like USGr3.
4188 Wed Jun 27 14:38:49 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4190         * main.c (main): Put a newline on the debugging message when deciding
4191         not to remake a makefile to avoid a possible loop.
4192         Only decide not to remake makefiles that have commands (as well as
4193         being targets and having no deps).
4195 Fri Jun 22 12:35:37 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4197         * default.c (default_variables): Define `LINK.s' and `LINK.S'.
4198         (default_suffix_rules): Define .S.o rule.
4200         * job.c (construct_command_argv): If we decide to go the slow route,
4201         free all storage for the chopped args.
4202         (start_job): Free the argument list's storage correctly.
4203         construct_command_argv only allocates ARGV and ARGV[0].
4205 Tue Jun 19 18:27:43 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4207         * Version 3.58.4.
4209 Fri Jun 15 21:12:10 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4211         * glob.c: New version from ai-lab which doesn't do [^abc].
4213 Thu Jun  7 00:30:46 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4215         * dir.c: Copied dirent vs direct et al mess from glob.c.
4217         * glob.c: Replaced with updated version from djm.
4218         * glob.c: Check macro DIRENT instead of _POSIX_SOURCE for <dirent.h>.
4219         __GNU_LIBRARY__ implies DIRENT and STDC_HEADERS.
4221 Thu May 31 22:19:49 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4223         * vpath.c (vpath_search): Don't stop the loop if a pattern matches but
4224         the search fails.  All matching patterns have their paths searched
4225         (like it says in the manual).
4227         * make.texinfo (Rules: Directory Search: Selective Search): Say that
4228         multiple `vpath' directives with the same pattern DO accumulate, not
4229         supersede earlier ones.
4231         * vpath.c (print_vpath_data_base): Increment the count of vpaths on
4232         each loop iteration, rather than letting it stay zero.
4234         * Version 3.58.3.
4236         * job.c (block_children, unblock_children): Made static.
4237         (push_children_blocked_p, pop_children_blocked_p): New functions to
4238         push and pop whether children are blocked or not.
4239         * job.h: Declare push_children_blocked_p, pop_children_blocked_p and
4240         not block_children, unblock_children.
4241         * commands.c (fatal_error_signal), job.c (wait_for_children, new_job,
4242         child_execute_job), main.c (main, log_working_directory): Use sequences
4243         of push_children_blocked_p (1) and pop_children_blocked_p () instead of
4244         explicitly blocking and unblocking children.
4245         * function.c (expand_function: `shell'): Don't unblock children.  The
4246         push-pop sequence in wait_for_children makes it unnecessary.
4248 Tue May 29 21:30:00 1990  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
4250         * read.c (do_define): Don't include the last newline in the definition.
4252         * function.c (expand_function: `shell'): Call construct_command_argv
4253         before forking and don't fork if it returns nil.  Free the argument
4254         list's storage before finishing.
4256         * job.c (start_job): Free the storage for the child's argument list
4257         in the parent side of the fork after the child has been spawned.
4259         * job.c (start_job): If construct_command_argv returns nil, go to the
4260         next command line.
4262         * job.c (construct_command_argv): Use the shell if the command contains
4263         an unterminated quote.
4265 Wed May 23 19:54:10 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4267         * Version 3.58.2.
4269         * read.c (read_makefile): Parse "override define" correctly.
4271 Thu May 17 15:25:58 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4273         * arscan.c [USG]: Don't declare memcpy and memcmp.  <memory.h> should
4274         do this anyway (and lack of declarations is harmless).
4276         * remote-customs.c: Renamed to remote-cstms.c for System V.
4277         * remote.c [CUSTOMS]: Changed accordingly.
4279 Sun May 13 14:38:39 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4281         * GNUmakefile: Use same cmds for doc tar.Z as for dist tar.Z (so the
4282         contents go in make-N.NN).
4284 Thu Apr 26 19:33:25 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4286         * Version 3.58.1.
4288 Wed Apr 25 20:27:52 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4290         * job.c (init_siglist): Don't do SIGUSR1 and SIGUSR2 if they are the
4291         same as SIGIO and SIGURG (true on Cray).
4293 Tue Apr 24 20:26:41 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4295         * arscan.c (ar_scan): Do behavior for PORTAR == 1 and USGr3 also
4296         #ifdef APOLLO.
4298 Wed Apr 11 10:00:39 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4300         * job.c (exec_command): Set the effective GID to the real GID.  Somehow
4301         this code got lost.
4303         * implicit.c (pattern_search): Use the right index variable when
4304         seeing if we need to expand FILE->also_make.
4306 Sun Mar  4 09:18:58 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4308         * Version 3.58.0.
4310         * remake.c (remake_file): Treat non-targets without commands under -t
4311         the same as anything else without commands.
4313 Sat Feb 24 17:46:04 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4315         * default.c (default_variables: PREPROCESS.S): Removed $< from defn.
4317         * main.c (main): Ignore arguments that are the empty string, rather
4318         than feeding them to enter_file and barfing therein.
4320 Wed Feb 14 16:28:37 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4322         * main.c (main): Call construct_include_path after doing chdirs.
4324 Thu Feb  8 13:43:44 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4326         * Version 3.58.
4328 Sat Feb  3 22:06:55 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4330         * Version 3.57.7.
4332         * make.texinfo (Implicit: Catalogue of Rules): For RCS, noted that
4333         working files are never overwritten by the default rule.
4335 Thu Feb  1 17:27:54 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4337         * rule.c (count_implicit_rule_limits): Redid loop control to not run
4338         twice on freed rules.
4340         * GNUmakefile: Made `.dep' files be architecture-specific too.
4342         * main.c (main, log_working_directory) [USG]: Block children around
4343         calls to `getwd' (actually `getcwd' on USG), because that function
4344         sometimes spawns a child running /bin/pwd on USG.
4346 Tue Jan 30 14:02:50 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4348         * function.c (subst_expand): Pay attention to SUFFIX_ONLY, putz.
4350 Wed Jan 24 21:03:29 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4352         * make.man: Fixed repeated word.
4354         * make.texinfo (Missing): Reworded a buggy sentence.
4356 Mon Jan 22 12:39:22 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4358         * main.c (print_version): Added 1990 to copyright notice.
4360         * Version 3.57.6.
4362 Sat Jan 20 11:52:01 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4364         * file.c (rename_file): Don't free the storage for the old name, since
4365         it might not have been malloc'd.
4367         * job.c (construct_command_argv): Call
4368         allocated_variable_expand_for_file instead of variable_expand_for_file
4369         to expand `$(SHELL)'.
4371         * make.texinfo (Bugs): Change address from roland@wheaties.ai.mit.edu
4372         to roland@prep.ai.mit.edu.
4374 Tue Jan 16 19:22:33 1990  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
4376         * Version 3.57.5.
4378 Sun Jan 14 16:48:01 1990  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
4380         * job.c (start_job): Only call wait_to_start_job for the first command
4381         line in each sequence.
4383 Thu Jan  4 14:27:20 1990  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
4385         * load.c [LDAV_BASED] (wait_to_start_job): Loop while job_slots_used >
4386         0, not > 1.
4388         * job.c (search_path): Don't return a pointer to local storage.
4389         Allocate data space for the pathname instead.
4391         * function.c (expand_function: `shell'): Don't write garbage if the
4392         child wrote no output.
4394 Wed Jan  3 15:28:30 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4396         * Version 3.57.4.
4398         * file.h (struct file): New member `renamed', a `struct file *' that is
4399         the place this file has been renamed to (or nil).
4400         (check_renamed): Macro to check for a file having been renamed.
4401         Dereferences the renaming and sets the given variable.
4402         * file.c (rename_file): Completely rewritten.  Renames in place if
4403         possible, or moves FILE to a different hash bucket if there is no
4404         existing file with the new name.  If there is an existing file with the
4405         new name, FILE is merged into it and FILE->renamed is set to point to
4406         it.
4407         * variable.c (merge_variable_sets): New fn to merge two variable sets.
4408         (merge_variable_set_lists): New fn to merge two variable set lists.
4409         * variable.h: Declare merge_variable_set_lists.
4410         * remake.c (update_file_1, check_dep): Run `check_renamed' after
4411         calling file_mtime, check_dep.
4412         (update_file): Same after update_file_1.
4413         (update_goal_chain, update_file_1, check_dep): Same after update_file.
4415         * read.c (uniquize_deps): New fn, broken out of record_files, to remove
4416         duplicate deps from a chain.
4417         (record_files): Use it.
4418         * implicit.c (pattern_search): Use uniquize_deps.
4420         * file.h (file_mtime_1): New macro, like file_mtime, but take second
4421         arg, passed to f_mtime.
4422         (file_mtime): Implement as file_mtime_1 (file, 1).
4423         (file_mtime_no_search): New macro: file_mtime (file, 0).
4424         * remake.c (f_mtime): Take new arg SEARCH.  Only do VPATH and `-lNAME'
4425         searching if it is nonzero.
4426         * main.c (main): Use file_mtime_no_search for makefiles.
4427         * remake.c (update_goal_chain): Use file_mtime_no_search if MAKEFILES.
4429         * main.c (printed_version): New variable, init'd to zero.
4430         (print_version): Set it to nonzero before returning.
4431         (die): If -v and !printed_version, call print_version before clean up
4432         and death.
4434         * main.c (log_working_directory): Keep track of whether or not the
4435         "Entering" message has been printed, and return without printing the
4436         "Leaving" message if not.
4438         * main.c (decode_switches): Don't complain about missing args before
4439         checking for a noarg_value elt in the command_switch structure.
4441 Tue Jan  2 15:41:08 1990  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
4443         * make.texinfo (Commands: Recursion: Options/Recursion): Document
4444         special case of -j.
4446         * make.texinfo, main.c, job.c: Changed copyright notices to include
4447         1990.
4449         * make.texinfo (Top): Fixed introductory paragraph, which said that
4450         `make' itself (instead of the manual) has various chapters.
4451         (Variables: Advanced: Substitution Refs): When pxref'ing about
4452         `patsubst', use node `Text Functions', not `Functions'.
4453         Add an xref about `patsubst' after description of $(var:a%b=c%d).
4454         (Functions: Syntax of Functions): Explain why mixing delimiters in
4455         function/var refs is unwise.  Clarify fn arg evaluation order.
4456         (Options): Reworded sentence about `-e'.
4457         (Implicit: Implicit Variables): Don't say `RM' is unused.
4458         Say the dflt values for the flag vars is empty unless otherwise noted,
4459         since some have defaults.
4460         (Implicit: Pattern Rules: Pattern Examples): Clarified use of $< and $@
4461         in first example.
4462         (Implicit: Last Resort): Don't say the .DEFAULT example creates files
4463         "silently".  It's automatic, but not silent.
4464         (Implicit: Search Algorithm): Fixed confusing ungrammatical sentence
4465         for item 5.1.
4466         (Archives: Archive Update): Added missing `next' pointer.
4467         (Archives: Archive Symbols): Note that GNU `ar' deals with this
4468         automatically.
4470         * job.c (search_path): New fn, to search for an executable file in a
4471         search path (broken out of exec_command).
4472         (exec_command): Take fourth arg, the shell program to use (if
4473         necessary).  Use search_path for the program, and the shell program.
4474         Pass args "file args ..." to shell program (with no -c), where FILE is
4475         the full pathname of the program (script) to be run.
4476         (child_execute_job): Pass shell program to exec_command.
4477         * main.c (main): Ditto.
4479         * main.c (main): Don't write a message if exec_command returns, because
4480         it will never return.
4482 Fri Dec 22 16:19:58 1989  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
4484         * default.c (default_variables: "LINK.cc"): Use $(C++FLAGS) instead of
4485         $(CFLAGS).
4487 Wed Dec 20 09:58:48 1989  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
4489         * job.c (new_job): If start_job set the child's `command_state' to
4490         `cs_finished', call notice_finished_file.
4492 Sun Dec 17 19:45:41 1989  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
4494         * Version 3.57.3.
4496 Wed Dec 13 17:57:12 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4498         * rule.c (convert_to_pattern): Accept files with dependencies as
4499         suffix rules.
4501 Thu Nov 30 15:47:13 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4503         * Version 3.57.2.
4505         * function.c (expand_function: `shell'): Don't clobber BUFFER and then
4506         try to free it.
4508         * remake.c (update_file_1): Took code to force remake of nonexistent
4509         deps out of #if 0, and changed the test to nonexistent non-intermediate
4510         deps.  In version 4, I think removing this test completely will
4511         implement the new feature that if a: b and b: c and c is newer than a,
4512         b need not be remade.
4514 Sun Nov 26 16:12:41 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4516         * compatMakefile (load.o, remote.o): Use $*.c instead of explicit file
4517         names so that using VPATH works.
4519 Tue Nov 21 14:57:18 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4521         * Version 3.57.1.
4523 Fri Nov 10 03:28:40 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4525         * remake.c (check_dep): Set *MUST_MAKE_PTR if FILE does not exist after
4526         being updated.  (The exact opposite test was here before; why???)
4527         (update_file_1): Set a dep's `changed' member after updating it if it
4528         is phony and has commands (because they will then always be executed).
4530 Thu Nov  9 13:47:12 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4532         * load.c [UMAX]: #ifdef UMAX_43 include different headers for the
4533         `inq_stats' call.
4534         * compatMakefile (LOAD_AVG): Document UMAX_43.
4536         * Version 3.57.0.
4538         * commands.c (chop_commands): New function to chop commands into lines.
4539         * job.c (new_job): Break that code out, and call chop_commands.
4540         * remake.c (remake_file): Call chop_commands before looking at
4541         FILE->cmds->any_recurse.
4543         * make.texinfo (Running: Goals): Don't say that the default target
4544         won't be taken from an included makefile.
4546         * remake.c (update_file_1): #if 0 out setting MUST_MAKE if a dep
4547         doesn't exist.
4549 Fri Nov  3 15:53:03 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
4551         * Version 3.57.
4553         * variable.c (try_variable_definition): Don't calculate useless value.
4555         * main.c (define_makeflags): Fixed -j propagation.
4557         * commands.c (execute_file_commands): Removed unused variable.
4559 Sun Oct 29 11:11:15 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4561         * commands.c (execute_file_commands): If the commands are empty, call
4562         notice_finished_file before returning.
4564 Sat Oct 28 23:06:32 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4566         * remake.c (update_file_1): Don't always update a target that has no
4567         deps.  Only do this for double-colon targets.
4569 Wed Oct 25 16:36:16 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4571         * main.c (main) [hpux]: hpux == HPUX.
4572         * compatMakefile (defines): Document that HPUX should be defined.
4574 Tue Oct 24 19:19:48 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4576         * Version 3.56.8.
4578         * job.c (exec_command): Fixed what mode bits are checked.
4580         * remake.c (update_file_1): "No cmds and no deps actually changed"
4581         loses if ! FILE->is_target.
4583         * make.texinfo (Variables: Setting): Don't say that spaces after a
4584         variable definition are ignored (since they aren't).
4586 Mon Oct 23 14:34:23 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4588         * Version 3.56.7.
4590         * remake.c (update_file_1): If, after being updated, any dependency
4591         does not exist, remake the target.
4593         * remake.c (update_file_1): Always update if FILE has commands but no
4594         deps.
4596         * commands.c (execute_file_commands): If we return early because there
4597         are no commands, set FILE->updated.
4599 Thu Oct 19 18:47:37 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4601         * arscan.c (ar_scan) [M_XENIX]: Don't run atoi or atol on the
4602         `struct ar_hdr' members that are int or long int on Xenix.
4604 Sat Oct 14 10:43:03 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4606         * arscan.c (ar_scan): Cosmetic clean ups.
4607         (ar_name_equal): New function to compare names, handling truncated
4608         member names and special `.o' truncation.
4609         (ar_member_pos): Use ar_name_equal.
4610         * ar.c (ar_member_date_1): Use ar_name_equal.
4612         * Version 3.56.6.
4614         * file.h (struct file): Made `update_status' a `short int', and moved
4615         it before `command_state' so the bitfields can be packed better.
4617         * remake.c (files_remade): Made global.
4618         (notice_finished_file): Don't increment files_remade.
4619         * job.c (new_job): Do.
4621         * job.c (start_job): Don't return a value.  Always set
4622         CHILD->file->command_state to either cs_running or cs_finished.
4623         (new_job, child_handler): Don't expect start_job to return a value.
4624         Instead, look at the file's command_state.
4626         * commands.c (chop_commands): Merged into job.c (new_job).
4627         * commands.h: Don't declare chop_commands.
4629         * job.c (start_job): Made static.
4630         (new_job): New function to create a `struct child' and call start_job.
4631         (free_child): New function to free a `struct child'.
4632         (child_handler, new_job): Call it.
4633         * job.h: Don't declare start_job.  Do declare new_job.
4634         * commands.c (execute_file_commands): Call new_job.
4636         * commands.c (execute_file_commands): Don't set FILE->update_status if
4637         start_job fails.
4639         * function.c (expand_function): Don't use `reading_filename' and
4640         `reading_lineno_ptr' if they're nil.
4642 Fri Oct 13 18:16:00 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4644         * read.c (find_semicolon): New function to look for an unquoted ; not
4645         preceded by an unquoted # in a string.
4646         (read_makefile): Call it before expanding the line.  If it finds a ;,
4647         cut the line short there before expanding it.  If not, call it again
4648         after expanding.
4650         * commands.c (execute_file_commands): Don't check FILE->command_state.
4651         We won't get called unless it's cs_not_started.
4653         * read.c (read_makefile): Call collapse_line on the variable-expanded
4654         rule line after checking for ; and #.
4656         * job.c (start_job): When there are no more commands, always return 0.
4657         * commands.c (execute_file_commands): Don't put the new child in the
4658         `children' chain unless FILE->command_state is cs_running.
4660         * read.c (read_makefile): Rewrote ;-handling to only do it once (why
4661         did I do it twice??) and to check for a # before the ;.
4663         * job.c (start_job): Set CHILD->file->update_status to 0 when we run
4664         out of commands.  Set it to 1 before returning failure.
4665         (child_handler): Don't set C->file->update_status to 0 when start_job
4666         returns success and commands are not running.
4668         * read.c (read_makefile): If there is a # before the ; for commands,
4669         forget the ; and commands.
4671 Thu Oct 12 15:48:16 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4673         * job.c (child_execute_job): Pass -c to the shell.
4675 Wed Oct 11 18:41:10 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4677         * Version 3.56.5.
4679         * main.c (define_makeflags): Cleaned up to keep better track of dashes
4680         written, etc.
4682         * function.c (expand_function: `shell'): When converting newlines to
4683         spaces in output, search with `index' calls rather than a simple loop.
4685         * main.c (main): Make sure stdout is line-buffered.
4687         * main.c (decode_switches): Always check for missing switch arg.
4689 Mon Oct  9 17:17:23 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4691         * Version 3.56.4.
4693 Sat Oct  7 00:32:25 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4695         * commands.c (set_file_variables): #ifdef NO_ARCHIVES, still set $@ and
4696         $%.
4698         * commands.c (set_file_variables): Include a trailing slash in the
4699         directory variables (@D, etc.).
4701         * job.c (child_handler): Call notice_finished_file after changing a
4702         child's state to `cs_finished'.
4703         * remake.c (update_file_1): Don't call notice_finished_file if
4704         FILE->command_state == cs_finished.
4706 Wed Oct  4 16:09:33 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4708         * Version 3.56.3.
4710 Tue Oct  3 21:09:51 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4712         * read.c (read_all_makefiles): When setting elements of MAKEFILES from
4713         the contents of read_makefiles, make sure we're using the right
4714         element.
4716         * dir.c, glob.c [USGr3 || DIRENT]: Don't define d_ino as d_fileno.
4718         * Version 3.56.2.
4720         * remake.c (update_file_1): Return zero after calling remake_file if
4721         FILE->command_state != cs_finished.  Test update_status thoroughly.
4723         * commands.c (execute_file_commands): Don't call notice_finished_file.
4725         * remake.c (remake_file): Return immediately after calling
4726         execute_file_commands.
4728 Sat Sep 30 14:57:05 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4730         * Version 3.56.1 (alpha).
4732         * file.h (struct file): Made `update_status' not be a bitfield, since
4733         some broken compilers don't handle it right.
4735         * function.c (expand_function: `join'): Don't clobber the pointers and
4736         then try to free them.
4738         * job.c (exec_command): Fixed & vs = precedence problem.
4740 Thu Sep 28 17:29:56 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4742         * remake.c (update_file_1): Fixed typo in debugging output.
4744         * remake.c (library_file_mtime): Search for /usr/local/lib/libLIB.a
4745         after /usr/lib/libLIB.a.
4747 Tue Sep 26 16:07:58 1989  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
4749         * read.c (conditional_line): For `ifeq (a, b)', swallow space after the
4750         comma.
4752 Sun Sep 24 13:25:32 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4754         * function.c (patsubst_function): If BY_WORD and the match is not a
4755         full word, update the text pointer correctly.
4757         * function.c (expand_function: `word'): Don't lose track of the second
4758         arg's expansion and free something else instead.
4760 Fri Sep 22 16:15:29 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4762         * Version 3.56.
4764 Thu Sep 21 14:28:42 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4766         * main.c (main): Make an array of the mtimes of the makefiles before
4767         updating them, and compare their file_mtimes against this later.  Don't
4768         re-exec if a makefile was successfully updated but didn't change.  If a
4769         makefile failed to be remade and no longer exists, die.  If a makefile
4770         failed to be remade, but changed anyway, re-exec.  If a makefile failed
4771         to be remade, but is unchanged, continue on.
4773 Wed Sep 20 18:02:07 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4775         * Version 3.55.6.
4777         * implicit.c (pattern_search): Maintain an array CHECK_LASTSLASH of the
4778         CHECK_LASTSLASH flag values used to match each member of TRYRULES.
4779         When making FILE->stem, if CHECKED_LASTSLASH[FOUNDRULE], prepend the
4780         part of FILENAME before LASTSLASH.
4782 Tue Sep 19 17:44:08 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4784         * dir.c (dir_file_exists_p): Check for FILENAME being nil before
4785         checking for it being "".
4787         * main.c (define_makeflags): Fixed test for whether a flag/flag_off
4788         option was non-default.  Also changed to generate a string that Unix
4789         Make will grok (except for FP/int values and new flags).
4791         * job.c (child_execute_job): Don't use the shell's -c option.
4792         Also fixed an off-by-one bug in the ARGV -> shell arg list copying.
4794 Mon Sep 18 15:17:31 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4796         * Version 3.55.5.
4798         * read.c (parse_file_seq): Check the beginning of the file name for a
4799         `./', not the two chars after the end of the name (Q rather than P).
4801         * job.c (child_execute_job): Include all of ARGV in the arg list for
4802         the shell.
4804         * main.c (define_makeflags): Don't include floating and positive_int
4805         options in !PF.
4807         * job.c (exec_command): Set the effective gid to the real gid before
4808         execing.
4810         * job.c (child_execute_job): Don't clobber the arg list when execing
4811         the shell.
4813 Sun Sep 17 15:27:19 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4815         * main.c (define_makeflags): Moved all the checking inside the switch.
4817         * load.c [LDAV_BASED] (load_average): When we can't get the load
4818         average, return zero instead of running off the end.
4820         * file.c: Include variables.h.
4821         * job.c: Declare dup2 and {block,unblock}_remote_children.
4822         * file.h: Declare f_mtime.
4823         * job.c: Don't declare construct_command_argv, since job.h does.
4824         * function.c, main.c, load.c, remake.c: Include job.h.
4825         * load.c [LDAV_BASED] (load_average): Declare nlist.
4826         * variable.h: Declare print_file_variables.
4827         * job.c [!USG]: Don't declare sigsetmask.
4828         [!USG]: Declare getdtablesize.
4829         Don't declare load_average.  Do declare wait_to_start_job.
4830         Declare vfork, gete[gu]id, execve.
4831         * commands.c: Declare remote_kill, getpid.
4832         * make.h: Declare kill, exit, sigblock, pipe, close, ctime, open,
4833         lseek, read.
4834         * make.h [not USG]: Declare sigsetmask.
4835         * job.h: Declare wait_for_children and {block,unblock}_children.
4837         * dir.c (dir_file_exists_p): If FILENAME is nil, read in the whole
4838         directory.
4839         (find_directory): When we want to read in the whole directory, call
4840         dir_file_exists_p with nil instead of "".
4842         * file.h (struct file), job.h (struct child),
4843           variable.h (struct variable): Use bitfields for flags.
4844         * make.h (ENUM_BITFIELD): If GCC or #ifdef ENUM_BITFIELDS, define as
4845         :BITS, else empty.
4846         * compatMakefile (defines): Document ENUM_BITFIELDS.
4848 Sat Sep 16 12:38:58 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4850         * Version 3.55.4 (alpha).
4852         * GNUmakefile (dist): Depend on default and doc.
4854         * load.c [LDAV_BASED]: Include <nlist.h> rather than <a.out.h>; #ifdef
4855         NLIST_NAME_UNION, use n_un.n_name instead of n_name.
4856         * compatMakefile (LOAD_AVG): Document NLIST_NAME_UNION.
4858         * job.c [USG-ish]: Don't redefine WIF{SIGNALED,EXITED} if they're
4859         already defined.
4861 Fri Sep 15 13:59:42 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4863         * glob.c, dir.c [USGr3 or DIRENT]: If neither d_ino, nor d_fileno is
4864         defined, define d_ino as d_fileno.
4866 Thu Sep 14 18:29:38 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4868         * job.c: Don't declare exec_command static.
4870         * make.texinfo (Name Index): Changed title to include directives.
4872         * Version 3.55.3 (alpha).
4874         * make.texinfo (Running: Options): Document -e.
4876         * main.c (main): Always give imported environment variables origin
4877         `o_env'.
4878         * variable.c (define_variable_in_set): Under -e, if ORIGIN, or an
4879         existing variable's origin, is `o_env', make it `o_env_override'.
4881         * load.c: Use the symbol KERNEL_FILE_NAME instead of KERNEL_FILE.
4882         * compatMakefile: Changed the comment for `LOAD_AVG' accordinly.
4884 Thu Sep  7 16:46:26 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4886         * Version 3.55.2 (alpha).
4888         * variable.c (print_variable_set), rule.c (print_rule_data_base),
4889         file.c (print_file_data_base): If NO_FLOAT is defined, don't use
4890         floating-point for printing statistics.
4891         * compatMakefile (defines): Document NO_FLOAT.
4893         * make.h (HASH): New macro to add the hashing value of one char to a
4894         variable.c.
4895         * file.c (lookup_file, enter_file, rename_file): Use it.
4896         * dir.c (find_directory, dir_file_exists_p, file_impossible_p): Ditto.
4897         * variable.c (define_variable_in_set, lookup_variable): Same here.
4899         * variable.c, file.c, dir.c: Don't define *_BUCKETS if they are already
4900         defined.
4902         * compatMakefile (defines): Added comment about defining NO_ARCHIVES.
4903         (ARCHIVES, ARCHIVES_SRC): New variables for {ar,arscan}.[oc].
4904         (objs, srcs): Use $(ARCHIVES) and $(ARCHIVES_SRC).
4905         * commands.c (set_file_variables), dir.c (file_exists_p),
4906         remake.c (touch_file, name_mtime), implicit.c (try_implicit_rule,
4907         pattern_search), make.h: If NO_ARCHIVES is #defined, don't do any
4908         archive stuff.
4910         * commands.c (set_file_variables): Don't kill the last char of
4911         directory names in $([@*<%?^]D).
4913 Wed Sep  6 15:23:11 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4915         * default.c (default_terminal_rules {%:: %,v}, {%:: RCS/%,v}): Don't
4916         run co if the target exists.
4918         * glob.c (glob_match): [!xyz], rather than [^xyz], means none of [xyz].
4920         * glob.c: Misc minor cosmetic changes.
4922 Tue Sep  5 14:49:56 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
4924         * load.c [LDAV_BASED] (load_average): Check for == -1, rather than < 0
4925         to see if lseek fails.  On some systems, `avenrun' is at an offset >
4926         (2**31)-1, and lseek succeeds, returning a negative value.
4928 Mon Sep  4 11:07:58 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
4930         * rule.c (new_pattern_rule): Return `int' instead of `void': nonzero if
4931         the passed rule was used, zero if not.
4932         (install_pattern_rule): Pay attention to the return from
4933         new_pattern_rule, and don't set the rule's `terminal' flag or give it
4934         commands unless it's used.
4935         (create_pattern_rule): Same idea.
4937         * dir.c (find_directory): Removed unused variable.
4939         * commands.c (execute_file_commands): Removed unused variable.
4941         * read.c (record_files): Don't use NAME after freeing it.
4943 Sat Sep  2 00:33:19 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
4945         * Version 3.55.1 (alpha).
4947         * function.c (string_glob): Don't add spaces after file names that
4948         aren't added.  (Also means don't add spaces without checking the size
4949         of the buffer.)
4951         * remake.c (update_goal_chain): Don't remove makefiles with cmds and no
4952         deps from the chain.
4953         * main.c (main): Do it here, before calling update_goal_chain.
4955         * remake.c (update_goal_chain): When updating fails, change STATUS even
4956         if MAKEFILES is set.  Also stop remaking when updating fails if not
4957         under -k and MAKEFILES is not set.
4959         * remake.c (remake_file, update_file_1, notice_finished_file),
4960         commands.c (execute_file_commands), make.h, commands.h: The functions
4961         remake_file, notice_finished_file, and execute_file_commands no longer
4962         return values, and their callers no longer expect values returned.
4964         * remake.c (notice_finished_file): Don't set FILE's modtime to now if
4965         it is a non-target with no commands.
4967 Fri Sep  1 00:04:39 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
4969         * read.c (read_all_makefiles): After freeing each element on MAKEFILES,
4970         replace it with the name stored in read_makefiles by read_makefile.
4972         * remake.c (update_file_1): Don't decide not to remake if FILE has no
4973         cmds and no deps actually changed if FILE doesn't have any deps.
4975         * file.c (remove_intermediate): Remove precious files that also have
4976         the `dontcare' flag set.
4978         * remake.c (update_file_1): Don't always remake if FILE has cmds but no
4979         deps; only if FILE is double-colon.  (I don't know why this should be
4980         done for double-colon targets, but that's what Unix make does.)
4982         * load.c [LDAV_BASED] (load_average): Write error messages if the
4983         various system calls fail.  Keep track of if we've failed before.
4984         The first time we fail, write a message saying -l won't be enforced.
4985         The first time we succeed after having failed, write a message saying
4986         -l will be enforced again.
4988         * remake.c [USG]: Don't #include <sys/file.h>
4990         * load.c [generic Unix LDAV_BASED]: #include <fcntl.h> #ifdef USG,
4991         else <sys/file.h> instead.
4993         * job.c [USG && !USGr3 && !HAVE_DUP2]: Remove redundant
4994         #include <errno.h> and declaration of `errno'.
4995         [...] (dup2): Fixed so it won't always lose.
4997         * default.c (default_suffix_rules: .texinfo.dvi): Copy, rather than
4998         move, the aux and index files, so the TeX run can use them.
5000         * compatMakefile: Remove redundant comment.
5002         * load.c [generic Unix LDAV_BASED]: Include <a.out.h> instead of
5003         <nlist.h>, since the `struct nlist' declaration in <nlist.h> varies
5004         more than the one in <a.out.h>.
5005         (load_average): Use the `n_un.n_name' field of the `struct nlist',
5006         since the <a.out.h> declaration uses the union.
5008         * main.c (main): For the temporary files made for stdin makefiles, set
5009         the `intermediate' and `dontcare' flags.
5010         * file.c (remove_intermediates): Don't print any messages for files
5011         whose `dontcare' flag is set.  (The only files that will be
5012         intermediate and `dontcare' will be the temporary files made for stdin
5013         makefiles.)
5015         * job.c (exec_command): Made global.
5016         * job.h: Declare it.
5017         * main.c (main): Use exec_command when re-execing.
5019         * make.h: Declare environ.
5020         * make.c: Don't.
5022         * job.c (child_execute_job): New function to perform everything done in
5023         the child side of a fork (for a job or `shell' function).
5024         (start_job): Call it.
5025         * job.h: Declare construct_command_argv and child_execute_job.
5026         * function.c (expand_function: `shell'): Use child_execute_job.
5028 Thu Aug 31 18:42:51 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
5030         * function.c (expand_function: `shell'): Remove a trailing newline
5031         instead of turning it into a space.
5033         * main.c (main): Do init_siglist #ifdef HAVE_SIGLIST.
5035         * job.c [WTERMSIG || (USG && !HAVE_SYS_WAIT)]: Test each W* macro
5036         separately and define all those that aren't defined.
5038 Sat Aug 26 15:13:21 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5040         * ar.c (ar_name): Return zero for `(foo)'.
5042         * Version 3.55.
5044         * make.texinfo (Rules: Multiple Targets): Make this node's `next'
5045         pointer point to `Static Pattern'.
5046         * make.texinfo (Makefiles: MAKEFILES Variable): Make this node's `prev'
5047         pointer point to `Makefile Names'.
5049         * make.1: Renamed to make.man.
5050         * compatMakefile: Define `mandir' and `manext'.
5051         (install): Depend on $(mandir)/make.$(manext).
5052         ($(mandir)/make.$(manext)): Depend on make.man and copy it to $@.
5053         ($(bindir)/make): Use `make' rather than $<; so Unix make can grok it.
5055 Thu Aug 24 03:35:48 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5057         * variable.c (target_environment): Allow variables that start with
5058         underscores.
5060 Wed Aug 23 22:50:32 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5062         * variable.c (target_environment): Reject variables that don't start
5063         with letters.
5065 Tue Aug 22 04:14:29 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5067         * GNUmakefile (make-$(version).tar.Z): Put make.1 (the Unix manual
5068         page) in the tar file.
5070         * variable.c (target_environment): Don't write variables with origin
5071         o_default (i.e., ones from default.c).
5072         * make.texinfo (Commands: Recursion: Variables/Recursion): Document
5073         that default variables are not put in the environment.
5075         * remake.c (update_file_1): Remake all targets with commands but no
5076         deps.
5078 Sat Aug 19 06:03:16 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5080         * remake.c (update_file_1): In the final loop, set the deps'
5081         `changed' members if they are newer than FILE.
5083         * remake.c (update_goal_chain): Under -d, print a message if we decide
5084         not to remake a makefile so as to avoid a possible infinite loop.
5086 Fri Aug 18 20:30:14 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5088         * remake.c (remake_file): Cleaned up.
5090         * commands.c (execute_file_commands): If the commands are empty, set
5091         FILE->update_status to zero before returning.
5093         * remake.c (notice_finished_file): Set `last_mtime' fields to zero
5094         instead of calling name_mtime; file_mtime will do that later if anybody
5095         cares.
5097 Thu Aug 17 10:01:11 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5099         * make.texinfo (Rules: Wildcards: Wildcard Examples): Give this node a
5100         `prev' pointer.
5102         * Version 3.54.9 (alpha).
5104         * make.texinfo: Fixed some @nodes.
5106         * remake.c (check_dep): Don't set *MUST_MAKE_PTR if FILE doesn't exist
5107         after running update_file.
5109         * remake.c (notice_finished_file): If FILE has no commands, pretend its
5110         modtime is now.
5112         * remake.c (update_file_1): In the loops that call update_file on the
5113         deps, compare modtimes before and after (unless deps are still being
5114         made) and set the deps' `changed' members.  Do not set the `changed'
5115         members in the loop that prints the newer/older debugging messages.
5116         * remake.c (update_file_1): If no deps changed and FILE has no
5117         commands, decide it doesn't need remaking.
5119         * remake.c (update_file_1): Print a debugging message if we take
5120         commands from default_file.
5122         * make.texinfo (Rules: Directory Search: Selective Search): Removed
5123         note about warning for `vpath' with a constant pathname, since it isn't
5124         warned about anymore.
5126         * remake.c (update_goal_chain): If MAKEFILES, remove makefiles which
5127         are targets and have no deps.
5128         * make.texinfo (Makefiles: Remaking Makefiles): Document that makefiles
5129         will not be remade if they are targets but have no dependencies.
5131 Tue Aug 15 00:00:08 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
5133         * remake.c (notice_finished_file): Increment files_remade for non-phony
5134         files if they didn't exist before (even if they still don't).
5136         * job.c: Include <errno.h> and declare errno.
5138         * job.c (exec_command): If the execve fails with ENOEXEC (Exec format
5139         error), return instead of exiting the child process.
5141         * job.c (start_job): In the child side, if exec_command fails, try
5142         using the shell.
5144         * job.c (start_job): In the child side, call unblock_children instead
5145         of sigsetmask.
5147         * remake.c (notice_finished_file): Under -n or -q, always increment
5148         files_remade for non-phony files.
5150         * rule.c (intall_pattern_rule): Use find_percent.
5152         * vpath.c (vpath_search): Pass the `percent' members to
5153         pattern_matches.
5155 Mon Aug 14 23:30:24 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
5157         * vpath.c (struct vpath): New member `percent', to hold a pointer into
5158         the pattern where the % is.
5159         (construct_vpath_list): Call find_percent on the pattern and set the
5160         new `percent' member.
5161         * read.c (read_makefile): Don't run find_percent on `vpath' directive
5162         patterns.
5164         * function.c (pattern_matches): Take new arg PERCENT, a pointer into
5165         PATTERN where the % is.  If PERCENT is nil, copy PATTERN into local
5166         space and run find_percent on it.
5167         (expand_function: `filter', `filter-out'): Pass new arg to
5168         pattern_matches.
5169         * read.c (record_files): Pass PATTERN_PERCENT to pattern_matches for
5170         static pattern rules.  Save the percent pointer into implicit rule
5171         targets, and pass them to create_pattern_rule.
5172         * rule.c (convert_to_pattern): Pass new arg to create_pattern_rule.
5173         (create_pattern_rule): Take new arg TARGET_PERCENTS, nil or an array of
5174         pointers into the corresponding elements of TARGETS, where the %s are.
5176 Sun Aug 13 00:29:19 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5178         * Version 3.54.8.
5180         * README.templatate, README-doc.template: New files, turned into README
5181         and README-doc to go into the two distribution tar files.
5182         * GNUmakefile: Added a rule to edit the version number in
5183         README.template and README-doc.template, producing README and
5184         README-doc.
5186         * remake.c (update_goal_chain): If -n or -q is in effect for a
5187         makefile, and it got updated, don't change STATUS, so we can still
5188         return -1 (meaning nothing was done).  This avoids an infinite loop on
5189         "make -n Makefile".
5191 Sat Aug 12 23:14:24 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5193         * remake.c (notice_finished_file): Treat -q the same as -n.
5195         * remake.c (update_goal_chain): Fixed handling of return from
5196         update_file.  If -n or -q is in effect, ignore it.
5198         * job.c (start_job): Don't test for -t.  We should never get called in
5199         that case.
5201 Fri Aug 11 04:09:14 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5203         * function.c (expand_function): Removed unused variables.
5204         (handle_function): Removed unused variable.
5206         * main.c (main): Removed unused variable.
5208 Wed Aug  9 09:37:10 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5210         * Version 3.54.7.
5212         * remake.c (notice_finished_file): If FILE's modtime actually changed,
5213         increment files_remade.
5214         (remake_file): Don't increment files_remade.
5216         * remake.c (update_file): Don't print "up to date" messages for
5217         phony files.
5219         * job.c (child_handler): Don't set C->file->update_status to 1 if
5220         start_job returns nonzero under -n or -t.
5222         * expand.c (variable_expand): Count parens in $(foo:a=b) refs.
5224         * main.c: Removed old declaration of `glob_tilde' (which hasn't existed
5225         for a few months).
5227 Tue Aug  8 23:53:43 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5229         * job.c (exec_command): Fixed to not ignore the last path component and
5230         to do the right thing with an empty path.
5232 Fri Aug  4 15:58:19 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5234         * remake.c (library_file_mtime): Look for libLIB.a, not /libLIB.a.
5235         Do VPATH search on libLIB.a, not /usr/lib/libLIB.a
5237 Thu Aug  3 20:42:00 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5239         * job.c [HAVE_SYS_WAIT or not USG]: If WIFSIGNALED is not defined by
5240         <sys/wait.h>, define it as (WTERMSIG != 0).
5242 Tue Aug  1 19:25:34 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5244         * remake.c (remake_file): If FILE has no commands and is a target,
5245         don't set its time to now.  The time gets reset by notice_finished_file
5246         anyway, and it isn't needed since check_dep checks for nonexistence.
5248         * Version 3.54.6.
5250         * read.c (read_makefile): Don't read off the end of the string after an
5251         `include'.
5253         * job.c (exec_command): New function to search the path for a file and
5254         execute it.
5255         (start_job): Use exec_command rather than execvp.
5257         * read.c (read_makefile): Expand `include' directive args before
5258         parsing them.  Allow trailing whitespace after filename.
5260         * variable.c (target_environment): Put makelevel + 1, rather than
5261         makelevel, in the `MAKELEVEL' envariable.
5263 Sat Jul 29 10:27:04 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5265         * remake.c (notice_finished_file): Don't get the new modtime of phony
5266         files.
5268         * remake.c (remake_file): Run commands instead of touching under -t if
5269         FILE->cmds->any_recurse is set.
5271         * commands.h (struct commands): Add new member `any_recurse', to be set
5272         nonzero if any `lines_recurse' element is nonzero.
5273         * commands.c (chop_commands): Set the `any_recurse' member.
5275         * commands.c (execute_file_commands): Split chopping of commands into
5276         lines into new function chop_commands.
5277         * commands.h: Declare chop_commands.
5279         * read.c (read_makefile): Test for a line beginning with a tab after
5280         checking for conditional lines, but before all other checks.
5282 Fri Jul 28 18:10:29 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5284         * read.c (read_makefile): Match directives against collapsed line
5285         and use that for their args.
5287         * read.c (read_makefile): Warn about extra text after `include'.
5289 Tue Jul 25 14:34:25 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5291         * make.texinfo (Rules: Directory Search: Selective Search): Fixed
5292         example to use correct `vpath' syntax.
5294 Mon Jul 24 12:10:58 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5296         * Version 3.54.5.
5298         * job.c (start_job): In the child side, unblock SIGCHLD.
5300 Fri Jul 21 18:25:59 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5302         * make.h: Don't include <sys/types.h> #ifdef sun.
5304 Mon Jul 17 14:29:10 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5306         * implicit.c (pattern_search): If ar_name (FILENAME), don't check for
5307         directory names.
5309         * job.c (wait_for_children): Changed "waiting for children" message to
5310         "waiting for unfinished jobs".
5312 Fri Jul 14 13:17:13 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5314         * load.c (load_average): Use an unsigned offset into kmem.
5316 Thu Jul 13 18:44:49 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5318         * variable.c (pop_variable_scope): Don't free the head of the chain of
5319         variables in each bucket twice.
5321 Tue Jul 11 06:45:24 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5323         * GNUmakefile: Include COPYING in the doc tar file.
5325         * variable.c, read.c, misc.c, job.c, function.c: Replace some identical
5326         "for" loops with next_token or end_of_token calls.
5328 Mon Jul 10 16:55:08 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5330         * Version 3.54.4.
5332         * compatMakefile: Documented new conditionals.
5334         * job.c: Don't define sys_siglist if HAVE_SIGLIST is defined.
5335         Don't define dup2 if HAVE_DUP2 is defined.
5337         * job.c (child_handler): Interpret the return from start_job correctly.
5339         * remake.c (update_file_1): Don't write "target not remade because of
5340         errors" message under -n or -q.
5342         * read.c: Declare getpwnam.
5344         * glob.c: Use <dirent.h> if DIRENT is defined.
5345         [USG]: Don't declare memcpy, since <memory.h> does.
5347 Fri Jul  7 20:53:13 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5349         * misc.c (collapse_line): Copy the line over in the right place.
5351 Fri Jul  7 18:33:24 1989  Roland McGrath    (fsf at void.ai.mit.edu)
5353         * remake.c: Conditionalize inclusion of <sys/file.h> on not
5354         USG, since HP-UX defines a `struct file' there.
5356 Fri Jul  7 12:11:30 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5358         * job.c: If WTERMSIG is defined by <sys/wait.h>, define WAIT_T as int,
5359         and don't define other macros; this covers HP-UX.
5360         If WTERMSIG is not defined, use int or union wait based on USG and
5361         HAVE_SYS_WAIT; this covers BSD and SysV.
5363         * Version 3.54.3 (alpha).
5365         * job.c [USG and not USGr3]: Include <errno.h> and declare errno.
5367         * job.c (unblock_children [USG]): Declare child_handler.
5369         * job.c: Renamed WRETCODE to WEXITSTATUS.
5370         [HAVE_SYS_WAIT or not USG]: Undefine WTERMSIG, WCOREDUMP, and
5371         WEXITSTATUS before defining them.  The HP-UX <sys/wait.h> defines them.
5373         * main.c (main): If there are no goals, fatal AFTER printing the data
5374         base under -p.
5376 Thu Jul  6 22:43:33 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
5378         * glob.c [USG]: #define rindex as strrchr.
5380         * job.c [USG]: Include <sys/param.h> and #define getdtablesize() as
5381         NOFILE.
5383 Wed Jul  5 09:36:00 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5385         * Version 3.54.2 (alpha).
5387         * expand.c (variable_expand): When expanding recursive variable
5388         references (${${a}}), use the correct delimiters in the constructed
5389         variable reference.
5391 Mon Jul  3 18:29:26 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
5393         * compatMakefile: Clear out and redefine the .SUFFIXES list because
5394         silly Sun 4 make defines .cps.h.
5396         * compatMakefile: Fix comment about -DNO_MINUS_C_MINUS_O.
5398         * remake.c: Include <sys/file.h> for O_* on 4.2.
5400         * commands.c: Define sigmask if it's not defined.
5402 Fri Jun 30 07:33:08 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
5404         * remake.c (remake_file): Don't always increment files_remade.
5406         * variable.c (push_new_variable_scope): Zero the new variable hash
5407         table.
5409 Thu Jun 29 17:14:32 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5411         * expand.c (variable_expand): When terminating the variable expansion
5412         buffer, use variable_buffer_output instead of a simply zero store,
5413         because the buffer may need to be enlarged.
5415 Wed Jun 28 16:53:47 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5417         * Version 3.54.
5419         * default.c (default_suffixes): Added `.ln'.
5420         (default_suffix_rules): Changed lint rules to use -C.
5422 Thu Jun 22 20:49:35 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5424         * job.c (start_job): Set `environ' to CHILD->environment before execing
5425         in the child process!
5427 Tue Jun 20 17:23:13 1989  Roland McGrath  (roland at spiff.ai.mit.edu)
5429         * compatMakefile: Put job.h and rule.h in `srcs'.
5431         * Version 3.53.
5433 Mon Jun 19 16:25:18 1989  Roland McGrath  (roland at spiff.ai.mit.edu)
5435         * job.c (start_job): If there are no more commands, return nonzero
5436         under -n or -t.
5438         * compatMakefile (make): Pass `-f' to mv.
5440         * GNUmakefile: If `ARCH' or `machine' is defined, make $(ARCH)/*.o and
5441         $(ARCH)/make instead of *.o and make.
5443         * function.c (string_glob): Don't try to use freed storage!
5445         * read.c (readline): If there is only one byte of space in the buffer,
5446         enlarge the buffer before reading more.
5448         * arscan.c [M_XENIX]: Miscellaneous minor changes for Xenix.
5450 Sun Jun 18 13:07:45 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5452         * GNUmakefile (depend): Split commands into two lines so they won't be
5453         so long when variable-expanded.
5455         * compatMakefile: Documented MINUS_C_MINUS_O meaning.  The line
5456         describing it got removed when the USG/wait stuff was documented.
5458 Sat Jun 17 22:56:54 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5460         * Version 3.52.
5462 Mon Jun 12 17:45:11 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5464         * remake.c (check_dep): Drop circular dependencies instead of fataling.
5465         (update_file_1 already does this.)
5467         * default.c (default_suffix_rules): For .s -> .o, put the -o flag to
5468         the assembler before the source file name.
5470 Sun Jun 11 12:00:52 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
5472         * Version 3.51.
5474         * make.texinfo (Features): Noted 1003.2 requirement of `+' meaning.
5476         * file.c (remove_intermediates): If !SIG, write a single "rm" command
5477         line, listing all files.
5479         * read.c (read_makefile): Don't free the storage for the passed
5480         filename, since it might not be malloc'd.  When doing an included
5481         makefile, free the name's storage.
5482         (read_all_makefiles): Use variable_expand to find the value of
5483         `MAKEFILES'.  Free the storage for the names of -f makefiles.
5484         (read_makefile): Allocate storage for the makefile name in the
5485         `struct file' in read_makefiles.
5487         * make.texinfo (Running: Instead of Execution): Document the effect of
5488         + and $(MAKE)/${MAKE}.
5490         * make.texinfo (Functions: Foreach Function): Document that if the
5491         iteration variable was undefined before the `foreach' call, it will be
5492         undefined after the call.
5494         * commands.c: Split into commands.c, job.h, and job.c.
5496         * rule.c (try_implicit_rule, pattern_search): Moved to new file
5497         implicit.c.
5499         * rule.c: Split into rule.h, rule.c, and default.c.
5500         * default.c (install_default_pattern_rules): Renamed to
5501         install_default_implicit_rules.
5502         * make.h, main.c (main): Renamed uses.
5504         * make.c: Renamed to misc.c.
5506         * make.c (main, log_working_directory, decode_switches,
5507         decode_env_switches, define_makeflags, die, print_version,
5508         print_data_base): Moved to new file main.c.
5510         * commands.c (execute_file_commands): Don't collapse backslash-newlines
5511         here.  When chopping the commands up into lines, don't chop at
5512         backslash-newlines.
5513         (start_job): Collapse backslash-newlines after printing the line.
5515         * commands.c (start_job): Don't collapse backslash-newlines here.
5516         (execute_file_commands): Collapse backslash-newlines before chopping
5517         the commands up into lines.
5519         * commands.c (set_file_variables): Initialize the length counters for
5520         $^ and $? to zero!
5522         * commands.c (start_job): Use vfork instead of fork.  Someone else says
5523         the child and parent DO have separate file descriptors.
5525         * variable.c: Split internals into variable.c, function expansion into
5526         function.c, and variable expansion into expand.c.
5527         * function.c (handle_function): New function to check for a function
5528         invocation and expand it.
5529         * expand.c (variable_expand): Use handle_function.
5530         * variable.c (push_new_variable_scope): New function to push a new
5531         empty variable set onto the current setlist.
5532         (pop_variable_scope): New function to pop the topmost set from the
5533         current setlist and free its storage.
5534         * function.c (expand_function: `foreach'): Push a new variable scope
5535         for the iteration variable and pop the scope when finished.
5536         * variable.h: Declare new functions.
5537         * variable.c (initialize_variable_output): New function to return a
5538         pointer to the beginning of the output buffer.
5539         (save_variable_output): New function to save the variable output state.
5540         (restore_variable_output): New function to restore it.
5541         * expand.c (variable_expand): Use initialize_variable_output.
5542         (allocated_variable_expand): Use {save,restore}_variable_output.
5543         * variable.c (current_setlist): Renamed to current_variable_set_list
5544         and made global.
5546 Sat Jun 10 00:11:25 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5548         * remake.c (library_file_mtime): Check for libNAME.a in the current
5549         directory before doing VPATH search.
5551         * variable.c (print_variable_set): Don't write "# Variables", and write
5552         fewer blank lines.
5553         (print_variable_data_base): Precede the variables with "# Variables".
5555         * make.c (main): Print the data base under -p after doing everything
5556         else, just before exitting.  This way it gets info determined in
5557         updating the goal targets.
5559         * variable.c (print_variable_data_base): Split into print_variable,
5560         which prints one variable, and print_variable_set, which prints a set.
5561         Replaced with a call to print_variable_set for the global set.
5562         (print_file_variables): New function to print a given file's local
5563         variables.
5565         * file.c (print_file_data_base): Call print_file_variables to print
5566         each file's local variables.
5568         * commands.c (set_file_variables): Actually define the values for
5569         the $^ and $? variables!!!
5571         * make.texinfo (Implicit: Pattern Rules: Automatic): Document new D and
5572         F versions of $^ and $?.
5574         * commands.c (start_job): In the child fork, use getdtablesize and a
5575         loop to close all file descriptors other than 0, 1, and 2.  We need to
5576         do this since not only the bad stdin pipe, but also some directories,
5577         may be open.
5579         * commands.c (start_job): Use fork instead of vfork, because a vfork
5580         parent and child share file descriptors, and our child needs to diddle
5581         with stdin.
5583         * variable.c (initialize_file_variables): When created a new variable
5584         set, zero out the hash table.
5586         * variable.c (target_environment): Don't use variables whose names are
5587         not made up of alphanumerics and underscores.
5589         * remake.c (update_file_1): Set the `parent' member of each dependency
5590         to FILE before updating it.
5592         * file.h (struct file): Add `parent' member.
5594         * variable.c (initialize_file_variables): Don't take second arg PARENT.
5595         Use FILE->parent instead.  If FILE->parent->variables is nil, recurse
5596         to initialize it.
5598         * variable.h: Declare {allocated_}variable_expand_for_file.
5600         * variable.c (allocated_variable_expand): Now
5601         allocated_variable_expand_for_file, calling variable_expand_for_file,
5602         and taking second arg FILE.
5603         (allocated_variable_expand): New function, a wrapper around
5604         allocated_variable_expand_for_file, passing a nil second arg.
5606 Fri Jun  9 12:11:45 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5608         * commands.c (start_job): On the child side of the fork, always close
5609         the bad stdin file descriptor.
5611         * commands.c (struct child): New member `environment', to hold the
5612         environment for the child.
5613         (execute_file_commands): Set the new childs `environment' member to nil
5614         before calling start_job.
5615         (start_job): Set up CHILD->environment before running the commands if
5616         it is nil.
5618         * make.c (main): Don't call new_environ.  `shell' functions will now be
5619         run with the environment make was called with.
5621         * commands.c (child_handler): Don't check C->command_ptr before calling
5622         start_job since we now have to check C->file->cmds->command_lines and
5623         it's easier to let start_job handle all that.
5625         * commands.c (struct child): New member `command_line', to hold an
5626         index into file->cmds->command_lines.
5627         (execute_file_commands): Set the new child's `command_line' to 0 and
5628         its `commands' and `commands_ptr' to nil.
5629         (start_job): When CHILD->command_ptr runs out, increment
5630         CHILD->command_line and run the corresponding line from
5631         CHILD->file->cmds->command_lines.  Run it even under -t, -q, or -n if
5632         the CHILD->file->cmds->lines_recurse element for that line is set.
5634         * commands.c (execute_file_commands): Chop CMDS up into lines, setting
5635         its `command_lines' and `lines_recurse' members, if it wasn't already
5636         chopped.
5638         * commands.h (struct commands): New members `command_lines' and
5639         `lines_recurse'.  The first is an array of chopped-up lines; the second
5640         is an array of flags, each nonzero if the corresponding line is
5641         recursive.
5643         * variable.c (variable_expand_for_file): If FILE is nil, just do a
5644         vanilla variable_expand.
5645         (expand_function: `shell'): Pass second arg (as nil) to
5646         construct_command_argv.
5648         * commands.c (construct_command_argv): Use variable_expand_for_file on
5649         `$(SHELL)' and `$(IFS)' instead of lookup_variable to check those
5650         variables.  This handles file-local and recursive values correctly.
5651         To support this, take an additional argument FILE.
5653         * variable.c (initialize_file_variables): New function to initialize
5654         FILE's variable set list from PARENT's setlist.  PARENT is the
5655         immediate dependent that caused FILE to be remade, or nil if FILE is a
5656         goal.  (When user-level per-file variables are implemented, PARENT
5657         should be passed as nil when defining per-file variables.)
5659         * variable.c (variable_expand_for_file): New function to expand a line
5660         using the variable set of a given file, and reporting error messages
5661         for the file and line number of that file's commands.
5663         * variable.h: Don't declare lookup_variable_for_file.
5665         * variable.c (lookup_variable_*): Turned back into lookup_variable.  It
5666         now uses current_setlist.
5667         (global_setlist): New static `struct variable_set_list', a setlist
5668         containing global_variable_set.
5669         (current_setlist): New static `struct variable_set_list *', a pointer
5670         to the current variable set list.
5671         (define_variable): Define in the current top-level set, not the global
5672         set.
5674         * commands.c (set_file_variables): New function to set up the automatic
5675         variables for a file in its own variable set.
5676         (execute_file_commands): Use set_file_variables.
5678         * variable.c (new_environ): Replaced with target_environment, taking an
5679         argument FILE, and returning an environment for FILE's commands.
5681         * variable.c, variable.h: Remove all global special variable pointers.
5683         * variable.c (define_variable_for_file): New function like
5684         define_variable, but takes additional arg FILE, and defines the
5685         variable in the variable set at the top of FILE's chain.
5686         (lookup_variable_for_file): New function like lookup_variable, but
5687         takes additional arg FILE, and looks the variable up in all of FILE's
5688         variable sets.
5690         * file.h (struct file): New member `variables', a `struct
5691         variable_set_list' containing the list of variable sets used in the
5692         expansion of the file's commands.
5694         * variable.c (variables): Replaced with static `struct variable_set'
5695         global_variable_set.
5696         (define_variable): Now define_variable_in_set, taking additional
5697         argument SET, the `struct variable_set' to define it in.
5698         (define_variable): Use define_variable_in_set with global_variable_set.
5699         (lookup_variable): Now lookup_variable_in_set, taking additional
5700         argument SET, the `struct variable_set' to look it up in.
5701         (lookup_variable): Use lookup_variable_in_set with global_variable_set.
5702         (lookup_variable_in_setlist): New function to look up a variable in a
5703         `struct variable_set_list' using lookup_variable_in_set.
5705         * variable.h (struct variable_set): New structure, containing a hash
5706         table and the number of hash buckets.
5707         (struct variable_set_list): New structure, containing a link for a
5708         linked-list, and a `struct variable_set'.
5710         * commands.c (start_job): Under -n, return what the recursive start_job
5711         call returns, since it might actually start a child.
5713         * make.texinfo (Rules: Wildcards): Document ~ and ~USER expansion.
5715         * commands.c (execute_file_commands): If start_job returns
5716         failure, but -t is set, set FILE->update_status to success.
5717         (start_job): If -t is set, and the commands are not recursive, return
5718         failure (is is done for -q).
5720         * remake.c (touch_file): New function to touch FILE.
5721         (remake_file): Use touch_file.  When touching a file, still do
5722         execute_file_commands.
5724         * remake.c (remake_file): Don't check question_flag (-q), since we
5725         can't know here if the commands are recursive.
5727         * commands.c (start_job): Don't use the `recursive' member of
5728         CHILD->file->cmds.  Instead, check for leading +s and $(MAKE) or
5729         ${MAKE} in the command line here.
5731         * commands.h (struct commands): Remove `recursive' member.
5733         * rule.c (install_default_pattern_rules): Remove use of `recursive'
5734         member.
5736         * read.c (record_files): Don't check commands from $(MAKE) and set
5737         their `recursive' member.
5739         * commands.c (fatal_error_signal): Treat SIGQUIT like SIGINT, SIGHUP,
5740         and SIGTERM, but don't send it to ourselves because it will cause a
5741         core dump.
5743 Thu Jun  8 20:30:04 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5745         * Version 3.50.
5747         * variable.c (variable_expand): Use allocated_variable_expand instead
5748         of expand_argument in a few places.
5750         * variable.c (allocated_variable_expand): Do static variable shuffling
5751         here instead of using expand_argument.
5752         (expand_argument): Use allocated_variable_expand.
5754         * variable.c (recursively_expand): New function to recursively expand
5755         its argument (a `struct variable'), returning the malloc'd value.
5756         (variable_expand): Use recursively_expand.
5758 Sun May 28 12:49:27 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
5760         * make.c (main): Fixed buggy fix in deciding to increase space for
5761         command-line variable definitions.  (First it never did it, then it
5762         always did it; now it does it when necessary.)
5764 Sat May 27 14:01:54 1989  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
5766         * make.c (main): Fixed bug in deciding to increase space for
5767         command-line variable definitions.
5769 Fri May 26 15:48:01 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5771         * read.c (multi_glob): Use allocated_expand_variable for checking
5772         `HOME' variable for ~ expansion, since this may be called from inside a
5773         `wildcard' function expansion.
5775         * variable.h: Declare allocated_expand_variable.
5777         * variable.c (allocated_expand_variable): New function to do variable
5778         expansion in an allocated buffer, rather than the static one.
5780         * make.c (main): Don't set glob_tilde (it no longer exists).
5782         * variable.c (string_glob): Use multi_glob and parse_file_seq.
5784         * read.c (multi_glob): Do ~ expansion here.
5786         * glob.c (glob_tilde, glob_filename): Removed ~ expansion.
5788         * variable.c (define_variable, lookup_variable): Use a smarter hashing
5789         algorithm (the same one used for files and directories).
5790         (VARIABLE_BUCKETS): Increased to 523.
5792         * file.c (enter_file, lookup_file, rename_file): Use a smarter hashing
5793         algorithm, spreading the bits about somewhat.
5795         * make.c (log_working_directory): Under `-p', precede the directory
5796         message with a `#'.
5798         * make.c (print_version): Under `-p', precede each line with a `#'.
5799         (print_data_base): Precede the header line with a `#' and include the
5800         date and time on it.
5802         * vpath.c (print_vpath_data_base): Precede non-directive
5803         lines with `#'s.
5805         * commands.c (print_commands): Precede the non-command line with a `#'.
5807         * rule.c (print_rule_data_base), file.c (print_file_data_base): Precede
5808         non-rule lines with `#'s.
5810         * dir.c (print_dir_data_base): Precede all lines with `#'s.
5812         * variable.c (print_variable_data_base): Changed format so that it can
5813         be makefile input.  Lines that are not variable definitions are
5814         preceded with `#'.  Nonrecursive variable definitions are made with all
5815         dollar signs doubled to reproduce the initial value.  Recursive
5816         variable definitions containing newlines are done with `define'
5817         directives.  Nonrecursive variable definitions containing newlines, and
5818         variable names containing :, =, or newlines, will come out garbled.
5820 Wed May 24 00:20:04 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5822         * Version 3.49.
5824 Tue May 23 19:18:00 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5826         * variable.c (expand_function: `filter'/`filter-out'): Use
5827         find_percent instead of pattern_p.
5829         * variable.c (expand_function: `patsubst'): Pass new args (both nil)
5830         to patsubst_expand.
5831         (variable_expand): For $(var:pat%=rep%) references, pass new args to
5832         patsubst_expand so as to avoid find_percent and thus disallow
5833         quoting the %s.
5835         * read.c (record_files): Pass new args to patsubst_expand.
5837         * variable.c (patsubst_expand): Take two new args: PATTERN_PERCENT
5838         and REPLACE_PERCENT.  Each of these, if non-nil, means that PATTERN
5839         (or REPLACE) has already been run through find_percent, and
5840         PATTERN_PERCENT (or REPLACE_PERCENT) is the result.
5842         * make.h: Declare find_percent instead of pattern_p.
5844         * read.c (pattern_p): Changed to find_percent, returning a pointer
5845         to the %, or nil if there is none.
5846         (record_files): Take another arg, PATTERN_PERCENT, a pointer to the
5847         % in PATTERN.
5848         (read_makefile): Pass PATTERN_PERCENT to record_files.
5850         * make.texinfo (Rules: Static Pattern: Static Usage,
5851         Rules: Directory Search: Selective Search,
5852         Functions: Text Functions): Documented that `%' can be quoted.
5854         * variable.c (expand_function: `filter'/`filter-out'): Use pattern_p
5855         to allow quoted %s in patterns.
5857         * variable.c (patsubst_expand): Use pattern_p on PATTERN and REPLACE
5858         to allow quoted %s.  Quoting backslashes are removed from REPLACE
5859         even if PATTERN contains no unquoted %.
5861         * read.c (pattern_p): Made global.
5862         * make.h: Declare pattern_p.
5864         * read.c (pattern_p): New function to search for an unquoted % in a
5865         string.  Backslashes quote %s and backslashes.  Quoting backslashes
5866         are removed from the string by compacting it into itself.  Returns
5867         nonzero if an unquoted % was found, zero if not.
5868         (record_files): Use pattern_p to check for implicit rules.
5869         (read_makefile): Use pattern_p to check for static pattern rules.
5870         Also use it to allow quoted %s in `vpath' patterns; warn about
5871         `vpath' patterns with no %s.
5873 Mon May 22 16:31:52 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
5875         * glob.c (glob_filename): Replace a `1' with the `l' that should
5876         have been there.  This incidentally stops it from dumping core.
5878         * glob.c (glob_filename): If the path is just a directory, with no
5879         file name pattern, return the directory alone.
5881         * glob.c (glob_tilde): New global variable (int), defaults to zero.
5882         (glob_filename): If glob_tilde is nonzero, expand ~ or ~USER.
5884         * variable.c (string_glob): Keep a static allocated buffer for file
5885         names taken from the list, instead of allocating and freeing one
5886         every time.
5888 Fri May 19 18:06:26 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5890         * make.c (decode_switches): Get floating numbers from the right string.
5892 Sun May 14 13:48:04 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
5894         * commands.c (delete_child_targets): When deleting `also_make'
5895         files, include the target's name in the message:
5896                 make: *** [foo] Deleting file `bar'
5898 Sat May 13 17:34:26 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
5900         * make.c (max_load_average, default_load_average): Default to -1.
5902         * load.c (wait_to_start_job): Return if max_load_average is < 0.0,
5903         not equal.
5905 Fri May 12 16:08:05 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
5907         * variable.c (variable_buffer_output): Don't try to do pointer
5908         arithmetic between objects not in the same array.
5910 Wed May 10 15:55:29 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5912         * rule.c [M_XENIX] (default_suffix_rules, default_variables): Minor
5913         changes to allow for strange compiler syntax.
5915         * rule.c (default_variables): Don't include "> $@" in
5916         $(PREPROCESS.S), since it's already in the .S.s rule.
5918         * file.c (enter_file): Make a new double-colon file the `prev'
5919         member of the bottom `prev' file (the one whose `prev' is nil).
5921         * read.c (do_define): Append newlines after copying the lines into
5922         the value buffer, so we end up with a trailing newline.
5924         * make.c (print_version): If the global variable
5925         `remote_description' is not nil or "", append "-%s" (its value) to
5926         the version number.
5927         * remote-*.c: Define remote_description appropriately.
5929 Sun May  7 15:15:53 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5931         * commands.c (error_status): Converted to new function child_error,
5932         taking new arguments TARGET_NAME and IGNORED, and writing an error
5933         message: "*** [target] Error 1" (or signal #, etc.), appending
5934         " (ignored)" if IGNORED is nonzero.
5935         (child_handler): Use child_error instead of error_status.
5937         * compatMakefile (all): Don't depend on `doc'.
5939         * compatMakefile (clean): Don't remove make-info*.
5940         (realclean): New rule, depends on `clean', removes tags, TAGS,
5941         and all Info and TeX files.
5943 Thu May  4 17:00:46 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5945         * variable.c (print_variable_data_base), file.c
5946         (print_file_data_base), rule.c (print_rule_data_base),
5947         Use floating-point for averages and percentages.
5949         * make.c (print_data_base): Print messages before and after the data
5950         base information.
5952         * commands.c (print_commands): Changed output format to separate
5953         lines in commands and prefix them with tabs.
5955         * dir.c (print_dir_data_base): Changed output format slightly.
5957         * vpath.c (struct vpath, construct_vpath_list,
5958         selective_vpath_search): Remove the `exists' member and its uses.
5960         * vpath.c (print_vpath_data_base): New function to print all
5961         selective and general VPATH search paths (for -p).
5963         * make.c (print_data_base): Call print_vpath_data_base.
5965         * file.c (print_file_data_base): Changed format to look more like a
5966         makefile rule.  Now reports all information in the `struct file'.
5968         * rule.c (print_rule_data_base): Changed format of display from:
5969           %: (terminal)
5970            depends on: RCS/%,v
5971         to:
5972           %: RCS/%,v
5973             is terminal.
5974             references nonexistent subdirectory.
5975         Also include number and percent that refer to nonexistent
5976         subdirectories.
5978 Thu Apr 27 15:45:40 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5980         * make.c (main): Figure out the level of recursion before writing
5981         the `Entering directory' message.
5982         * variable.c (define_automatic_variables): Don't figure out the
5983         level of recursion from `MAKELEVEL'.  It's now done in main.
5985         * Version 3.48.
5987 Wed Apr 26 16:39:17 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5989         * commands.c (child_handler): Set `update_status' to zero when there
5990         are no more commands.
5992         * make.c (log_working_directory): If MAKELEVEL > 0, indicate the
5993         recurson in the message (make[1]: ...).
5995         * commands.c (child_handler): Change status to `cs_finished' when
5996         commands fail.
5998         * commands.c (start_job): Return 0 (success) if there were no more
5999         commands for the child.
6000         (child_handler): Change the status to `cs_finished' when start_job
6001         fails to start the commands.
6003         * make.c (main): Don't handle SIGEMT if it's not defined.
6004         Do handle SIGDANGER if it is defined.
6006         * commands.c (child_handler): Reorganized inner loop so that it
6007         doesn't try to inspect the child before finding it.
6009 Tue Apr 25 16:28:24 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6011         * make.c (end_of_token): Fixed bug wherein backslashes caused
6012         immediate return.
6014         * Version 3.47.
6016         * make.texinfo (Implicit: Pattern Rules: Automatic): Document
6017         setting of `$*' for explicit rules.  Add note clarifying that
6018         automatic variables, though referred to in the documentation as
6019         `$<', etc. are no different than `$(<)', etc.
6021 Fri Apr 21 18:00:12 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6023         * file.c (enter_file): Don't strip leading `./'s.
6025         * read.c (parse_file_seq): Strip leading `./'s.
6027 Thu Apr 13 17:26:41 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6029         * make.texinfo (Commands: Parallel, Running: Options): Document that
6030         -l with no argument removes a previous load limit.
6032         * make.c (struct command_switch): New member `default_value'.
6033         (default_job_slots): Default value (of 1) for -j.
6034         (default_load_average): Default value (of 0, unlimited) for -l.
6035         (command_switches): Use default values for -j and -l.
6036         Also, -l without an arg now means no load limit.
6037         (define_makeflags): Don't write positive_int or floating options
6038         whose values are their defaults.
6040         * make.c (main): Under -w, write a `Leaving directory' message
6041         before re-execing.
6043 Tue Apr 11 16:46:29 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6045         * Version 3.46.
6047         * Makefile: Provide an easy place for system-specific definitions
6048         (-DUSG, etc.) and extra object files (for whatever).
6050         * make.texinfo: Miscellaneous fixes from RMS.
6052 Mon Apr 10 19:31:34 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6054         * rule.c (pattern_search): Put rules with `subdir' flags set in
6055         TRYRULES, since these might be valid with VPATHs.  In the TRYRULES
6056         loop, don't do lookup_file or file_exists_p calls for dependencies
6057         of rules with `subdir' flags set, but still do vpath_search calls
6058         and intermediate-file searches.
6060 Thu Apr  6 16:33:00 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6062         * make.texinfo (Implicit: Pattern Rules: Automatic): Document the
6063         new definition of $* for explicit rules.
6065         * commands.c (execute_file_commands): If FILE->stem is nil, figure
6066         out if FILE->name ends in a suffix in the .SUFFIXES list; if so,
6067         store the name sans suffix in FILE->stem (and $*).
6069 Wed Apr  5 15:24:48 1989  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
6071         * file.c (remove_intermediates): Don't use `file_exists_p' to check
6072         for the existence of intermediate files, because the hashed
6073         directories will probably be out of date.
6075         * commands.c (child_handler): Free the good stdin before running the
6076         next command line.
6078         * commands.c [USG] (init_siglist): Don't case SIGEMT if it's not
6079         defined.  Do case SIGDANGER (for IBM RT) if it is defined.
6081         * commands.c: Changed `SYS_WAIT' to `HAVE_SYS_WAIT'.
6082         (child_handler): Use `wait3' if HAVE_SYS_WAIT is #defined.
6084         * file.c (enter_file): If any `./'s are stripped off, allocate a new
6085         copy of the shortened name.
6087         * rule.c (pattern_search): Allocate the right length strings for
6088         `also_make' members.
6090 Sat Apr  1 13:28:38 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6092         * Version 3.45.
6094         * GNUmakefile: Make a separate tarfile of the DVI and info files.
6096         * make.c (define_makeflags): If a switch that takes an argument has
6097         its default value, put the switch in MAKEFLAGS with no arguments.
6099         * make.c (command_switches): Pass `-l' in MAKEFLAGS.
6101 Wed Mar 29 17:50:05 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6103         * GNUmakefile: Don't include the DVI and info files in the dist.
6105         * commands.c (child_handler): Don't call
6106         check_changed_{directories,vpaths}.
6108         * make.h: Don't declare check_changed_{directories,vpaths}.
6110         * vpath.c (check_changed_vpaths): Removed this function.
6112         * dir.c (struct directory): Remove `modtime' member.
6113         (find_directory): Don't set `modtime' member.
6114         (check_changed_directories): Removed this function.
6116         * remake.c (update_file_1): Set FILE->command_state to cs_finished
6117         if it didn't need to be remade.
6119         * remake.c (update_file): Only write the "up to date" message if the
6120         target went from `not_started' state to `finished' state without
6121         incrementing the count of files remade.
6123         * commands.c [USG] (init_siglist): If both SIGCHLD and SIGCLD are
6124         defined, don't put them both in the `switch'.
6126 Tue Mar 28 15:37:02 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6128         * file.c (rename_file): Change FILE's name!!!
6130         * rule.c (create_pattern_rule): Set the `terminal' member of the new
6131         rule after calling new_pattern_rule, which zeros it.
6133         * rule.c (default_variables): Use $(C++) in $(COMPILE.cc)!
6135 Sun Mar 26 15:52:30 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6137         * Makefile: Added a `clean' target.
6139 Fri Mar 24 15:08:46 1989  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
6141         * Version 3.44.
6143         * file.c (rename_file): If a `struct file' for the renamed-to name
6144         exists, and it is a target or has deps or commands, barf.
6145         If not just remove the old one for put in the new one.
6147         * remake.c (update_file_1, check_dep): Changed it back so that equal
6148         modtimes to NOT make dependencies be considered newer.  RCS checks
6149         out files with equal modtimes as the RCS files, so this screws it.
6151         * make.h, glob.c: If __GNUC__ is defined, use __builtin_alloca.
6153         * Makefile: Use variables `ALLOCA' and `ALLOCASRC' so systems
6154         without a good standard alloca can get it from the Emacs
6155         distribution (or somewhere).
6157         * dir.c: Don't include <sys/stat.h>, since make.h does.
6159         * make.c: Removed debugging version of getwd.
6161 Thu Mar 23 16:16:27 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6163         * Version 3.43.
6165         * remake.c (update_file_1): If a dependency loop is found, don't
6166         fatal.  Emit an error message and remove the dependency.
6168         * remake.c (library_file_mtime): Fixed to use the right names.
6169         (update_file_1, check_dep): Consider a dependency "newer" than its
6170         dependent if they have the same modification time.
6172 Wed Mar 22 19:31:35 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6174         * file.c (remove_intermediates): Don't try to remove nonexistent files.
6176 Mon Mar 20 10:21:22 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6178         * Version 3.42.
6180         * rule.c (default_variables): Set F77 to $(FC) and F77FLAGS to
6181         $(FFLAGS) so explicit rules expecting these (which are in System V)
6182         will work.  However, there is no way to make setting these affect
6183         the implicit rules, unless we trash FC and FFLAGS (which BSD uses).
6184         [USG]: Set GET to `get' rather than `/usr/sccs/get'.
6186 Sun Mar 19 20:00:27 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6188         * vpath.c (construct_vpath_list): Don't replace VPATH[ELEM] with
6189         dir_name (V), because the latter may get freed.
6191 Sat Mar 18 15:01:39 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6193         * Version 3.41.
6195         * make.texinfo: Cleaned-up edition 0.1 Beta from RMS and Bob Chassell.
6197         * file.c (rename_file): If a file with the new name already existed,
6198         use the same storage space, after freeing the old file's name, deps,
6199         and `also_make' member, preserving the link in the chain.
6200         Also write an error message telling the user to report the incident;
6201         I don't think this should be able to happen, but I'm not sure.
6203         * file.c (rename_file): Don't add the hash values of the old and new
6204         names together!  Reset HASHVAL before computing the second value.
6206         * dir.c (check_changed_directories): Zero the new file hash table
6207         after allocating it.
6209         * dir.c (dir_file_exists_p): If FILENAME is "", return 1 if the
6210         directory exists.
6212         * vpath.c (check_changed_vpaths): New function to run through the
6213         search paths of all VPATHs, making the `exists' members correspond
6214         to reality.
6216         * commands.c (child_handler): Call check_changed_vpaths.
6218         * make.h: Declare check_changed_vpaths.
6220         * vpath.c (struct vpath): New element `exists', an array of char
6221         flags; exists[N] is nonzero if searchpath[N] exists.
6222         (construct_vpath_list): Set the `exists' member.
6223         (selective_vpath_search): Don't search directories whose `exists'
6224         elements are zero.
6226         * read.c (read_makefile): Set the `dontcare' flag of makefiles
6227         from the MAKEFILES variable if they were not mentioned anywhere but
6228         in the MAKEFILES variable.
6230         * read.c (read_makefile): Don't write an error message if fopen
6231         fails for a makefile from the MAKEFILES variable.
6233         * dir.c (struct directory): Add `modtime' member to record the
6234         modification time of the directory when it was opened.
6235         (check_changed_directories): New function to check all known
6236         directories; if their modtimes have changed since they were opened,
6237         their file tables are cleared and they are reset to be read in.
6239         * commands.c (child_handler): Call check_changed_directories before
6240         returning.
6241         make.h: Declare check_changed_directories.
6243 Tue Mar 14 20:07:13 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6245         * Version 3.40.
6247         * make.c (print_version): Made the copyright say 1988, 1989.
6249         * read.c (read_all_makefiles): Don't set *MAKEFILES to the name of
6250         the end of the read_makefiles chain, since the latter may be from an
6251         included makefile.  (Why did I do this before?)
6253         * make.c (main): Set argv[0] to "" if it was nil.  Don't put the
6254         command-line variable definitions into argv[0], only into the MAKE
6255         variable!
6257 Sun Mar  5 20:44:08 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6259         * ar.c (ar_member_date, ar_touch): Remove the trailing ) from the
6260         member name.
6262 Fri Mar  3 18:15:15 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6264         * commands.c (construct_command_argv): Initialize NEW_ARGV to 0.  At
6265         `slow' label, if NEW_ARGV is not 0, free it; then allocate 4 strings.
6267 Tue Feb 28 14:29:39 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6269         * Version 3.39.
6271         * COPYING, make.texinfo: New GNU General Public License, version 1.
6273         * *.c, *.h, Makefile: New copyright notices for the new GNU General
6274         Public License, version 1.
6276         * commands.c [USG]: Define WRETCODE correctly (again).
6278         * variable.c (expand_function: `shell'): Don't capture the standard
6279         error output of the shell command.
6281         * ar.c (ar_touch, ar_member_date): Allocate MEMNAME with the right
6282         length.
6284         * load.c [not UMAX] (load_average): Don't clobber the first nlist
6285         member when trying to set the second!
6287 Thu Feb 23 13:13:53 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6289         * commands.c (child_handler): Really ignore errors under -i and for
6290         - lines, don't just print a different message.
6292         * make.c (decode_switches): Fixed handling of arguments (or lack
6293         thereof) to switches.
6295 Wed Feb 22 16:25:39 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6297         * commands.c (construct_command_argv): Don't clobber LINE when
6298         checking the IFS variable.
6300 Sun Feb 19 11:17:07 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6302         * load.c [UMAX, not NO_LDAV] (load_average): Return 0.0 rather than
6303         randomness when calls fail.
6305         * Version 3.38.
6307         * commands.c (fatal_error_signal): If handling a user kill signal
6308         (TERM, INT, HUP), wait for the children without printing the
6309         "Waiting for children" message, since they will die quickly.
6311         * Version 3.37.
6313         * remote-stub.c (remote_status): Take another arg, BLOCK.  If this
6314         is nonzero block waiting for remote children.  If not, return 0 if
6315         we would have to block.
6317         * commands.c (child_handler) [not USG]: If called as a signal
6318         handler, use wait3 and don't block.
6319         [USG]: If called as a signal handler, return after handling one child.
6321 Sat Feb 18 13:37:04 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6323         * file.c (snap_deps): Process all double-colon entries of each file,
6324         not just the first one.
6326         * Version 3.36.
6328         * remote-stub.c: remote.c renamed.
6329         remote.c: Just include remote-stub.c
6331         * commands.c (child_handler): If we were called as a signal handler,
6332         return after handling one child.
6334         * commands.c [not USG]: Include <signal.h> and define `sigmask' if
6335         <signal.h> doesn't.
6336         (block_children, unblock_children): Use sigmask rather than
6337         bitshifting explicitly (and incorrectly).
6339         * remote.c (remote_kill): New function to send a signal to a
6340         remote child.
6342         * commands.c (fatal_error_signal): If we get a SIGTERM, send one to
6343         each living child.  If we get a SIGTERM, SIGINT, or SIGHUP, delete
6344         all pending targets before waiting for children.
6345         (struct child): Add new member `deleted'.
6346         (start_job): Initialize `deleted' member to 0.
6347         (delete_child_targets): New function to delete a given child's
6348         targets, unless the `deleted' flag in the `struct child' says they
6349         have already been deleted.  Sets this flag before returning.
6351 Thu Feb 16 18:32:07 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6353         * commands.c [USG]: Define `WRETCODE' correctly (X & 0xff00).
6355 Tue Feb 14 16:05:00 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6357         * commands.c (construct_command_argv): Don't make the 0th element of
6358         the argument list be "sh" when executing /bin/sh, because start_job
6359         uses the 0th element as the program name.
6361 Sun Feb 12 17:42:05 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6363         * Version 3.35.
6365         * read.c (readline): Put a null in the beginning of the buffer
6366         before starting the reading loop.
6368         * read.c (read_makefile): Made main reading loop while
6369         !feof (infile), and removed EOF check after calling readline.
6371 Sun Feb  5 19:52:38 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6373         * remote.c (block_remote_children, unblock_remote_children): New
6374         (stub) functions to block and restore asynchronous notification of
6375         remote child death.
6377         * commands.c (block_children): Call block_remote_children.
6378         (unblock_children): Call unblock_remote_children.
6379         (child_handler): If called as a signal handler, block remote
6380         children on entry and unblock them before returning.
6382         * commands.c (child_handler): For unknown children, if they are
6383         remote, give their remote ID; if local, give their PID and make's.
6385         * commands.c (execute_file_command): Don't put a new child in the
6386         chain unless start_job succeeds.  Block children before calling
6387         start_job, and unblock them after putting the child in the chain and
6388         incrementing `job_slots_used' (if start_job succeeded).
6390         * commands.c (block_children, unblock_children): Make these globally
6391         visible (not `static').
6392         commands.h: Declare block_children and unblock_children.
6394         * variable.c (expand_function: `shell'): Use
6395         `shell_function_completed'.  Block children before forking and
6396         unblock after `shell_function_pid' is set properly and
6397         `shell_functon_completed' is reset to 0.
6399         * commands.c (child_handler): When the child of the `shell' function
6400         completes, set `shell_function_completed' to 1 if it actually ran,
6401         or -1 if it didn't (due to fork or exec failure).
6403         * commands.c (block_children, unblock_children): New functions to
6404         block and unblock the child termination signal.
6405         (wait_for_children): Use block_children and unblock_children.
6406         (execute_file_commands): Block children around the critical section
6407         wherein a new child is put on the chain.
6409         * make.c (main): Change the environment to contain the correct
6410         MAKELEVEL before re-execing.
6412 Sat Feb  4 18:28:48 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6414         * Version 3.34.
6416 Fri Feb  3 16:36:49 1989  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
6418         * rule.c (default_variables): Fixed $(LINK.c).
6420 Wed Feb  1 18:05:07 1989  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
6422         * Version 3.33.
6424         * version.c: Removed copyright notice, since this is a one-line file.
6426         * commands.c (error_status): Made it return BUF, rather than running
6427         off the end (this apparently worked on Sun 3s for some reason).
6429         * ar.c, commands.c, dep.h, load.c, make.c, make.h, read.c, remake.c,
6430         rule.c, variable.c, Makefile: Changed copyrght notices to cover 1989.
6432 Mon Jan 30 15:51:28 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
6434         * Version 3.32.
6436 Fri Jan 27 20:09:24 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6438         * remake.c (remake_file): Don't touch phony targets.
6440         * rule.c (convert_to_pattern): Fixed an incorrect length passed to
6441         savestring.
6443         * variable.c (expand_function: `shell'): Close the read side of the
6444         pipe on the parent side of the fork.
6446         * commands.c (start_job): On the child of the fork, close the
6447         BAD_STDIN fd if we're not using it.
6449         * read.c (record_files): A file beginning with a dot can be a
6450         default target if it also contains a slash (as in `../foo').
6452         * commands.c (wait_for_children): For BSD, block SIGCHLD rather than
6453         ignoring it to avoid a race condition when child_handler is returning.
6455         * commands.c (child_handler): Do blocking waits.
6456         (error_status): Return a string describing exit status.  (Split out
6457         of child_handler).
6459         * read.c (multi_glob): Change VECTOR to VEC for Alliant.
6461 Thu Jan  5 00:06:51 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
6463         * Version 3.31.
6465         * make.texinfo (Features): Noted $(foo:PAT=SUB) from SunOS 4.0.
6467         * make.texinfo (Options/Recursion): -d and -p go in the environment.
6469         * load.c: Include "commands.h".
6471 Wed Jan  4 17:49:25 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
6473         * make.c (switches): -d and -p can come from the environment and are
6474         put into it.
6476         * read.c (record_files): Fixed the checking for duplicate deps so it
6477         doesn't clobber the first one.
6479         * make.texinfo: Documented default implicit rule changes.
6481         * rule.c: Revamped default suffix rules.  They now use Sun's style
6482         of using variables `COMPILE.c', `LINK.c', etc. for each suffix, and
6483         use `TARGET_ARCH' and `TARGET_MACH' variable where appropriate.
6484         Also support Modula-2 compilation (suffixes .sym, .def, and .mod).
6485         Ratfor Yacc support is gone, since nobody has yacc -r.
6486         All EFL support is gone, since nobody uses EFL.
6488         * ar.c, arscan.c: Don't assume `long int' and `int' are the same.
6490         * commands.c [USG]: Fixed wait status bit encoding.
6491         [USG and not USGr3] (dup2): Define this for SysVr2.
6493         * make.h, dep.h, make.c [iAPX286]: Make allowances for this
6494         brain-damaged compiler.
6496         * make.texinfo (Variables: Flavors): Fixed a typo.
6498 Tue Jan  3 18:09:31 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
6500         * ar.c (ar_member_date, ar_touch): Truncate member names to 15 chars.
6502         * Version 3.30.
6504         * commands.c [SYS_WAIT]: If this is defined, use BSD <sys/wait.h>
6505         and wait3 even if USG.
6507         * read.c (record_files): Defining .DEFAULT with no deps or commands
6508         clears its commands.
6510         * rule.c (default_suffixes): Added `.sh'.
6511         (default_suffix_rules): Added single-suffix .sh rule, copies source
6512         to target and makes target executable.
6513         make.texinfo (Catalogue of Rules): Documented .sh rule and its use
6514         in conjunction with SCCS.
6516         * rule.c (set_default_suffixes): Define variable `SUFFIXES' to the
6517         default list ("" under -r).
6518         make.texinfo (Suffix Rules): Document `SUFFIXES' variable.
6520         * rule.c (default_variables), make.texinfo (Implicit Variables):
6521         Variable AR defaults to `ar', ARFLAGS to `rv', and RM to `rm -f'.
6523         * rule.c (install_default_pattern_rules): Default variables are made
6524         recursive.
6525         (default_variables): Added "CPP", defined to "$(CC) -E".
6526         (default_suffixes): Added `.S', before `.s'.
6527         (default_suffix_rules): New rule for .S to .s, runs CPP.
6528         All rules that use CPP now include "$(CPPFLAGS)".
6529         make.texinfo (Catalogue of Implicit Rules, Implicit Variables):
6530         Documented above changes.
6532         * commands.c [USG] (sys_siglist): Don't define.
6533         [USG] (init_siglist): New function to initialize sys_siglist.
6535         * make.texinfo (Variables: Reference): Documented `$(foo:PAT=SUB)'
6536         references.
6538         * variable.c (variable_expand): A reference `$(foo:PAT=SUB)' is
6539         equivalent to `$(patsubst PAT,SUB,$(foo))'.
6541         * variable.c (variable_expand): Free the storage for the expansion
6542         of a recursive variable when it is nod longer needed.
6544         * variable.c (variable_expand): When checking for `$($(foo))', use
6545         lindex so as not to search for the second `$' outside the parens.
6547         * make.c (struct stringlist, main, decode_switches): Changed `index'
6548         member to `idx'.
6550 Sat Dec 24 16:02:32 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6552         * commands.c (wait_for_children [USG]): Handle SIGCLD with SIG_DFL,
6553         rather than SIG_IGN.  Ignoring SIGCLD reportedly makes wait return -1.
6555         * arscan.c [USGr3]: Define PORTAR to 1 (as with sun386).
6556         (ar_scan [USGr3]): Remove trailing slashes from member names.
6558 Thu Dec 22 17:54:05 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
6560         * make.texinfo (Makefiles: Overriding Makefiles): New node
6561         documenting use of .DEFAULT to have one makefile defer unmakeable
6562         targets to another.
6564         * make.texinfo (Implicit: Using Implicit, Implicit: Last Resort):
6565         Mention empty commands and xref node `Empty Commands'.
6567 Wed Dec 21 20:12:40 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6569         * Version 3.29.
6571         * make.c (struct command_switch, command_switches, et al): New
6572         member `noarg_value', if not nil, ptr to value to use if no arg is
6573         given to a switch that would otherwise require one.  The -j option
6574         can now be given w/o an arg, to mean infinite jobs.
6575         * commands.c: If job_slots is zero, infinite jobs.
6577         * read.c (read_all_makefiles, read_makefile): Make makefiles precious.
6579         * make.c (decode_switches): For a positive_int or floating option,
6580         if we moved to the next argument word, but found no argument for the
6581         option, move back to the correct word.
6583         * make.c (decode_switches): If we got any unknown options, die after
6584         processing all arguments.
6586         * GNUmakefile: Moved `include depend' to the end, so the default
6587         goal will be set before then.
6589         * load.c (wait_to_start_job [Unix, UMAX]): Merged into one version
6590         under #ifdef LDAV_BASED.  Only loop while we have jobs running.
6591         Sleep for increasing amounts (increase one second per iteration)
6592         before checking the load average (after the first check).
6593         Get the load average from function load_average.
6594         (wait_to_start_job [not LDAV_BASED]): Always return.
6595         (load_average [UMAX]): Fetch load average for Encore UMAX.
6596         (load_average [not NO_LDAV]): Fetch load average from /dev/kmem.
6597         [not NO_LDAV]: Define LDAV_BASED.
6599 Tue Dec 20 18:54:50 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6601         * Version 3.28.
6603         * commands.c (wait_for_children): Take second arg, ERROR.  If
6604         nonzero, and there are children, print a message on stderr.
6605         (execute_file_commands, fatal_error_signal): Pass second arg.
6606         * make.c (die), remake.c (update_goal_chain), variable.c
6607         (expand_function: `shell'): Ditto.
6609 Sat Dec 17 01:05:38 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6611         * commands.c (start_job): Call wait_to_start_job before forking.
6613         * load.c (load_average): Converted to wait_to_start_job.
6615         * remote.c: New file for remote execution functions.
6616         (start_remote_job_p): Return nonzero if the next job should be run
6617         remotely.
6618         (start_remote_job): Start a remote job and return an ID for it.
6619         (remote_status): Get status of dead remote children.
6621 Fri Dec 16 16:51:07 1988  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
6623         * commands.c (start_job): If start_remote_job_p () returns nonzero,
6624         call start_remote_job to start the job rather than fork and exec.
6625         (child_handler):
6627         * commands.c (execute_file_commands): Moved load average checking to
6628         start_job.
6630         * commands.c (child_handler: USG): Record the pid wait returns.
6632         * load.c (UMAX): Added some #include's needed for UMAX.
6634         * read.c (multi_glob), variable.c (string_glob): Ignore a (char **)
6635         -1 return from glob_filename.
6637         * variable.c (variable_expand): Make sure we don't increment past
6638         the end of the string we were passed.
6640         * variable.c (variable_expand): Terminate the expansion.
6642         * file.c (rename_file): If there is already a file under the new
6643         name, set its contents equal to FILE's (ick).
6645         * variable.c (define_automatic_variables): Pass all the args to
6646         define_variable when defining MAKELEVEL!
6648         * commands.c (execute_file_commands): If max_load_average > 0, and
6649         we have children running, don't start up another child until the
6650         load average goes below max_load_average.
6652         * make.c: New variable `max_load_average'.
6653         (struct command_switch, decode_switches, decode_env_switches):
6654         Handle floating-point (double) args.
6655         (command_switches): Added `-l' switch to set `max_load_average'.
6657         * load.c (load_average): New file and function to return a double
6658         that is the current load average (1.00 scale).
6659         * GNUmakefile, oldMakefile: Pass flags in $(LOAD_AVG) for load.c.
6661 Thu Dec 15 15:22:08 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
6663         * Makefile: Renamed to oldMakefile.
6664         * GNUmakefile: Make Makefile from oldMakefile and depend.
6666         * read.c (read_all_makefiles): When putting the default makefiles in
6667         the read_makefiles chain so they will be remade, put them in the
6668         right order.
6670         * remake.c (update_goal_chain): If MAKEFILES is nonzero, always make
6671         in serial, and return as soon as one goal whose `changed' member is
6672         nonzero  is successfully remade.
6674         * commands.c: Don't include <sys/fcntl.h>.
6676         * commands.c (construct_command_argv): Added ` to sh_chars.
6678         * make.h: Don't declare construct_makeflags.
6680         * make.c (main): Set up MAKEFLAGS and MFLAGS and make an environment
6681         both before and after reading the makefiles, so the makefiles can
6682         use them and possible change them, and later children will get the
6683         right information.
6684         (construct_makeflags): Replaced with define_makeflags (static void),
6685         which defines the two variables.
6686         * variable.c (define_automatic_variables): Don't define MAKEFLAGS
6687         and MFLAGS.
6689 Mon Dec 12 14:40:31 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
6691         * Version 3.27.
6693         * commands.c (child_handler): Reset the handler to ourselves when
6694         called for USG, since it has no safe signals.
6696         * commands.c: For USG, use an int rather than a `union wait' for
6697         wait calls, and dissect it with bitmasks.
6698         (child_handler): No wait3 system call in USG.  Since we can't
6699         protect from hanging, always return immediately if we have no
6700         children we know about and we're not running a `shell' function.
6701         (There is still the danger of hanging waiting for a child that died
6702         without our being notified.)
6704         * remake.c: Include <fcntl.h> instead of <sys/file.h>.  What we need
6705         is really in <fcntl.h>, and while BSD <sys/file.h> includes
6706         <fcntl.h>, USG doesn't.
6708         * make.c (main): Figure out the program name before doing anything
6709         which might need it (in a call to error or fatal).
6711         * dir.c, glob.c: Use `struct dirent' and <dirent.h> for USGr3.
6713         * arscan.c (ar_scan): Added missing & before buf (which is an int)
6714         if SARMAG is not defined (SysV).
6716 Fri Dec  9 18:44:13 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
6718         * Version 3.26.
6720         * dir.c (find_directory, dir_file_exists_p): Keep track of how many
6721         directories we have open and don't let it be more than
6722         MAX_OPEN_DIRECTORIES (currently 10).
6724         * variable.c (expand_function: `foreach'): Use expand_argument
6725         rather than variable_expand so each repetition doesn't clobber the
6726         last!!!
6728 Mon Dec  5 15:58:46 1988  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
6730         * Version 3.25.
6732         * Makefile: Define `install' target.
6734         * GNUmakefile: Don't include GNUmakefile or depend in the
6735         distribution file.
6737 Wed Nov 30 15:53:42 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
6739         * commands.c (execute_file_commands): Don't clobber a null into
6740         random storage if there were no $^ and/or $? words.
6742         * remake.c (check_dep): Set *MUST_MAKE_PTR nonzero if a dependency
6743         doesn't exist.
6745         * ar.c (ar_member_date, ar_touch): Make sure the modtime of the
6746         archive file itself is known before we fetch or change the modtime
6747         of one of its members.
6749         * read.c (read_makefile): Expand variable and function references
6750         before parsing rules so variable can contain special characters
6751         (colons and semicolons).
6753 Sat Nov 26 11:36:31 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
6755         * variable.c (expand_function: `filter', `filter-out'): Fixed so
6756         that filter-out works right.
6758         * variable.c (expand_function: `filter', `filter-out'): Made these
6759         functions use each word of their first argument as a pattern.
6761 Fri Nov 25 10:51:47 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6763         * Version 3.24.
6765         * read.c (record_files): If a target is listed more than once in a
6766         single rule (that defines commands), give a warning message rather
6767         than the counter-intuitive message saying commands were already
6768         defined (in the same place).
6770         * make.c (fatal, error): Made them both take 6 args since there is
6771         at least one error message that need that many.  Too bad vfprintf is
6772         not universal!
6774         * Version 3.23.
6776         * read.c (read_makefile): Moved the construction of the `struct
6777         commands' into record_files.  Call record_files before recursing for an
6778         included makefile so the higher-up will determine the default goal.
6779         (record_files): Take arguments COMMANDS, COMMANDS_IDX and
6780         COMMANDS_STARTED and construct a `struct commands.
6782 Thu Nov 24 14:36:33 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6784         * Version 3.22.
6786         * make.c (main): Made it a fatal error if we can't move back to the
6787         directory we started in before re-execing.
6789         * make.c (main): Get the current directory before doing anything
6790         else, so we know it even if we don't need it for the value of
6791         `MAKE', since we might want it when re-execing.
6793 Wed Nov 23 13:34:44 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
6795         * Version 3.21.
6797         * read.c (record_files): Eliminate duplicate deps in a chain.
6799         * variable.c (expand_function: `sort'): Pass the right number to
6800         qsort, not one less.
6802         * remake.c (remake_file): Always call notice_finished_file if
6803         FILE->command_state == cs_finished.
6805         * commands.c (execute_file_commands): Call notice_finished_file to
6806         set FILE's status correctly when start_job fails (because it's out
6807         of commands or running under -n).
6809 Fri Nov 18 15:31:12 1988  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
6811         * Version 3.20.
6813         * remake.c (update_file_1): Set the `update_status' of FILE to
6814         nonzero and set FILE's `updated' bit if we have decided to give up
6815         on remaking FILE because of errors in the dependencies.
6817         * rule.c (pattern_search): Debugging messages use `dependency' (vs.
6818         `dependent') properly.
6820         * make.texinfo (Conditionals: Conditional Syntax): Function index
6821         entries for `ifndef' and `ifneq'.
6823         * variable.c (define_automatic_variables): Define `MAKELEVEL' to the
6824         decimal number of the makelevel, since it may be malformed or blank.
6826         * remake.c (remake_file): Call notice_finished_file after touching.
6828 Sat Nov 12 19:29:34 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6830         * Version 3.19.
6832         * GNUmakefile (dist): Pass the `-f' flag to compress.
6834         * vpath.c (build_vpath_lists): Check for VPATHS being nil after
6835         constructing the general VPATH list from the `VPATH' variable.
6837 Fri Nov 11 08:02:26 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6839         * make.c (fatal, error): Made error messages for recursive runs be
6840         shorter.
6842 Thu Nov 10 16:51:36 1988  Roland McGrath  (mcgrath at basil.Berkeley.EDU)
6844         * Version 3.18.
6846         * read.c (read_makefile): Made it eat leading spaces and formfeeds
6847         (but not tabs), like it's documented to.
6849         * read.c (read_makefile): Let included makefiles determine the
6850         default goal, as is done by System V Make.
6852 Tue Nov  1 19:03:08 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6854         * variable.c (new_environ): Don't increment VCNT when a variable is
6855         rejected.
6857 Fri Oct 28 16:54:15 1988  Roland McGrath  (mcgrath at basil.Berkeley.EDU)
6859         * Version 3.17.
6861         * rule.c (convert_to_pattern): Don't use the same storage for a name
6862         in two rules since new_pattern_rule may free this storage when a
6863         rule is discarded.
6865         * rule.c (new_pattern_rule): Undid useless change I made Oct 25.
6867 Thu Oct 27 19:17:53 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6869         * Version 3.16.
6871         * GNUmakefile, Makefile: Fixed a typo in a comment.
6872         * Makefile: Removed malloc.o from object file list.
6874         * variable.c: Removed old debugging #define's for xmalloc and
6875         xrealloc so non-ANSI cpp's won't barf.
6877         * make.c (main): Made local array for temp file name static so
6878         compilers that don't do auto aggregate initialization won't barf.
6880         * read.c: Removed static declaration of copy_dep_chain since it is
6881         no longer static.
6883 Tue Oct 25 16:59:30 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
6885         * rule.c (new_pattern_rule): If we threw out the new rule because it
6886         matched an old one and OVERRIDE was zero, don't put the freed
6887         pointer in the chain!
6889 Wed Oct 19 15:07:43 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
6891         * Version 3.15.
6893         * variable.c (expand_function: `sort'): Don't do the sorting and
6894         writing out if there were no words in the first place.
6896         * remake.c (remake_file): Only fail with a "no way to make" message
6897         for a dependency (non-target) file.  If we don't know how to remake
6898         a target file, pretend it was successfully remade and is very new.
6900         * remake.c (remake_file): Don't increment `files_remade' for a
6901         non-target file we don't know how to remake.
6903         * read.c (record_files): Don't die with "both : and :: entries" for
6904         a file whose `is_target' flag is not set.
6906 Tue Oct 18 17:24:11 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6908         * variable.c (expand_function: `patsubst', `subst'): Free the right
6909         things!
6911         * variable.c (expand_function: `subst'): Don't clobber the
6912         pointer to the end of the second arg and then try to use it!!!
6914 Mon Oct 17 16:44:45 1988  Roland McGrath  (mcgrath at catnip.Berkeley.EDU)
6916         * variable.c (expand_function: `patsubst'): Don't clobber the
6917         pointer to the end of the second arg and then try to use it!!!
6919         * variable.c (expand_function: `word' function): Made it parse its
6920         second argument correctly.
6922         * ar.c (ar_touch): Return 1 rather than -1 for on errors.
6924 Sat Oct 15 15:12:16 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
6926         * Version 3.14.
6928         * GNUmakefile: Removed explicit rule for make.dvi since the built-in
6929         implicit rule now works.
6931         * rule.c (default_suffix_rules): Fixed .texinfo.dvi rule yet again
6932         so that it really works, now that parens are counted.
6934         * remake.c (update_file_1): Set FILE's `updated' flag after calling
6935         remake_file if it failed or finished immediately.
6937         * remake.c (update_file): Use the `updated' flag rather than the
6938         command state to decide if a file was fully considered, and
6939         therefore might give an "up to date" message.
6941         * variable.c (expand_function): Made all functions that take more
6942         than one argument count parens of the appropriate flavor in their
6943         args and ignore commands nested in parens.
6945 Fri Oct 14 18:35:00 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6947         * read.c (read_all_makefiles): Pass second arg to read_makefile for
6948         default makefiles.
6950 Thu Oct 13 16:40:08 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6952         * Version 3.13.
6954         * GNUmakefile: Added an explicit rule for make.dvi since the
6955         built-in .texinfo.dvi implicit rule is screwed up.
6957         * rule.c (default_suffix_rules): Added a comment that the
6958         .texinfo.dvi rule does not work because of an ahem, feature of Make
6959         that at some point will be fixed--er, enhanced to alleviate this
6960         difficulty.
6962         * rule.c (default_suffix_rules): Fixed Texinfo -> DVI rule (again).
6964         * make.texinfo (Commands: Execution): Documented new competing for
6965         standard input among children.
6967         * commands.c (struct child): Added `good_stdin' flag to tell if this
6968         child has the stdin that doesn't point into nirvana.
6969         (good_stdin_used): New variable to tell if any child has the good
6970         standard input.
6971         (child_handler): Reset `good_stdin_used' if a dead child's
6972         `good_stdin' flag is set.
6973         (start_job): Give the new child the good standard input if
6974         `good_stdin_used' is no set, and set the child's `good_stdin' flag
6975         appropriately.
6977         * rule.c (default_suffix_rules): Changed Texinfo -> DVI rule to work
6978         better (I hope).
6980         * read.c (read_all_makefiles): Stop reading default makefiles after
6981         one is found.
6983         * read.c (read_makefile): Reset `reading_filename' and
6984         `reading_lineno_ptr' after recursing for an included makefile.
6986         * GNUmakefile: New GNU Make-specific makefile that does everything
6987         Makefile does plus distribution stuff, and doesn't contain any hacks
6988         to try to work with Unix make.
6990         * Makefile: Removed distribution stuff.
6992         * make.c (main): Use mktemp to construct the names of temporary
6993         files used for standard input makefiles.
6995         * make.c (main): Don't turn standard input into a broken pipe.
6997         * commands.c (start_job): Keep two extra file descriptors around: a
6998         good standard input, and a bad one that reads from a broken pipe.
6999         On the child side of the fork, if there are other children, give
7000         this one the broken pipe so they won't compete; if this is the only
7001         one, give it the good standard input.
7003         * make.h: Declare notice_finished_file.
7005         * commands.c (execute_file_commands): Use noticed_finished_file
7006         after waiting for the child when there is only one job slot.
7008         * remake.c (notice_finished_file): New function to re-check mtime's
7009         and such things to be done when commands finish.
7010         (update_file_1): Use notice_finished_file.
7012         * commands.c (child_handler, execute_file_commands): Use new
7013         variable `job_slots_used' to record the number of jobs currently
7014         running, rather than diddling with `job_slots'.
7015         (execute_file_commands): Increment `job_slots_used' before calling
7016         start_job and decrement it on failure to avoid race condition.
7017         If there is only one job slot, wait for the child to finish and
7018         return its status so commands are run in linear order, as if there
7019         were no parallelism.
7021 Wed Oct 12 15:59:03 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7023         * remake.c (remake_file): Don't print a "No way to make" message for
7024         targets whose `dontcare' flags are set.
7026         * read.c (read_all_makefiles): Set the `dontcare' flag of the
7027         `struct file' each default makefile added to the chain.
7029         * file.h (struct file): Add `dontcare' member.
7031         * read.c (read_all_makefiles): When no default makefiles are found,
7032         put the names of all those tried in the `read_makefiles' chain so
7033         they will be updated if possible, giving their `struct dep's'
7034         `changed' members the value of 0 so we won't care if they cannot be
7035         found or remade.
7037         * make.texinfo (Makefiles: Remaking Makefiles): Documented that
7038         default makefiles will be remade if not found.
7040         * read.c (read_all_makefiles): If no default makefiles can be found,
7041         go through the list of default names, trying to make one, stopping
7042         if one is made.
7044         * remake.c (remake_file): Set STATUS to 0 after successfully touching.
7046         * dir.c (file_impossible, file_impossible_p): Don't clobber FILENAME
7047         to "" and then try to to a strcmp on it!!!
7049 Mon Oct 10 16:09:18 1988  Roland McGrath  (mcgrath at cinnamon.Berkeley.EDU)
7051         * make.c (main): Don't do `dir_load (".")'.
7053         * rule.c (count_implicit_rule_limits), vpath.c
7054         (construct_vpath_list): Test the existence of a given directory by
7055         `dir_file_exists_p (DIR, ".")' and assume that if this returns zero,
7056         it means the directory really does not exist.
7058         * dir.c (struct dirdata): Replaced with `struct directory' for
7059         directories, each containing a chain of `struct dirfiles', one for
7060         each file (real or impossible).
7061         (dir_load): Removed.
7062         (find_directory): New function to find the `struct directory' for a
7063         named directory and return it (possibly creating a new one).
7064         (dir_file_exists_p): Read the directory on the fly if its stream is
7065         still valid (and ever was) if the file we're looking for is not
7066         already in the hash tables.
7067         (file_impossible, file_impossible_p, dir_name, print_dir_data_base):
7068         Use the new directory/file scheme.
7070         * make.texinfo: Miscellaneous editorial changes and clarifiactions.
7072         * commands.c (struct child): Remove `environ' member.
7073         (child_handler, start_job, execute_file_commands): Remove use of
7074         `environ' member and new_environ.
7076         * make.c (main): Call new_environ after reading makefiles.
7078         * variable.h: Declare `new_environ' to return void.
7080         * variable.c (new_environ): Put the environment in `environ' and
7081         return void.
7083 Fri Oct  7 15:48:39 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
7085         * Version 3.12.
7087         * Makefile: Don't make the uncompressed tar file.
7089         * variable.c (expand_function: `shell' function): Made it not expect
7090         read to null-terminate the buffer.
7092         * Makefile: Made it use a temporary symlink to . rather than a
7093         temporary directory to make the distribution tar file.
7095 Thu Oct  6 17:52:35 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
7097         * Version 3.11.
7099         * make.texinfo: Fixed a line that got garbaged somehow.
7101 Mon Oct  3 16:14:39 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
7103         * make.c (main): Try to move back to the directory we started in
7104         before re-exec ourself.
7106         * remake.c (update_file_1): A double-colon target with no deps
7107         always needs to be remade.
7109         * remake.c (remake_file): Changed "No way to make" message to say
7110         `target' rather than `file'.
7112 Sun Oct  2 12:50:47 1988  Roland McGrath  (mcgrath at catnip.Berkeley.EDU)
7114         * remake.c (update_file_1): Set FILE->update_status to the return
7115         value of remake_file.
7117         * rule.c (convert_to_pattern): Fixed swapped lengths passed to
7118         xmalloc for source/target suffixes.
7120         * make.texinfo: Documented that MAKEFLAGS and MFLAGS are read in
7121         from makefiles.  Updated the `Features' section a bit.
7123         * make.c (main): Read switches from MAKEFLAGS and MFLAGS variables
7124         after reading in makefiles.
7126         * make.c (main): Put a line "/tmp/foo:;" rather than ".PHONY:
7127         /tmp/foo" in front of temp files made for stdin makefiles.
7129         * remake.c (update_file): Test the state of the right `struct file'
7130         for double-colon files.
7132         * make.c (main): Put a ".PHONY: /tmp/foo" line in front of temp
7133         files made for stdin makefiles so they won't be remade when we
7134         re-exec.  Kludge-o-matic!!
7136         * remake.c (update_goal_chain): Judge files as being finished based
7137         on their `updated' flag, not their state.
7139         * read.c (read_makefile): Don't check for FILENAME being "-".
7140         (read_all_makefiles): Set each element of MAKEFILES to the name put
7141         in READ_MAKEFILES by read_makefile, since read_makefile may free the
7142         storage for the name it is passed, and someone might want to look at
7143         the elements of MAKEFILES again.
7145         * make.c (main): For each `-f' flag with arg `-' (standard input),
7146         read standard input into a temp file and pass the temp file's name
7147         to read_all_makefiles, after making sure it will not be remade.
7149         * make.c (construct_makeflags): Always put out `-j1'.
7151 Sat Oct  1 00:19:59 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7153         * commands.c (execute_file_commands): If commands are nothing but
7154         whitespace, set the state to `cs_finished' before returning 0.
7156         * make.c (decode_switches): Allocate space for args in stringlists
7157         so they can be freed later.
7159         * make.h: Declare `makelevel'.
7161         * variable.c (makelevel): Moved to make.c (and made global).
7163         * make.c (fatal, error): Print the makelevel if it's > 0.
7164         (perror_with_name): Use error rather than calling fprintf directly.
7165         (pfatal_with_name): Use fatal rather than fprintf and die.
7167         * variable.c (new_environ): Don't put default variables (origin
7168         `o_default') into the environment; they just take up space.
7170         * read.c (read_makefile): Don't add FILENAME to the chain of read
7171         makefiles if it's "-" (standard input).
7173         * remake.c (update_goal_chain): Set STATUS correctly when nothing
7174         happens (as well as in all other situations).
7176         * make.c (construct_makeflags): Put a `-' before each switch and
7177         spaces between them.
7179         * Version 3.10.
7181         * commands.c (wait_for_children): Don't check if `children' is nil.
7182         This is the case when waiting for the child of a `shell' function.
7184         * dir.c (dir_load): Don't add a hash-table entry for directory
7185         DIRNAME and filename "" if DIRNAME doesn't exist.
7187         * commands.c (execute_file_commands): Return 0 after start_job
7188         returns 1 (failure) under the -n flag.
7190         * remake.c (remake_file): Set the state to `cs_finished' when not
7191         calling execute_file_commands.
7193         * remake.c (update_goal_chain): Second arg is now MAKEFILES, nonzero
7194         meaning to disable -t, -q, and -n for each target unless the target
7195         was also given on the command-line.
7197         * read.c (read_makefile): Enter the `struct file's for the makefiles
7198         added to the `read_makefiles' `struct dep' chain.
7200         * remake.c (update_goal_chain): Made it not enter the files for the
7201         goals in the chain.  It will already have been done.
7203         * rule.c (convert_to_pattern): Null-terminate the names of targets
7204         and deps of the pattern rules properly.
7206 Fri Sep 30 18:56:20 1988  Roland McGrath  (mcgrath at nutmeg.Berkeley.EDU)
7208         * make.c (main): Call install_default_pattern_rules.
7210         * make.h: Declare copy_dep_chain.
7212         * read.c (copy_dep_chain): Moved to make.c (and made global).
7214         * make.c (main): Call update_goal_chain to update goals.
7215         Update read makefiles and re-exec self if they change.
7217         * remake.c (update_file): Make this function static.
7218         (update_goal_chain): New function to update a `struct dep' chain of
7219         goals, waiting until they are all finished before returning.
7221         * make.h: Don't declare update_file.  Declare update_goal_chain.
7223         * make.c (main): Call snap_deps, etc. that were in read_all_makefiles.
7225         * read.c (find_makefile): Removed this function.
7226         (read_all_makefiles): Don't update makefiles, don't diddle with
7227         pattern rules, don't call snap_deps, etc.  Return a `struct dep'
7228         chain of all makefiles read.
7229         (read_makefile): Now takes two args: FILENAME and TYPE, which is 0
7230         for a normal makefile, 1 for MAKEFILES variable or 2 for an included
7231         makefile.  Add a `struct dep' containing the name of the makefile
7232         (as it was found in the search path for type 2s), and TYPE in the
7233         `changed' member to the global `read_makefiles' chain.
7235         * make.h, rule.c (displace_pattern_rules,
7236         add_displaced_pattern_rules): Removed these functions.
7238         * read.c (read_makefile): Variable-expand the name of an `include'd
7239         makefile before calling find_makefile on it.
7241         * file.c (snap_deps): If the `struct file' for a `struct dep'
7242         already exists, free the `struct dep's `name' member before setting
7243         it to nil (since this info is in the `struct file').
7245         * read.c (copy_dep_chain): Made it copy each name rather than
7246         leaving multiple `struct dep's with the same pointers.
7248 Thu Sep 29 19:08:13 1988  Roland McGrath  (mcgrath at catnip.Berkeley.EDU)
7250         * make.c (decode_switches): Fixed second decode_env_switches call to
7251         use correct length of "MFLAGS" (6, not 5).
7253         * read.c (read_makefile): Don't stop reading when readline returns
7254         zero lines read.  Only stop when the stream reaches EOF.  This makes
7255         it recognize the last line of a makefile without a newline.
7257         * remake.c (remake_file): If we don't know how to make FILE, set its
7258         command state to `cs_finished'.
7260         * remake.c (update_file): Don't write the "up to date" message if
7261         update_file_1 returned a nonzero status.
7263 Wed Sep 28 16:30:07 1988  Roland McGrath  (mcgrath at catnip.Berkeley.EDU)
7265         * commands.c (child_handler): Set the `update_status' member
7266         properly for ignored errors.
7268         * rule.c (convert_to_pattern): Made it not care about if the target
7269         suffix comes before the source suffix in the .SUFFIXES list.
7271         * make.texinfo: Misc editorial changes.
7273         * commands.c (wait_for_children): Return immediately if `children'
7274         is nil (there are no children).
7276 Tue Sep 27 15:33:14 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
7278         * Version 3.09.
7280         * commands.c (struct child): New member `command_ptr' to hold the
7281         current position in the commands.  The `commands' member is never
7282         changed.
7283         (start_job, child_handler, execute_file_commands): Use new method
7284         for `commands' and `command_ptr' members.
7286         * make.c (decode_env_switches): Skip past an invalid letter (instead
7287         of looping forever).
7289         * commands.c (struct child): Add `environ' member to hold the
7290         environment for this child.
7291         (execute_file_commands): Get a new environment from new_environ and
7292         put in the the new `struct child's `environ' member.
7293         (child_handler): When freeing a child, free its `commands' member, the
7294         elements of its `environ' array and its `environ' member itself.
7295         (start_job): Set `environ' to the child's `environ' member before
7296         exec'ing the command.
7298         * variable.h, variable.c (new_environ): Made it return the new
7299         environment, not putting it in `environ'.
7301         * remake.c (update_file): Don't give a "is up to date" message
7302         unless no files were remade and the state went from `cs_not_started'
7303         to `cs_finished', so repeat calls to finish jobs won't get the message.
7305 Mon Sep 26 16:26:08 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
7307         * Version 3.08.
7309         * make.texinfo (Commands: Execution): Documented that children will
7310         be waited for rather than killed.
7312         * commands.c (fatal_error_signal): Wait for children.
7313         (kill_children): Removed this function.
7315         * make.c (main, die): Wait for children to die, don't kill them.
7317         * variable.c (expand_function): Use wait_for_children.
7319         * make.c (main): Use wait_for_children rather than child_handler.
7321         * commands.c (wait_for_children): New function to block waiting for
7322         children, insuring that child_handler is not called recursively.
7323         (execute_file_commands, kill_children): Use wait_for_children.
7325         * commands.c (child_handler): Start up additional commands in a
7326         sequence after an ignored error.
7328         * remake.c (update_file): Don't print "`foo' is up to date" messages
7329         when update_file_1 returns while commands are executing.
7331         * remake.c (update_file_1): Pass the file name to name_mtime, not
7332         the bloody `struct file', dammit!!
7334         * commands.c (child_handler): Print out the "*** ..." error message
7335         when not under -i.  (I somehow forgot this.)
7337         * remake.c (update_file_1): Use name_mtime rather than file_mtime to
7338         re-get the mtime of a file whose commands have finished.
7340         * make.c (command_switches, decode_switches, decode_env_switches):
7341         Make all switches that take string args allow them right after the
7342         switch letter.
7344         * commands.c (child_handler): Check for a child being the `shell'
7345         function's command returning and set the global variable for
7346         expand_function to check.
7348         * variable.c (expand_function): For the `shell' function, instead of
7349         waiting for the child shell ourselves, let child_handler do it and
7350         loop around waiting for something to happen.
7352         * make.c (print_version): Made the copyright year static, not dynamic.
7354         * make.h, make.c: Remove construct_argv function.
7356         * make.c (main): Say "no goal target" instead of "no target".
7358         * make.texinfo (Commands: Parallel): Don't send SIGKILL.
7360         * commands.c (kill_children): Don't send SIGKILL to children that
7361         aren't killed by the first signal.
7363         * make.c (main), commands.c (kill_children): Decide between SIGCHLD
7364         and SIGCLD based on whether or not SIGCHLD is defined, not on USG.
7366         * Makefile: Link make with $(LOADLIBES).
7368         * read.c (construct_include_path): Fixed another bad xrealloc call.
7370         * make.c (decode_switches): Fixed an xrealloc call with no first arg.
7372 Sat Sep 24 01:16:21 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
7374         * Version 3.07.
7376         * remake.c (update_file_1): If deps are running, set state to
7377         `cs_deps_running' and return 0.  If deps are done, run commands.
7379         * commands.c (child_handler): Made it delete non-precious targets
7380         killed by fatal signals.
7382         * make.texinfo: Documented parallelism.
7384 Fri Sep 23 16:52:27 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
7386         * remake.c (update_file_1): Don't return if FILE's state is
7387         `cs_deps_running'.  In that case, we need to run through and check
7388         the states of all our dependencies.
7390         * commands.c (execute_file_commands): Decrement `job_slots' after
7391         starting a new job to run file commands.
7393         * commands.c (start_job): Made it set the state to `cs_running'.
7395         * make.c (main): Fixed usage of `g', `lastgoal', and `goals' in the
7396         goal-making loop.
7398         * commands.c (child_handler): When commands finish, set the
7399         corresponding file's `update_status' and `updated' flags as
7400         appropriate, and reset the modtimes of the file and any `also_make'
7401         files it has.
7403         * remake.c (remake_file): Don't re-set `last_mtime' and set `updated'.
7405         * commands.c (fatal_error_signal): Don't swallow all the children
7406         with a loop around `wait ((union wait *) 0)'!!!
7408         * make.c (struct command_switch): Added `positive_int' type.
7409         (switches): Added -j (job_slots).
7410         (construct_makeflags, decode_switches, decode_env_switches):
7411         Handle`positive_int'-type switches.
7413         * glob.c (glob_vector): Rename local variable `vector' to `VeCtOr'.
7414         This is said to avoid a conflict with some system's global `vector'
7415         variable.
7417         * variable.c (expand_function): Made the `shell' function use
7418         construct_command_argv and do its own child control and piping.
7420         * make.c (main): Turn standard input into a broken pipe after
7421         reading in all makefiles (the last time it will be needed).
7423         * commands.c (struct child): Remove `pipe_fd' member.  We don't use
7424         pipes any more.
7425         (start_job): Return 0 for success, 1 or failure (rather than void).
7426         Don't use pipes.  Don't turn the child's stdin into a broken pipe.
7427         (child_handler): Print "*** Error" messages when necessary.
7428         Die on failed commands when -k was not given.
7429         (execute_file_commands): Check the return of start_job and remove
7430         the child from the chain and return failure if it is nonzero.
7432         * make.c (die): New function to clean up and exit.
7433         (fatal, pfatal_with_name): Use die.
7435 Thu Sep 22 14:27:11 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
7437         * commands.c (struct child): Added `commands', `pipe_fd', and
7438         `noerror' members to keep track of info about a command thread.
7439         (start_job): New function to start a job and update the argument
7440         `struct child' to reflect its status.
7441         (execute_file_commands): Merged run_file_commands back in.
7442         Made it use new start_job function.
7444         * rule.c (freerule): Don't free the `struct commands' of the
7445         discarded rule.  It may be used in more than one place.
7447         * commands.c (execute_command_line): Made it not try to delete the
7448         possibly partly-made file.  The child_handler function will do this.
7449         (fatal_error_signal): Ditto + call kill_children.
7451         * make.h: Declare job_slots.
7453         * make.c (main): Collect goals in a dep chain and run through this
7454         chain waiting for a child, eliminating finished goals, updating all
7455         remaining goals, and quitting if they fail and not -k.
7457         * commands.c (child_handler): If called with SIG < 0, - SIG is the
7458         max number of children to bury.
7460         * commands.c (child_handler): If called with SIG as zero,
7461         block waiting for running children.
7462         (kill_children): Call child_handler with zero rather than SIGCHLD.
7464         * remake.c (update_file_1): Use the `command_state' member of FILE
7465         and its dependencies to determine what commands are running, what to
7466         do, etc.  If commands or dep commands are running when we are
7467         called, return success (0).  If commands finished since the last
7468         time we were called, return their status.
7470         * commands.h: Declare kill_children.
7472         * commands.c: Define `struct child' to keep track of child
7473         processes, with the chain in `children'.
7474         (child_handler): New function to catch child-termination signals
7475         (SIGCHLD, or SIGCLD for USG), store the returned status in the
7476         appropriate structure, take the now-obsolete `struct child' out of
7477         the chain, and free its storage.
7478         (execute_file_commands): Put all of the stuff invloving running the
7479         commands into new function run_file_commands.  Execute_file_commands
7480         now does process management for the commands, while
7481         run_file_commands (which is run in a subprocess) runs the commands.
7482         (kill_children): New function to kill all running children by
7483         sending them signal SIG.  If there are any children still living
7484         after they are all sent SIG, they are all sent SIGKILL.
7486         * make.c (main): Catch SIGCHLD (SIGCLD for USG) with child_handler.
7488         * commands.h: Declare child_handler function.
7490         * commands.c (execute_file_commands): Check the `command_state'
7491         member of FILE and return 0 if it is `cs_running' or
7492         `cs_deps_running' and return the stored status if it is `cs_finished'.
7494         * file.h (struct file): Added `command_state' member.
7496         * commands.c (execute_command_line): Add `$' to the list of
7497         characters special to the shell.
7499 Wed Sep 21 15:57:41 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
7501         * read.c (read_all_makefiles): Call convert_to_pattern before
7502         recomputing the limits after adding the displaced rules.
7504         * make.c (main): Move calls to snap_deps, convert_to_pattern, and
7505         build_vpath_lists to read_all_makefiles.
7507         * read.c (read_all_makefiles): Install the default pattern rules
7508         before checking to remake the makefiles, displace these rules before
7509         reading in the makefiles, and then add the displaced rules to the
7510         chain after reading in all the makefiles.
7512         * make.c (main): Don't call install_default_pattern_rules or
7513         count_implicit_rule_limits.
7515         * make.h: Declare displace_pattern_rules and
7516         add_displaced_pattern_rules.
7518         * rule.c (displace_pattern_rules, add_displaced_pattern_rules): New
7519         functions to stow the chain and add the stowed chain on the end of
7520         the current chain.
7522         * make.texinfo (Implicit: Search Algorithm): Fixed PREV reference.
7524         * make.c (main): Call construct_include_path right after decoding
7525         the switches.
7527         * read.c (find_makefile): Use rename_file.
7529         * file.h: Declare rename_file.
7531         * file.c (rename_file): New function to rename a `struct file' and
7532         put it in the correct hash bucket.
7534         * read.c (find_makefile): New function to find and update a makefile.
7535          (read_all_makefilese): Use find_makefile.
7536          (read_makefile): Don't do updating.  Removed UPDATEIT arg.
7538         * remake.c (update_file_1): Took out setting the `updated' member to
7539         -1 rather than 1 sometimes.
7541         * make.c (main): Made it print version info before doing anything else.
7543         * remake.c (library_file_mtime, f_mtime): Removed use of last two
7544         arguments to vpath_search.
7546         * rule.c (pattern_search): Removed use of last two arguments
7547         to vpath_search.
7549         * vpath.c (vpath_search, selective_vpath_search): Removed unused
7550         DIRPREFIX and DPLEN args.
7552         * read.c (read_makefile): Also turn off -n when updating makefiles.
7554 Tue Sep 20 17:01:10 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
7556         * Makefile: Put tags files in the tarfile.
7558         * read.c (read_makefile): Get the modtime of the makefile via a stat
7559         call so that a later file_mtime call won't do VPATH search for it.
7561         * read.c (read_makefile): Don't turn off -t and -q if the makefile
7562         was a command-line target.
7564         * make.c (main): Enter command-line targets as files and set their
7565         `cmd_target' members.
7567         * file.h (struct file): Added `cmd_target' member.
7569         * read.c (read_makefile): Temporarily turn off -t and -q while
7570         updating makefiles.
7572         * make.c (main): Don't use arg 0 from other_args (which is now
7573         argv[0]; i.e., the program's name).
7575         * read.c (read_makefile): Only return nonzero if commands were
7576         actually run to remake the makefile.
7578         * remake.c (update_file_1): Set FILE->updated to -1 if no commands
7579         were actually run (because no update was done or -t was given).
7581         * make.c (decode_switches): Fixed bug wherein xrealloc was passed
7582         bad args if it tried to expand other_args->list.
7584         * read.c (read_all_makefiles): Made it not look at the `MAKE'
7585         variable, just use argv[0].
7587 Sun Sep 18 17:34:11 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
7589         * read.c (rerun_make): New function to re-exec make.
7591         * make.c (construct_makeflags, construct_argv): New functions to
7592         construct the `MAKEFLAGS' variable and to construct an arg list from
7593         parsed info.
7595         * read.c (read_makefile): New arg UPDATEIT, if nonzero, says to
7596         update the makefile as a target before reading it in.  When reading
7597         included makefiles, pass this as zero.  Now returns nonzero if the
7598         makefile was updated, zero if not.
7599         (read_all_makefiles): Pass a nonzero UPDATEIT arg to read_makefile
7600         for all default and -f makefiles and all makefiles from the
7601         `MAKEFILES' variable.  If any of the makefiles has changed, re-exec
7602         self to re-read them.
7604         * remake.c (update_file): Print a "File `foo' up to date'" message
7605         under -p.
7607         * commands.c (execute_file_commands): Allocate one byte for each of
7608         $^ and $< rather than zero if they are to be empty.
7610 Fri Sep 16 13:59:59 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7612         * Version 3.06.
7614         * make.c (command_switches): Fixed entry for `-o' switch.
7616         * make.texinfo: Renamed -c switch to -C.
7618         * make.c: Renamed -c switch to -C.
7620         * Miscellaneous de-linting.
7622         * read.c (record_files): Made it not free the storage for the name
7623         if it started with `./' and was therefore not quite the same as in
7624         the `struct file'.
7626         * read.c (record_files): If commands were specified twice, the error
7627         message specifies in what files and at what line numbers.
7629         * make.c (main): If any of the signals we usually fatal on were
7630         ignored by the parent (probably a shell), ignore them.
7632         * make.c (main): Print version info for -v, -p, or -d.
7633         (print_data_base): Don't print version info.  It will be done in main.
7635         * variable.c: Increased number of hash buckets to 257.
7637         * file.c: Increased number of hash buckets to 1007.
7639         * rule.c (count_implicit_rule_limits): Moved comptation of
7640         `maxsuffix' to convert_to_pattern, since that function uses
7641         `maxsuffix', and must be called before count_implicit_rule_limits.
7643         * rule.c (pattern_search): If an existent (non-intermediate)
7644         dependendency was found via a terminal rule, set its
7645         `tried_implicit' flag, so it will never have implicit rule search done.
7647         * glob.c: Bug fix to avoid alloca(0).
7649         * arscan.c: USG and Sun386i fixes.
7651 Thu Sep 15 19:40:26 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
7653         * make.texinfo: Fixed some typos and spelling errors.
7655 Wed Sep  7 14:20:39 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
7657         * make.c (decode_switches): Fixed bug wherein a bad option would
7658         give a useless error message and loop forever.
7660 Tue Sep  6 14:36:02 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7662         * make.texinfo: Documented `shell' function.
7664         * variable.c (expand_function): New function `shell', does
7665         backquote-style command expansion of its arg.
7667         * commands.c (execute_command_line): Second arg OUTBUF, if not nil,
7668         gets filled in with a malloc'd buffer containing the piped stdout of
7669         the command.
7670         (execute_file_commands): Use above (pass nil).
7672 Mon Sep  5 17:03:49 1988  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
7674         * Makefile: Added copyright notice.
7675         Added a comment about defining `NO_MINUS_C_MINUS_O' if necessary.
7677         * Version 3.05.
7679         * rule.c (default_suffix_rules): Don't pass `-o' switches with `-c'
7680         switches if `NO_MINUS_C_MINUS_O' is #define'd.
7682         * make.texinfo: Documented `GNUmakefile'.
7684         * read.c (read_all_makefiles): Made it try default makefile
7685         `GNUmakefile' before others.
7687         * make.texinfo: Added new-style Texinfo header thingies.
7689 Sat Sep  3 18:09:39 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
7691         * Version 3.04.
7693         * make.texinfo (Chained Rules): Added a @cindex about using
7694         .PRECIOUS to preserve intermediate files.
7696         * remake.c (update_file_1): Made it not just return before executing
7697         commands under -p.
7699         * rule.c (default_pattern_rules, default_variables): Made it use
7700         `$(AR)' for `ar r' (to put files in archives).
7702         * vpath.c (build_vpath_lists): Made it recursively expand the
7703         `VPATH' variable (by using variable_expand instead of lookup_variable).
7705         * read.c (conditional_line): Made it not swallow whitespace after
7706         the comma in an `ifeq' using the `(a,b)' syntax.
7708         * rule.c (count_implicit_rule_limits): Made it not crash if a
7709         pattern rule dep begins with `/'.
7711 Sun Aug 28 15:51:12 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
7713         * make.texinfo: Clarified that the arg to the `origin' function is a
7714         variable *name*, not a reference.
7716         * make.texinfo: Clarified that both -Idir and -I dir are allowed.
7718 Sat Aug 27 13:49:28 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7720         * remake.c (remake_file): Made touching phonies work right.
7722 Wed Aug 24 20:40:48 1988  Roland McGrath  (mcgrath at nutmeg.Berkeley.EDU)
7724         * make.texinfo: Removed reference to `RANLIB' variable.
7726         * Version 3.03.
7728         * variables.c (expand_function): Added `origin' function.
7729         * make.texinfo: Documented same.
7731         * read.c (record_files): Made double-colon entries work.
7733 Sat Aug 20 21:09:39 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7735         * make.c (collapse_continuations): Bug fix from RMS.
7737         * rule.c (install_default_pattern_rules): Made it set the
7738         `in_use' flag of the created rules to zero, rather than letting
7739         it be random garbage.
7741         * rule.c (pattern_search): Fixed putting `also make' targets into
7742         file strucutres.
7744         * read.c (record_files): Fixed bug which made double-colon entries
7745         make it read off into space.
7747         * make.c (decode_switches): Made it understand `ignored' switches
7748         rather than dumping core.
7750 Sun Aug 14 16:49:00 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7752         * read.c (read_makefile): Made `include' filenames be
7753         variable-expanded.
7755         * read.c (read_makefile): Fixed an error message.
7757         * read.c (read_makefile): Made it accept ^L's as whitespace.
7758         * make.c (next_token, end_of_token): Ditto.
7760         * vpath.c (vpath_search): Fixed it so that the general VPATH (from
7761         the variable) is always checked, even if a selective VPATH (from a
7762         directive) matched the filename.
7764 Sat Aug 13 14:20:46 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7766         * make.c (decode_switches, main): Made the command switches be
7767         processed from a table of switches, variables, and types.  No
7768         functions are passed argc and argv any more.  They are passed arrays
7769         of strings they need to process.
7770         * read.c (read_all_makefiles): Made it take an array rather than
7771         argc and argv.
7772         (construct_include_path): Ditto.
7774         * make.c (collapse_continuations): Made it work right (I hope).
7776         * make.texinfo: Minor editorial changes.
7778         * read.c (read_makefile): Minor speed improvement by freeing and
7779         then mallocing something rather than reallocing it to avoid the
7780         unnecessary bcopy.
7782 Thu Aug 11 00:10:43 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7784         * make.texinfo: Fixed some unquoted @'s.
7786         * make.texinfo: Documented multiple-target pattern rules.
7787         Miscellaneous minor editorial changes and corrections.
7789         * make.texinfo (Implicit: Catalogue of Rules): Removed the list of
7790         variables.  That's what the next section is for.
7791         (Implicit: Implicit Variables): Made it agree with reality.
7793 Wed Aug 10 00:55:39 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7795         * variable.c (print_variable_data_base): Fixed bug which made -p
7796         dump core.  (This was a really idiotic bug.)
7798         * rule.c (pattern_search): Fixed a bug which made it make the
7799         `also_make' member of the file in question nil if the first of
7800         the successful rule's targets was the matching one.
7801         Made it use only as much storage as necessary in the `also_make'
7802         member.
7803         (create_pattern): Made it use only as much storage as necessary in
7804         the `lens' and `suffixes' members of the created rule.
7806         * remake.c (library_file_mtime): Made it `static'.
7808         * file.c: Added a declaration for `errno', which is declared in some
7809         <errno.h>'s, but not all.
7811         * file.h (struct file): Added `also_make' member for multiple-target
7812         implicit rules.
7813         * rule.c (pattern_search): Made it put the names of files updated by
7814         the given file's commands in its `also_make' member.
7815         * remake.c (update_file_1): Made it mark the files in a file's
7816         `also_make' member as updated when the file is updated.
7818         * variable.c (try_variable_definition): Fixed a bug which made it
7819         define a variable with the name of the whole definition when there
7820         was no space before the = or :=.
7822         * make.texinfo (Features): Made the changes which were made in RCS
7823         revision 2.7 but somehow lost since then.  Added -W.
7825 Tue Aug  9 10:04:50 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7827         * variable.h: Added `o_default' to `enum variable_origin'.
7828         * variable.c (print_variable_data_base): Made it print the origins of
7829         the variables.
7830         * rule.c (install_default_pattern_rules): Made it define the default
7831         variables with origin `o_default'.
7833         * make.texinfo: Documented -W.
7835         * make.c (decode_switches, main): Added the -W flag to give files a
7836         time-stamp of now, for a `what if' effect when used with -n.
7838         * commands.c (print_commands): Made it say `(built-in)' for commands
7839         that are built into the default ruleset.
7841         * read.c (record_file): Made .SUFFIXES get its deps frontwards (again).
7842         * rule.c (set_default_suffixes, convert_to_pattern): Made it read
7843         .SUFFIXES's deps frontwards, so the converted rules will not be in
7844         reverse order.
7846         * rule.c (new_pattern_rule): Fixed a bug wherein it would keep
7847         searching after it had removed a matching rule and ended up diddling
7848         with freed storage.
7850         * rule.c (freerule): Made it take the given rule off the chain.
7851         (new_pattern_rule, count_implicit_rule_limits): Use freerule to
7852         remove rules from the chain.
7854         * vpath.c (construct_vpath_list): Made it return after cleaning out
7855         all previous searchpaths when given a nil DIRPATH arg, so it won't
7856         go into the construction code and dump core dereferencing a nil
7857         pointer.
7859         * variable.c (patsubst_expand): Fixed a bug which made it not match
7860         correctly and sometimes dump core.
7862 Mon Aug  8 16:35:48 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7864         * rule.c (default_suffix_rules): Made the .texinfo.dvi rule remove
7865         the files used in the comparison to determine whether or not a
7866         second TeX run is necessary.
7868         * make.texinfo: Fixed some overfull TeX hboxes.
7870         * make.texinfo (Implicit: Catalogue of Rules): Fixed a Texinfo error.
7872         * rule.c (create_pattern_rule): Fixed bug wherein index was not
7873         being passed its second arg.
7875         * read.c (getline): Merged back into readline.
7877         * rule.c (default_suffixes, default_suffix_rules,
7878         default_variables): Added .texinfo.info rule.
7879         * make.texinfo (Implicit: Catalogue of Rules): Documented
7880         .texinfo.dvi and .texinfo.info rules.
7882         * make.texinfo (Top): Changed `last updated' date to be correct (for
7883         the last time it was updated, not today).  Changed `for version
7884         3.00' since it's not going to be called that.
7886 Sat Aug  6 19:51:10 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7888         * commands.c (print_commands): Added this function to print the
7889         contents of a `struct commands' for -p.
7890         * rule.c (print_rule_data_base): Use above.
7891         * file.c (print_file_data_base): Ditto.
7893         * rule.c (count_implicit_rule_limits, new_pattern_rule,
7894         install_pattern_rule, print_rule_data_base): Made it understand the
7895         changed `struct rule' and act accordingly.
7896         (freerule): Added this function to free all the storage used by a rule.
7898         * rule.c (pattern_search): Made it grok multiple targets of pattern
7899         rules.  The matching is done properly, but at present, only the
7900         matching pattern's target is used to give deps and commands.
7902 Fri Aug  5 18:00:29 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7904         * rule.c (struct rule): Changed name, namelen, and patsuffix members
7905         to targets, lens, and suffixes, which are arrays, for multiple targets.
7906         (create_pattern_rule): Now takes first arg TARGETS, a nil-terminated
7907         array of targets, rather than a single target and patsuffix pointer.
7909         * read.c (record_files): If it finds an implicit pattern rule, it
7910         collects all the targets into an array and passes the whole thing to
7911         create_pattern_rule.  If there are non-pattern targets, it is a
7912         fatal error.
7914 Tue Aug  2 15:06:38 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7916         * make.c (readline): Split backslash-newline checking from reading
7917         and buffer-expanding.
7918         (getline): Created to do the reading and buffer-expanding formerly
7919         done in readline.
7921         * rule.c (pattern_search): Made it reject nonterminal match-anything
7922         rules when a specific rule has matched, rather than rejecting
7923         terminal match-anything rules in this case.
7925         * rule.c (convert_to_pattern): Fixed a bug caused when the change to
7926         make it only recognize two-suffix rules whose target suffixes
7927         precede their dependency suffixes which made it work in the opposite
7928         direction (even worse than it started out).
7930         * rule.c (pattern_search): Made it reject nonterminal match-anything
7931         rules as intermediate targets when searching for both real and
7932         intermediate dependencies, rather than only when searching for
7933         intermediate ones.
7935 Sun Jul 31 00:33:56 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7937         * rule.c (convert_to_pattern): Made it only recognize two-suffix
7938         rules whose target suffix comes before the dependency suffix in the
7939         .SUFFIXES list.
7941         * variable.c (define_automatic_variables): Made all automatic
7942         variables be defined with origin `o_automatic'.
7944         * variable.h: Added `o_automatic' to `enum variable_origin'
7946         * file.c (remove_intermediates): Made it not print an error message
7947         if the error was that the file does not exist.
7949         * rule.c: Removed `recursive' member from `struct rule'.
7951         * remake.c (library_file_mtime): Made it not use the directory hash
7952         functions, as reading in and hashing /usr/lib and /lib is slow and
7953         most likely unnecessary.
7955         * remake.c (remake_file): Changed message from ``No specification
7956         for making'' to ``No way to make'' so it will be short enough that
7957         most filenames will fit on a line.
7958         Made it look at the `recursive' member of the `struct commands',
7959         rather than of the `struct file' (which no longer has one).
7961         * commands.c (execute_file_commands): Made it look at the
7962         `recursive' member of the `struct commands', rather than of the
7963         `struct file' (which no longer has one).
7965         * file.h: Removed `recursive' member from `struct file'.
7967         * commands.h: Added `recursive' member to `struct commands'.
7969         * dep.h: Removed unused `quotedparen' member from `struct nameseq'
7970         and `struct dep'.
7972         * read.c (dequote): Removed this function.
7973         (multi_glob): Removed reference to `quotedparen' member of
7974         a `struct nameseq' and calls to dequote.
7976         * read.c (record_files): Made it set the stem for $* for all static
7977         pattern rules, not just those with commands given at that time.
7978         Removed check for recursive commands.
7979         Made it check for pairs of .SUFFIXES dependencies to reject as
7980         default goals as well as single ones (that don't start with dots).
7981         (read_makefile): Added checks for recursive commands to set
7982         the `recursive' flag in the `struct commands'.
7984 Sat Jul 30 15:47:23 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7986         * make.c (find_next_token): Made the LENGTHPTR arg optionally nil.
7988         * make.c: Removed `files_made' variable which is defined static in
7989         remake.c and used only there.
7990         (main): Cleaned up somewhat.
7991         (decode_switches): Cleaned up a bit.  Made an unknown option be a
7992         non-fatal error.
7993         (decode_env_switches): Made LEN arg unsigned.  Cleaned up.
7994         (print_version): Made it say ``see the source'' rather than ``see
7995         the source file'', since there is more than one.
7997         * file.h: Made `num_intermediates' declared unsigned.
7999         * file.c: Made `num_intermediates' variable unsigned.
8000         (remove_intermediates): Removed unused FORMAT arg.
8001         (enter_file): Made it handle double-colon files properly, adding the
8002         new entry as the old entry's prev pointer.
8004         * dir.c: Re-indented the `struct dir' definition to be right.
8005         (dir_load): Cleaned up slighty.
8006         (file_exists_p): Removed comment saying we could use `access', since
8007         that is a bad idea (except for setuid programs).  Cleaned up slightly.
8009         * commands.c: Changed some comments slightly.
8010         (execute_file_commands): Cleaned up a bit.  Changed some comments,
8011         added others.  Moved freeing of storage for $^ and $? to the same
8012         place as for the other automatic variables.
8013         (execute_command_line): Made `#' trigger a shell.
8014         Added some comments.  Cleaned up a bit.  Put all the special chars
8015         that trigger shells into an array easily changeable at the top.
8017         * ar.c: Added comments explaining each function.
8018         (ar_scan_1): Merged into ar_member_date.
8019         (ar_member_date): Changed call to ar_scan_1 to the body of that
8020         function.
8021         (ar_member_date_1): Simplified to a ?: expression rather than an
8022         if-else statement.
8023         (ar_member_touch): Changed error handling around a bit.
8024         None of these errors are fatal now.
8026         * variable.c (subst_expand): Added a new arg BY_WORD, to do substs
8027         only on full words.
8028         (patsubst_expand): Fixed bug which made calls whose patterns
8029         contained no `%' to not work correctly, by using above.
8030         (variable_expand): Pass extra arg to `subst_expand'.
8032         * variable.c (expand_function): Fixed bug which made `foreach' calls
8033         with one-word lists run off into never-never land.
8035 Fri Jul 29 20:12:36 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
8037         * variable.c (expand_function): Made a very minor speed improvement
8038         by avoiding an unnecessary strlen call.
8040 Wed Jul 27 16:01:47 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
8042         * rule.c (default_suffixes): Rearranged the list somewhat; added
8043         `.el' and `.elc' to speed things up (especially when building
8044         Emacs), for the same reason `.h' is there.
8046         * read.c (record_files): Changed `lineno' from `long' to
8047         `unsigned int'.
8049 Sun Jul 24 02:15:30 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
8051         * variable.c (expand_function): Eliminated use of `wstok'
8052         because it is non-reentrant and unreliable.
8053         Fixed a minor bug which would cause something not to be freed.
8054         * make.c (wstok): Removed `wstok' because it is no longer used.
8056         * variable.c (expand_function): Made `foreach' function put
8057         spaces between output texts like it's supposed to.
8058         
8059 Sat Jul 23 17:32:55 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
8061         * rule.c (default_suffixes, default_suffix_rules): Added rule
8062         to make %.dvi from %.texinfo.
8064         * dir.c (print_dir_data_base): Made it say a bit more.
8066 Fri Jul 22 23:13:16 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
8068         * make.c (print_data_base): Split this function up into one
8069         for each thing.
8070         * variable.c (print_variable_data_base): One of the above.
8071         * rule.c (print_rule_data_base): Ditto.
8072         * file.c (print_file_data_base): Ditto.
8073         * dir.c (print_dir_data_base): Ditto.
8075         * rule.c (install_pattern_rule): Fixed a bug which caused the
8076         terminal and recursive flags to always be zero for rules
8077         entered by this function.
8079         * make.texinfo (Rules: Double-colon): Added a paragraph
8080         explaining the purpose of double-colon rules.
8082         * make.texinfo (Implicit: Catalogue of Rules): Updated to
8083         reflect new C++, TeX, Web, and Texinfo rules.  Other slight
8084         editorial changes.
8086         * commands.c (execute_file_commands): Fixed a bug wherein
8087         random memory could get written for files with no deps.
8088         
8089 Wed Jul 20 19:30:31 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
8091         * read.c (readline): Fix bug wherein it would not recognize a
8092         backslash-newline if the buffer filled up and was enlarged
8093         right before reading the newline.
8094         
8095 Tue Jul 19 19:55:02 1988  Roland McGrath  (mcgrath at chilli.Berkeley.EDU)
8097         * read.c: Added default suffix rules for .cc (using $(C++),
8098         which defaults to `g++', and $(C++FLAGS)), .tex, .dvi, .web
8099         and .cweb (using $(TEX), $(WEAVE), $(TANGLE), $(CWEAVE) and
8100         $(CTANGLE)).
8101         
8102 Sat Jul 16 21:24:28 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
8104         * Made error formats use %u rather than %ld for line numbers,
8105         which are now unsigned int's rather than long's.
8107         * read.c (conditional_line): Fixed some bugs caused by use of
8108         unsigned int rather than int in one place.
8110         * read.c (conditional_line): Put the info about active
8111         conditionals in a struct.
8112         (read_makefile): Make a new struct of info about conditionals
8113         for included makefiles and restore the old one after the
8114         included makefile has been read.
8116         * read.c (read_makefile): Don't try to read a makefile with
8117         name "" after giving an error message because an `include'
8118         directive gave no filename.
8120         * read.c (read_makefile): Give an error message for
8121         non-whitespace text after the filename in an `include' directive.
8123         * make.c (error): Take five args, like `fatal'.  It managed to
8124         lose with only two.  Is there a better way to do this without vfprintf?
8126         * read.c (read_makefile): Commands consisting of only
8127         whitespace are not the same as no commands.  I thought I'd
8128         fixed this bug months ago; it seems to have come back.
8130         * make.c (collapse_continuations): All whitespace around a
8131         backslash-newline combination is turned into a single space.
8133         * Added COPYING file and copyright notices to all files.
8135         * make.texinfo (Running: Goals): Fix a typo.
8137         * read.c (do_define): Take an arg for the origin of the
8138         variable being defined.
8139         (read_makefile): Grok `override define'.
8141         * make.texinfo (Variables: Override Directive, Defining):
8142         Document the `override define' combination directive.
8144         * ar.c (ar_member_date): Make a 0 return from `ar_scan' return
8145         (time_t) -1 (nonexistent file), rather than (time_t) 0, which,
8146         when put in the `struct file', makes `file_mtime' try to get
8147         the mtime over and over again.
8149         * variable.c (pattern_matches): Fix a bug that made patterns
8150         not beginning with `%' never match.
8151         
8152 Fri Jul 15 21:01:44 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
8154         * Took Make out of RCS.
8156         * Split the monolithic `make.c' into several smaller files.