RMS documented his .SECONDARY feature.
[make.git] / ChangeLog
blobd8c625d6e851c1e514690a72d2cc21d2dfcca669
1 Sat Aug 19 23:11:00 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
3         * remake.c (check_dep): For a secondary file, try implicit and
4         default rules if appropriate.
6 Wed Aug  2 04:29:42 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
8         * remake.c (check_dep): If an intermediate file exists,
9         do consider its actual date.
11 Sun Jul 30 00:49:53 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
13         * file.h (struct file): New field `secondary'.
14         * file.c (snap_deps): Check for .INTERMEDIATE and .SECONDARY.
15         (remove_intermediates): Don't delete .SECONDARY files.
17 Sat Mar  2 16:26:52 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
19         * compatMakefile (srcs): Add getopt.h; prepend $(srcdir)/ to getopt*.
21 Fri Mar  1 12:04:47 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
23         * Version 3.74.3.
25         * remake.c (f_mtime): Move future modtime check before FILE is
26         clobbered by :: loop.
28         * dir.c: Use canonical code from autoconf manual for dirent include.
29         [_D_NAMLEN]: Redefine NAMLEN using this.
30         (dir_contents_file_exists_p): Use NAMLEN macro.
31         (read_dirstream) [_DIRENT_HAVE_D_NAMLEN]: Only set d_namlen #if this.
33         * compatMakefile (objs): Add missing backslash.
35 Wed Feb 28 03:56:20 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
37         * default.c (default_terminal_rules): Remove + prefix from RCS cmds.
38         (default_variables): Put + prefix in $(CHECKOUT,v) value instead.
40         * remake.c (f_mtime): Check for future timestamps; give error and mark
41         file as "failed to update".
43 Fri Jan 12 18:09:36 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
45         * job.c: Don't declare unblock_sigs; job.h already does.
47 Sat Jan  6 16:24:44 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
49         * acconfig.h (HAVE_SYSCONF_OPEN_MAX): #undef removed.
51         * job.c (NGROUPS_MAX): Don't try to define this macro.
53 Fri Dec 22 18:44:44 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
55         * compatMakefile (GETOPT, GETOPT_SRC, GLOB): Variables removed.
56         (objs, srcs): Include their values here instead of references.
58 Thu Dec 14 06:21:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
60         * Version 3.74.2.
62         * job.c (reap_children): Call unblock_sigs after start_job_command.
64 Thu Dec 14 07:22:03 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
66         * dir.c (dir_setup_glob): Don't use lstat; glob never calls it anyway.
67         Avoid & before function names to silence bogus sunos4 compiler.
69         * configure.in: Remove check for `sysconf (_SC_OPEN_MAX)'.
71 Tue Dec 12 00:48:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
73         * Version 3.74.1.
75         * dir.c (read_dirstream): Fix braino: fill in the buffer when not
76         reallocating it!
78 Mon Dec 11 22:26:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
80         * misc.c (collapse_continuations): Fix skipping of trailing \s so
81         it can never dereference before the beginning of the array.
83         * read.c (find_semicolon): Function removed.
84         (read_makefile): Don't use find_semicolon or remove_comments for
85         rule lines.  Use find_char_unquote directly and handle quoted comments
86         properly.
88         * default.c: Remove all [M_XENIX] code.
90         * dir.c [HAVE_D_NAMLEN]: Define this for __GNU_LIBRARY__ > 1.
91         (D_NAMLEN): Macro removed.
92         (FAKE_DIR_ENTRY): New macro.
93         (dir_contents_file_exists_p): Test HAVE_D_NAMLEN instead of using
94         D_NAMLEN.
95         (read_dirstream): Return a struct dirent * for new glob interface.
96         (init_dir): Function removed.
97         (dir_setup_glob): New function.
98         * main.c (main): Don't call init_dir.
99         * read.c (multi_glob): Call dir_setup_glob on our glob_t and use
100         GLOB_ALTDIRFUNC flag.
102         * misc.c (safe_stat): Function removed.
103         * read.c, commands.c, remake.c, vpath.c: Use plain stat instead of
104         safe_stat.
106 Sat Nov 25 20:35:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
108         * job.c [HAVE_UNION_WAIT]: Include sys/wait.h.
110         * main.c (log_working_directory): Made global.
111         Print entering msg only once.
112         * make.h (log_working_directory): Declare it.
113         * misc.c (message): Take new arg PREFIX.  Print "make: " only if
114         nonzero.  Call log_working_directory.
115         * remake.c: Pass new arg in `message' calls.
116         * job.c (start_job_command): Pass new arg to `message'; fix
117         inverted test in that call.
119 Tue Nov 21 19:01:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
121         * job.c (start_job_command): Use `message' to print the command,
122         and call it with null if the command is silent.
123         * remake.c (touch_file): Use message instead of printf.
125 Tue Oct 10 14:59:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
127         * main.c (enter_command_line_file): Barf if NAME is "".
129 Sat Sep  9 06:33:20 1995  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
131         * commands.c (delete_target): Ignore unlink failure if it is ENOENT.
133 Thu Aug 17 15:08:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
135         * configure.in: Don't check for getdtablesize.
136         * job.c (getdtablesize): Remove decls and macros.
138 Thu Aug 10 19:10:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
140         * main.c (define_makeflags): Omit command line variable
141         definitions from MFLAGS value.
143         * arscan.c (ar_scan) [AIAMAG]: Check for zero MEMBER_OFFSET,
144         indicating a valid, but empty, archive.
146 Mon Aug  7 15:40:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
148         * dir.c (file_impossible_p): Correctly reset FILENAME to name
149         within directory before hash search.
151         * job.c (child_error): Do nothing if IGNORED under -s.
153         * job.c (exec_command): Correctly use ARGV[0] for script name when
154         running shell directly.
156 Tue Aug  1 14:39:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
158         * job.c (child_execute_job): Close STDIN_FD and STDOUT_FD after
159         dup'ing from them.  Don't try to close all excess descriptors;
160         getdtablesize might return a huge value.  Any open descriptors in
161         the parent should have FD_CLOEXEC set.
162         (start_job_command): Set FD_CLOEXEC flag on BAD_STDIN descriptor.
164 Tue Jun 20 03:47:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
166         * read.c (read_all_makefiles): Properly append default makefiles
167         to the end of the `read_makefiles' chain.
169 Fri May 19 16:36:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
171         * Version 3.74 released.
173 Wed May 10 17:43:34 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
175         * Version 3.73.3.
177 Tue May  9 17:15:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
179         * compatMakefile ($(infodir)/make.info): Make sure $$dir is set in
180         install-info cmd.
182 Wed May  3 15:56:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
184         * file.c (print_file): Grok update_status of 1 for -q.
186 Thu Apr 27 12:39:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
188         * Version 3.73.2.
190 Wed Apr 26 17:15:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
192         * file.c (remove_intermediates): Fix inverted test to bail under
193         -n for signal case.  Bail under -q or -t.
194         Skip files with update_status==-1.
196         * job.c (job_next_command): Skip empty lines.
197         (new_job): Don't test the return of job_next_command.
198         Just let start_waiting_job handle the case of empty commands.
200 Wed Apr 19 03:25:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
202         * function.c [__MSDOS__]: Include <fcntl.h>.  From DJ Delorie.
204         * Version 3.73.1.
206 Sat Apr  8 14:53:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
208         * remake.c (notice_finished_file): Set FILE->update_status to zero
209         if it's -1.
211 Wed Apr  5 00:20:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
213         * Version 3.73 released.
215 Tue Mar 28 13:25:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
217         * main.c (main): Fixed braino in assert.
219         * Version 3.72.13.
221 Mon Mar 27 05:29:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
223         * main.c: Avoid string in assert expression.  Some systems are broken.
225 Fri Mar 24 00:32:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
227         * main.c (main): Handle 1 and 2 returns from update_goal_chain
228         makefile run properly.
230         * Version 3.72.12.
232         * main.c (handle_non_switch_argument): New function, broken out of
233         decode_switches.
234         (decode_switches): Set optind to 0 to reinitialize getopt, not to 1.
235         When getopt_long returns EOF, break the loop and handle remaining args
236         with a simple second loop.
238         * remake.c (remake_file): Set update_status to 2 instead of 1 for
239         no rule to make.  Mention parent (dependent) in error message.
240         (update_file_1): Handle FILE->update_status == 2 in -d printout.
241         * job.c (start_job_command, reap_children): Set update_status to 2
242         instead of 1 for failed commands.
244 Tue Mar 21 16:23:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
246         * job.c (search_path): Function removed (was already #if 0'd out).
247         * configure.in: Remove AC_TYPE_GETGROUPS; nothing needs it any more.
249 Fri Mar 17 15:57:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
251         * configure.bat: Write @CPPFLAGS@ translation.
253 Mon Mar 13 00:45:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
255         * read.c (parse_file_seq): Rearranged `l(a b)' -> `l(a) l(b)' loop
256         to not skip the elt immediately preceding `l(...'.
258 Fri Mar 10 13:56:49 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
260         * Version 3.72.11.
262         * read.c (find_char_unquote): Make second arg a string of stop
263         chars instead of a single stop char.  Stop when any char in the
264         string is hit.  All callers changed.
265         (find_semicolon): Pass stop chars "#;" to one find_char_unquote call,
266         instead of using two calls.  If the match is not a ; but a #,
267         return zero.
268         * misc.c: Changed find_char_unquote callers here too.
270         * Version 3.72.10.
272         * read.c (read_makefile, parse_file_seq): Fix typo __MS_DOS__ ->
273         __MSDOS__.
275         * GNUmakefile (globfiles): Add glob/configure.bat.
276         (distfiles): Add configh.dos, configure.bat.
278 Wed Mar  8 13:10:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
280         Fixes for MS-DOS from DJ Delorie.
281         * read.c (read_makefile, parse_file_seq) [__MS_DOS__]: Don't see :
282         as separator in "C:\...".
283         * configh.dos (STDC_HEADERS): Define only if undefined.
284         (HAVE_SYS_PARAM_H): Don't define this.
285         (HAVE_STRERROR): Define this.
286         * job.c (construct_command_argv_internal) [__MSDOS__]: Fix typos.
288         * Version 3.72.9.
290         * main.c (decode_switches): Reset optind to 1 instead of 0.
292 Tue Mar  7 17:31:06 1995  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
294         * main.c (decode_switches): If non-option arg is "-", ignore it.
296 Mon Mar  6 23:57:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
298         * Version 3.72.8.
300 Wed Feb 22 21:26:36 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
302         * Version 3.72.7.
304 Tue Feb 21 22:10:43 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
306         * main.c (main): Pass missing arg to tmpnam.
308         * configure.in: Check for strsignal.
309         * job.c (child_error): Use strsignal.
310         * main.c (main): Don't call signame_init #ifdef HAVE_STRSIGNAL.
312         * misc.c (strerror): Fix swapped args in sprintf.
314 Mon Feb 13 11:50:08 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
316         * configure.in (CFLAGS, LDFLAGS): Don't set these variables.
318 Fri Feb 10 18:44:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
320         * main.c (print_version): Add 95 to copyright years.
322         * Version 3.72.6.
324         * job.c (start_job_command): Remember to call notice_finished_file
325         under -n when not recursing.  To do this, consolidate that code
326         under the empty command case and goto there for the -n case.
328 Tue Feb  7 13:36:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
330         * make.h [! STDC_HEADERS]: Don't declare qsort.  Sun headers
331         declare it int.
333 Mon Feb  6 17:37:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
335         * read.c (read_makefile): For bogus line starting with tab, ignore
336         it if blank after removing comments.
338         * main.c: Cast results of `alloca' to `char *'.
339         * expand.c: Likewise.
341 Sun Feb  5 18:35:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
343         * Version 3.72.5.
345         * configure.in: Check for mktemp.
346         * main.c (main) [! HAVE_MKTEMP]: Use tmpnam instead of mktemp.
348         * configure.in (make_cv_sysconf_open_max): New check for `sysconf
349         (_SC_OPEN_MAX)'.
350         * acconfig.h: Added #undef HAVE_SYSCONF_OPEN_MAX.
351         * job.c [HAVE_SYSCONF_OPEN_MAX] (getdtablesize): Define as macro
352         using sysconf.
354 Fri Jan 27 04:42:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
356         * remake.c (update_file_1): When !MUST_MAKE, don't set
357         FILE->update_status to zero before calling notice_finished_file.
358         (notice_finished_file): Touch only when FILE->update_status is zero.
359         (remake_file): Set FILE->update_status to zero after not calling
360         execute_file_command and deciding to touch instead.
362 Thu Jan 26 01:29:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
364         * main.c (debug_signal_handler): New function; toggles debug_flag.
365         (main): Handle SIGUSR1 with that.
367 Mon Jan 16 15:46:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
369         * compatMakefile (realclean): Remove Info files.
371 Sun Jan 15 08:23:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
373         * Version 3.72.4.
375         * job.c (start_job_command): Save and restore environ around vfork
376         call.
377         (search_path): Function #if 0'd out.
378         (exec_command): Use execvp instead of search_path.
380         * expand.c (variable_expand): Rewrote computed variable name and
381         substitution reference handling to be simpler.  First expand the
382         entire text between the parens if it contains any $s, then examine
383         the result of that for subtitution references and do no further
384         expansion while parsing them.
386         * job.c (construct_command_argv_internal): Handle " quoting too,
387         when no backslash, $ or ` characters appear inside the quotes.
389         * configure.in (union wait check): If WEXITSTATUS and WTERMSIG are
390         defined, just use int.
392 Tue Jan 10 06:27:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
394         * default.c (default_variables) [__hpux]: Remove special
395         definition of ARFLAGS.  Existence of the `f' flag is not
396         consistent across HPUX versions; and one might be using GNU ar
397         anyway.
399         * compatMakefile (clean): Don't remove Info files.
401         * compatMakefile (check): Remove gratuitous target declaration.
403 Sat Jan  7 11:38:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
405         * compatMakefile (ETAGS, CTAGS): Don't use -t.
407         * arscan.c (ar_name_equal) [cray]: Subtract 1 like [__hpux].
409         * main.c (decode_switches): For --help, print usage to stdout.
411 Mon Dec  5 12:42:18 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
413         * Version 3.72.3.
415         * remake.c (update_file_1): Do set_command_state (FILE,
416         cs_not_started) only if old state was deps_running.
418 Mon Nov 28 14:24:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
420         * job.c (start_waiting_job): Use set_command_state.
422         * build.template (CPPFLAGS): New variable.
423         (prefix, exec_prefix): Set from @...@.
424         (compilation loop): Pass $CPPFLAGS to compiler.
426         * GNUmakefile (build.sh.in): Make it executable.
428         * GNUmakefile (globfiles): Add configure.in, configure.
430         * Version 3.72.2.
432         * configure.in (AC_OUTPUT): Don't write glob/Makefile.
434         * configure.in (AC_CHECK_SYMBOL): Use AC_DEFINE_UNQUOTED.
436         * configure.in: Don't check for ranlib.
438 Tue Nov 22 22:42:40 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
440         * remake.c (notice_finished_file): Only mark also_make's as
441         updated if really ran cmds.
443 Tue Nov 15 06:32:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
445         * configure.in: Put dnls before random whitespace.
447 Sun Nov 13 05:02:25 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
449         * compatMakefile (CPPFLAGS): New variable, set from @CPPFLAGS@.
450         (RANLIB): Variable removed.
451         (prefix, exec_prefix): Set these from @...@.
452         (.c.o): Use $(CPPFLAGS).
453         (glob/libglob.a): Don't pass down variables to sub-make.
454         glob/Makefile should be configured properly by configure.
455         (distclean): Remove config.log and config.cache (autoconf stuff).
457 Mon Nov  7 13:58:06 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
459         * acconfig.h: Add #undef HAVE_UNION_WAIT.
460         * configure.in: Converted to Autoconf v2.
461         * dir.c: Test HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H instead
462         of DIRENT, SYSDIR, NDIR.
463         * build.sh.in (prefix, exec_prefix): Set these from @...@.
464         (CPPFLAGS): New variable, set from @CPPFLAGS@.
465         (compiling loop): Pass $CPPFLAGS before $CFLAGS.
466         * install.sh: File renamed to install-sh.
468         * main.c (define_makeflags): When no flags, set WORDS to zero.
470 Sun Nov  6 18:34:01 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
472         * Version 3.72.1.
474         * main.c (define_makeflags): Terminate properly when FLAGSTRING is
475         empty.
477 Fri Nov  4 16:02:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
479         * Version 3.72.
481 Tue Nov  1 01:18:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
483         * Version 3.71.5.
485         * job.c (start_job_command): When ARGV is nil, only set
486         update_state and call notice_finished_file if job_next_command
487         returns zero.
489         * job.c (start_job_command): Call notice_finished_file for empty
490         command line.
492 Thu Oct 27 02:02:45 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
494         * file.c (snap_deps): Set COMMANDS_SILENT for .SILENT, not
495         COMMANDS_NOERROR.
497 Wed Oct 26 02:14:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
499         * Version 3.71.4.
501 Tue Oct 25 22:49:24 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
503         * file.c (snap_deps): Set command_flags bits in all :: entries.
505 Mon Oct 24 18:47:50 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
507         * make.h (posix_pedantic): Declare it.
508         * main.c (main): Move checks .IGNORE, .SILENT, .POSIX to
509         snap_deps.
510         * file.c (snap_deps): Check .IGNORE, .SILENT, .POSIX here instead
511         of in main.  If .IGNORE has deps, OR COMMANDS_NOERROR into their
512         command_flags and don't set -i.  Likewise .SILENT.
513         * job.c (start_job_command): In FLAGS initialization, OR in
514         CHILD->file->command_flags.
515         * file.h (struct file): New member `command_flags'.
517 Sun Oct 16 01:01:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
519         * main.c (switches): Bump flag values for --no-print-directory and
520         --warn-undefined-variables, so neither is 1 (which indicates a
521         nonoption argument).
523 Sat Oct 15 23:39:48 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
525         * main.c (main): Add missing code in .IGNORE test.
527 Mon Oct 10 04:09:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
529         * variable.c (define_automatic_variables): Define +D and +F.
531 Sat Oct  1 04:07:48 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
533         * main.c (main): Define hidden automatic variable with command
534         vars, and MAKEOVERRIDES to a reference to that.
535         (define_makeflags): If posix_pedantic, write a reference to that
536         instead.
538 Thu Sep 29 00:14:26 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
540         * main.c (posix_pedantic): New variable.
541         (main): Set posix_pedantic if .POSIX is a target.
542         Fix .IGNORE and .SILENT checks to require is_target.
544         * commands.c (set_file_variables): Define new automatic variable
545         $+, like $^ but before calling uniquize_deps.
547         * job.c (reap_children): Call delete_child_targets for non-signal
548         error if .DELETE_ON_ERROR is a target.
550 Tue Sep 27 01:57:14 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
552         * Version 3.71.3.
554 Mon Sep 26 18:16:55 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
556         * job.c (reap_children): Don't change C->file->command_state when
557         dying.  Test it only after calling start_job_command for a new
558         command line.  When no more cmds, just set C->file->update_status.
559         (start_job_command): When the last line is empty or under -n, set
560         C->file->update_status.
561         (start_waiting_job): Grok cs_not_started after start_job_command
562         as success.
563         (new_job): Set C->file->update_status when there are no cmds.
564         (job_next_command): When out of lines, don't set
565         CHILD->file->update_status or CHILD->file->command_state.
567         * main.c (quote_as_word): Renamed from shell_quote.  Take new arg;
568         if nonzero, also double $s.
569         (main): Define MAKEOVERRIDES from command_variables here.
570         (define_makeflags): Don't use command_variables here; instead write a
571         reference $(MAKEOVERRIDES) in MAKEFLAGS.  Make vars recursive.
573         * dir.c [__MSDOS__]: Fixed typo.
575         * vpath.c (selective_vpath_search): Reset EXISTS when stat fails.
577 Sat Sep 10 03:01:35 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
579         * remake.c: Include <assert.h> and use assert instead of printfs
580         and abort.
582         * main.c (decode_switches): Loop until optind hits ARGC, not just
583         until getopt_long returns EOF.  Initialize C to zero before loop;
584         in loop if C is EOF, set optarg from ARGV[optind++], else call
585         getopt_long.
586         (decode_env_switches): Use variable_expand instead of
587         allocated_variable_expand.  Allocate a fresh buffer to copy split
588         words into; scan characters by hand to break words and
589         debackslashify.
590         (shell_quote): New function.
591         (define_makeflags): Allocate doubled space for switch args, and command
592         variable names and values; use shell_quote to quote those things.
594 Fri Sep  9 01:37:47 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
596         * Version 3.71.2.
598         * acconfig.h: Add HAVE_SYS_SIGLIST and HAVE__SYS_SIGLIST.
600         * main.c (decode_switches): The non-option return from getopt is
601         1, not 0.
602         (command_variables): New type and variable.
603         (decode_switches, decode_env_switches): After making a variable
604         definition, record the struct variable pointer in the
605         command_variables chain.
606         (define_makeflags): If ALL, write variable definitions for
607         command_variables.
609         * main.c (other_args): Variable removed.
610         (goals, lastgoal): New static variables (moved from auto in main).
611         (main): Don't process OTHER_ARGS at all.
612         Don't set variable MAKEOVERRIDES at all; define MAKE to just
613         $(MAKE_COMMAND).
614         (init_switches): Prepend a - {return in order} instead of a +
615         {require order}.
616         (decode_switches): Don't set OTHER_ARGS at all.
617         Grok '\0' return from getopt_long as non-option argument; try
618         variable definition and (if !ENV) enter goal targets here.
619         (decode_env_switches): Use allocated_variable_expand to store value.
620         Use find_next_token to simplify word-splitting loop.  Don't
621         prepend a dash to uninterpreted value.  Instead, if split into
622         only one word, try variable definition and failing that prepend a
623         dash to the word and pass it to decode_switches as a single arg.
625 Wed Sep  7 03:02:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
627         * remake.c (notice_finished_file): Only recheck modtimes if
628         FILE->command_state was cs_running on entry (meaning the commands
629         actually just ran).
630         (update_file_1): Whenever we set FILE->update_status, call
631         notice_finished_file instead of just set_command_state.
632         * job.c (start_job_command): Whenever we set
633         CHILD->file->update_status, call notice_finished_file instead of
634         just set_command_state.
636 Tue Sep  6 19:13:54 1994  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
638         * default.c: Add missing ".
640         * job.c: Changed all assignments of command_state members to calls
641         to set_command_state.
642         * remake.c: Likewise.
643         * file.c (set_command_state): New function.
644         * file.h: Declare set_command_state.
646         * main.c (init_switches): Put a + first in options.
648 Mon Jul 25 18:07:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
650         Merge MSDOS/GO32 port from DJ Delorie <dj@ctron.com>.
651         * vpath.c: Changed all uses of ':' to PATH_SEPARATOR_CHAR.
652         * main.c (directory_before_chdir): New variable, moved out of main
653         (was local).
654         (main) [__MSDOS__]: Look for \ or : to delimit last component of
655         PROGRAM.  Don't frob ARGV[0] before setting MAKE_COMMAND variable.
656         (die): Change back to `directory_before_chdir' before dying.
657         * make.h (PATH_SEPARATOR_CHAR): New macro; differing defns for
658         [__MSDOS__] and not.
659         * job.c [__MSDOS__]: Include <process.h>.
660         [__MSDOS__] (dos_pid, dos_status, dos_bname, dos_bename,
661         dos_batch_file): New variables.
662         (reap_children) [__MSDOS__]: Don't call wait; just examine those vars.
663         (unblock_sigs) [__MSDOS__]: Do nothing.
664         (start_job_command) [__MSDOS__]: Use spawnvpe instead of vfork & exec.
665         (load_too_high) [__MSDOS__]: Always return true.
666         (search_path) [__MSDOS__]: Check for : or / in FILE to punt.
667         Use PATH_SEPARATOR_CHAR instead of ':'.
668         (construct_command_argv_internal) [__MSDOS__]: Wholly different
669         values for sh_chars and sh_cmds.  Wholly new code to handle shell
670         scripts.
671         * function.c (expand_function: `shell') [__MSDOS__]: Wholly new
672         implementation.
673         * dir.c [__MSDOS__] (dosify): New function.
674         (dir_contents_file_exists_p) [__MSDOS__]: Call it on FILENAME and
675         process the result instead of FILENAME itself.
676         (file_impossible_p) [__MSDOS__]: Likewise.
677         * default.c [__MSDOS__]: Define GCC_IS_NATIVE.
678         (default_suffix_rules) [__MSDOS__]: Use `y_tab.c' instead of `y.tab.c'.
679         (default_variables) [GCC_IS_NATIVE]: Set CC and CXX to `gcc', YACC to
680         `bison -y', and LEX to `flex'.
681         * configure.bat, configh.dos: New files.
682         * commands.c (fatal_error_signal) [__MSDOS__]: Just remove
683         intermediates and exit.
685         * commands.c (set_file_variables): Add parens in length
686         computation in .SUFFIXES dep loop to quiet compiler warning.  From
687         Jim Meyering.
689         * read.c (read_makefile): Free FILENAME if we allocated it.  From
690         Jim Meyering.
692 Mon Jul  4 17:47:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
694         * misc.c (safe_stat): New function, EINTR-safe wrapper around stat.
695         * vpath.c (selective_vpath_search): Use safe_stat in place of stat.
696         * read.c (construct_include_path): Use safe_stat in place of stat.
697         * job.c (search_path): Use safe_stat in place of stat.
698         * dir.c (find_directory): Use safe_stat in place of stat.
699         * commands.c (delete_target): Use safe_stat in place of stat.
700         * arscan.c (ar_member_touch) [EINTR]: Do EINTR looping around fstat.
701         * remake.c (name_mtime): Use safe_stat in place of stat.
702         (touch_file) [EINTR]: Do EINTR looping around fstat.
704 Fri Jun 24 05:40:24 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
706         * read.c (read_makefile): Check for a shell command first, and
707         then strip leading tabs before further checking if it's not a
708         shell command line.
710         * make.h [__arm]: Undefine POSIX.
711         [!__GNU_LIBRARY__ && !POSIX && !_POSIX_VERSION]: Don't declare system
712         functions that return int.
714         * job.c (construct_command_argv_internal): After swallowing a
715         backslash-newline combination, if INSTRING is set goto string_char
716         (new label) for normal INSTRING handling code.
718 Sat Jun  4 01:11:20 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
720         * configure.in: Don't check for sys_siglist and _sys_siglist with
721         AC_HAVE_FUNCS.  Instead use two AC_COMPILE_CHECKs.
723 Mon May 23 18:20:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
725         * Version 3.71.1 released.
727         * make.h [!__GNU_LIBRARY__ && !POSIX]: Also test #ifndef
728         _POSIX_VERSION for these declarations.
730         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Remove bogus #ifndefs
731         around #undefs of HAVE_SETREUID and HAVE_SETREGID.
733 Sat May 21 16:26:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
735         * Version 3.71 released.
737         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Don't test [HAVE_SETUID]
738         and [HAVE_SETGID].  Every system has those, and configure doesn't
739         check for them.
741         * make.h [_POSIX_VERSION]: Don't #define POSIX #ifdef ultrix.
743         * compatMakefile (loadavg): Depend on and use loadavg.c instead of
744         getloadavg.c.
745         (loadavg.c): Link or copy it from getloadavg.c.
746         (distclean): Remove loadavg.c.
748 Mon May 16 22:59:04 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
750         * Version 3.70.4.
752         * misc.c [GETLOADAVG_PRIVILEGED] [! POSIX]: Undefine HAVE_SETEUID
753         and HAVE_SETEGID.
755         * default.c (default_terminal_rules): In SCCS rules, put
756         $(SCCS_OUTPUT_OPTION) before $<.  On some systems -G is grokked
757         only before the file name.
758         * configure.in (SCCS_GET_MINUS_G check): Put -G flag before file name.
760 Tue May 10 16:27:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
762         * job.c (construct_command_argv_internal): Swallow
763         backslash-newline combinations inside '' strings too.
765 Thu May  5 04:15:10 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
767         * read.c (do_define): Call collapse_continuations on each line
768         before all else.
770 Mon Apr 25 19:32:02 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
772         * job.c (construct_command_argv_internal): Notice newline inside
773         '' string when RESTP is non-null.
775 Fri Apr 22 17:33:30 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
777         * Version 3.70.3.
779         * remake.c (update_goal_chain): Reset FILE to G->file after the
780         double-colon loop so it is never null for following code.
782         * read.c (read_makefile): Fix `override define' parsing to skip
783         whitespace after `define' properly.
785         * compatMakefile (srcdir): Define as @srcdir@; don't reference
786         $(VPATH).
787         (glob/Makefile): New target.
789 Thu Apr 21 16:16:55 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
791         * Version 3.70.2.
793         * misc.c (remove_comments): Use find_char_unquote.
794         * make.h (find_char_unquote): Declare it.
795         * read.c (find_char_unquote): New function, generalized from
796         find_percent.
797         (find_percent, find_semicolon, parse_file_seq): Use that.
799 Wed Apr 20 18:42:39 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
801         * implicit.c (pattern_search): Always allocate new storage for
802         FILE->stem.  It is not safe to store STEM's address because it
803         might be auto storage.
805         * configure.in: Check for seteuid and setegid.
806         * misc.c [HAVE_SETEUID]: Declare seteuid.
807         [HAVE_SETEGID]: Declare setegid.
808         (make_access, user_access) [HAVE_SETEUID]: Use seteuid.
809         [HAVE_SETEGID]: Use setegid.
811         * remake.c (update_goal_chain): Set STATUS to FILE->update_status,
812         to preserve whether it's 2 for error or 1 for -q trigger.  When
813         STATUS gets nonzero and -q is set, always stop immediately.
814         * main.c (main, decode_switches): Die with 2 for errors.
815         (main): Accept 2 return from update_goal_chain and die with that.
816         * misc.c (fatal, makefile_fatal): Die with 2; 1 is reserved for -q
817         answer.
818         * job.c (reap_children): Die with 2 for error.
819         (start_job_command): Set update_status to 2 for error.  Set it to
820         1 when we would run a command and question_flag is set.
822         * read.c (read_makefile): Don't mark makefiles as precious.  Just
823         like other targets, they can be left inconsistent and in need of
824         remaking by aborted commands.
826         * read.c (read_makefile): Write no error msg for -include file.
828 Tue Apr  5 05:22:19 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
830         * commands.c (fatal_error_signal): Don't unblock signals.
832         * file.h (struct file): Change member `double_colon' from flag to
833         `struct file *'.
834         * read.c (record_files): Set double_colon pointer instead of flag.
835         * main.c (main): When disqualifying makefiles for updating, use
836         double_colon pointer to find all entries for a file.
837         * file.c (enter_file): If there is already a double-colon entry
838         for the file, set NEW->double_colon to that pointer.
839         (file_hash_enter): Use FILE->double_colon to find all entries to
840         set name.
841         * remake.c (update_goal_chain): Do inner loop on double-colon entries.
842         (update_file): Use FILE->double_colon pointer to find all entries.
843         (f_mtime): Likewise.
844         (notice_finished_file): Propagate mtime change to all entries.
846         * variable.c (try_variable_definition): Return after abort.
848 Fri Apr  1 18:44:15 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
850         * read.c (read_makefile): Remove unused variable.
851         (parse_file_seq): When removing an elt that is just `)', properly
852         fix up the previous elt's next pointer.
854 Mon Mar 28 18:31:49 1994  Roland McGrath  (roland@mole.gnu.ai.mit.edu)
856         * configure.in: Do AC_SET_MAKE.
857         * GNUmakefile (Makefile.in): Edit MAKE assignment into @SET_MAKE@.
859 Fri Mar  4 00:02:32 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
861         * function.c (subst_expand): If BY_WORD or SUFFIX_ONLY is set and
862         the search string is the empty string, find a match at the end of
863         each word (using end_of_token in place of sindex).
865         * misc.c (end_of_token): Don't treat backslashes specially; you
866         can no longer escape blanks with backslashes in export, unexport,
867         and vpath.  This was never documented anyway.
869 Thu Mar  3 23:53:46 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
871         * read.c (read_makefile): Variable name for `define' is not just
872         first token; use whole rest of line and strip trailing blanks.
874 Wed Feb 16 16:03:45 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
876         * Version 3.70.1.
878         * read.c (read_makefile): Add -d msg stating args.
880         * read.c (read_makefile): Use isspace to skip over leading
881         whitespace, and explicitly avoid skipping over tabs.  Don't want
882         to skip just spaces though; formfeeds et al should be skipped.
884         * default.c (default_variables) [__hpux]: Add f in ARFLAGS.
886         * arscan.c (ar_name_equal) [__hpux]: Subtract 2 instead of 1 from
887         sizeof ar_name for max length to compare.
889         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Undefine HAVE_SETREUID
890         #ifdef HAVE_SETUID; likewise HAVE_SETREGID and HAVE_SETGID.
892         * main.c (main): Call user_access after setting `program', in case
893         it needs to use it in an error message.
895         * read.c (read_makefile): Ignore an empty line starting with a tab.
897 Thu Feb 10 21:45:31 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
899         * configure.in (AC_SYS_SIGLIST_DECLARED): Use this instead of
900         AC_COMPILE_CHECK that is now its contents.
902 Fri Feb  4 16:28:54 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
904         * make.h: #undef strerror after #include <string.h>.
905         [! ANSI_STRING]: Declare strerror.
907 Thu Feb  3 02:21:22 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
909         * misc.c (strerror): #undef any macro before function definition.
911 Mon Jan 31 19:07:23 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
913         * variable.c (try_variable_definition): Calculate BEG before loop
914         to strip blanks by decrementing END.  Don't decr END to before BEG.
916         * read.c (read_makefile): Skip over leading space characters, but
917         not tabs, after removing continuations and comments (it used to
918         use isspace).
920 Tue Jan 25 16:45:05 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
922         * variable.c (define_automatic_variables): In $(@D) et al, use
923         patsubst to remove trailing slash.
925         * commands.c (delete_target): New function, broken out of
926         delete_child_targets.  Check for archive members and give special msg.
927         (delete_child_targets): Use delete_target.
929 Mon Jan 17 17:03:22 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
931         * default.c (default_suffix_rules): Use $(TEXI2DVI_FLAGS) in
932         texi2dvi rules. Use $(MAKEINFO_FLAGS) in makeinfo rules.
934 Tue Jan 11 19:29:55 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
936         * GNUmakefile (tarfiles): Omit make-doc.
937         (make-$(version).tar): Include make.info*.
939 Fri Jan  7 16:27:00 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
941         * compatMakefile (configure, config.h.in): Comment out rules.
943 Thu Jan  6 18:08:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
945         * compatMakefile (binprefix, manprefix): New variables.
946         (instname): Variable removed.
947         (install): Use $({bin,man}prefix)make in place of $(instname).
948         File targets likewised renamed.
950 Mon Jan  3 17:50:25 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
952         * Version 3.70 released.
954 Thu Dec 23 14:46:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
956         * Version 3.69.3.
958         * read.c (parse_file_seq): Inside multi-word archive ref
959         translation loop, check NEW1==0 at end and break out of the loop.
961         * GNUmakefile (make-$(version).tar): Distribute install.sh.
962         * install.sh: New file.
964         * configure.in (SCCS_GET_MINUS_G check): Put redirection for admin
965         cmds outside subshell parens, to avoid "command not found" msgs
966         from the shell.
968 Wed Dec 22 17:00:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
970         * configure.in (SCCS_GET_MINUS_G check): Put -G flag last in get cmd.
971         Redirect output & error from get to /dev/null.
972         Fix reversed sense of test.
974 Fri Dec 17 15:31:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
976         * configure.in (SCCS_GET_MINUS_G check): Use parens instead of
977         braces inside if condition command; some shells lose.
979 Thu Dec 16 15:10:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
981         * Version 3.69.2.
983         * arscan.c [M_UNIX]: Move #undef M_XENIX for PORTAR stuff.
984         (PORTAR) [M_XENIX]: Define to 0 instead of 1.
986         * main.c (define_makeflags): Only export MAKEFLAGS if !ALL.
988 Wed Dec 15 17:47:48 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
990         * main.c (main): Cast result of pointer arith to unsigned int
991         before passing to define_variable for envars.  Matters when
992         sizeof(unsigned)!=sizeof(ptrdiff_t).
994 Tue Dec 14 14:21:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
996         * configure.in: Add new check for SCCS_GET_MINUS_G.
997         * config.h.in: Add #undef SCCS_GET_MINUS_G.
998         * default.c (default_terminal_rules): Use `$(SCCS_OUTPUT_OPTION)' in
999         place of `-G $@' in SCCS commands.
1000         (default_variables) [SCCS_GET_MINUS_G]: Define SCCS_OUTPUT_OPTION
1001         to "-G$@".
1003         * configure.in (AC_OUTPUT): Put touch stamp-config in second arg
1004         (so it goes in config.status), rather than afterward.
1006         * ar.c (ar_member_date): Don't call enter_file on the archive file
1007         if it doesn't exist (by file_exists_p).
1009         * compatMakefile ($(infodir)/make.info): Replace `$$d/foo.info'
1010         with `$$dir/make.info' in install-info invocation (oops).
1012         * vpath.c (construct_vpath_list): Only set LASTPATH set PATH when
1013         we do not unlink and free PATH.
1015         * file.c (print_file_data_base): Fix inverted calculation for
1016         average files per hash bucket.
1018         * read.c (readline): When we see a NUL, give only a warning and
1019         synthesize a newline to terminate the building line (used to
1020         fatal).  Move fgets call into the loop condition, and after the
1021         loop test ferror (used to test !feof in the loop).
1023 Fri Dec  3 16:40:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1025         * configure.in: Check for strerror in AC_HAVE_FUNCS.
1027 Thu Dec  2 15:37:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1029         Differentiate different flavors of missing makefile error msgs,
1030         removing gratuitous `fopen: ' and giving caller for included makefiles.
1031         * misc.c [! HAVE_STRERROR]: Define our own strerror here.
1032         (perror_with_name, pfatal_with_name): Use strerror instead of
1033         replicating its functionality.
1034         * read.c (read_makefile): Return int instead of void.
1035         (read_all_makefiles, read_makefile): Change callers to notice zero
1036         return and give error msg.
1038 Thu Nov 11 11:47:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1040         * Version 3.69.1.
1042         * default.c: Put `-G $@' before $< in SCCS cmds.
1044 Wed Nov 10 06:06:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1046         * read.c (read_makefile): After trying a variable defn, notice if
1047         the line begins with a tab, and diagnose an error.
1049 Sun Nov  7 08:07:37 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1051         * Version 3.69.
1053 Wed Nov  3 06:54:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1055         * Version 3.68.10.
1057         * implicit.c (try_implicit_rule): Look for a normal rule before an
1058         archive rule.
1060 Fri Oct 29 16:45:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1062         * function.c (expand_function: `sort'): Double NWORDS when it
1063         overflows, instead of adding five.
1065         * compatMakefile (clean): Remove loadavg.
1067 Wed Oct 27 17:58:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1069         * Version 3.68.9.
1071         * file.h (NEW_MTIME): Define new macro.
1072         * main.c (main): Set time of NEW_FILES to NEW_MTIME, not to
1073         current time returned from system.  Removed variable NOW.
1074         * remake.c (notice_finished_file): Use NEW_MTIME in place of
1075         current time here too.
1077 Tue Oct 26 19:45:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1079         * Version 3.68.8.
1081         * remake.c (update_file_1): Don't clear MUST_MAKE when FILE has no
1082         cmds and !DEPS_CHANGED unless also !NOEXIST.
1084 Mon Oct 25 15:25:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1086         * read.c (parse_file_seq): When converting multi-word archive
1087         refs, ignore a word beginning with a '('.
1089 Fri Oct 22 02:53:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1091         * configure.in: Check for sys/timeb.h.
1092         * make.h [HAVE_SYS_TIMEB_H]: Test this before including it.
1094 Thu Oct 21 16:48:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1096         * Version 3.68.7.
1098         * rule.c (convert_suffix_rule): New local TARGPERCENT.  Set it to
1099         TARGNAME+1 for "(%.o)", to TARGNAME for "%.?".  Use it in place of
1100         TARGNAME to initialize PERCENTS[0].
1102 Mon Oct 18 06:49:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1104         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
1105         Remove AC_USG; it is no longer used.
1107         * file.c (print_file): New function, broken out of
1108         print_file_data_base.
1109         (print_file_data_base): Call it.
1110         * rule.c (print_rule): New function, broken out of
1111         print_rule_data_base.
1112         (print_rule_data_base): Call it.
1114 Thu Oct 14 14:54:03 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1116         * default.c (install_default_suffix_rules): New function, broken
1117         out of install_default_implicit_rules.
1118         (install_default_implicit_rules): Move suffix rule code there.
1119         * make.h: Declare install_default_suffix_rules.
1120         * main.c (main): Call install_default_suffix_rules before reading
1121         makefiles.  Move convert_to_pattern call before
1122         install_default_implicit_rules.
1124         * job.h (struct child): Make `pid' member type `pid_t' instead of
1125         `int'.
1127         * compatMakefile (RANLIB): New variable, set by configure.
1128         (glob/libglob.a): Pass RANLIB value down to submake.
1130         Fixes for SCO 3.2 "devsys 4.2" from pss@tfn.com (Peter Salvitti).
1131         * make.h: Include <sys/timeb.h> before <time.h> for SCO lossage.
1132         * job.c [! getdtablesize] [! HAVE_GETDTABLESIZE]: If NOFILE is not
1133         defined but NOFILES_MAX is, define it to be that.
1135 Mon Oct 11 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1137         * GNUmakefile (make-$(version).tar): Depend on acconfig.h, so it
1138         is distributed.
1140 Sun Oct  3 15:15:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1142         * default.c (default_terminal_rules): Add `-G $@' to SCCS get cmds.
1144 Tue Sep 28 14:18:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1146         * job.c (construct_command_argv_internal): Add ^ to SH_CHARS; it
1147         is another symbol for | in some shells.
1148         * main.c (main): Add it to CMD_DEFS quoting list as well.
1150 Mon Sep 20 18:05:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1152         * job.c (construct_command_argv_internal): Remove '=' from
1153         SH_CHARS.  Only punt on '=' if it is unquoted in a word before the
1154         first word without an unquoted '='.
1156         * main.c (define_makeflags): Set v_export for MAKEFLAGS.
1158 Fri Sep 17 00:37:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1160         * remake.c (update_file_1): Use .DEFAULT cmds for phony targets.
1162         * make.h [_AIX && _POSIX_SOURCE]: Define POSIX.
1164         * commands.c (delete_child_targets): Don't delete phony files.
1166         * job.c (start_job_command): Set COMMANDS_RECURSE in FLAGS if we
1167         see a `+' at the beginning of the command line.
1169 Thu Sep  9 17:57:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1171         * Version 3.68.6.
1173 Wed Sep  8 20:14:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1175         * main.c (define_makeflags): Define MAKEFLAGS with o_file, not o_env.
1177 Mon Aug 30 12:31:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1179         * expand.c (variable_expand): Fatal on an unterminated reference.
1181 Thu Aug 19 16:27:53 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1183         * Version 3.68.5.
1185         * variable.c (define_automatic_variables): Define new o_default
1186         variable `MAKE_VERSION' from version_string and remote_description.
1188         * make.h (version_string, remote_description): Declare these here.
1189         * main.c: Don't declare version_string.
1190         (print_version): Don't declare remote_description.
1192 Wed Aug 18 15:01:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1194         * read.c (read_makefile): Free space pointed to by CONDITIONALS
1195         before restoring the old pointer.
1197 Mon Aug 16 17:33:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1199         * compatMakefile ($(objs)): Depend on config.h.
1201         * GNUmakefile (build.sh.in): Depend on compatMakefile.
1203         * configure.in: Touch stamp-config after AC_OUTPUT.
1205 Fri Aug 13 16:04:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1207         * Version 3.68.4.
1209 Thu Aug 12 17:18:57 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1211         * make.h: Include <config.h> instead of "config.h".
1213 Wed Aug 11 02:35:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1215         * main.c (main): Make all variables interned from ENVP be v_export.
1216         * variable.c (try_variable_definition): In v_default case, don't
1217         check for an o_file variable that `getenv' finds.
1219         * job.c (reap_children): New local variable ANY_LOCAL; set it
1220         while setting ANY_REMOTE.  If !ANY_LOCAL, don't wait for local kids.
1222         * main.c (main): Don't call decode_env_switches on MFLAGS.  DOC THIS.
1224         * function.c (expand_function): #if 0 out freeing of ENVP since it
1225         is environ.
1227 Mon Aug  9 17:37:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1229         * Version 3.68.3.
1231         * remote-stub.c (remote_status): Set errno to ECHILD before return.
1232         * job.c (reap_children): Scan the chain for remote children and
1233         never call remote_status if there are none.
1235         * function.c (expand_function: `shell'): #if 0 out calling
1236         target_environment; just set ENVP to environ instead.
1238         * job.c (reap_children): Check for negative return from
1239         remote_status and fatal for it.
1240         When blocking local child wait returns 0, then try a blocking call
1241         to remote_status.
1243 Tue Aug  3 00:19:00 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1245         * compatMakefile (clean): Delete make.info* and make.dvi here.
1246         (distclean): Not here.
1248         * dep.h (RM_*): Use #defines instead of enum to avoid lossage from
1249         compilers that don't like enum values used as ints.
1251 Mon Aug  2 16:46:34 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1253         * compatMakefile (loadavg): Add $(LOADLIBES).
1255 Sun Aug  1 16:01:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1257         * Version 3.68.2.
1259         * compatMakefile (loadavg, check-loadavg): New targets.
1260         (check): Depend on check-loadavg.
1262         * compatMakefile (glob/libglob.a): Depend on config.h.
1264         * misc.c (log_access): Write to stderr instead of stdout.
1266 Fri Jul 30 00:07:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1268         * Version 3.68.1.
1270 Thu Jul 29 23:26:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1272         * configure.in (SYS_SIGLIST_DECLARED): In test program include
1273         <unistd.h> #ifdef HAVE_UNISTD_H.
1275         * compatMakefile (.PHONY): Put after `all' et al.
1277         * configure.in: Add AC_IRIX_SUN.
1279 Wed Jul 28 17:41:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1281         * Version 3.68.
1283 Mon Jul 26 14:36:49 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1285         * Version 3.67.8.
1287 Sun Jul 25 22:09:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1289         * Version 3.67.7.
1291         * compatMakefile ($(infodir)/make.info): Don't use $(instname).
1292         Run install-info script if present.
1294 Fri Jul 23 16:03:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1296         * make.h [STAT_MACROS_BROKEN]: Test this instead of [uts].
1298         * configure.in: Add AC_STAT_MACROS_BROKEN.
1300 Wed Jul 14 18:48:11 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1302         * Version 3.67.6.
1304         * read.c (read_makefile): Recognize directive `-include', like
1305         `include' but sets RM_DONTCARE flag.
1307         * variable.c (target_environment): If FILE is nil, use
1308         current_variable_set_list in place of FILE->variables.
1309         * function.c (expand_function: `shell'): Get an environment for
1310         the child from target_environment instead of using environ.
1312         * dep.h: Declare read_all_makefiles here.
1313         (RM_*): Define new enum constants.
1314         * read.c (read_makefile): Second arg is FLAGS instead of TYPE.
1315         Treat it as a bit mask containing RM_*.
1316         (read_all_makefiles): For default makefiles, set D->changed to
1317         RM_DONTCARE instead of 1.
1318         * main.c: Don't declare read_all_makefiles here.
1319         (main): Check `changed' member of read_makefiles elts for RM_*
1320         flags instead of specific integer values.
1322 Mon Jul 12 22:42:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1324         * make.h [sequent && i386]: #undef POSIX.  From trost@cse.ogi.edu.
1326 Thu Jul  8 19:51:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1328         * vpath.c (construct_vpath_list): If ELEM is zero 0, free PATTERN
1329         as well as VPATH.
1330         (build_vpath_lists): Empty `vpaths' around construct_vpath_list
1331         call for $(VPATH).  Expand $(strip $(VPATH)), not just $(VPATH).
1333         * rule.c (convert_suffix_rule): Use alloca instead of xmalloc for
1334         PERCENTS, whose storage is not consumed by create_pattern_rule.
1336         * make.h [__mips && _SYSTYPE_SVR3]: #undef POSIX.
1338 Wed Jun 30 18:11:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1340         * Version 3.67.5.
1342         * rule.c (max_pattern_targets): New variable.
1343         (count_implicit_rule_limits): Compute its value.
1344         * rule.h: Declare it.
1345         * implicit.c (pattern_search): Make TRYRULES max_target_patterns
1346         times bigger.  Move adding new TRYRULES elt inside the inner
1347         targets loop, so each matching target gets its own elt in MATCHES
1348         and CHECKED_LASTSLASH.
1350         * file.c (remove_intermediates): If SIG!=0 say `intermediate file'
1351         instead of just `file' in error msg.
1353 Fri Jun 25 14:55:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1355         * job.c (construct_command_argv): Turn off
1356         --warn-undefined-variables around expansion of SHELL and IFS.
1357         * read.c (tilde_expand): Likewise for HOME.
1358         (read_all_makefiles): Likewise for MAKEFILES.
1359         * vpath.c (build_vpath_lists): Likewise for VPATH.
1361         * main.c (warn_undefined_variables_flag): New flag variable.
1362         (switches): Add --warn-undefined-variables.
1363         * make.h (warn_undefined_variables_flag): Declare it.
1364         * expand.c (warn_undefined): New function.
1365         (reference_variable): Call it if the variable is undefined.
1366         (variable_expand): In substitution ref, call warn_undefined if the
1367         variable is undefined.
1369         * default.c (default_pattern_rules): Add `%.c: %.w %.ch' and
1370         `%.tex: %.w %.ch' rules.
1371         (default_suffix_rules: .w.c, .w.tex): Pass three args: $< - $@.
1372         (default_suffixes): Add `.ch'.
1374 Mon Jun 21 17:55:39 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1376         * default.c (default_suffixes): Replace `.cweb' with `.w'.
1377         (default_suffix_rules): Rename `.cweb.c' and `.cweb.tex' to `.w.c'
1378         and `.w.tex'.
1380 Fri Jun 11 14:42:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1382         * compatMakefile ($(bindir)/$(instname)): Add missing backslash.
1384 Thu Jun 10 18:14:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1386         * Version 3.67.4.
1388         * read.c (multi_glob): Don't free OLD and OLD->name in the
1389         FOUND!=0 fork.  Use new block-local variable F instead of
1390         clobbering OLD.
1392         * ar.c (glob_pattern_p): New function, snarfed from glob/glob.c.
1393         (ar_glob): Call it; return nil immediately if MEMBER_PATTERN
1394         contains no metacharacters.
1396 Wed Jun  9 16:25:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1398         * ar.c (ar_glob{_match,_alphacompare}): New function.
1400         * dep.h [! NO_ARCHIVES]: Declare it.
1401         * read.c (multi_glob) [! NO_ARCHIVES]: Use it on archive member elts.
1403         * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
1404         multi_glob (which doesn't take a 3rd arg).
1405         * rule.c (install_pattern_rule): Likewise.
1406         * default.c (set_default_suffixes): Here too.
1407         * function.c (string_glob): Don't pass gratuitous arg to multi_glob.
1409         * read.c (parse_file_seq) [! NO_ARCHIVES]: Add post-processing
1410         loop to translate archive refs "lib(a b)" into "lib(a) lib(b)".
1412 Mon Jun  7 19:26:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1414         * compatMakefile (installdirs): Actually pass directory names.
1415         ($(bindir)/$(instname)): Test chgrp&&chmod exit status with `if';
1416         if it fails, echo a warning msg, but don't make the rule fail.
1418         * read.c (tilde_expand): New function, broken out of tilde_expand.
1419         (multi_glob): Call it.
1420         (construct_include_path): Expand ~ in directory names.
1421         * dep.h: Declare tilde_expand.
1422         * main.c (enter_command_line_file): Expand ~ at the start of NAME.
1423         (main): Expand ~ in -C args.
1424         * read.c (read_makefile): Expand ~ in FILENAME unless TYPE==2.
1426 Fri Jun  4 13:34:47 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1428         * main.c (decode_env_switches): Use xmalloc instead of alloca for ARGS.
1430         * main.c (main): Put result of alloca in temporary variable with
1431         simple assignment, to make SGI compiler happy.
1433 Thu Jun  3 20:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1435         * Version 3.67.3.
1437         * main.c (main): Before re-execing, remove intermediate files, and
1438         print the data base under -p.  Sexier debugging message.
1440         * implicit.c (pattern_search): Allocate an extra copy of the name
1441         of a winning intermediate file when putting it in FOUND_FILES.
1443 Wed Jun  2 16:38:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1445         * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
1446         multi_glob (which doesn't take a 3rd arg).
1448         * dir.c (dir_contents_file_exists_p): When reading dirents, ignore
1449         chars within D_NAMLEN that are NULs.
1451         * main.c (decode_switches): Don't savestring ARGV[0] to put it
1452         into `other_args'.
1453         For string switch, don't savestring `optarg'.
1454         (main): Don't free elts of makefiles->list that are "-".
1455         Use alloca'd rather than savestring'd storage for elts of
1456         makefiles->list that are temporary file names.
1457         * read.c (read_all_makefiles): Don't free *MAKEFILES.
1458         * file.c (enter_file): Don't strip `./'s.
1459         * main.c (enter_command_line_file): New function.
1460         (main): Use it in place of enter_file for command-line goals from
1461         other_files, and for old_files and new_files.
1463 Mon May 31 18:41:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1465         * Version 3.67.2.
1467         * compatMakefile (.SUFFIXES): Add .info.
1468         ($(infodir)/$(instname).info): Find make.info* in cwd if there,
1469         else in $srcdir.  Use basename to remove dir name from installed name.
1471 Thu May 27 17:35:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1473         * implicit.c (pattern_search): When interning FOUND_FILES, try
1474         lookup_file first; if found, free the storage for our copy of the name.
1476 Wed May 26 14:31:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1478         * Version 3.67.1.
1480         * main.c (decode_switches): In usage msg, write `--switch=ARG' or
1481         `--switch[=OPTARG]' rather than `--switch ARG' or `--switch [ARG]'.
1483 Mon May 24 16:17:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1485         * rule.c (convert_suffix_rule): New function.
1486         (convert_to_pattern): Use it instead of doing all the work here
1487         several times.
1488         For target suffix `.a', generate both the archive magic rule and
1489         the normal rule.
1491         * compatMakefile (distclean): Remove stamp-config.
1493 Sat May 22 16:15:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1495         * Version 3.67.
1497         * file.c (remove_intermediates): Don't write extra space after `rm'.
1499         * main.c (struct command_switch.type): Remove `usage_and_exit'.
1500         (print_usage_flag): New variable.
1501         (switches: --help): Make type `flag', to set print_usage_flag.
1502         (init_switches): Remove `usage_and_exit' case.
1503         (decode_switches): Likewise.
1504         (decode_switches): Print usage if print_usage_flag is set.
1505         When printing usage, die with status of BAD.
1506         (main): Die with 0 if print_version_flag.
1508 Fri May 21 16:09:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1510         * Version 3.66.
1512 Wed May 19 21:30:44 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1514         * compatMakefile (installdirs): New target.
1515         (install): Depend on it.
1517 Sun May 16 20:15:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1519         * Version 3.65.2.
1521 Fri May 14 16:40:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1523         * vpath.c (construct_vpath_list): In removal loop for DIRPATH==0,
1524         set LASTPATH to PATH, not NEXT.
1526         * dir.c (read_dirstream): Break out of loop after incrementing
1527         DS->buckets such that it reaches DIRFILE_BUCKETS; avoid trying to
1528         dereference DS->contents->files[DIRFILE_BUCKETS].
1530         * read.c (read_makefile): Clear no_targets after reading a
1531         targetful rule line.
1533         * main.c (main): If print_version_flag is set, exit after printing
1534         the version.
1535         (switches): Change --version docstring to say it exits.
1537         * make.h [butterfly]: #undef POSIX.
1539 Wed May 12 15:20:21 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1541         * Version 3.65.1.
1543         * arscan.c (ar_scan) [! AIAMAG]: Don't declare LONG_NAME.
1544         [AIAMAG]: Pass TRUNCATE flag arg to (*FUNCTION), always zero.
1546         * function.c (handle_function): Use fatal instead of
1547         makefile_fatal when reading_filename is nil.
1549         * configure.in: Add AC_GETGROUPS_T.
1550         * job.c (search_path): Use GETGROUPS_T in place of gid_t.
1552 Sun May  9 15:41:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1554         * Version 3.65.
1556 Fri May  7 18:34:56 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1558         * function.c (handle_function): Fatal for unmatched paren.
1560 Thu May  6 16:13:41 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1562         * Version 3.64.3.
1564         * commands.c (handling_fatal_signal): New variable.
1565         (fatal_error_signal): Set it.
1566         * job.c (reap_children): Avoid nonreentrant operations if that is set.
1567         * make.h: Declare handling_fatal_signal.
1569         * expand.c (reference_variable): New function, snippet of code
1570         broken out of simple-reference case of variable_expand.
1571         (variable_expand): Use it for simple refs.
1572         (variable_expand): When checking for a computed variable name,
1573         notice a colon that comes before the final CLOSEPAREN.  Expand
1574         only up to the colon, and then replace the pending text with a
1575         copy containing the expanded name and fall through to subst ref
1576         handling.
1577         (variable_expand): Don't bother expanding the name if a colon
1578         appears before the first $.
1579         (expand_argument): Use alloca instead of savestring.
1580         (variable_expand): For subst ref, expand both sides of = before
1581         passing to [pat]subst_expand.  Use find_percent instead of lindex
1582         to check the lhs for a %.
1584 Wed May  5 14:45:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1586         * Version 3.64.2.
1588 Mon May  3 17:00:32 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1590         * arscan.c (ar_name_equal) [AIAMAG]: Abort if TRUNCATED is nonzero.
1592         * read.c (read_makefile): Pass extra arg of 1 to parse_file_seq,
1593         not to multi_glob.
1595 Thu Apr 29 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1597         * Version 3.64.1.
1599         * arscan.c (ar_scan): New local flag var LONG_NAME.  Set it when
1600         we read the member name in any of the fashions that allow it to be
1601         arbitrarily long.  Pass its negation to FUNCTION.
1602         (describe_member): Take TRUNCATED from ar_scan and print it.
1603         (ar_name_equal): Take new arg TRUNCATED; if nonzero, compare only
1604         the first sizeof (struct ar_hdr.ar_name) chars.
1605         (ar_member_pos): Take TRUNCATED from ar_scan, pass to ar_name_equal.
1606         * ar.c (ar_member_date_1): Likewise.
1608 Wed Apr 28 21:18:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1610         * job.c (reap_children): Before calling start_job_command to start
1611         the next command line, reset C->remote by calling start_remote_job_p.
1613 Mon Apr 26 15:56:15 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1615         * arscan.c (ar_scan): New local var NAMEMAP.
1616         In loop, rename NAME to NAMEBUF; new var NAME is a pointer; new
1617         flag IS_NAMEMAP.  When extracting the member name, always put a
1618         null at its end first.  If the name is "//" or "/ARFILENAMES", set
1619         IS_NAMEMAP.  If we have already read in NAMEMAP, and NAME looks
1620         like " /N", get full name from NAMEMAP+N.
1621         Else if NAME looks like "#1/N", read N chars from the
1622         elt data to be the full name.  At end of loop, if IS_NAMEMAP, read
1623         the elt's data into alloca'd NAMEMAP.
1624         (ar_name_equal): #if 0 truncating code.
1626         * make.h: Don't declare vfork at all.  It returns int anyway,
1627         unless <unistd.h> declared it; and we conflicted with some systems.
1629         * main.c (define_makeflags): If FLAGSTRING[1] is '-', define
1630         MAKEFLAGS to all of FLAGSTRING, not &FLAGSTRING[1].  Don't want to
1631         define it to something like "-no-print-directory".
1632         Use %g format instead of %f for floating-valued things.
1634 Thu Apr 22 18:40:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1636         * GNUmakefile (Makefile.in): Use a substitution ref on nolib-deps
1637         to change remote-%.dep to remote-stub.dep.
1639 Wed Apr 21 15:17:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1641         * Version 3.64.
1643 Fri Apr 16 14:22:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1645         * compatMakefile (install): Remove - prefix from chgrp+chmod.
1647         * Version 3.63.8.
1649 Thu Apr 15 18:24:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1651         * acconfig.h: New file; contains "#undef SCCS_GET" for autoheader.
1652         * configure.in: If /usr/sccs/get exists, define SCCS_GET to that,
1653         else to "get".
1654         * default.c (default_variables): Set GET to macro SCCS_GET.
1656         * read.c (parse_file_seq): Take extra arg STRIP; strip `./' only
1657         if nonzero.  I hope this is the last time this argument is added
1658         or removed.
1659         (read_makefile): Pass it 1 when parsing include file names.
1660         Pass it 1 when parsing target file names.
1661         Pass it 1 when parsing static pattern target pattern names.
1662         * rule.c (install_pattern_rule): Pass it 1 when parsing rule deps.
1663         * default.c (set_default_suffixes): Pass it 1 when parsing
1664         default_suffixes.
1665         * function.c (string_glob): Pass it 0 here.
1667 Wed Apr 14 11:32:05 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1669         * misc.c (log_access): New function.
1670         ({init,user,make,child}_access): Call it.
1671         (child_access): Abort if !access_inited.
1673         * main.c (switches: --no-print-directory): Use 1 instead of -1 for
1674         single-letter option.
1675         (init_switches, decode_switches, define_makeflags): An option with
1676         no single-letter version is no longer indicated by a value of -1;
1677         instead a value that is !isalnum.
1678         (init_switches): Don't put such switches into the string, only
1679         into the long_option table.
1681         * make.h [!NSIG] [!_NSIG]: #define NSIG 32.
1683         * job.c [HAVE_WAITPID]: Remove #undef HAVE_UNION_WAIT.  AIX's
1684         bsdcc defined WIF* to use union wait.
1686         * main.c (struct command_switch): Change member `c' to type int.
1687         (switches): Make const.
1688         (decode_switches): Use `const struct command_switch *'.
1689         (define_makeflags): Likewise.
1691         * default.c (default_suffix_rules): Add `-o $@' to makeinfo rules.
1693 Mon Apr 12 12:30:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1695         * Version 3.63.7.
1697         * configure.in (AC_HAVE_HEADERS): Check for string.h and memory.h.
1698         Removed AC_MEMORY_H.
1699         * make.h [USG, NeXT]: Don't test these.
1700         [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
1701         [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
1702         [! ANSI_STRING]: Put decls of bcopy et al here.
1703         [sparc]: Don't test this for alloca.h; HAVE_ALLOCA_H is sufficient.
1704         [HAVE_SIGSETMASK]: Test this rather than USG.
1705         [__GNU_LIBRARY__ || POSIX]: Don't #include <unistd.h> again.
1706         * main.c (main): Handle SIGCHLD if defined, and SIGCLD if defined.
1707         It doesn't hurt to do both if they are both defined, and testing
1708         USG is useless.
1709         * dir.c: Rationalize directory header conditionals.
1710         * arscan.c [HAVE_FCNTL_H]: Test this rather than USG || POSIX.
1712         * default.c (default_suffixes): Add `.txinfo'.
1713         (default_suffix_rules): Add `.txinfo.info' and `.txinfo.dvi' rules.
1715         * variable.c (try_variable_definition): Replace RECURSIVE flag
1716         with enum FLAVOR, which can be simple, recursive, or append.
1717         Recognize += as append flavor.  Set new variable VALUE in a switch
1718         on FLAVOR.  For append flavor, prepend the variable's old value.
1719         If the variable was previously defined recursive, set FLAVOR to
1720         recursive; if it was defined simple, expand the new value before
1721         appending it to the old value.  Pass RECURSIVE flag to
1722         define_variable iff FLAVOR == recursive.
1724         * variable.c (try_variable_definition): Use alloca and bcopy for
1725         NAME, instead of savestring.  Might as well use stack storage
1726         since we free it immediately anyway.
1728 Thu Apr  8 18:04:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1730         * job.c (start_waiting_jobs): Move decl of JOB outside of loop.
1732         * main.c (define_makeflags): Rename `struct flag' member `switch'
1733         to `cs', which is not a reserved word.
1735 Wed Apr  7 15:30:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1737         * job.c (new_job): Call start_waiting_jobs first thing.
1738         (start_waiting_job): Changed return type from void to int.
1739         Return 0 when putting the child on the waiting_jobs chain.
1740         (start_waiting_jobs): Don't check load and job_slots here.
1741         Always take a job off the chain and call start_waiting_job on it;
1742         give up and return when start_waiting_job returns zero.
1744         * main.c (define_makeflags: struct flag): Change member `char c' to
1745         `struct command_switch *switch'.
1746         (ADD_FLAG): Set that to CS instead of CS->c.
1747         If CS->c is -1, increment FLAGSLEN for the long name.
1748         When writing out FLAGS, handle FLAGS->switch->c == -1 and write
1749         the long name instead.
1751         * compatMakefile (stamp-config): New target of old config.h rule.
1752         Touch stamp-config after running config.status.
1753         (config.h): Just depend on stamp-config, and have empty commands.
1755 Mon Apr  5 20:14:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1757         * job.c [HAVE_WAITPID]: #undef HAVE_UNION_WAIT.
1759         * configure.in (AC_HAVE_FUNCS): Check for psignal.
1761 Fri Apr  2 17:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1763         * main.c (long_option_aliases): Remove "new"; it is already an
1764         unambiguous prefix of "new-file".
1766 Sun Mar 28 16:57:17 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1768         * Version 3.63.6.
1770 Wed Mar 24 14:26:19 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1772         * vpath.c (selective_vpath_search): When adding the
1773         name-within-directory at the end of NAME, and we don't add a
1774         slash, don't copy FILENAME in one char too far into NAME.
1776         * variable.c (define_automatic_variables): Find default_shell's
1777         length with strlen, not numerology.
1779 Wed Mar 17 20:02:27 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1781         * main.c (define_makeflags): Add the elts of a string option in
1782         reverse order, so they come out right when reversed again.
1784 Fri Mar 12 15:38:45 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1786         * compatMakefile (make.info): Use `-o make.info'.
1788 Thu Mar 11 14:13:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1790         * compatMakefile (REMOTE): Set to @REMOTE@; change comments to
1791         reflect new use.
1792         (objs): Replace remote.o with remote-$(REMOTE).o.
1793         (srcs): Replace remote.c with remote-$(REMOTE).c.
1794         (remote.o): Rule removed.
1796         * configure.in (REMOTE): Subst this in Makefile et al; default "stub".
1797         Use AC_WITH to grok --with-customs arg to set REMOTE=cstms.
1798         * GNUmakefile (build.sh.in): Filter out remote-% from objs list.
1799         * build.template (REMOTE): New var; set to @REMOTE@.
1800         (objs): Add remote-${REMOTE}.o.
1802 Wed Mar 10 15:12:24 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1804         * Version 3.63.5.
1806         * implicit.c (pattern_search): Fix "dependent"->"dependency" in
1807         "Rejecting impossible" -d msg.
1809         * file.c (file_hash_enter): New local vars {OLD,NEW}BUCKET.  Store
1810         mod'd values there; never mod {OLD,NEW}HASH.
1812 Mon Mar  8 13:32:48 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1814         * remake.c [eta10]: Include <fcntl.h> instead of <sys/file.h>.
1816         * compatMakefile (VPATH): Set this to @srcdir@.
1817         (srcdir): Set this to $(VPATH).
1819         * main.c (main): New local var DIRECTORY_BEFORE_CHDIR.  Save in it
1820         a copy of CURRENT_DIRECTORY after the first getcwd.  Use it
1821         instead of CURRENT_DIRECTORY when chdir'ing back before re-execing.
1823         * remake.c (notice_finished_file): Pass missing SEARCH arg to f_mtime.
1825         * read.c (read_makefile): Remove extraneous arg to parse_file_seq.
1827 Mon Feb 22 14:19:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1829         * compatMakefile ($(infodir)/$(instname).info): Use , instead of /
1830         as the sed delimiter char.
1832 Sun Feb 21 14:11:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1834         * Version 3.63.4.
1836         * rule.h (struct rule): Removed `subdir' member.
1837         * rule.c (new_pattern_rule): No need to clear it.
1838         (count_implicit_rule_limits): Set the `changed' flag in each dep
1839         that refers to a nonexistent directory.  No longer set rule-global
1840         `subdir' flag with that information.
1841         (print_rule_data_base): Don't record info on `subdir' flags.
1843         * implicit.c (pattern_search): Check the DEP->changed flag rather
1844         than the (now gone) RULE->subdir flag.  Also test CHECK_LASTSLASH;
1845         if it is set, the file might exist even though the DEP->changed
1846         flag is set.
1848         * rule.c (count_implicit_rule_limits): Pass "", not ".", as file
1849         name arg to dir_file_exists_p to check for existence of directory.
1851         * implicit.c (pattern_search): Inside dep-finding loop, set
1852         CHECK_LASTSLASH from the value recorded in CHECKED_LASTSLASH[I],
1853         rather than computing it anew.
1855         * commands.c (set_file_variables): Must alloca space for PERCENT
1856         and copy it, to avoid leaving the trailing `)' in the value.
1858         * misc.c (remove_comments): Fixed backslash-checking loop
1859         condition to allow it to look at the first char on the line.
1860         P2 >= LINE, not P2 > LINE.
1862         * compatMakefile ($(bindir)/$(instname)): Before moving $@.new to
1863         $@, rm $@.old and mv $@ to $@.old.
1865         * variable.c (try_variable_definition): Take new args FILENAME and
1866         LINENO.  Fatal if the variable name is empty.
1867         * read.c (read_makefile): Change callers.
1868         * main.c (main): Likewise.
1870         * compatMakefile (group): Define to @KMEM_GROUP@, autoconf magic
1871         that configure will replace with the group owning /dev/kmem.
1873 Mon Feb  8 14:26:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1875         * vpath.c (vpath_search): Take second arg MTIME_PTR, pass thru to
1876         selective_vpath_search.
1877         (selective_vpath_search): Take second arg MTIME_PTR.
1878         If the dir cache thinks a file exists, stat it to make sure, and
1879         put the modtime in *MTIME_PTR.
1880         * remake.c (library_search): Take second arg MTIME_PTR.
1881         When we find a match, record its mtime there.
1882         Pass MTIME_PTR through to vpath_search to do same.
1883         (f_mtime): Pass &MTIME as new 2nd arg to {vpath,library}_search;
1884         store it in FILE->last_mtime if set nonzero.
1885         * implicit.c (pattern_search): Pass nil 2nd arg to vpath_search.
1887         * compatMakefile (remote.o): Prepend `$(srcdir)/' to `remote-*.c',
1888         so globbing looks somewhere it will find things.
1890         * compatMakefile ($(infodir)/$(instname).info): Install `make.info*'
1891         not `$(srcdir)/make.info*'; no need to use basename.
1893 Fri Feb  5 12:52:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1895         * Version 3.63.3.
1897         * compatMakefile (install): Add missing ;\s.
1899         Make -, @, and + prefixes on a pre-expanded command line affect
1900         all lines in the expansion, not just the first.
1901         * commands.h (struct commands): Replace `lines_recurse' member
1902         with `lines_flags'.
1903         (COMMANDS_{RECURSE,SILENT,NOERROR}): New macros, bits to set in
1904         that flag byte.
1905         * commands.c (chop_commands): Set `lines_flags' instead of
1906         `lines_recurse'.  Record not only + but also @ and - prefixes.
1907         * remake.c (notice_finished_file): Check the COMMANDS_RECURSE bit
1908         in FILE->cmds->lines_flags, rather than FILE->cmds->lines_recurse.
1909         * job.c (start_job_command): Replaced RECURSIVE and NOPRINT local
1910         var with FLAGS; initialize it to the appropriate `lines_flags' byte.
1911         Set CHILD->noerror if the COMMANDS_NOERROR bit is set in FLAGS.
1912         Set the COMMANDS_SILENT bit in FLAGS for a @ prefix.
1914         * remake.c (update_goal_chain): Set G->file to its prev after
1915         checking for G being finished, since that check needs to examine
1916         G->file.
1918         * configure.in (union wait check) [HAVE_WAITPID]: Try using
1919         waitpid with a `union wait' STATUS arg.  If waitpid and union wait
1920         don't work together, we should not use union wait.
1922         * Version 3.63.2.
1924         * remake.c (update_goal_chain): When G->file->updated, move
1925         G->file to its prev.  We aren't finished until G->file is nil.
1927 Thu Feb  4 12:53:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1929         * main.c (starting_directory): New global variable.
1930         (main): Set it to cwd after doing -Cs.
1931         (log_working_directory): Use it, rather than computing each time.
1932         * make.h: Declare it.
1934         * compatMakefile (SHELL): Define to /bin/sh for losing Unix makes.
1936         * main.c (decode_env_switches): Allocate (1 + LEN + 1) words for
1937         ARGV, rather than LEN words plus one byte.
1939 Wed Feb  3 18:13:52 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1941         * compatMakefile ($(bindir)/$(instname)): Put - before
1942         install_setgid command line, so its failure won't be an error.
1943         (infodir): New variable.
1944         (install): Depend on $(infodir)/$(instname).info.
1945         ($(infodir)/$(instname).info): New target.
1947         * read.c (read_makefile): If FILENAMES is nil when we see a line
1948         starting with a tab, don't treat it as a command.  Just fall
1949         through, rather than giving an error.
1951         * read.c (read_makefile): If the NO_TARGETS flag is set when we see a
1952         command line, don't clear it before continuing.  We want
1953         subsequent command lines to be ignored as well.
1955         * job.c (new_job): Before expanding each command line, collapse
1956         backslash-newline combinations that are inside var or fn references.
1958 Mon Feb  1 16:00:13 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1960         * compatMakefile (exec_prefix): Default to $(prefix), not /usr/local.
1962         * compatMakefile (make.info): Pass -I$(srcdir) to makeinfo.
1964         * job.c [POSIX] (unblock_sigs): Made global.
1965         [!POSIX] (unblock_sigs): Move defns to job.h.
1966         * job.h [POSIX] (unblock_sigs): Declare.
1968 Sun Jan 31 19:11:05 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1970         * read.c (read_makefile): In vpath parsing, after finding the
1971         pattern token, take entire rest of line as the search path, not
1972         just the next token.
1974         * compatMakefile (remote.o): Depend on remote-*.c.
1976 Thu Jan 28 16:40:29 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1978         * commands.c (set_file_variables): Don't define any F or D versions.
1979         * variable.c (define_automatic_variables): Define them here as
1980         recursively-expanded variables that use the dir and notdir funcs.
1982         * variable.c (target_environment): In v_default case, don't export
1983         o_default or o_automatic variables.
1985         * configure.in (union wait check): Remove ` and ' inside C code;
1986         they confuse the shell script.
1988 Mon Jan 25 13:10:42 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1990         * Version 3.63.1.
1992         * vpath.c (construct_vpath_list): When skipping further processing
1993         of an elt that is ".", don't also skip the code that pushes P past
1994         the next separator.
1996         * compatMakefile (distclean): Don't remove make-*.
1998         * configure.in (HAVE_UNION_WAIT): Try to use WEXITSTATUS if it's
1999         defined.  If one cannot use WEXITSTATUS with a `union wait'
2000         argument, we don't want to believe the system has `union wait' at all.
2002         * remake.c (update_file): Do nothing to print "up to date" msgs.
2003         (update_goal_chain): Do it here instead.
2004         Use the `changed' flag of each goal's `struct dep' to keep track
2005         of whether files_remade (now commands_started) changed around a
2006         call to update_file for that goal.
2007         When a goal is finished, and its file's update_status is zero (i.e.,
2008         success or nothing done), test the `changed' flag and give an "up
2009         to date" msg iff it is clear.
2010         * make.h (files_remade): Renamed to commands_started.
2011         * remake.c: Changed defn.
2012         (update_goal_chain): Changed uses.
2013         * job.c (start_job_command): Increment commands_started here.
2014         (reap_children): Not here.
2016         * remake.c (update_goal_chain): Don't do anything with files'
2017         `prev' members.  update_file now completely handles this.
2019         * variable.c (target_environment): Don't expand recursive
2020         variables if they came from the environment.
2022         * main.c (define_makeflags): For flags with omitted optional args,
2023         store {"", 0} with ADD_FLAG.  When constructing FLAGSTRING, a flag
2024         so stored cannot have more flags appended to the same word.
2026 Fri Jan 22 14:46:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2028         * variable.c (print_variable_set): In vars/bucket calculation,
2029         don't spuriously multiply by 100.
2031         * Version 3.63.
2033         * job.c [!HAVE_UNION_WAIT] (WTERMSIG, WCOREDUMP, WEXITSTATUS):
2034         Don't define if already defined.
2036         * remake.c (update_file): Don't keep track of the command_state before
2037         calling update_file_1.  Remove local variable COMMANDS_FINISHED,
2038         and don't test it to decide to print the "is up to date" msg.
2039         Testing for files_remade having changed should always be sufficient.
2040         The old method lost when we are called in the goal chain run on a
2041         makefile, because the makefile's command_state is already
2042         `cs_finished' from the makefile chain run.
2044         * misc.c [HAVE_SETRE[GU]ID]: Test these to decl setre[gu]id.
2046         * configure.in: Rewrote wait checking.
2047         Use AC_HAVE_HEADERS to check for <sys/wait.h>.
2048         Use AC_HAVE_FUNCS to check for waitpid and wait3.
2049         Use a compile check to test just for `union wait'.
2050         * job.c: Rewrote conditionals accordingly.
2051         [HAVE_WAITPID]: Test this only to define WAIT_NOHANG.
2052         [HAVE_WAIT3]: Likewise.
2053         [HAVE_UNION_WAIT]: Test this to define WAIT_T and W*.
2055         * configure.in: Set CFLAGS and LDFLAGS before all checks.
2057         * dir.c: Add static forward decls of {open,read}_dirstream.
2059 Thu Jan 21 17:18:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2061         * Version 3.62.31.
2063         * job.c [NGROUPS_MAX && NGROUPS_MAX==0]: #undef NGROUPS_MAX.
2065         * compatMakefile (CFLAGS, LDFLAGS): Set to @CFLAGS@/@LDFLAGS@.
2066         * build.template (CFLAGS, LDFLAGS): Same here.
2067         * configure.in: AC_SUBST(CFLAGS) and LDFLAGS.
2068         Set them to -g if not defined in the environment.
2070         * remake.c (library_search): Use LIBNAME consistently, setting it
2071         only once, to be the passed name sans `-l'.
2072         Pass new var FILE to be modified by vpath_search.
2074 Mon Jan 18 14:53:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2076         * Version 3.62.30.
2078         * job.c (start_waiting_jobs): Return when job_slots_used is equal to
2079         job_slots.
2081         * configure.in: Add AC_CONST for the sake of getopt.
2083         * read.c (read_makefile): Continue after parsing `override'
2084         directive, rather than falling through to lossage.
2085         Check for EOL or blank after "override define".
2087         * compatMakefile (.c.o, remote.o): Put $(CFLAGS) after other switches.
2089 Fri Jan 15 12:52:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2091         * Version 3.62.29.
2093         * main.c (define_makeflags): After writing everything into
2094         FLAGSTRING, only back up two chars if [-1] is a dash, meaning we
2095         just wrote " -".  Always terminate the string at *P.
2097         * remake.c (library_search): When constructing names in std dirs,
2098         use &(*LIB)[2] for the stem, not LIBNAME (which points at the
2099         buffer we are writing into!).
2101 Thu Jan 14 13:50:06 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2103         * read.c (read_makefile): Set IN_IGNORED_DEFINE for "override
2104         define" when IGNORING is true.
2106         * compatMakefile (distclean): Remove config.status and build.sh.
2108 Wed Jan 13 16:01:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2110         * Version 3.62.28.
2112         * misc.c (xmalloc, xrealloc): Cast result of malloc/realloc to
2113         (char *).
2115         * arscan.c (ar_scan) [AIAMAG]: Cast read arg to (char *).
2117         * variable.c (define_automatic_variables): Override SHELL value for
2118         origin o_env_override as well as o_env.
2120         * GNUmakefile (build.sh.in): Don't replace %globobjs%.  Instead,
2121         add the names of the glob objects (w/subdir) to %objs%.
2122         * build.template (globobjs): Removed.
2123         Take basename of $objs before linking.
2125 Tue Jan 12 12:31:06 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2127         * Version 3.62.27.
2129         * configure.in (AC_OUTPUT): Also edit build.sh.
2130         * build.template: New file.
2131         * GNUmakefile (build.sh.in): New rule to create it from build.template.
2132         (make-$(version).tar.Z): Depend on build.sh.in.
2134         * main.c (die): Call print_data_base if -p.
2135         (main): Don't call it here.
2137         * compatMakefile (defines): Add @DEFS@.  configure should turn this
2138         into -DHAVE_CONFIG_H.
2140 Mon Jan 11 14:39:23 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2142         * Version 3.62.26.
2144         * misc.c (init_access): Surround with #ifdef GETLOADAVG_PRIVILEGED.
2145         ({make,user,child}_access) [! GETLOADAVG_PRIVILEGED]: Make no-op.
2146         * compatMakefile (install_setgid): New var, set by configure.
2147         (install): Install setgid $(group) only if $(install_setgid) is true.
2149 Fri Jan  8 15:31:55 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2151         * job.c (load_too_high): If getloadavg fails with errno==0, give a
2152         message saying that load limits are not supported.
2154         * vpath.c (construct_vpath_list): Rewrote path deletion code to
2155         not try to use PATH's next link after freeing PATH.
2157         * main.c (define_makeflags): Rewritten; now handles string-valued
2158         option, and has no arbitrary limits.
2159         (switches): Set `toenv' flag for -I and -v.
2161         * main.c (decode_env_switches): Cast return value of alloca to char *.
2163         * misc.c (child_access) [HAVE_SETREUID, HAVE_SETREGID]: Use
2164         setre[gu]id in place of set[gu]id.
2166 Wed Jan  6 15:06:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2168         * main.c (main): Define MAKEOVERRIDES, MAKE, and MAKE_COMMAND with
2169         origin o_default.
2171         * make.h [POSIX]: Don't test this to use ANSI_STRING.
2172         Testing STDC_HEADERS should be sufficient.
2174         * job.h: Declare start_waiting_jobs.
2176         * read.c (read_makefile): Add missing parens in if stmt that find
2177         conditional directives.
2179         * main.c (main): Declare init_dir.
2180         * implicit.c (pattern_search): Always use two % specs in a
2181         DEBUGP2, and always pass two non-nil args.
2182         Cast field width args to int.
2183         Add missing parens in !RULE->subdir if stmt.
2184         * function.c (expand_function, patsubst_expand): Add parens around
2185         assignments inside `while' stmts.
2186         * commands.c (print_commands): Cast field width args to int.
2188         * read.c (do_define): Cast return value of alloca to (char *).
2190         * main.c (init_switches): New function, broken out of decode_switches.
2191         (decode_switches): Take new arg ENV.  If set, ignore non-option
2192         args; print no error msgs; ignore options with clear `env' flags.
2193         (decode_env_switches): Rewritten to chop envar value into words
2194         and pass them to decode_switches.
2195         (switches): Set `env' flag for -I and -v.
2197         * dir.c (init_dir): Cast free to __glob_closedir_hook's type.
2199 Tue Jan  5 14:52:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2201         * Version 3.62.25.
2203         * job.c [HAVE_SYS_WAIT || !USG]: Don't #include <sys/time.h> and
2204         <sys/resource.h>.  <sys/time.h> interacts badly with <time.h>, and
2205         we don't need these anyway.
2207         * configure.in (AC_HAVE_FUNCS): Check for setre[gu]id.
2208         * misc.c ({user,make}_access): Test #ifndef HAVE_SETRE[GU]ID, not
2209         #ifdef POSIX || USG.  SunOS 4.1 is supposedly POSIX.1 compliant,
2210         but its set[gu]id functions aren't; its setre[gu]id functions work.
2212         * misc.c ({user,make,child}_access): Give name of caller in error msgs.
2214         * job.c (load_too_high): Say "cannot enforce load limit" in error msg.
2216         * configure.in: Call AC_PROG_CC.
2217         * compatMakefile (CC): Define to @CC@ (autoconf magic).
2219         * compatMakefile: Add .NOEXPORT magic target.
2221 Mon Jan  4 17:00:03 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2223         * main.c (print_version): Updated copyright to include 93.
2225 Thu Dec 31 12:26:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2227         * make.h [_AIX]: Don't declare alloca.
2229 Tue Dec 29 13:45:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2231         * Version 3.62.24.
2233         * compatMakefile (objs): Add signame.o.
2234         (srcs): Add signame.[ch].
2236         * compatMakefile (srcs): Add config.h.in.
2237         (remote.o): Add -I. before -I$(srcdir).
2239 Mon Dec 28 15:51:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2241         * Version 3.62.23.
2243         * read.c (readline): Fatal when LEN==0, indicating a line starting
2244         with a NUL.
2245         (readline): Take new arg LINENO, for use in error msg.
2246         (read_makefile, do_define): Pass it.
2248         * compatMakefile (glob/libglob.a): Pass -DHAVE_CONFIG_H in CPPFLAGS.
2249         (.c.o): Add -I. before -I$(srcdir).
2251 Wed Dec 23 12:12:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2253         * read.c (read_makefile): Accept and ignore a rule with no targets.
2255         * compatMakefile (ALLOCA_SRC): New variable.
2256         (srcs): Include its value.
2258         * read.c (struct conditional): Renamed member `max_ignoring' to
2259         `allocated'; added new member `seen_else'.
2260         (conditional_line): Initialize seen_else flag when starting an `if...';
2261         set it when we see an `else'; fatal if set when we see `else'.
2262         (read_makefile): Fatal "missing `endif'" if there are any pending
2263         conditionals, not just if we are still ignoring.
2265 Tue Dec 22 15:36:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2267         * compatMakefile (manext): Set to 1, not l.
2268         ($(mandir)/$(instname).$(manext)): Use $(srcdir) for make.man in cmds.
2270         * file.c (file_hash_enter): Don't call uniquize_deps here.
2271         * read.c (record_files): Likewise.
2272         * implicit.c (pattern_search): Likewise.
2273         * commands.c (set_file_variables): Call it only here.
2275         * default.c (default_variables) [__convex__]: FC=fc.
2277         * variable.c (target_environment): Expand the values of recursively
2278         expanded variables when putting them into the environment.
2279         * expand.c (recursively_expand): Made global.
2280         * make.h (recursively_expand): Declare it.
2282         * remake.c (check_dep): Set FILE->command_state to cs_deps_running
2283         when a dep's command_state is cs_running or cs_deps_running.
2285         * read.c (read_makefile): Changed error msg for spurious cmds to
2286         not say "first target".
2288 Sun Dec 20 17:56:09 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2290         * configure.in: Do AC_CONFIG_HEADER right after AC_INIT.
2291         * make.h (HAVE_CONFIG_H): #include "config.h", then #define this.
2292         * compatMakefile (config.h, configure, config.h.in): New rules.
2293         (defines): Removed @DEFS@.
2295 Thu Dec 17 16:11:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2297         * compatMakefile (realclean): Just depend on distclean; no cmds.
2298         (distclean): Do what realclean did before; also remove Makefile and
2299         config.h; don't remove configure.
2300         (info, dvi): New targets; depend on make.{info,dvi}.
2301         (doc): Removed target.
2302         (MAKEINFO, TEXI2DVI): New vars.
2303         (make.info, make.dvi): Use them instead of explicit cmds.
2305 Wed Dec 16 16:25:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2307         * configure.in: Added fcntl.h to AC_HAVE_HEADERS.  getloadavg cares.
2309 Wed Dec  9 15:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2311         * main.c (long_option_aliases): Add --new-file alias for -W.
2313         * default.c (default_variables): Change all C++ to CXX and C++FLAGS
2314         to CXXFLAGS.
2316         * read.c (do_define): Expand the variable name before using it.
2318         * main.c (main): Define variable "MAKE_COMMAND" to argv[0];
2319         define "MAKE=$(MAKE_COMMAND) $(MAKEOVERRIDES)" always.
2321         * remake.c (library_search): Search for libNAME.a in cwd; look in
2322         vpath before looking in standard dirs, not after.
2323         Changed order of std dirs to: /lib, /usr/lib, ${prefix}/lib.
2325 Mon Nov 23 14:57:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2327         * default.c (default_pattern_rules, default_terminal_rules): Added
2328         brackets around initializers.
2330         * variable.c (try_variable_definition): Don't check for LINE[0]=='\t'.
2331         (try_variable_definition): Expand the name before defining the var.
2333         * job.c (init_siglist): Removed function.
2334         Removed decl of `sys_siglist'.
2335         * make.h [! HAVE_SYS_SIGLIST]: #include "signame.h".
2336         [HAVE_SYS_SIGLIST && !SYS_SIGLIST_DECLARED]: Declare sys_siglist
2337         only under these conditions.
2338         * main.c (main): Don't declare init_siglist.
2339         (main) [! HAVE_SYS_SIGLIST]: Call signame_init instead of init_siglist.
2341 Wed Nov 18 14:52:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2343         * read.c (record_files): Don't try to append to FIRSTDEPS if it's
2344         nil; instead just set it to MOREDEPS.
2346 Mon Nov 16 17:49:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2348         * vpath.c (construct_vpath_list): Initialize P to DIRPATH before
2349         loop that sets MAXELEM.
2351 Fri Nov 13 18:23:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2353         * Version 3.62.22.
2355 Thu Nov 12 15:45:31 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2357         * job.c (start_job_command): Under -n, increment files_remade after
2358         processing (i.e., printing) all command lines.
2360 Tue Nov 10 15:33:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2362         * read.c (record_files): Append new deps if this rule has no
2363         commands; prepend them to existing deps if this rule has no commands.
2365         * dir.c (open_dirstream): Return nil if DIR->contents->files is nil.
2367         * read.c (parse_file_seq): Removed last arg STRIP.  Always strip `./'s.
2368         (read_makefile): Changed callers.
2369         * function.c (string_glob): Likewise.
2370         * rule.c (install_pattern_rule): Likewise.
2372 Mon Nov  9 17:50:16 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2374         * remake.c (files_remade): Made global.
2375         (notice_finished_file): Don't increment files_remade here; this
2376         function gets called in many situations where no remaking was in
2377         fact done.
2378         * job.c (reap_children): Do it here instead, when we know that
2379         actual commands have been run for the file.
2380         * make.h (files_remade): Declare it.
2382 Thu Nov  5 18:26:10 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2384         * vpath.c (construct_vpath_list): Allow blanks as well as colons to
2385         separate elts in the search path.
2387         * read.c (read_makefile): Don't fatal on extra tokens in `vpath'.
2388         The search path can contain spaces now.
2390 Tue Nov  3 20:44:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2392         * compatMakefile (check): New target; no-op.
2394         * file.c (file_hash_enter): Mod OLDHASH by FILE_BUCKETS after
2395         testing for OLDHASH==0 but before using the value.
2396         (rename_file): Don't mod OLDHASH by FILE_BUCKETS before passing it
2397         to file_hash_enter.
2399         * file.c (rename_file): Notice when OLDFILE->cmds came from
2400         default.c, and don't try to print ->filename in that case.
2402 Sun Oct 25 01:48:23 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2404         * remake.c (update_file): Don't process F->also_make here.
2405         (notice_finished_file): Don't process FILE->also_make if no attempt
2406         to update FILE was actually made.
2407         Fixed to call f_mtime directly to refresh their modtimes.
2409 Sat Oct 24 22:08:59 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2411         * read.c (find_percent): Don't increment P again after skipping
2412         an escaped %.
2414         * expand.c (variable_expand): In call to patsubst_expand, don't
2415         find `%'s ourselves; let that function do it.
2417         * read.c (read_makefile: record_waiting_files): Don't call
2418         record_files if FILENAMES is nil.
2419         (read_makefile): All alternatives in the parsing, except for rule
2420         lines, fall through to the end of the loop.  At the end of the
2421         loop, do record_waiting_files so we notice later spurious cmds.
2423 Fri Oct 23 15:57:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2425         * variable.c (define_automatic_variables): Free old value of SHELL
2426         before replacing it.
2428 Thu Oct 15 18:57:56 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2430         * compatMakefile (.c.o): Add -I$(srcdir)/glob to flags.
2432         * dir.c (open_dirstream): Cast return value to __ptr_t.
2434         * default.c (default_variables: "GET") [_IBMR2]: Use USG defn.
2436         * make.h (MAXPATHLEN): Moved out of #ifndef POSIX.
2437         (GET_PATH_MAX): Moved from #ifdef POSIX to #ifdef PATH_MAX #else.
2438         Define as (get_path_max ()).
2439         [! PATH_MAX] (NEED_GET_PATH_MAX): Define.
2440         [! PATH_MAX] (get_path_max): Declare fn.
2441         * misc.c [NEED_GET_PATH_MAX] (get_path_max): New function.
2443 Mon Oct 12 13:34:45 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2445         * Version 3.62.21.
2447         * job.c (sys_siglist): Only declare #ifndef SYS_SIGLIST_DECLARED.
2448         * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2449         SYS_SIGLIST_DECLARED.
2451         * dir.c (file_impossible): When initializing DIR->contents, set
2452         DIR->contents->dirstream to nil.
2454         * compatMakefile (GLOB): Define new variable.
2455         (objs): Use it, rather than glob/libglob.a explicitly.
2457         * read.c (parse_file_seq): When stripping "./", handle cases like
2458         ".///foo" and "./////".
2459         * file.c (lookup_file, enter_file): Likewise.
2461 Sun Oct 11 17:00:35 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2463         * dir.c (struct dirstream, {open,read}_dirstream): New
2464         data type and functions to read a directory sequentially.
2465         (init_dir): New function to hook it into glob.
2466         * main.c (main): Call init_dir.
2468         * compatMakefile (objs): Added glob/libglob.a.
2469         * configure.in: Remove code to test for glob.
2471 Fri Oct  9 12:08:30 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2473         * read.c (record_files): Generalized test for NAME pointing
2474         somewhere into F->name.
2476         * variable.c (define_variable_in_set): Free old value when replacing.
2478         * read.c (do_define): Free the linebuffer before returning.
2479         (record_files): When clearing .SUFFIXES deps, free their data.
2480         (multi_glob): Free OLD and its data when replacing it with results
2481         of glob run.
2483         * commands.c (set_file_variables): Use alloca in place of xmalloc
2484         for temp space for $^, $?, et al.
2486         * dir.c (struct directory): New member `contents' replaces `files'
2487         and `dirstream'.
2488         (struct directory_contents): New type.
2489         (directories_contents): New hash table.
2490         (dir_struct_file_exists_p): Take a struct directory_contents.
2491         (dir_file_exists_p): Pass it the `contents' member of the dir found.
2492         (dir_struct_file_exists_p): Renamed to dir_contents_file_exists_p;
2493         made static.  Return 0 if DIR is nil (meaning it couldn't be stat'd).
2494         (dir_file_exists_p, find_directory): Change all callers.
2495         (file_impossible): Use DIR->contents, initializing it if nil.
2496         (print_dir_data_base): Use DIR->contents, and print out device and
2497         inode numbers with each directory.
2499         * Changes for performance win from John Gilmore <gnu@cygnus.com>:
2500         * dir.c (DIRECTORY_BUCKETS): Increase to 199.
2501         (DIRFILE_BUCKETS): Decrease to 107.
2502         (find_directory): Allocate and zero a multiple of
2503         sizeof (struct dirfile *), not of sizeof (struct dirfile).
2504         (dir_struct_file_exists_p): New function, nearly all code from
2505         dir_file_exists_p.
2506         (dir_file_exists_p): Just call find_directory+dir_struct_file_exists_p.
2507         * vpath.c (selective_vpath_search): Remove redundant
2508         dir_file_exists_p call.
2510         * configure.in: Comment out glob check; always use our code.
2512 Fri Oct  2 19:41:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2514         * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2515         HAVE_SYS_SIGLIST; after doing #define sys_siglist _sys_siglist, we
2516         do have it.
2518 Wed Sep 30 19:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2520         * main.c (main): Don't do -w automatically if -s.
2522 Tue Sep 29 21:07:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2524         * main.c (printed_version): Move variable inside print_version.
2525         (print_version): Return immediately if printed_version is set.
2526         (die): Don't test printed_version here.
2527         (decode_switches): Under -v, do print_version before giving usage.
2528         (DESCRIPTION_COLUMN): New macro.
2529         (decode_switches): Use it when printing the usage message.
2530         Leave at least two spaces between options and their descriptions.
2532 Fri Sep 25 13:12:42 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2534         * Version 3.62.20.
2536 Wed Sep 16 16:15:22 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2538         * read.c (read_makefile): Save errno value from trying to open
2539         FILENAME, and restore it before erring; otherwise we get the errno
2540         value from the last elt of the search path.
2542 Tue Sep 15 15:12:47 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2544         * main.c (long_option_aliases): Add --stop for -S.
2546         * read.c (word1eq): Do strncmp before dereferencing someplace that
2547         may be out in space.
2549 Wed Sep  9 15:50:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2551         * remake.c (notice_finished_file): If all the command lines were
2552         recursive, don't do the touching.
2554         * job.c (start_job_command): Don't check for + here.
2555         * commands.c (chop_commands): Do it here instead.
2557         * default.c (default_terminal_rules): Prepend + to cmds for RCS.
2559 Wed Sep  2 17:53:08 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2561         * compatMakefile (objs): Include $(ALLOCA).
2563         * make.h [CRAY]: Move #define signal bsdsignal to before #includes.
2565 Thu Aug 27 17:45:43 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
2567         * read.c (default_include_directories): Add INCLUDEDIR first.
2568         * compatMakefile (includedir): Define.
2569         (defines): Add -D for INCLUDEDIR="$(includedir)".
2571         * read.c (read_makefile): Grok multiple files in `include';
2572         globbing too.
2574         * remake.c (library_search): New function.
2575         (library_file_mtime): Remove function.
2576         (f_mtime): Use library_search instead of library_file_mtime.
2577         * compatMakefile (libdir): Define.
2578         (defines): Add -D for LIBDIR="$(libdir)".
2579         * make.texinfo (Libraries/Search): Document change.
2581         * file.c (rename_file): Fix file_hash_enter call with missing arg.
2583 Wed Aug 26 17:10:46 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2585         * Version 3.62.19.
2587         * main.c (main): Set command_state to cs_finished for temp files
2588         made for stdin makefiles.
2590         * main.c (decode_switches): Don't tell getopt to return non-option
2591         args in order.
2592         Ignore an argument of `-'.
2594 Thu Aug 20 13:36:04 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2596         * job.c (start_job_command): If (touch_flag && !RECURSIVE), ignore
2597         the command line and go to the next.
2598         (notice_finished_file): Under -t, touch FILE.
2599         * remake.c (remake_file): Don't touch it here.
2601 Wed Aug 19 16:06:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2603         * function.c (pattern_matches): Use temporary for strlen (WORD)
2604         instead of two function calls.
2606         * compatMakefile (LOAD_AVG): Remove variable and comments.
2608 Tue Aug 18 14:58:58 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2610         * make.texinfo (Running): Node renamed to `make Invocation'.
2612 Fri Aug 14 12:27:10 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2614         * arscan.c (ar_name_equal): Don't compare [MAX-3..MAX] if
2615         NAMELEN != MEMLEN.
2617 Thu Aug 13 17:50:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2619         * Version 3.62.18.
2621         * main.c: Don't #include <time.h>; make.h already does.
2623 Mon Aug 10 17:03:01 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2625         * implicit.c (pattern_search): Fixed copying of suffix when building
2626         also_make elts.
2628         * function.c (expand_function: `shell'): Make sure BUFFER is
2629         null-terminated before replacing newlines.
2631         * compatMakefile (mandir): Use man$(manext), not always manl.
2633 Sun Aug  2 01:42:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2635         * rule.c (new_pattern_rule): Not static.
2636         * rule.h: Declare it.
2638         * file.c (file_hash_enter): New function, most code from rename_file.
2639         (rename_file): Call it.
2640         * file.h (file_hash_enter): Declare it.
2642         * dep.h: Doc fix.
2644 Thu Jul 30 15:40:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2646         * main.c (decode_switches): Handle usage_and_exit when building
2647         long options vector.
2649         * default.c (default_terminal_rules): Make RCS rules use $(CHECKOUT,v).
2650         (default_variables): Define CHECKOUT,v (hairy).
2652         * make.h [!HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2653         sys_siglist to _sys_siglist.
2655 Sun Jul 26 16:56:32 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2657         * NEWS: Add header and tail copyright info like Emacs NEWS.
2659         * make.h [ANSI_STRING]: Don't #define index, rindex, bcmp, bzero,
2660         bcopy if already #define'd.
2661         [STDC_HEADERS] (qsort, abort, exit): Declare here.
2662         [! __GNU_LIBRARY__ && !POSIX]: Not here.
2664         * make.h [_AIX]: #pragma alloca first thing.
2666         * job.c (start_waiting_job): Set the command_state to cs_running
2667         when we queue a job on waiting_jobs.
2669 Fri Jul 24 02:16:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2671         * variable.c (define_automatic_variables): Use "" instead of nil
2672         for empty value.
2674 Thu Jul 23 22:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2676         * Version 3.62.17.
2678         * main.c (struct command_switch.type): Add alternative usage_and_exit.
2679         (command_switches): Add -h/--help.
2681 Thu Jul 16 14:27:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2683         * GNUmakefile (make-$(version).tar.Z): Include NEWS, not CHANGES.
2684         * README.template: Mention NEWS.
2685         * CHANGES: Renamed to NEWS.
2687         * main.c [! STDC_HEADERS] [sun]: Don't declare exit.
2689 Tue Jul 14 18:48:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2691         * main.c (main): Set -o files' command_states to cs_finished.
2693         * rule.c (count_implicit_rule_limits): Decrement num_pattern_rules
2694         when tossing a rule.
2696         * main.c (main): Use alloca only in simple local var assignment,
2697         for braindead SGI compiler.
2699         * rule.c (print_rule_data_base): Barf if num_pattern_rules is
2700         inconsistent with the number computed when listing them.
2702 Mon Jul 13 17:51:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2704         * commands.c (set_file_variables): For $? and $^ elts that are archive
2705         member refs, use member name only.
2707 Fri Jul 10 00:05:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2709         * variable.h (struct variable.export): Add new alternative v_ifset.
2710         * variable.c (target_environment): Check for it.
2711         (define_automatic_variables): Set it for MAKEFILES.
2713 Thu Jul  9 21:24:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2715         * compatMakefile (objs): Remove getloadavg.o; $(extras) gets it.
2716         (remote.o): Use $(srcdir)/remote.c, not $remote.c<.
2717         (distclean, mostlyclean): New targets.
2719 Tue Jul  7 19:12:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2721         * Version 3.62.16.
2723         * compatMakefile (config.status): Remove rule.
2725         * job.c (start_waiting_job): Free C after using C->file, not before.
2727 Sat Jul  4 20:51:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2729         * commands.c, job.c, main.c, make.h, remote-cstms.c: Use #ifdef
2730         HAVE_* instead of #ifndef *_MISSING.
2731         * configure.in: Use AC_HAVE_FUNCS instead of AC_MISSING_FUNCS (gone).
2733 Thu Jul  2 18:47:52 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2735         * main.c (main): makelevel>0 or -C implies -w.
2737 Tue Jun 30 20:50:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2739         * file.c, job.c, function.c: Don't #include <errno.h>.
2740         make.h: Do it here instead.
2741         * arscan.c (ar_member_touch): Don't declare errno.
2743 Thu Jun 25 17:06:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2745         * GNUmakefile (make-$(version).tar.Z): Depend on INSTALL, configure.in.
2747         * remake.c (update_file): If commands or deps are running after
2748         update_file_1 returns, break out of the :: rule (->prev) loop and
2749         just return.
2751         * job.c (job_next_command): New function; code from start_job.
2752         (start_job_command): Renamed from start_job.  Call job_next_command
2753         and recurse for empty command lines and -n.
2754         (start_waiting_job): Call start_job_command, not start_job.
2755         (new_job): Call job_next_command to prime the child structure, and
2756         then call start_waiting_job.
2757         (reap_children): Use job_next_command and start_job_command.
2758         (start_waiting_job): Call start_remote_job_p here, and store its
2759         result in C->remote.  If zero, check the load average and
2760         maybe put C on waiting_jobs.
2761         (start_job_command): Test CHILD->remote rather than calling
2762         start_remote_job_p.  Don't do load avg checking at all here.
2764         * main.c (main): Don't handle SIGILL, SIGIOT, SIGEMT, SIGBUS,
2765         SIGSEGV, SIGFPE or SIGTRAP.
2767         * compatMakefile (glob/libglob.a): Don't pass srcdir to sub-make.
2768         configure will set it in glob/Makefile.
2770 Wed Jun 24 19:40:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2772         * dir.c [DIRENT] (direct): Don't define to dirent.
2773         [! DIRENT] (direct): Define to dirent.
2774         (dir_file_exists_p): Use struct dirent instead of struct direct.
2776         * make.h (getcwd): No space between macro and ( for args!
2778         * job.c (start_job): Don't put the job on waiting_jobs if
2779         job_slots_used==0.
2781         * make.texinfo (Missing): Shortened title.
2783 Tue Jun 23 18:42:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2785         * file.c (remove_intermediates): Print "rm" commands under -n.
2787 Mon Jun 22 16:20:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2789         * Version 3.62.15.
2791 Fri Jun 19 16:20:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2793         * arscan.c [M_UNIX]: #undef M_XENIX.
2795 Wed Jun 17 17:59:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2797         * default.c (default_terminal_rules): Put @ prefix on RCS cmds.
2799 Tue Jun 16 19:24:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2801         * compatMakefile (getloadavg.o): Removed special rule.
2802         (CFLAGS): Don't include $(defines).
2803         (.c.o): Define suffix rule.
2804         (glob/libglob.a): Pass CPPFLAGS=$(defines) to submake.
2805         (GETOPT_SRC, srcs, tagsrcs): Prefix files with $(srcdir)/.
2807         * arscan.c (ar_name_equal): Moved local vars inside #if'd block.
2809         * make.h (max): Removed.
2810         * expand.c (variable_buffer_output): Don't use it.
2812         * compatMakefile (INSTALL): Define.
2813         (Makefile): New rule to make from Makefile.in.
2814         (srcdir): Define.
2815         (VPATH): Define.
2816         (getloadavg.o, remote.o): Use autoconf $foo< hack.
2818         * commands.c (fatal_error_signal): Removed return.
2820 Mon Jun 15 17:42:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2822         * Version 3.62.14.
2824         * make.texinfo (Summary): New node.
2825         (Special Targets): Mention .EXPORT_ALL_VARIABLES here.
2827         * variable.c (max): Moved to make.h.
2829         * compatMakefile (objs, srcs): Added ar & arscan.
2831         * job.c (start_waiting_job): New function, 2nd half of new_job.
2832         (new_job): Call it.
2833         (start_waiting_jobs): New function.
2834         * remake.c (update_goal_chain): Call start_waiting_jobs at the top
2835         of the main loop.
2836         * compatMakefile (objs, srcs): Removed load, added getloadavg.
2838 Fri Jun 12 19:33:16 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2840         * job.c (load_too_high): New function.  Uses getloadavg.
2841         (waiting_jobs): New variable.
2842         (start_job): Don't call wait_to_start_job.  Instead, if
2843         load_too_high returns nonzero, add the child to the
2844         `waiting_jobs' chain and return without starting the job.
2846 Thu Jun 11 00:05:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2848         * expand.c (variable_buffer_output): Made global again.
2849         * variable.h: And declare it.
2851         * arscan.c (PORTAR): Define for all systems if PORT5AR is not defined.
2852         (AR_NAMELEN, AR_TRAILING_SLASH): Removed.
2853         (ar_scan): Don't use it.  Don't #ifdef AR_TRAILING_SLASH; just look
2854         for a slash in the archive at run time.
2855         (ar_name_equal): Rewrote .o hacking to not use AR_NAMELEN, and to
2856         cope with trailing-slash and non-trailing-slash archives.
2858         * main.c (main) [! SETVBUF_REVERSED]: Test this instead of USGr3 et al.
2859         [SETVBUF_REVERSED]: Always allocate a buffer ourselves.
2861         * load.c (load_average) [sgi]: Use sysmp call.
2863         * compatMakefile (INSTALL_DATA, INSTALL_PROGRAM): Define.
2864         ($(bindir)/$(instname), $(mandir)/make.$(manext)): Use them.
2866         * make.h [HAVE_VFORK_H]: #include <vfork.h>.
2867         (vfork, VFORK_NAME): Don't define.
2868         * job.c (start_job): Use "vfork" in place of VFORK_NAME.
2870         * make.h [HAVE_LIMITS_H, HAVE_SYS_PARAM_H]: If #define'd, #include
2871         the each file.  Rearranged PATH_MAX hacking.
2872         * job.c: Rearranged NGROUPS_MAX hacking.
2874         * remake.c (fstat, time): Don't declare.
2876         * compatMakefile (defines): Value is @DEFS@.
2877         (LOADLIBES): Value is @LIBS@.
2878         (extras): Value is @LIBOBJS@.
2879         (ARCHIVES, ARCHIVES_SRC, ALLOCASRC): Removed.
2880         * arscan.c, ar.c: Surround body with #ifndef NO_ARCHIVES.
2882         * misc.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl get*id.
2884         * make.h [GETCWD_MISSING]: Test instead of !USG && !POSIX et al.
2885         (getcwd): Just declare if present.  If not, declare as a macro
2886         using getwd, and declare getwd.
2887         [PATH_MAX] (GET_PATH_MAX): #define to PATH_MAX.
2888         * main.c (main, log_working_directory): Use getcwd instead of getwd.
2890         * main.c (main) [SETLINEBUF_MISSING]: Test this instead of USG.
2892         * make.h (SIGHANDLER, SIGNAL): Removed.
2893         (RETSIGTYPE): Define if not #define'd.
2894         * main.c (main): Use signal in place of SIGNAL.
2896         * main.c [SYS_SIGLIST_MISSING]: Test instead of USG.
2898         * job.c (search_path) [GETGROUPS_MISSING]: Test instead of USG.
2899         [HAVE_UNISTD_H]: Test instead of POSIX to not decl getgroups.
2901         * main.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl chdir.
2902         [! STDC_HEADERS]: Test instead of !POSIX to decl exit & atof.
2904         * job.c (child_handler), commands.c (fatal_error_signal): Return
2905         RETSIGTYPE instead of int.
2906         * main.c (main): Declare fatal_error_signal and child_handler here
2907         to return RETSIGTYPE; removed top-level decl of former.
2909         * commands.c (fatal_error_signal), job.c (unblock_sigs, start_job),
2910         main.c [SIGSETMASK_MISSING]: Test this instead of USG.
2912 Wed Jun 10 22:06:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2914         * job.c [HAVE_WAITPID]: Test this instead of USG.
2915         [! HAVE_UNISTD_H]: Test this instead of !POSIX to declare misc fns.
2916         (GID_T): Don't #define.
2917         (search_path): Use gid_t instead of GID_T.
2918         [GETDTABLESIZE_MISSING, SYS_SIGLIST_MISSING, DUP2_MISSING]: Test
2919         these individually instead of USG for all.
2920         * make.h (ctime): Don't declare.  #include time.h instead.
2921         [HAVE_UNISTD_H]: #include <unistd.h> and #define POSIX #ifdef
2922         _POSIX_VERSION.
2923         * dir.c [__GNU_LIBRARY__] (D_NAMLEN): Define to use d_namlen member.
2924         * make.h [NEED_MEMORY_H]: Only include memory.h #ifdef this.
2926         * arscan.c: Removed #ifdef mess about string.h et al.
2927         Just #include make.h instead.
2928         * make.h (fstat, atol): Declare.
2930         * commands.c (fatal_error_signal): Don't use sigmask to check for
2931         propagated signals; use ||s instead.
2932         (PROPAGATED_SIGNAL_MASK): Removed.
2933         (fatal_error_signal) [POSIX]: Use sigprocmask in place of sigsetmask.
2935         * variable.c (variable_buffer, variable_buffer_length,
2936         initialize_variable_output, variable_output): Moved to expand.c;
2937         made all static.
2938         (struct output_state, save_variable_output,
2939         restore_variable_output): Removed.
2940         * expand.c (initialize_variable_output): Put a NUL at the beginning
2941         of the new buffer after allocating it.
2942         (allocated_variable_expand_for_file): Don't use
2943         {save,restore}_variable_output.  Do it by hand instead, keeping
2944         state on the stack instead of malloc'ing it.
2945         (allocated_variable_expand): Removed.
2946         * variable.h (allocated_variable_expand): Define here as macro.
2947         (variable_buffer_output, initialize_variable_output,
2948         save_variable_output, restore_variable_output): Removed decls.
2950         * read.c (conditional_line): For an if cmd, if any elt of the
2951         conditionals stack is ignoring, just push a new level that ignores
2952         and return 1; don't evaluate the condition.
2954 Thu Jun  4 21:01:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2956         * main.c (main): Put #ifdef's around frobbing SIGSYS and SIGBUS.
2958         * job.c (getdtablesize): Don't declare or #define if already #define'd.
2960 Wed Jun  3 23:42:36 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2962         * file.c (snap_deps): If `.EXPORT_ALL_VARIABLES' is a target, set
2963         export_all_variables.
2964         * make.texinfo (Variables/Recursion): Document .EXPORT_ALL_VARIABLES.
2966 Tue Jun  2 21:08:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2968         * Version 3.62.13.
2970         * commands.c (set_file_variables): Calculate length for ^D and ?D
2971         individually, making sure to give them at least enough space for "./".
2973         * make.h [CRAY]: #define signal to bsdsignal.
2975         * default.c (default_variables) [CRAY]: Define PC, SEGLDR,
2976         CF77PPFLAGS, CF77PP, CFT, CF, and FC.
2978         * arscan.c (AR_HDR_SIZE): Define to sizeof (struct ar_hdr), if it
2979         wasn't defined by <ar.h>.
2981 Thu May 28 00:56:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2983         * Version 3.62.12.
2985 Tue May 26 01:26:30 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2987         * rule.c (new_pattern_rule): Initialize LASTRULE to nil, not
2988         pattern_rules.
2990 Mon May 25 19:02:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2992         * main.c (decode_switches): Initialize all the long_option elt members.
2994 Thu May 21 16:34:24 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
2996         * make.texinfo (Text Functions): Correct filter-out description.
2998 Tue May 19 20:50:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3000         * compatMakefile (realclean): Don't remove backup files.
3002         * main.c (decode_switches): Allocate ARGC+1 elts in `other_args'.
3004 Sun May 17 16:38:48 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3006         * Version 3.62.11.
3008 Thu May 14 16:42:33 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3010         * job.c (reap_children): Don't die if wait returns EINTR.
3012 Wed May 13 18:28:25 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3014         * job.c (reap_children): Always run the next command for a
3015         successful target.  If we are going to die, we don't want to leave
3016         the target partially made.
3018 Tue May 12 00:39:19 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3020         * job.c (construct_command_argv_internal): After loop, if we only
3021         have one word, check it for being a shell command.
3023         * main.c (decode_switches): Allocate ARGC slots in other_args to
3024         begin with, so we never need to worry about growing it.
3025         If we get a non-option arg and POSIXLY_CORRECT is in the
3026         environment, break out of the loop.  After the loop, add all remaining
3027         args to other_args list.
3029         * main.c (decode_switches): For positive_int and floating switches
3030         when optarg is nil, use next arg if it looks right (start with a
3031         digit, or maybe decimal point for floating).
3033         * variable.c (define_automatic_variables): Always set SHELL to
3034         default if it comes from the environment.  Set its export bit.
3035         * make.texinfo (Environment): Document change.
3037 Mon May 11 00:32:46 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3039         * Version 3.62.10.
3041         * compatMakefile (tags, TAGS): Use vars for cmds.
3042         (ETAGS, CTAGS): Define.
3044         * main.c (decode_switches): If a switches elt has a nil long_name,
3045         make the long option name elt be "".
3046         Fixed loop to not ignore all the options.
3048         * make.texinfo (Option Summary): Added long options.
3050         * main.c (switches): Changed -m's description to "-b".
3051         (decode_switches): When printing the usage message, don't print
3052         switches whose descriptions start with -.
3053         When constructing the list of names for switch -C, search the
3054         switches vector for switches whose descriptions are "-C".
3056         * main.c (switches): Call -S --no-keep-going, not --dont-keep-going.
3057         Call -I --include-dir, not --include-path.
3058         (long_option_aliases): Added --new == -W, --assume-new == -W,
3059         --assume-old == -o, --max-load == -l, --dry-run == -n, --recon == -n,
3060         --makefile == -f.
3062         * main.c (switches): Removed bogus "silent" elt.
3063         (long_option_aliases): Define new var.
3064         (decode_switches): Add long_option_aliases onto the end of the long
3065         options vector created for getopt_long.
3066         Look through long_option_aliases for extra names to list
3067         in usage message.
3069 Sat May  9 00:21:05 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3071         * main.c (log_working_directory): Fixed to properly not print the
3072         leaving message when we haven't printed the entering message.
3074 Fri May  8 21:55:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3076         * main.c (struct command_switch): Added elts `long_name',
3077         `description', and `argdesc'.
3078         (switches): Added initializers for new members.
3079         (decode_switches): Rewritten to use getopt_long.
3080         * compatMakefile (GETOPT, GETOPT_SRC): Define.
3081         (objs, srcs): Include them.
3083         * job.c (child_died): Renamed to dead_children; made static.
3084         (child_handler): Increment dead_children instead of setting child_died.
3085         (reap_children): Decrement dead_children instead of clearing
3086         child_died.  The point of all this is to avoid printing "waiting
3087         for unfinished jobs" when we don't actually need to block.
3088         This happened when multiple SIGCHLDs before reap_children was called.
3090         * job.c (reap_children): If ERR is set, so we don't call start_job
3091         on the child being reaped, instead set its command_state to
3092         cs_finished.
3093         (reap_children, child_handler, new_job): I added several
3094         debugging printf's while fixing this.  I left them in if (debug_flag)
3095         because they may be useful for debugging this stuff again.
3097 Wed May  6 22:02:37 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3099         * read.c (read_makefile): v_export is not 1.
3101 Mon May  4 17:27:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3103         * Version 3.62.9.
3105         * variable.c (export_all_variables): New variable.
3106         (target_environment): Export variables whose `export' member is
3107         v_default if export_all_variables is set and their names are benign.
3108         * variable.h: Declare export_all_variables.
3109         * read.c (read_makefile): If export or unexport is given with no
3110         args, set or clear export_all_variables, respectively.
3112         * variable.c (target_environment): Exclude MAKELEVEL in the loop,
3113         so it isn't duplicated when we add it at the end.
3115 Sun May  3 17:44:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3117         * Version 3.62.8.
3119         * variable.h (struct variable): Added new member `export'.
3120         * variable.c (define_variable_in_set): Initialize it to v_default.
3121         (target_environment): Don't check for .NOEXPORT.
3122         Export variables whose `export' member is v_default and that would
3123         have been exported under .NOEXPORT, and variables whose `export'
3124         member is v_export.
3125         (try_variable_definition): Return the variable defined.
3126         * variable.h (try_variable_definition): Changed decl.
3127         * read.c (read_makefile): Recognize `export' and `unexport' directives.
3129 Fri May  1 11:39:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3131         * main.c (main) [POSIX]: Reversed args to sigaddset.
3133 Thu Apr 30 17:33:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3135         * job.c [POSIX || !USG] (unblock_sigs): New fn.
3136         (start_job): Block signals before forking.
3137         (new_job): Unblock signals after putting the new child on the chain.
3138         * main.c (main) [POSIX]: Use sigset_t fatal_signal_set instead of
3139         int fatal_signal_mask.
3141         * load.c [sgi] (LDAV_CVT): Define.
3143 Wed Apr 29 17:15:59 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3145         * Version 3.62.7.
3147         * load.c (load_average) [sgi]: Clear the high bit of the address
3148         from the symbol table before looking it up in kmem.
3150         * misc.c (fatal, makefile_fatal): Put *** in fatal error messages.
3151         (remake_file): No longer needed in message here.
3153         * main.c (die): Call reap_children with BLOCK==1.
3155 Tue Apr 28 20:44:35 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3157         * rule.c (freerule): Don't set LASTRULE->next if LASTRULE is nil.
3159 Sun Apr 26 15:09:51 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3161         * rule.c (count_implicit_rule_limits): Initialize LASTRULE to nil,
3162         not to head of chain.  Extract next ptr before we might do
3163         freerule, and use that for next iteration.
3164         (freerule): Still do next ptr frobbing if LASTRULE is nil.
3166 Tue Apr 21 03:16:29 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3168         * job.c (child_error): Removed extra %s from error msg format.
3170         * Version 3.62.6.
3172         * job.c (reap_children): Don't start later commands in a sequence
3173         if ERR is nonzero.
3175         * job.c (new_job): Always call reap_children with BLOCK==0 first thing.
3177         * job.c (reap_children): New function; work that used to be done in
3178         child_handler.
3179         (child_died): New global var.
3180         (child_handler): Now just sets child_died.
3181         (wait_for_children): Removed.
3182         (unknown_children_possible, block_signals, unblock_signals,
3183         push_signals_blocked_p, pop_signals_blocked_p): Removed.
3184         (child_execute_job): Removed call to unblock_signals.
3185         (new_job): Removed calls to push_signals_blocked_p and
3186         pop_signals_blocked_p.
3187         * job.h: Declare reap_children, not wait_for_children.
3188         * commands.c (fatal_error_signal), job.c (new_job),
3189         load.c [LDAV_BASED] (wait_to_start_job), main.c (die),
3190         remake.c (update_goal_chain), function.c (expand_function: `shell'):
3191         Changed wait_for_children calls to reap_children.
3192         Some needed to be loops to wait for all children to die.
3193         * commands.c (fatal_error_signal), main.c (main,
3194         log_working_directory), function.c (expand_function): Removed calls
3195         to push_signals_blocked_p and pop_signals_blocked_p.
3196         * job.h: Removed decls.
3198         * job.h: Added copyright notice.
3200 Wed Apr 15 02:02:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3202         * job.c (child_error): No *** for ignored error.
3204 Tue Apr 14 18:31:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3206         * implicit.c (DEBUGP2): Use do ... while (0) instead of if ... else to
3207         avoid compiler warnings.
3209         * read.c (parse_file_seq): Don't remove ./ when it is followed by a
3210         blank.
3212 Mon Apr 13 21:56:15 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3214         * make.h (DEBUGPR): Use do ... while (0) instead of if ... else to
3215         avoid compiler warnings.
3217         * remake.c (notice_finished_file): Run file_mtime on the also_make
3218         files, so vpath_search can happen.
3220         * GNUmakefile (tests): Use perl test suite from csa@sw.stratus.com.
3221         (alpha-files): Include test suite tar file.
3223 Fri Apr  3 00:50:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3225         * Version 3.62.5.
3227 Wed Apr  1 05:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3229         * remake.c (update_file, update_file_1): Do check_renamed on elts
3230         of dep chains when traversing them.  Something unrelated might have
3231         renamed one of the files the dep chain points to.
3233         * file.c (rename_file): If FILE has been renamed, follow its
3234         `renamed' ptr, so we get to the final real FILE.  Using the renamed
3235         ones loses because they are not in the hash table, so the removal
3236         code loops infinitely.
3238         * read.c (read_all_makefiles): Clobber null terminator into
3239         MAKEFILES expansion, so string passed to read_makefile is properly
3240         terminated.
3242 Mon Mar 30 20:18:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3244         * commands.c (set_file_variables): $* for archive member with
3245         explicit cmds is stem of member, not of whole `lib(member)'.
3247 Thu Mar 26 15:24:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3249         * Version 3.62.4.
3251 Tue Mar 24 05:20:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3253         * rule.c (new_pattern_rule): Rules are identical only if all their
3254         targets match (regardless of order).
3256 Wed Mar 11 13:49:54 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3258         * remake.c (remake_file): Changed error "no way to make" to "no
3259         rule to make".  Fiat Hugh.
3261         * make.texinfo (Last Resort): Describe %:: rules and new .DEFAULT
3262         behavior.
3264         * remake.c (update_file_1): Only use .DEFAULT cmds if FILE is not a
3265         target.
3267 Tue Mar 10 18:13:13 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3269         * remote-stub.c, remote-cstms.c (start_remote_job): Take new arg,
3270         environment to pass to child.
3271         * job.c (start_job): Pass it.
3273 Mon Mar  9 19:00:11 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3275         * file.c (enter_file): Also strip ./s here, to get command-line
3276         target names.
3278         * remote-cstms.c: Add comment telling people to leave me alone.
3280         * compatMakefile (manpage install): Remove target before copying.
3282 Tue Mar  3 18:43:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3284         * make.texinfo (Missing): Renamed to "Incompatibilities and ...".
3285         Added paragraph describing $? incompatibility with Unix and POSIX.2.
3287 Sun Mar  1 15:50:54 1992  Roland McGrath  (roland@nutrimat.gnu.ai.mit.edu)
3289         * function.c (expand_function: `shell'): Don't declare fork or pipe.
3290         Use vfork instead of fork.
3292 Tue Feb 25 22:05:32 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3294         * make.texinfo (Chained Rules): Clarify .PRECIOUS to save
3295         intermediate files.
3297         * load.c [sun] (LDAV_CVT): Define to divide by FSCALE.
3299 Sun Feb 16 02:05:16 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3301         * Version 3.62.3.
3303 Sat Feb 15 17:12:20 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3305         * compatMakefile (makeinfo): Use emacs batch-texinfo-format fn.
3307 Fri Feb 14 00:11:55 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3309         * read.c (read_makefile): Correctly handle define & endef in ifdefs.
3311         * read.c (record_files): Pass arg for %s in error msg.
3313         * main.c (main) [__IBMR2, POSIX]: Use correct (a la USGr3) setvbuf
3314         call.
3316 Wed Feb 12 12:07:39 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3318         * make.texinfo (Libraries/Search): Say it does /usr/local/lib too.
3320 Sun Feb  9 23:06:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3322         * read.c (read_makefile): Check for extraneous `endef' when ignoring.
3324 Thu Feb  6 16:15:48 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3326         * Version 3.62.2.
3328 Tue Feb  4 20:04:46 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3330         * job.c (construct_command_argv_internal): Correctly ignore
3331         whitespace after backslash-NL.
3333 Fri Jan 31 18:30:05 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3335         * compatMakefile: Ignore errors from chgrp and chmod when installing.
3337 Wed Jan 29 18:13:30 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3339         * main.c (main): When setting MAKELEVEL in the env to re-exec,
3340         allocate space so as not to clobber past the end of the old string.
3342         * make.h [HAVE_ALLOCA_H]: Include <alloca.h>
3343         * compatMakefile (defines): Document HAVE_ALLOCA_H.
3345 Mon Jan 20 13:40:05 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3347         * make.h [VFORK_MISSING]: Use fork instead.
3348         * compatMakefile (defines): Document same.
3350         * job.c (construct_command_argv_internal): Don't create an empty
3351         arg if backslash-NL is at beginning of word.
3353 Sun Jan 19 16:26:53 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3355         * main.c [DGUX]: Call setvbuf as for USGr3.
3357         * job.c (construct_command_argv_internal): Notice correctly that
3358         backslash-NL is the end of the arg (because it is replaced with a
3359         space).
3361 Thu Jan 16 18:42:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3363         * job.c (construct_command_argv_internal): If SHELL is nil, set it
3364         to default_shell before proceeding.
3366         * make.h [sgi]: No alloca.h, after all.
3368 Wed Jan 15 12:30:04 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3370         * read.c (multi_glob): Cons up the chain of the results of glob
3371         from back to front, so it comes out in forward order.
3373         * job.c (construct_command_argv_internal): Don't eat char following
3374         backslash-NL.
3376 Mon Jan 13 19:16:56 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3378         * Version 3.62.1.
3380         * default.c (default_variables) [ultrix]: GET=get, like USG.
3382         * job.c (construct_command_argv_internal): Remove tabs following
3383         backslash-NL combos in the input line, so they don't show up when
3384         that line is printed.
3386         * read.c (read_makefile): Don't collapse_continuations the line on
3387         input; do it on the copy we do remove_comments on.
3388         For rule lines, collapse_continuations the line after chopping
3389         ";cmds" off the end, so we don't eat conts in the cmds.
3390         Give error for ";cmds" with no rule.
3391         * job.c (construct_command_argv_internal): Eat backslash-NL combos
3392         when constructing the line to recurse on for slow, too.
3394 Sat Jan 11 02:20:27 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3396         * file.c (enter_file): Don't strip leading `./'s.
3397         * read.c (parse_file_seq): Take new arg STRIP; if nonzero, do it here.
3398         * default.c (set_default_suffixes), function.c (string_glob),
3399         read.c (read_makefile), rule.c (install_pattern_rule): Change callers.
3401         * default.c (default_variables) [_IBMR2]: FC=xlf
3403         * job.c (construct_command_argv_internal): Turn backslash-NL and
3404         following whitespace into a single space, rather than just eating
3405         the backslash.
3407         * make.texinfo (Copying): @include gpl.texinfo, rather than
3408         duplicating its contents.
3410 Fri Nov  8 20:06:03 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3412         * job.c (construct_command_argv_internal): Make sure not to bother
3413         processing an empty line.
3415         * Version 3.62.0.
3417         * job.c (construct_command_argv_internal): Always recurse for slow;
3418         simple case didn't handle finding newlines.
3420 Tue Nov  5 18:51:10 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3422         * job.c (construct_command_argv_internal): Set RESTP properly when
3423         slow; don't \ify past a newline.
3425 Fri Nov  1 19:34:28 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3427         * make.h [sgi]: #include <alloca.h>.
3431 See ChangeLog.1 for earlier changes.