.
[make.git] / ChangeLog
blob743ae7c8bd2a3a128bdf3f30b282568a880520d0
1 Tue Mar  7 17:31:06 1995  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
3         * main.c (decode_switches): If non-option arg is "-", ignore it.
5 Mon Mar  6 23:57:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7         * Version 3.72.8.
9 Wed Feb 22 21:26:36 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
11         * Version 3.72.7.
13 Tue Feb 21 22:10:43 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
15         * main.c (main): Pass missing arg to tmpnam.
17         * configure.in: Check for strsignal.
18         * job.c (child_error): Use strsignal.
19         * main.c (main): Don't call signame_init #ifdef HAVE_STRSIGNAL.
21         * misc.c (strerror): Fix swapped args in sprintf.
23 Mon Feb 13 11:50:08 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
25         * configure.in (CFLAGS, LDFLAGS): Don't set these variables.
27 Fri Feb 10 18:44:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
29         * main.c (print_version): Add 95 to copyright years.
31         * Version 3.72.6.
33         * job.c (start_job_command): Remember to call notice_finsihed_file
34         under -n when not recursing.  To do this, consolidate that code
35         under the empty command case and goto there for the -n case.
37 Tue Feb  7 13:36:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
39         * make.h [! STDC_HEADERS]: Don't declare qsort.  Sun headers
40         declare it int.
42 Mon Feb  6 17:37:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
44         * read.c (read_makefile): For bogus line starting with tab, ignore
45         it if blank after removing comments.
47         * main.c: Cast results of `alloca' to `char *'.
48         * expand.c: Likewise.
50 Sun Feb  5 18:35:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
52         * Version 3.72.5.
54         * configure.in: Check for mktemp.
55         * main.c (main) [! HAVE_MKTEMP]: Use tmpnam instead of mktemp.
57         * configure.in (make_cv_sysconf_open_max): New check for `sysconf
58         (_SC_OPEN_MAX)'.
59         * acconfig.h: Added #undef HAVE_SYSCONF_OPEN_MAX.
60         * job.c [HAVE_SYSCONF_OPEN_MAX] (getdtablesize): Define as macro
61         using sysconf.
63 Fri Jan 27 04:42:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
65         * remake.c (update_file_1): When !MUST_MAKE, don't set
66         FILE->update_status to zero before calling notice_finished_file.
67         (notice_finished_file): Touch only when FILE->update_status is zero.
68         (remake_file): Set FILE->update_status to zero after not calling
69         execute_file_command and deciding to touch instead.
71 Thu Jan 26 01:29:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
73         * main.c (debug_signal_handler): New function; toggles debug_flag.
74         (main): Handle SIGUSR1 with that.
76 Mon Jan 16 15:46:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
78         * compatMakefile (realclean): Remove Info files.
80 Sun Jan 15 08:23:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
82         * Version 3.72.4.
84         * job.c (start_job_command): Save and restore environ around vfork
85         call.
86         (search_path): Function #if 0'd out.
87         (exec_command): Use execvp instead of search_path.
89         * expand.c (variable_expand): Rewrote computed variable name and
90         substitution reference handling to be simpler.  First expand the
91         entire text between the parens if it contains any $s, then examine
92         the result of that for subtitution references and do no further
93         expansion while parsing them.
95         * job.c (construct_command_argv_internal): Handle " quoting too,
96         when no backslash, $ or ` characters appear inside the quotes.
98         * configure.in (union wait check): If WEXITSTATUS and WTERMSIG are
99         defined, just use int.
101 Tue Jan 10 06:27:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
103         * default.c (default_variables) [__hpux]: Remove special
104         definition of ARFLAGS.  Existence of the `f' flag is not
105         consistent across HPUX versions; and one might be using GNU ar
106         anyway.
108         * compatMakefile (clean): Don't remove Info files.
110         * compatMakefile (check): Remove gratuitous target declaration.
112 Sat Jan  7 11:38:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
114         * compatMakefile (ETAGS, CTAGS): Don't use -t.
116         * arscan.c (ar_name_equal) [cray]: Subtract 1 like [__hpux].
118         * main.c (decode_switches): For --help, print usage to stdout.
120 Mon Dec  5 12:42:18 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
122         * Version 3.72.3.
124         * remake.c (update_file_1): Do set_command_state (FILE,
125         cs_not_started) only if old state was deps_running.
127 Mon Nov 28 14:24:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
129         * job.c (start_waiting_job): Use set_command_state.
131         * build.template (CPPFLAGS): New variable.
132         (prefix, exec_prefix): Set from @...@.
133         (compilation loop): Pass $CPPFLAGS to compiler.
135         * GNUmakefile (build.sh.in): Make it executable.
137         * GNUmakefile (globfiles): Add configure.in, configure.
139         * Version 3.72.2.
141         * configure.in (AC_OUTPUT): Don't write glob/Makefile.
143         * configure.in (AC_CHECK_SYMBOL): Use AC_DEFINE_UNQUOTED.
145         * configure.in: Don't check for ranlib.
147 Tue Nov 22 22:42:40 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
149         * remake.c (notice_finished_file): Only mark also_make's as
150         updated if really ran cmds.
152 Tue Nov 15 06:32:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
154         * configure.in: Put dnls before random whitespace.
156 Sun Nov 13 05:02:25 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
158         * compatMakefile (CPPFLAGS): New variable, set from @CPPFLAGS@.
159         (RANLIB): Variable removed.
160         (prefix, exec_prefix): Set these from @...@.
161         (.c.o): Use $(CPPFLAGS).
162         (glob/libglob.a): Don't pass down variables to sub-make.
163         glob/Makefile should be configured properly by configure.
164         (distclean): Remove config.log and config.cache (autoconf stuff).
166 Mon Nov  7 13:58:06 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
168         * acconfig.h: Add #undef HAVE_UNION_WAIT.
169         * configure.in: Converted to Autoconf v2.
170         * dir.c: Test HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H instead
171         of DIRENT, SYSDIR, NDIR.
172         * build.sh.in (prefix, exec_prefix): Set these from @...@.
173         (CPPFLAGS): New variable, set from @CPPFLAGS@.
174         (compiling loop): Pass $CPPFLAGS before $CFLAGS.
175         * install.sh: File renamed to install-sh.
177         * main.c (define_makeflags): When no flags, set WORDS to zero.
179 Sun Nov  6 18:34:01 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
181         * Version 3.72.1.
183         * main.c (define_makeflags): Terminate properly when FLAGSTRING is
184         empty.
186 Fri Nov  4 16:02:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
188         * Version 3.72.
190 Tue Nov  1 01:18:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
192         * Version 3.71.5.
194         * job.c (start_job_command): When ARGV is nil, only set
195         update_state and call notice_finished_file if job_next_command
196         returns zero.
198         * job.c (start_job_command): Call notice_finished_file for empty
199         command line.
201 Thu Oct 27 02:02:45 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
203         * file.c (snap_deps): Set COMMANDS_SILENT for .SILENT, not
204         COMMANDS_NOERROR.
206 Wed Oct 26 02:14:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
208         * Version 3.71.4.
210 Tue Oct 25 22:49:24 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
212         * file.c (snap_deps): Set command_flags bits in all :: entries.
214 Mon Oct 24 18:47:50 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
216         * make.h (posix_pedantic): Declare it.
217         * main.c (main): Move checks .IGNORE, .SILENT, .POSIX to
218         snap_deps.
219         * file.c (snap_deps): Check .IGNORE, .SILENT, .POSIX here instead
220         of in main.  If .IGNORE has deps, OR COMMANDS_NOERROR into their
221         command_flags and don't set -i.  Likewise .SILENT.
222         * job.c (start_job_command): In FLAGS initialization, OR in
223         CHILD->file->command_flags.
224         * file.h (struct file): New member `command_flags'.
226 Sun Oct 16 01:01:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
228         * main.c (switches): Bump flag values for --no-print-directory and
229         --warn-undefined-variables, so neither is 1 (which indicates a
230         nonoption argument).
232 Sat Oct 15 23:39:48 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
234         * main.c (main): Add missing code in .IGNORE test.
236 Mon Oct 10 04:09:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
238         * variable.c (define_automatic_variables): Define +D and +F.
240 Sat Oct  1 04:07:48 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
242         * main.c (main): Define hidden automatic variable with command
243         vars, and MAKEOVERRIDES to a reference to that.
244         (define_makeflags): If posix_pedantic, write a reference to that
245         instead.
247 Thu Sep 29 00:14:26 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
249         * main.c (posix_pedantic): New variable.
250         (main): Set posix_pedantic if .POSIX is a target.
251         Fix .IGNORE and .SILENT checks to require is_target.
253         * commands.c (set_file_variables): Define new automatic variable
254         $+, like $^ but before calling uniquize_deps.
256         * job.c (reap_children): Call delete_child_targets for non-signal
257         error if .DELETE_ON_ERROR is a target.
259 Tue Sep 27 01:57:14 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
261         * Version 3.71.3.
263 Mon Sep 26 18:16:55 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
265         * job.c (reap_children): Don't change C->file->command_state when
266         dying.  Test it only after calling start_job_command for a new
267         command line.  When no more cmds, just set C->file->update_status.
268         (start_job_command): When the last line is empty or under -n, set
269         C->file->update_status.
270         (start_waiting_job): Grok cs_not_started after start_job_command
271         as success.
272         (new_job): Set C->file->update_status when there are no cmds.
273         (job_next_command): When out of lines, don't set
274         CHILD->file->update_status or CHILD->file->command_state.
276         * main.c (quote_as_word): Renamed from shell_quote.  Take new arg;
277         if nonzero, also double $s.
278         (main): Define MAKEOVERRIDES from command_variables here.
279         (define_makeflags): Don't use command_variables here; instead write a
280         reference $(MAKEOVERRIDES) in MAKEFLAGS.  Make vars recursive.
282         * dir.c [__MSDOS__]: Fixed typo.
284         * vpath.c (selective_vpath_search): Reset EXISTS when stat fails.
286 Sat Sep 10 03:01:35 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
288         * remake.c: Include <assert.h> and use assert instead of printfs
289         and abort.
291         * main.c (decode_switches): Loop until optind hits ARGC, not just
292         until getopt_long returns EOF.  Initialize C to zero before loop;
293         in loop if C is EOF, set optarg from ARGV[optind++], else call
294         getopt_long.
295         (decode_env_switches): Use variable_expand instead of
296         allocated_variable_expand.  Allocate a fresh buffer to copy split
297         words into; scan characters by hand to break words and
298         debackslashify.
299         (shell_quote): New function.
300         (define_makeflags): Allocate doubled space for switch args, and command
301         variable names and values; use shell_quote to quote those things.
303 Fri Sep  9 01:37:47 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
305         * Version 3.71.2.
307         * acconfig.h: Add HAVE_SYS_SIGLIST and HAVE__SYS_SIGLIST.
309         * main.c (decode_switches): The non-option return from getopt is
310         1, not 0.
311         (command_variables): New type and variable.
312         (decode_switches, decode_env_switches): After making a variable
313         definition, record the struct variable pointer in the
314         command_variables chain.
315         (define_makeflags): If ALL, write variable definitions for
316         command_variables.
318         * main.c (other_args): Variable removed.
319         (goals, lastgoal): New static variables (moved from auto in main).
320         (main): Don't process OTHER_ARGS at all.
321         Don't set variable MAKEOVERRIDES at all; define MAKE to just
322         $(MAKE_COMMAND).
323         (init_switches): Prepend a - {return in order} instead of a +
324         {require order}.
325         (decode_switches): Don't set OTHER_ARGS at all.
326         Grok '\0' return from getopt_long as non-option argument; try
327         variable definition and (if !ENV) enter goal targets here.
328         (decode_env_switches): Use allocated_variable_expand to store value.
329         Use find_next_token to simplify word-splitting loop.  Don't
330         prepend a dash to uninterpreted value.  Instead, if split into
331         only one word, try variable definition and failing that prepend a
332         dash to the word and pass it to decode_switches as a single arg.
334 Wed Sep  7 03:02:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
336         * remake.c (notice_finished_file): Only recheck modtimes if
337         FILE->command_state was cs_running on entry (meaning the commands
338         actually just ran).
339         (update_file_1): Whenever we set FILE->update_status, call
340         notice_finished_file instead of just set_command_state.
341         * job.c (start_job_command): Whenever we set
342         CHILD->file->update_status, call notice_finished_file instead of
343         just set_command_state.
345 Tue Sep  6 19:13:54 1994  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
347         * default.c: Add missing ".
349         * job.c: Changed all assignments of command_state members to calls
350         to set_command_state.
351         * remake.c: Likewise.
352         * file.c (set_command_state): New function.
353         * file.h: Declare set_command_state.
355         * main.c (init_switches): Put a + first in options.
357 Mon Jul 25 18:07:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
359         Merge MSDOS/GO32 port from DJ Delorie <dj@ctron.com>.
360         * vpath.c: Changed all uses of ':' to PATH_SEPARATOR_CHAR.
361         * main.c (directory_before_chdir): New variable, moved out of main
362         (was local).
363         (main) [__MSDOS__]: Look for \ or : to delimit last component of
364         PROGRAM.  Don't frob ARGV[0] before setting MAKE_COMMAND variable.
365         (die): Change back to `directory_before_chdir' before dying.
366         * make.h (PATH_SEPARATOR_CHAR): New macro; differing defns for
367         [__MSDOS__] and not.
368         * job.c [__MSDOS__]: Include <process.h>.
369         [__MSDOS__] (dos_pid, dos_status, dos_bname, dos_bename,
370         dos_batch_file): New variables.
371         (reap_children) [__MSDOS__]: Don't call wait; just examine those vars.
372         (unblock_sigs) [__MSDOS__]: Do nothing.
373         (start_job_command) [__MSDOS__]: Use spawnvpe instead of vfork & exec.
374         (load_too_high) [__MSDOS__]: Always return true.
375         (search_path) [__MSDOS__]: Check for : or / in FILE to punt.
376         Use PATH_SEPARATOR_CHAR instead of ':'.
377         (construct_command_argv_internal) [__MSDOS__]: Wholly different
378         values for sh_chars and sh_cmds.  Wholly new code to handle shell
379         scripts.
380         * function.c (expand_function: `shell') [__MSDOS__]: Wholly new
381         implementation.
382         * dir.c [__MSDOS__] (dosify): New function.
383         (dir_contents_file_exists_p) [__MSDOS__]: Call it on FILENAME and
384         process the result instead of FILENAME itself.
385         (file_impossible_p) [__MSDOS__]: Likewise.
386         * default.c [__MSDOS__]: Define GCC_IS_NATIVE.
387         (default_suffix_rules) [__MSDOS__]: Use `y_tab.c' instead of `y.tab.c'.
388         (default_variables) [GCC_IS_NATIVE]: Set CC and CXX to `gcc', YACC to
389         `bison -y', and LEX to `flex'.
390         * configure.bat, configh.dos: New files.
391         * commands.c (fatal_error_signal) [__MSDOS__]: Just remove
392         intermediates and exit.
394         * commands.c (set_file_variables): Add parens in length
395         computation in .SUFFIXES dep loop to quiet compiler warning.  From
396         Jim Meyering.
398         * read.c (read_makefile): Free FILENAME if we allocated it.  From
399         Jim Meyering.
401 Mon Jul  4 17:47:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
403         * misc.c (safe_stat): New function, EINTR-safe wrapper around stat.
404         * vpath.c (selective_vpath_search): Use safe_stat in place of stat.
405         * read.c (construct_include_path): Use safe_stat in place of stat.
406         * job.c (search_path): Use safe_stat in place of stat.
407         * dir.c (find_directory): Use safe_stat in place of stat.
408         * commands.c (delete_target): Use safe_stat in place of stat.
409         * arscan.c (ar_member_touch) [EINTR]: Do EINTR looping around fstat.
410         * remake.c (name_mtime): Use safe_stat in place of stat.
411         (touch_file) [EINTR]: Do EINTR looping around fstat.
413 Fri Jun 24 05:40:24 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
415         * read.c (read_makefile): Check for a shell command first, and
416         then strip leading tabs before further checking if it's not a
417         shell command line.
419         * make.h [__arm]: Undefine POSIX.
420         [!__GNU_LIBRARY__ && !POSIX && !_POSIX_VERSION]: Don't declare system
421         functions that return int.
423         * job.c (construct_command_argv_internal): After swallowing a
424         backslash-newline combination, if INSTRING is set goto string_char
425         (new label) for normal INSTRING handling code.
427 Sat Jun  4 01:11:20 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
429         * configure.in: Don't check for sys_siglist and _sys_siglist with
430         AC_HAVE_FUNCS.  Instead use two AC_COMPILE_CHECKs.
432 Mon May 23 18:20:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
434         * Version 3.71.1 released.
436         * make.h [!__GNU_LIBRARY__ && !POSIX]: Also test #ifndef
437         _POSIX_VERSION for these declarations.
439         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Remove bogus #ifndefs
440         around #undefs of HAVE_SETREUID and HAVE_SETREGID.
442 Sat May 21 16:26:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
444         * Version 3.71 released.
446         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Don't test [HAVE_SETUID]
447         and [HAVE_SETGID].  Every system has those, and configure doesn't
448         check for them.
450         * make.h [_POSIX_VERSION]: Don't #define POSIX #ifdef ultrix.
452         * compatMakefile (loadavg): Depend on and use loadavg.c instead of
453         getloadavg.c.
454         (loadavg.c): Link or copy it from getloadavg.c.
455         (distclean): Remove loadavg.c.
457 Mon May 16 22:59:04 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
459         * Version 3.70.4.
461         * misc.c [GETLOADAVG_PRIVILEGED] [! POSIX]: Undefine HAVE_SETEUID
462         and HAVE_SETEGID.
464         * default.c (default_terminal_rules): In SCCS rules, put
465         $(SCCS_OUTPUT_OPTION) before $<.  On some systems -G is grokked
466         only before the file name.
467         * configure.in (SCCS_GET_MINUS_G check): Put -G flag before file name.
469 Tue May 10 16:27:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
471         * job.c (construct_command_argv_internal): Swallow
472         backslash-newline combinations inside '' strings too.
474 Thu May  5 04:15:10 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
476         * read.c (do_define): Call collapse_continuations on each line
477         before all else.
479 Mon Apr 25 19:32:02 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
481         * job.c (construct_command_argv_internal): Notice newline inside
482         '' string when RESTP is non-null.
484 Fri Apr 22 17:33:30 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
486         * Version 3.70.3.
488         * remake.c (update_goal_chain): Reset FILE to G->file after the
489         double-colon loop so it is never null for following code.
491         * read.c (read_makefile): Fix `override define' parsing to skip
492         whitespace after `define' properly.
494         * compatMakefile (srcdir): Define as @srcdir@; don't reference
495         $(VPATH).
496         (glob/Makefile): New target.
498 Thu Apr 21 16:16:55 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
500         * Version 3.70.2.
502         * misc.c (remove_comments): Use find_char_unquote.
503         * make.h (find_char_unquote): Declare it.
504         * read.c (find_char_unquote): New function, generalized from
505         find_percent.
506         (find_percent, find_semicolon, parse_file_seq): Use that.
508 Wed Apr 20 18:42:39 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
510         * implicit.c (pattern_search): Always allocate new storage for
511         FILE->stem.  It is not safe to store STEM's address because it
512         might be auto storage.
514         * configure.in: Check for seteuid and setegid.
515         * misc.c [HAVE_SETEUID]: Declare seteuid.
516         [HAVE_SETEGID]: Declare setegid.
517         (make_access, user_access) [HAVE_SETEUID]: Use seteuid.
518         [HAVE_SETEGID]: Use setegid.
520         * remake.c (update_goal_chain): Set STATUS to FILE->update_status,
521         to preserve whether it's 2 for error or 1 for -q trigger.  When
522         STATUS gets nonzero and -q is set, always stop immediately.
523         * main.c (main, decode_switches): Die with 2 for errors.
524         (main): Accept 2 return from update_goal_chain and die with that.
525         * misc.c (fatal, makefile_fatal): Die with 2; 1 is reserved for -q
526         answer.
527         * job.c (reap_children): Die with 2 for error.
528         (start_job_command): Set update_status to 2 for error.  Set it to
529         1 when we would run a command and question_flag is set.
531         * read.c (read_makefile): Don't mark makefiles as precious.  Just
532         like other targets, they can be left inconsistent and in need of
533         remaking by aborted commands.
535         * read.c (read_makefile): Write no error msg for -include file.
537 Tue Apr  5 05:22:19 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
539         * commands.c (fatal_error_signal): Don't unblock signals.
541         * file.h (struct file): Change member `double_colon' from flag to
542         `struct file *'.
543         * read.c (record_files): Set double_colon pointer instead of flag.
544         * main.c (main): When disqualifying makefiles for updating, use
545         double_colon pointer to find all entries for a file.
546         * file.c (enter_file): If there is already a double-colon entry
547         for the file, set NEW->double_colon to that pointer.
548         (file_hash_enter): Use FILE->double_colon to find all entries to
549         set name.
550         * remake.c (update_goal_chain): Do inner loop on double-colon entries.
551         (update_file): Use FILE->double_colon pointer to find all entries.
552         (f_mtime): Likewise.
553         (notice_finished_file): Propagate mtime change to all entries.
555         * variable.c (try_variable_definition): Return after abort.
557 Fri Apr  1 18:44:15 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
559         * read.c (read_makefile): Remove unused variable.
560         (parse_file_seq): When removing an elt that is just `)', properly
561         fix up the previous elt's next pointer.
563 Mon Mar 28 18:31:49 1994  Roland McGrath  (roland@mole.gnu.ai.mit.edu)
565         * configure.in: Do AC_SET_MAKE.
566         * GNUmakefile (Makefile.in): Edit MAKE assignment into @SET_MAKE@.
568 Fri Mar  4 00:02:32 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
570         * function.c (subst_expand): If BY_WORD or SUFFIX_ONLY is set and
571         the search string is the empty string, find a match at the end of
572         each word (using end_of_token in place of sindex).
574         * misc.c (end_of_token): Don't treat backslashes specially; you
575         can no longer escape blanks with backslashes in export, unexport,
576         and vpath.  This was never documented anyway.
578 Thu Mar  3 23:53:46 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
580         * read.c (read_makefile): Variable name for `define' is not just
581         first token; use whole rest of line and strip trailing blanks.
583 Wed Feb 16 16:03:45 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
585         * Version 3.70.1.
587         * read.c (read_makefile): Add -d msg stating args.
589         * read.c (read_makefile): Use isspace to skip over leading
590         whitespace, and explicitly avoid skipping over tabs.  Don't want
591         to skip just spaces though; formfeeds et al should be skipped.
593         * default.c (default_variables) [__hpux]: Add f in ARFLAGS.
595         * arscan.c (ar_name_equal) [__hpux]: Subtract 2 instead of 1 from
596         sizeof ar_name for max length to compare.
598         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Undefine HAVE_SETREUID
599         #ifdef HAVE_SETUID; likewise HAVE_SETREGID and HAVE_SETGID.
601         * main.c (main): Call user_access after setting `program', in case
602         it needs to use it in an error message.
604         * read.c (read_makefile): Ignore an empty line starting with a tab.
606 Thu Feb 10 21:45:31 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
608         * configure.in (AC_SYS_SIGLIST_DECLARED): Use this instead of
609         AC_COMPILE_CHECK that is now its contents.
611 Fri Feb  4 16:28:54 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
613         * make.h: #undef strerror after #include <string.h>.
614         [! ANSI_STRING]: Declare strerror.
616 Thu Feb  3 02:21:22 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
618         * misc.c (strerror): #undef any macro before function definition.
620 Mon Jan 31 19:07:23 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
622         * variable.c (try_variable_definition): Calculate BEG before loop
623         to strip blanks by decrementing END.  Don't decr END to before BEG.
625         * read.c (read_makefile): Skip over leading space characters, but
626         not tabs, after removing continuations and comments (it used to
627         use isspace).
629 Tue Jan 25 16:45:05 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
631         * variable.c (define_automatic_variables): In $(@D) et al, use
632         patsubst to remove trailing slash.
634         * commands.c (delete_target): New function, broken out of
635         delete_child_targets.  Check for archive members and give special msg.
636         (delete_child_targets): Use delete_target.
638 Mon Jan 17 17:03:22 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
640         * default.c (default_suffix_rules): Use $(TEXI2DVI_FLAGS) in
641         texi2dvi rules. Use $(MAKEINFO_FLAGS) in makeinfo rules.
643 Tue Jan 11 19:29:55 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
645         * GNUmakefile (tarfiles): Omit make-doc.
646         (make-$(version).tar): Include make.info*.
648 Fri Jan  7 16:27:00 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
650         * compatMakefile (configure, config.h.in): Comment out rules.
652 Thu Jan  6 18:08:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
654         * compatMakefile (binprefix, manprefix): New variables.
655         (instname): Variable removed.
656         (install): Use $({bin,man}prefix)make in place of $(instname).
657         File targets likewised renamed.
659 Mon Jan  3 17:50:25 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
661         * Version 3.70 released.
663 Thu Dec 23 14:46:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
665         * Version 3.69.3.
667         * read.c (parse_file_seq): Inside multi-word archive ref
668         translation loop, check NEW1==0 at end and break out of the loop.
670         * GNUmakefile (make-$(version).tar): Distribute install.sh.
671         * install.sh: New file.
673         * configure.in (SCCS_GET_MINUS_G check): Put redirection for admin
674         cmds outside subshell parens, to avoid "command not found" msgs
675         from the shell.
677 Wed Dec 22 17:00:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
679         * configure.in (SCCS_GET_MINUS_G check): Put -G flag last in get cmd.
680         Redirect output & error from get to /dev/null.
681         Fix reversed sense of test.
683 Fri Dec 17 15:31:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
685         * configure.in (SCCS_GET_MINUS_G check): Use parens instead of
686         braces inside if condition command; some shells lose.
688 Thu Dec 16 15:10:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
690         * Version 3.69.2.
692         * arscan.c [M_UNIX]: Move #undef M_XENIX for PORTAR stuff.
693         (PORTAR) [M_XENIX]: Define to 0 instead of 1.
695         * main.c (define_makeflags): Only export MAKEFLAGS if !ALL.
697 Wed Dec 15 17:47:48 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
699         * main.c (main): Cast result of pointer arith to unsigned int
700         before passing to define_variable for envars.  Matters when
701         sizeof(unsigned)!=sizeof(ptrdiff_t).
703 Tue Dec 14 14:21:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
705         * configure.in: Add new check for SCCS_GET_MINUS_G.
706         * config.h.in: Add #undef SCCS_GET_MINUS_G.
707         * default.c (default_terminal_rules): Use `$(SCCS_OUTPUT_OPTION)' in
708         place of `-G $@' in SCCS commands.
709         (default_variables) [SCCS_GET_MINUS_G]: Define SCCS_OUTPUT_OPTION
710         to "-G$@".
712         * configure.in (AC_OUTPUT): Put touch stamp-config in second arg
713         (so it goes in config.status), rather than afterward.
715         * ar.c (ar_member_date): Don't call enter_file on the archive file
716         if it doesn't exist (by file_exists_p).
718         * compatMakefile ($(infodir)/make.info): Replace `$$d/foo.info'
719         with `$$dir/make.info' in install-info invocation (oops).
721         * vpath.c (construct_vpath_list): Only set LASTPATH set PATH when
722         we do not unlink and free PATH.
724         * file.c (print_file_data_base): Fix inverted calculation for
725         average files per hash bucket.
727         * read.c (readline): When we see a NUL, give only a warning and
728         synthesize a newline to terminate the building line (used to
729         fatal).  Move fgets call into the loop condition, and after the
730         loop test ferror (used to test !feof in the loop).
732 Fri Dec  3 16:40:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
734         * configure.in: Check for strerror in AC_HAVE_FUNCS.
736 Thu Dec  2 15:37:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
738         Differentiate different flavors of missing makefile error msgs,
739         removing gratuitous `fopen: ' and giving caller for included makefiles.
740         * misc.c [! HAVE_STRERROR]: Define our own strerror here.
741         (perror_with_name, pfatal_with_name): Use strerror instead of
742         replicating its functionality.
743         * read.c (read_makefile): Return int instead of void.
744         (read_all_makefiles, read_makefile): Change callers to notice zero
745         return and give error msg.
747 Thu Nov 11 11:47:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
749         * Version 3.69.1.
751         * default.c: Put `-G $@' before $< in SCCS cmds.
753 Wed Nov 10 06:06:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
755         * read.c (read_makefile): After trying a variable defn, notice if
756         the line begins with a tab, and diagnose an error.
758 Sun Nov  7 08:07:37 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
760         * Version 3.69.
762 Wed Nov  3 06:54:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
764         * Version 3.68.10.
766         * implicit.c (try_implicit_rule): Look for a normal rule before an
767         archive rule.
769 Fri Oct 29 16:45:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
771         * function.c (expand_function: `sort'): Double NWORDS when it
772         overflows, instead of adding five.
774         * compatMakefile (clean): Remove loadavg.
776 Wed Oct 27 17:58:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
778         * Version 3.68.9.
780         * file.h (NEW_MTIME): Define new macro.
781         * main.c (main): Set time of NEW_FILES to NEW_MTIME, not to
782         current time returned from system.  Removed variable NOW.
783         * remake.c (notice_finished_file): Use NEW_MTIME in place of
784         current time here too.
786 Tue Oct 26 19:45:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
788         * Version 3.68.8.
790         * remake.c (update_file_1): Don't clear MUST_MAKE when FILE has no
791         cmds and !DEPS_CHANGED unless also !NOEXIST.
793 Mon Oct 25 15:25:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
795         * read.c (parse_file_seq): When converting multi-word archive
796         refs, ignore a word beginning with a '('.
798 Fri Oct 22 02:53:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
800         * configure.in: Check for sys/timeb.h.
801         * make.h [HAVE_SYS_TIMEB_H]: Test this before including it.
803 Thu Oct 21 16:48:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
805         * Version 3.68.7.
807         * rule.c (convert_suffix_rule): New local TARGPERCENT.  Set it to
808         TARGNAME+1 for "(%.o)", to TARGNAME for "%.?".  Use it in place of
809         TARGNAME to initialize PERCENTS[0].
811 Mon Oct 18 06:49:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
813         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
814         Remove AC_USG; it is no longer used.
816         * file.c (print_file): New function, broken out of
817         print_file_data_base.
818         (print_file_data_base): Call it.
819         * rule.c (print_rule): New function, broken out of
820         print_rule_data_base.
821         (print_rule_data_base): Call it.
823 Thu Oct 14 14:54:03 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
825         * default.c (install_default_suffix_rules): New function, broken
826         out of install_default_implicit_rules.
827         (install_default_implicit_rules): Move suffix rule code there.
828         * make.h: Declare install_default_suffix_rules.
829         * main.c (main): Call install_default_suffix_rules before reading
830         makefiles.  Move convert_to_pattern call before
831         install_default_implicit_rules.
833         * job.h (struct child): Make `pid' member type `pid_t' instead of
834         `int'.
836         * compatMakefile (RANLIB): New variable, set by configure.
837         (glob/libglob.a): Pass RANLIB value down to submake.
839         Fixes for SCO 3.2 "devsys 4.2" from pss@tfn.com (Peter Salvitti).
840         * make.h: Include <sys/timeb.h> before <time.h> for SCO lossage.
841         * job.c [! getdtablesize] [! HAVE_GETDTABLESIZE]: If NOFILE is not
842         defined but NOFILES_MAX is, define it to be that.
844 Mon Oct 11 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
846         * GNUmakefile (make-$(version).tar): Depend on acconfig.h, so it
847         is distributed.
849 Sun Oct  3 15:15:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
851         * default.c (default_terminal_rules): Add `-G $@' to SCCS get cmds.
853 Tue Sep 28 14:18:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
855         * job.c (construct_command_argv_internal): Add ^ to SH_CHARS; it
856         is another symbol for | in some shells.
857         * main.c (main): Add it to CMD_DEFS quoting list as well.
859 Mon Sep 20 18:05:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
861         * job.c (construct_command_argv_internal): Remove '=' from
862         SH_CHARS.  Only punt on '=' if it is unquoted in a word before the
863         first word without an unquoted '='.
865         * main.c (define_makeflags): Set v_export for MAKEFLAGS.
867 Fri Sep 17 00:37:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
869         * remake.c (update_file_1): Use .DEFAULT cmds for phony targets.
871         * make.h [_AIX && _POSIX_SOURCE]: Define POSIX.
873         * commands.c (delete_child_targets): Don't delete phony files.
875         * job.c (start_job_command): Set COMMANDS_RECURSE in FLAGS if we
876         see a `+' at the beginning of the command line.
878 Thu Sep  9 17:57:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
880         * Version 3.68.6.
882 Wed Sep  8 20:14:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
884         * main.c (define_makeflags): Define MAKEFLAGS with o_file, not o_env.
886 Mon Aug 30 12:31:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
888         * expand.c (variable_expand): Fatal on an unterminated reference.
890 Thu Aug 19 16:27:53 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
892         * Version 3.68.5.
894         * variable.c (define_automatic_variables): Define new o_default
895         variable `MAKE_VERSION' from version_string and remote_description.
897         * make.h (version_string, remote_description): Declare these here.
898         * main.c: Don't declare version_string.
899         (print_version): Don't declare remote_description.
901 Wed Aug 18 15:01:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
903         * read.c (read_makefile): Free space pointed to by CONDITIONALS
904         before restoring the old pointer.
906 Mon Aug 16 17:33:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
908         * compatMakefile ($(objs)): Depend on config.h.
910         * GNUmakefile (build.sh.in): Depend on compatMakefile.
912         * configure.in: Touch stamp-config after AC_OUTPUT.
914 Fri Aug 13 16:04:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
916         * Version 3.68.4.
918 Thu Aug 12 17:18:57 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
920         * make.h: Include <config.h> instead of "config.h".
922 Wed Aug 11 02:35:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
924         * main.c (main): Make all variables interned from ENVP be v_export.
925         * variable.c (try_variable_definition): In v_default case, don't
926         check for an o_file variable that `getenv' finds.
928         * job.c (reap_children): New local variable ANY_LOCAL; set it
929         while setting ANY_REMOTE.  If !ANY_LOCAL, don't wait for local kids.
931         * main.c (main): Don't call decode_env_switches on MFLAGS.  DOC THIS.
933         * function.c (expand_function): #if 0 out freeing of ENVP since it
934         is environ.
936 Mon Aug  9 17:37:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
938         * Version 3.68.3.
940         * remote-stub.c (remote_status): Set errno to ECHILD before return.
941         * job.c (reap_children): Scan the chain for remote children and
942         never call remote_status if there are none.
944         * function.c (expand_function: `shell'): #if 0 out calling
945         target_environment; just set ENVP to environ instead.
947         * job.c (reap_children): Check for negative return from
948         remote_status and fatal for it.
949         When blocking local child wait returns 0, then try a blocking call
950         to remote_status.
952 Tue Aug  3 00:19:00 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
954         * compatMakefile (clean): Delete make.info* and make.dvi here.
955         (distclean): Not here.
957         * dep.h (RM_*): Use #defines instead of enum to avoid lossage from
958         compilers that don't like enum values used as ints.
960 Mon Aug  2 16:46:34 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
962         * compatMakefile (loadavg): Add $(LOADLIBES).
964 Sun Aug  1 16:01:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
966         * Version 3.68.2.
968         * compatMakefile (loadavg, check-loadavg): New targets.
969         (check): Depend on check-loadavg.
971         * compatMakefile (glob/libglob.a): Depend on config.h.
973         * misc.c (log_access): Write to stderr instead of stdout.
975 Fri Jul 30 00:07:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
977         * Version 3.68.1.
979 Thu Jul 29 23:26:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
981         * configure.in (SYS_SIGLIST_DECLARED): In test program include
982         <unistd.h> #ifdef HAVE_UNISTD_H.
984         * compatMakefile (.PHONY): Put after `all' et al.
986         * configure.in: Add AC_IRIX_SUN.
988 Wed Jul 28 17:41:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
990         * Version 3.68.
992 Mon Jul 26 14:36:49 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
994         * Version 3.67.8.
996 Sun Jul 25 22:09:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
998         * Version 3.67.7.
1000         * compatMakefile ($(infodir)/make.info): Don't use $(instname).
1001         Run install-info script if present.
1003 Fri Jul 23 16:03:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1005         * make.h [STAT_MACROS_BROKEN]: Test this instead of [uts].
1007         * configure.in: Add AC_STAT_MACROS_BROKEN.
1009 Wed Jul 14 18:48:11 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1011         * Version 3.67.6.
1013         * read.c (read_makefile): Recognize directive `-include', like
1014         `include' but sets RM_DONTCARE flag.
1016         * variable.c (target_environment): If FILE is nil, use
1017         current_variable_set_list in place of FILE->variables.
1018         * function.c (expand_function: `shell'): Get an environment for
1019         the child from target_environment instead of using environ.
1021         * dep.h: Declare read_all_makefiles here.
1022         (RM_*): Define new enum constants.
1023         * read.c (read_makefile): Second arg is FLAGS instead of TYPE.
1024         Treat it as a bit mask containing RM_*.
1025         (read_all_makefiles): For default makefiles, set D->changed to
1026         RM_DONTCARE instead of 1.
1027         * main.c: Don't declare read_all_makefiles here.
1028         (main): Check `changed' member of read_makefiles elts for RM_*
1029         flags instead of specific integer values.
1031 Mon Jul 12 22:42:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1033         * make.h [sequent && i386]: #undef POSIX.  From trost@cse.ogi.edu.
1035 Thu Jul  8 19:51:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1037         * vpath.c (construct_vpath_list): If ELEM is zero 0, free PATTERN
1038         as well as VPATH.
1039         (build_vpath_lists): Empty `vpaths' around construct_vpath_list
1040         call for $(VPATH).  Expand $(strip $(VPATH)), not just $(VPATH).
1042         * rule.c (convert_suffix_rule): Use alloca instead of xmalloc for
1043         PERCENTS, whose storage is not consumed by create_pattern_rule.
1045         * make.h [__mips && _SYSTYPE_SVR3]: #undef POSIX.
1047 Wed Jun 30 18:11:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1049         * Version 3.67.5.
1051         * rule.c (max_pattern_targets): New variable.
1052         (count_implicit_rule_limits): Compute its value.
1053         * rule.h: Declare it.
1054         * implicit.c (pattern_search): Make TRYRULES max_target_patterns
1055         times bigger.  Move adding new TRYRULES elt inside the inner
1056         targets loop, so each matching target gets its own elt in MATCHES
1057         and CHECKED_LASTSLASH.
1059         * file.c (remove_intermediates): If SIG!=0 say `intermediate file'
1060         instead of just `file' in error msg.
1062 Fri Jun 25 14:55:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1064         * job.c (construct_command_argv): Turn off
1065         --warn-undefined-variables around expansion of SHELL and IFS.
1066         * read.c (tilde_expand): Likewise for HOME.
1067         (read_all_makefiles): Likewise for MAKEFILES.
1068         * vpath.c (build_vpath_lists): Likewise for VPATH.
1070         * main.c (warn_undefined_variables_flag): New flag variable.
1071         (switches): Add --warn-undefined-variables.
1072         * make.h (warn_undefined_variables_flag): Declare it.
1073         * expand.c (warn_undefined): New function.
1074         (reference_variable): Call it if the variable is undefined.
1075         (variable_expand): In substitution ref, call warn_undefined if the
1076         variable is undefined.
1078         * default.c (default_pattern_rules): Add `%.c: %.w %.ch' and
1079         `%.tex: %.w %.ch' rules.
1080         (default_suffix_rules: .w.c, .w.tex): Pass three args: $< - $@.
1081         (default_suffixes): Add `.ch'.
1083 Mon Jun 21 17:55:39 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1085         * default.c (default_suffixes): Replace `.cweb' with `.w'.
1086         (default_suffix_rules): Rename `.cweb.c' and `.cweb.tex' to `.w.c'
1087         and `.w.tex'.
1089 Fri Jun 11 14:42:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1091         * compatMakefile ($(bindir)/$(instname)): Add missing backslash.
1093 Thu Jun 10 18:14:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1095         * Version 3.67.4.
1097         * read.c (multi_glob): Don't free OLD and OLD->name in the
1098         FOUND!=0 fork.  Use new block-local variable F instead of
1099         clobbering OLD.
1101         * ar.c (glob_pattern_p): New function, snarfed from glob/glob.c.
1102         (ar_glob): Call it; return nil immediately if MEMBER_PATTERN
1103         contains no metacharacters.
1105 Wed Jun  9 16:25:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1107         * ar.c (ar_glob{_match,_alphacompare}): New function.
1109         * dep.h [! NO_ARCHIVES]: Declare it.
1110         * read.c (multi_glob) [! NO_ARCHIVES]: Use it on archive member elts.
1112         * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
1113         multi_glob (which doesn't take a 3rd arg).
1114         * rule.c (install_pattern_rule): Likewise.
1115         * default.c (set_default_suffixes): Here too.
1116         * function.c (string_glob): Don't pass gratuitous arg to multi_glob.
1118         * read.c (parse_file_seq) [! NO_ARCHIVES]: Add post-processing
1119         loop to translate archive refs "lib(a b)" into "lib(a) lib(b)".
1121 Mon Jun  7 19:26:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1123         * compatMakefile (installdirs): Actually pass directory names.
1124         ($(bindir)/$(instname)): Test chgrp&&chmod exit status with `if';
1125         if it fails, echo a warning msg, but don't make the rule fail.
1127         * read.c (tilde_expand): New function, broken out of tilde_expand.
1128         (multi_glob): Call it.
1129         (construct_include_path): Expand ~ in directory names.
1130         * dep.h: Declare tilde_expand.
1131         * main.c (enter_command_line_file): Expand ~ at the start of NAME.
1132         (main): Expand ~ in -C args.
1133         * read.c (read_makefile): Expand ~ in FILENAME unless TYPE==2.
1135 Fri Jun  4 13:34:47 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1137         * main.c (decode_env_switches): Use xmalloc instead of alloca for ARGS.
1139         * main.c (main): Put result of alloca in temporary variable with
1140         simple assignment, to make SGI compiler happy.
1142 Thu Jun  3 20:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1144         * Version 3.67.3.
1146         * main.c (main): Before re-execing, remove intermediate files, and
1147         print the data base under -p.  Sexier debugging message.
1149         * implicit.c (pattern_search): Allocate an extra copy of the name
1150         of a winning intermediate file when putting it in FOUND_FILES.
1152 Wed Jun  2 16:38:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1154         * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
1155         multi_glob (which doesn't take a 3rd arg).
1157         * dir.c (dir_contents_file_exists_p): When reading dirents, ignore
1158         chars within D_NAMLEN that are NULs.
1160         * main.c (decode_switches): Don't savestring ARGV[0] to put it
1161         into `other_args'.
1162         For string switch, don't savestring `optarg'.
1163         (main): Don't free elts of makefiles->list that are "-".
1164         Use alloca'd rather than savestring'd storage for elts of
1165         makefiles->list that are temporary file names.
1166         * read.c (read_all_makefiles): Don't free *MAKEFILES.
1167         * file.c (enter_file): Don't strip `./'s.
1168         * main.c (enter_command_line_file): New function.
1169         (main): Use it in place of enter_file for command-line goals from
1170         other_files, and for old_files and new_files.
1172 Mon May 31 18:41:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1174         * Version 3.67.2.
1176         * compatMakefile (.SUFFIXES): Add .info.
1177         ($(infodir)/$(instname).info): Find make.info* in cwd if there,
1178         else in $srcdir.  Use basename to remove dir name from installed name.
1180 Thu May 27 17:35:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1182         * implicit.c (pattern_search): When interning FOUND_FILES, try
1183         lookup_file first; if found, free the storage for our copy of the name.
1185 Wed May 26 14:31:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1187         * Version 3.67.1.
1189         * main.c (decode_switches): In usage msg, write `--switch=ARG' or
1190         `--switch[=OPTARG]' rather than `--switch ARG' or `--switch [ARG]'.
1192 Mon May 24 16:17:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1194         * rule.c (convert_suffix_rule): New function.
1195         (convert_to_pattern): Use it instead of doing all the work here
1196         several times.
1197         For target suffix `.a', generate both the archive magic rule and
1198         the normal rule.
1200         * compatMakefile (distclean): Remove stamp-config.
1202 Sat May 22 16:15:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1204         * Version 3.67.
1206         * file.c (remove_intermediates): Don't write extra space after `rm'.
1208         * main.c (struct command_switch.type): Remove `usage_and_exit'.
1209         (print_usage_flag): New variable.
1210         (switches: --help): Make type `flag', to set print_usage_flag.
1211         (init_switches): Remove `usage_and_exit' case.
1212         (decode_switches): Likewise.
1213         (decode_switches): Print usage if print_usage_flag is set.
1214         When printing usage, die with status of BAD.
1215         (main): Die with 0 if print_version_flag.
1217 Fri May 21 16:09:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1219         * Version 3.66.
1221 Wed May 19 21:30:44 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1223         * compatMakefile (installdirs): New target.
1224         (install): Depend on it.
1226 Sun May 16 20:15:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1228         * Version 3.65.2.
1230 Fri May 14 16:40:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1232         * vpath.c (construct_vpath_list): In removal loop for DIRPATH==0,
1233         set LASTPATH to PATH, not NEXT.
1235         * dir.c (read_dirstream): Break out of loop after incrementing
1236         DS->buckets such that it reaches DIRFILE_BUCKETS; avoid trying to
1237         dereference DS->contents->files[DIRFILE_BUCKETS].
1239         * read.c (read_makefile): Clear no_targets after reading a
1240         targetful rule line.
1242         * main.c (main): If print_version_flag is set, exit after printing
1243         the version.
1244         (switches): Change --version docstring to say it exits.
1246         * make.h [butterfly]: #undef POSIX.
1248 Wed May 12 15:20:21 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1250         * Version 3.65.1.
1252         * arscan.c (ar_scan) [! AIAMAG]: Don't declare LONG_NAME.
1253         [AIAMAG]: Pass TRUNCATE flag arg to (*FUNCTION), always zero.
1255         * function.c (handle_function): Use fatal instead of
1256         makefile_fatal when reading_filename is nil.
1258         * configure.in: Add AC_GETGROUPS_T.
1259         * job.c (search_path): Use GETGROUPS_T in place of gid_t.
1261 Sun May  9 15:41:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1263         * Version 3.65.
1265 Fri May  7 18:34:56 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1267         * function.c (handle_function): Fatal for unmatched paren.
1269 Thu May  6 16:13:41 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1271         * Version 3.64.3.
1273         * commands.c (handling_fatal_signal): New variable.
1274         (fatal_error_signal): Set it.
1275         * job.c (reap_children): Avoid nonreentrant operations if that is set.
1276         * make.h: Declare handling_fatal_signal.
1278         * expand.c (reference_variable): New function, snippet of code
1279         broken out of simple-reference case of variable_expand.
1280         (variable_expand): Use it for simple refs.
1281         (variable_expand): When checking for a computed variable name,
1282         notice a colon that comes before the final CLOSEPAREN.  Expand
1283         only up to the colon, and then replace the pending text with a
1284         copy containing the expanded name and fall through to subst ref
1285         handling.
1286         (variable_expand): Don't bother expanding the name if a colon
1287         appears before the first $.
1288         (expand_argument): Use alloca instead of savestring.
1289         (variable_expand): For subst ref, expand both sides of = before
1290         passing to [pat]subst_expand.  Use find_percent instead of lindex
1291         to check the lhs for a %.
1293 Wed May  5 14:45:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1295         * Version 3.64.2.
1297 Mon May  3 17:00:32 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1299         * arscan.c (ar_name_equal) [AIAMAG]: Abort if TRUNCATED is nonzero.
1301         * read.c (read_makefile): Pass extra arg of 1 to parse_file_seq,
1302         not to multi_glob.
1304 Thu Apr 29 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1306         * Version 3.64.1.
1308         * arscan.c (ar_scan): New local flag var LONG_NAME.  Set it when
1309         we read the member name in any of the fashions that allow it to be
1310         arbitrarily long.  Pass its negation to FUNCTION.
1311         (describe_member): Take TRUNCATED from ar_scan and print it.
1312         (ar_name_equal): Take new arg TRUNCATED; if nonzero, compare only
1313         the first sizeof (struct ar_hdr.ar_name) chars.
1314         (ar_member_pos): Take TRUNCATED from ar_scan, pass to ar_name_equal.
1315         * ar.c (ar_member_date_1): Likewise.
1317 Wed Apr 28 21:18:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1319         * job.c (reap_children): Before calling start_job_command to start
1320         the next command line, reset C->remote by calling start_remote_job_p.
1322 Mon Apr 26 15:56:15 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1324         * arscan.c (ar_scan): New local var NAMEMAP.
1325         In loop, rename NAME to NAMEBUF; new var NAME is a pointer; new
1326         flag IS_NAMEMAP.  When extracting the member name, always put a
1327         null at its end first.  If the name is "//" or "/ARFILENAMES", set
1328         IS_NAMEMAP.  If we have already read in NAMEMAP, and NAME looks
1329         like " /N", get full name from NAMEMAP+N.
1330         Else if NAME looks like "#1/N", read N chars from the
1331         elt data to be the full name.  At end of loop, if IS_NAMEMAP, read
1332         the elt's data into alloca'd NAMEMAP.
1333         (ar_name_equal): #if 0 truncating code.
1335         * make.h: Don't declare vfork at all.  It returns int anyway,
1336         unless <unistd.h> declared it; and we conflicted with some systems.
1338         * main.c (define_makeflags): If FLAGSTRING[1] is '-', define
1339         MAKEFLAGS to all of FLAGSTRING, not &FLAGSTRING[1].  Don't want to
1340         define it to something like "-no-print-directory".
1341         Use %g format instead of %f for floating-valued things.
1343 Thu Apr 22 18:40:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1345         * GNUmakefile (Makefile.in): Use a substitution ref on nolib-deps
1346         to change remote-%.dep to remote-stub.dep.
1348 Wed Apr 21 15:17:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1350         * Version 3.64.
1352 Fri Apr 16 14:22:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1354         * compatMakefile (install): Remove - prefix from chgrp+chmod.
1356         * Version 3.63.8.
1358 Thu Apr 15 18:24:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1360         * acconfig.h: New file; contains "#undef SCCS_GET" for autoheader.
1361         * configure.in: If /usr/sccs/get exists, define SCCS_GET to that,
1362         else to "get".
1363         * default.c (default_variables): Set GET to macro SCCS_GET.
1365         * read.c (parse_file_seq): Take extra arg STRIP; strip `./' only
1366         if nonzero.  I hope this is the last time this argument is added
1367         or removed.
1368         (read_makefile): Pass it 1 when parsing include file names.
1369         Pass it 1 when parsing target file names.
1370         Pass it 1 when parsing static pattern target pattern names.
1371         * rule.c (install_pattern_rule): Pass it 1 when parsing rule deps.
1372         * default.c (set_default_suffixes): Pass it 1 when parsing
1373         default_suffixes.
1374         * function.c (string_glob): Pass it 0 here.
1376 Wed Apr 14 11:32:05 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1378         * misc.c (log_access): New function.
1379         ({init,user,make,child}_access): Call it.
1380         (child_access): Abort if !access_inited.
1382         * main.c (switches: --no-print-directory): Use 1 instead of -1 for
1383         single-letter option.
1384         (init_switches, decode_switches, define_makeflags): An option with
1385         no single-letter version is no longer indicated by a value of -1;
1386         instead a value that is !isalnum.
1387         (init_switches): Don't put such switches into the string, only
1388         into the long_option table.
1390         * make.h [!NSIG] [!_NSIG]: #define NSIG 32.
1392         * job.c [HAVE_WAITPID]: Remove #undef HAVE_UNION_WAIT.  AIX's
1393         bsdcc defined WIF* to use union wait.
1395         * main.c (struct command_switch): Change member `c' to type int.
1396         (switches): Make const.
1397         (decode_switches): Use `const struct command_switch *'.
1398         (define_makeflags): Likewise.
1400         * default.c (default_suffix_rules): Add `-o $@' to makeinfo rules.
1402 Mon Apr 12 12:30:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1404         * Version 3.63.7.
1406         * configure.in (AC_HAVE_HEADERS): Check for string.h and memory.h.
1407         Removed AC_MEMORY_H.
1408         * make.h [USG, NeXT]: Don't test these.
1409         [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
1410         [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
1411         [! ANSI_STRING]: Put decls of bcopy et al here.
1412         [sparc]: Don't test this for alloca.h; HAVE_ALLOCA_H is sufficient.
1413         [HAVE_SIGSETMASK]: Test this rather than USG.
1414         [__GNU_LIBRARY__ || POSIX]: Don't #include <unistd.h> again.
1415         * main.c (main): Handle SIGCHLD if defined, and SIGCLD if defined.
1416         It doesn't hurt to do both if they are both defined, and testing
1417         USG is useless.
1418         * dir.c: Rationalize directory header conditionals.
1419         * arscan.c [HAVE_FCNTL_H]: Test this rather than USG || POSIX.
1421         * default.c (default_suffixes): Add `.txinfo'.
1422         (default_suffix_rules): Add `.txinfo.info' and `.txinfo.dvi' rules.
1424         * variable.c (try_variable_definition): Replace RECURSIVE flag
1425         with enum FLAVOR, which can be simple, recursive, or append.
1426         Recognize += as append flavor.  Set new variable VALUE in a switch
1427         on FLAVOR.  For append flavor, prepend the variable's old value.
1428         If the variable was previously defined recursive, set FLAVOR to
1429         recursive; if it was defined simple, expand the new value before
1430         appending it to the old value.  Pass RECURSIVE flag to
1431         define_variable iff FLAVOR == recursive.
1433         * variable.c (try_variable_definition): Use alloca and bcopy for
1434         NAME, instead of savestring.  Might as well use stack storage
1435         since we free it immediately anyway.
1437 Thu Apr  8 18:04:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1439         * job.c (start_waiting_jobs): Move decl of JOB outside of loop.
1441         * main.c (define_makeflags): Rename `struct flag' member `switch'
1442         to `cs', which is not a reserved word.
1444 Wed Apr  7 15:30:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1446         * job.c (new_job): Call start_waiting_jobs first thing.
1447         (start_waiting_job): Changed return type from void to int.
1448         Return 0 when putting the child on the waiting_jobs chain.
1449         (start_waiting_jobs): Don't check load and job_slots here.
1450         Always take a job off the chain and call start_waiting_job on it;
1451         give up and return when start_waiting_job returns zero.
1453         * main.c (define_makeflags: struct flag): Change member `char c' to
1454         `struct command_switch *switch'.
1455         (ADD_FLAG): Set that to CS instead of CS->c.
1456         If CS->c is -1, increment FLAGSLEN for the long name.
1457         When writing out FLAGS, handle FLAGS->switch->c == -1 and write
1458         the long name instead.
1460         * compatMakefile (stamp-config): New target of old config.h rule.
1461         Touch stamp-config after running config.status.
1462         (config.h): Just depend on stamp-config, and have empty commands.
1464 Mon Apr  5 20:14:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1466         * job.c [HAVE_WAITPID]: #undef HAVE_UNION_WAIT.
1468         * configure.in (AC_HAVE_FUNCS): Check for psignal.
1470 Fri Apr  2 17:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1472         * main.c (long_option_aliases): Remove "new"; it is already an
1473         unambiguous prefix of "new-file".
1475 Sun Mar 28 16:57:17 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1477         * Version 3.63.6.
1479 Wed Mar 24 14:26:19 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1481         * vpath.c (selective_vpath_search): When adding the
1482         name-within-directory at the end of NAME, and we don't add a
1483         slash, don't copy FILENAME in one char too far into NAME.
1485         * variable.c (define_automatic_variables): Find default_shell's
1486         length with strlen, not numerology.
1488 Wed Mar 17 20:02:27 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1490         * main.c (define_makeflags): Add the elts of a string option in
1491         reverse order, so they come out right when reversed again.
1493 Fri Mar 12 15:38:45 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1495         * compatMakefile (make.info): Use `-o make.info'.
1497 Thu Mar 11 14:13:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1499         * compatMakefile (REMOTE): Set to @REMOTE@; change comments to
1500         reflect new use.
1501         (objs): Replace remote.o with remote-$(REMOTE).o.
1502         (srcs): Replace remote.c with remote-$(REMOTE).c.
1503         (remote.o): Rule removed.
1505         * configure.in (REMOTE): Subst this in Makefile et al; default "stub".
1506         Use AC_WITH to grok --with-customs arg to set REMOTE=cstms.
1507         * GNUmakefile (build.sh.in): Filter out remote-% from objs list.
1508         * build.template (REMOTE): New var; set to @REMOTE@.
1509         (objs): Add remote-${REMOTE}.o.
1511 Wed Mar 10 15:12:24 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1513         * Version 3.63.5.
1515         * implicit.c (pattern_search): Fix "dependent"->"dependency" in
1516         "Rejecting impossible" -d msg.
1518         * file.c (file_hash_enter): New local vars {OLD,NEW}BUCKET.  Store
1519         mod'd values there; never mod {OLD,NEW}HASH.
1521 Mon Mar  8 13:32:48 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1523         * remake.c [eta10]: Include <fcntl.h> instead of <sys/file.h>.
1525         * compatMakefile (VPATH): Set this to @srcdir@.
1526         (srcdir): Set this to $(VPATH).
1528         * main.c (main): New local var DIRECTORY_BEFORE_CHDIR.  Save in it
1529         a copy of CURRENT_DIRECTORY after the first getcwd.  Use it
1530         instead of CURRENT_DIRECTORY when chdir'ing back before re-execing.
1532         * remake.c (notice_finished_file): Pass missing SEARCH arg to f_mtime.
1534         * read.c (read_makefile): Remove extraneous arg to parse_file_seq.
1536 Mon Feb 22 14:19:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1538         * compatMakefile ($(infodir)/$(instname).info): Use , instead of /
1539         as the sed delimiter char.
1541 Sun Feb 21 14:11:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1543         * Version 3.63.4.
1545         * rule.h (struct rule): Removed `subdir' member.
1546         * rule.c (new_pattern_rule): No need to clear it.
1547         (count_implicit_rule_limits): Set the `changed' flag in each dep
1548         that refers to a nonexistent directory.  No longer set rule-global
1549         `subdir' flag with that information.
1550         (print_rule_data_base): Don't record info on `subdir' flags.
1552         * implicit.c (pattern_search): Check the DEP->changed flag rather
1553         than the (now gone) RULE->subdir flag.  Also test CHECK_LASTSLASH;
1554         if it is set, the file might exist even though the DEP->changed
1555         flag is set.
1557         * rule.c (count_implicit_rule_limits): Pass "", not ".", as file
1558         name arg to dir_file_exists_p to check for existence of directory.
1560         * implicit.c (pattern_search): Inside dep-finding loop, set
1561         CHECK_LASTSLASH from the value recorded in CHECKED_LASTSLASH[I],
1562         rather than computing it anew.
1564         * commands.c (set_file_variables): Must alloca space for PERCENT
1565         and copy it, to avoid leaving the trailing `)' in the value.
1567         * misc.c (remove_comments): Fixed backslash-checking loop
1568         condition to allow it to look at the first char on the line.
1569         P2 >= LINE, not P2 > LINE.
1571         * compatMakefile ($(bindir)/$(instname)): Before moving $@.new to
1572         $@, rm $@.old and mv $@ to $@.old.
1574         * variable.c (try_variable_definition): Take new args FILENAME and
1575         LINENO.  Fatal if the variable name is empty.
1576         * read.c (read_makefile): Change callers.
1577         * main.c (main): Likewise.
1579         * compatMakefile (group): Define to @KMEM_GROUP@, autoconf magic
1580         that configure will replace with the group owning /dev/kmem.
1582 Mon Feb  8 14:26:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1584         * vpath.c (vpath_search): Take second arg MTIME_PTR, pass thru to
1585         selective_vpath_search.
1586         (selective_vpath_search): Take second arg MTIME_PTR.
1587         If the dir cache thinks a file exists, stat it to make sure, and
1588         put the modtime in *MTIME_PTR.
1589         * remake.c (library_search): Take second arg MTIME_PTR.
1590         When we find a match, record its mtime there.
1591         Pass MTIME_PTR through to vpath_search to do same.
1592         (f_mtime): Pass &MTIME as new 2nd arg to {vpath,library}_search;
1593         store it in FILE->last_mtime if set nonzero.
1594         * implicit.c (pattern_search): Pass nil 2nd arg to vpath_search.
1596         * compatMakefile (remote.o): Prepend `$(srcdir)/' to `remote-*.c',
1597         so globbing looks somewhere it will find things.
1599         * compatMakefile ($(infodir)/$(instname).info): Install `make.info*'
1600         not `$(srcdir)/make.info*'; no need to use basename.
1602 Fri Feb  5 12:52:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1604         * Version 3.63.3.
1606         * compatMakefile (install): Add missing ;\s.
1608         Make -, @, and + prefixes on a pre-expanded command line affect
1609         all lines in the expansion, not just the first.
1610         * commands.h (struct commands): Replace `lines_recurse' member
1611         with `lines_flags'.
1612         (COMMANDS_{RECURSE,SILENT,NOERROR}): New macros, bits to set in
1613         that flag byte.
1614         * commands.c (chop_commands): Set `lines_flags' instead of
1615         `lines_recurse'.  Record not only + but also @ and - prefixes.
1616         * remake.c (notice_finished_file): Check the COMMANDS_RECURSE bit
1617         in FILE->cmds->lines_flags, rather than FILE->cmds->lines_recurse.
1618         * job.c (start_job_command): Replaced RECURSIVE and NOPRINT local
1619         var with FLAGS; initialize it to the appropriate `lines_flags' byte.
1620         Set CHILD->noerror if the COMMANDS_NOERROR bit is set in FLAGS.
1621         Set the COMMANDS_SILENT bit in FLAGS for a @ prefix.
1623         * remake.c (update_goal_chain): Set G->file to its prev after
1624         checking for G being finished, since that check needs to examine
1625         G->file.
1627         * configure.in (union wait check) [HAVE_WAITPID]: Try using
1628         waitpid with a `union wait' STATUS arg.  If waitpid and union wait
1629         don't work together, we should not use union wait.
1631         * Version 3.63.2.
1633         * remake.c (update_goal_chain): When G->file->updated, move
1634         G->file to its prev.  We aren't finished until G->file is nil.
1636 Thu Feb  4 12:53:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1638         * main.c (starting_directory): New global variable.
1639         (main): Set it to cwd after doing -Cs.
1640         (log_working_directory): Use it, rather than computing each time.
1641         * make.h: Declare it.
1643         * compatMakefile (SHELL): Define to /bin/sh for losing Unix makes.
1645         * main.c (decode_env_switches): Allocate (1 + LEN + 1) words for
1646         ARGV, rather than LEN words plus one byte.
1648 Wed Feb  3 18:13:52 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1650         * compatMakefile ($(bindir)/$(instname)): Put - before
1651         install_setgid command line, so its failure won't be an error.
1652         (infodir): New variable.
1653         (install): Depend on $(infodir)/$(instname).info.
1654         ($(infodir)/$(instname).info): New target.
1656         * read.c (read_makefile): If FILENAMES is nil when we see a line
1657         starting with a tab, don't treat it as a command.  Just fall
1658         through, rather than giving an error.
1660         * read.c (read_makefile): If the NO_TARGETS flag is set when we see a
1661         command line, don't clear it before continuing.  We want
1662         subsequent command lines to be ignored as well.
1664         * job.c (new_job): Before expanding each command line, collapse
1665         backslash-newline combinations that are inside var or fn references.
1667 Mon Feb  1 16:00:13 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1669         * compatMakefile (exec_prefix): Default to $(prefix), not /usr/local.
1671         * compatMakefile (make.info): Pass -I$(srcdir) to makeinfo.
1673         * job.c [POSIX] (unblock_sigs): Made global.
1674         [!POSIX] (unblock_sigs): Move defns to job.h.
1675         * job.h [POSIX] (unblock_sigs): Declare.
1677 Sun Jan 31 19:11:05 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1679         * read.c (read_makefile): In vpath parsing, after finding the
1680         pattern token, take entire rest of line as the search path, not
1681         just the next token.
1683         * compatMakefile (remote.o): Depend on remote-*.c.
1685 Thu Jan 28 16:40:29 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1687         * commands.c (set_file_variables): Don't define any F or D versions.
1688         * variable.c (define_automatic_variables): Define them here as
1689         recursively-expanded variables that use the dir and notdir funcs.
1691         * variable.c (target_environment): In v_default case, don't export
1692         o_default or o_automatic variables.
1694         * configure.in (union wait check): Remove ` and ' inside C code;
1695         they confuse the shell script.
1697 Mon Jan 25 13:10:42 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1699         * Version 3.63.1.
1701         * vpath.c (construct_vpath_list): When skipping further processing
1702         of an elt that is ".", don't also skip the code that pushes P past
1703         the next separator.
1705         * compatMakefile (distclean): Don't remove make-*.
1707         * configure.in (HAVE_UNION_WAIT): Try to use WEXITSTATUS if it's
1708         defined.  If one cannot use WEXITSTATUS with a `union wait'
1709         argument, we don't want to believe the system has `union wait' at all.
1711         * remake.c (update_file): Do nothing to print "up to date" msgs.
1712         (update_goal_chain): Do it here instead.
1713         Use the `changed' flag of each goal's `struct dep' to keep track
1714         of whether files_remade (now commands_started) changed around a
1715         call to update_file for that goal.
1716         When a goal is finished, and its file's update_status is zero (i.e.,
1717         success or nothing done), test the `changed' flag and give an "up
1718         to date" msg iff it is clear.
1719         * make.h (files_remade): Renamed to commands_started.
1720         * remake.c: Changed defn.
1721         (update_goal_chain): Changed uses.
1722         * job.c (start_job_command): Increment commands_started here.
1723         (reap_children): Not here.
1725         * remake.c (update_goal_chain): Don't do anything with files'
1726         `prev' members.  update_file now completely handles this.
1728         * variable.c (target_environment): Don't expand recursive
1729         variables if they came from the environment.
1731         * main.c (define_makeflags): For flags with omitted optional args,
1732         store {"", 0} with ADD_FLAG.  When constructing FLAGSTRING, a flag
1733         so stored cannot have more flags appended to the same word.
1735 Fri Jan 22 14:46:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1737         * variable.c (print_variable_set): In vars/bucket calculation,
1738         don't spuriously multiply by 100.
1740         * Version 3.63.
1742         * job.c [!HAVE_UNION_WAIT] (WTERMSIG, WCOREDUMP, WEXITSTATUS):
1743         Don't define if already defined.
1745         * remake.c (update_file): Don't keep track of the command_state before
1746         calling update_file_1.  Remove local variable COMMANDS_FINISHED,
1747         and don't test it to decide to print the "is up to date" msg.
1748         Testing for files_remade having changed should always be sufficient.
1749         The old method lost when we are called in the goal chain run on a
1750         makefile, because the makefile's command_state is already
1751         `cs_finished' from the makefile chain run.
1753         * misc.c [HAVE_SETRE[GU]ID]: Test these to decl setre[gu]id.
1755         * configure.in: Rewrote wait checking.
1756         Use AC_HAVE_HEADERS to check for <sys/wait.h>.
1757         Use AC_HAVE_FUNCS to check for waitpid and wait3.
1758         Use a compile check to test just for `union wait'.
1759         * job.c: Rewrote conditionals accordingly.
1760         [HAVE_WAITPID]: Test this only to define WAIT_NOHANG.
1761         [HAVE_WAIT3]: Likewise.
1762         [HAVE_UNION_WAIT]: Test this to define WAIT_T and W*.
1764         * configure.in: Set CFLAGS and LDFLAGS before all checks.
1766         * dir.c: Add static forward decls of {open,read}_dirstream.
1768 Thu Jan 21 17:18:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1770         * Version 3.62.31.
1772         * job.c [NGROUPS_MAX && NGROUPS_MAX==0]: #undef NGROUPS_MAX.
1774         * compatMakefile (CFLAGS, LDFLAGS): Set to @CFLAGS@/@LDFLAGS@.
1775         * build.template (CFLAGS, LDFLAGS): Same here.
1776         * configure.in: AC_SUBST(CFLAGS) and LDFLAGS.
1777         Set them to -g if not defined in the environment.
1779         * remake.c (library_search): Use LIBNAME consistently, setting it
1780         only once, to be the passed name sans `-l'.
1781         Pass new var FILE to be modified by vpath_search.
1783 Mon Jan 18 14:53:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1785         * Version 3.62.30.
1787         * job.c (start_waiting_jobs): Return when job_slots_used is equal to
1788         job_slots. 
1790         * configure.in: Add AC_CONST for the sake of getopt.
1792         * read.c (read_makefile): Continue after parsing `override'
1793         directive, rather than falling through to lossage.
1794         Check for EOL or blank after "override define".
1796         * compatMakefile (.c.o, remote.o): Put $(CFLAGS) after other switches.
1798 Fri Jan 15 12:52:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1800         * Version 3.62.29.
1802         * main.c (define_makeflags): After writing everything into
1803         FLAGSTRING, only back up two chars if [-1] is a dash, meaning we
1804         just wrote " -".  Always terminate the string at *P.
1806         * remake.c (library_search): When constructing names in std dirs,
1807         use &(*LIB)[2] for the stem, not LIBNAME (which points at the
1808         buffer we are writing into!).
1810 Thu Jan 14 13:50:06 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1812         * read.c (read_makefile): Set IN_IGNORED_DEFINE for "override
1813         define" when IGNORING is true.
1815         * compatMakefile (distclean): Remove config.status and build.sh.
1817 Wed Jan 13 16:01:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1819         * Version 3.62.28.
1821         * misc.c (xmalloc, xrealloc): Cast result of malloc/realloc to
1822         (char *).
1824         * arscan.c (ar_scan) [AIAMAG]: Cast read arg to (char *).
1826         * variable.c (define_automatic_variables): Override SHELL value for
1827         origin o_env_override as well as o_env.
1829         * GNUmakefile (build.sh.in): Don't replace %globobjs%.  Instead,
1830         add the names of the glob objects (w/subdir) to %objs%.
1831         * build.template (globobjs): Removed.
1832         Take basename of $objs before linking.
1834 Tue Jan 12 12:31:06 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1836         * Version 3.62.27.
1838         * configure.in (AC_OUTPUT): Also edit build.sh.
1839         * build.template: New file.
1840         * GNUmakefile (build.sh.in): New rule to create it from build.template.
1841         (make-$(version).tar.Z): Depend on build.sh.in.
1843         * main.c (die): Call print_data_base if -p.
1844         (main): Don't call it here.
1846         * compatMakefile (defines): Add @DEFS@.  configure should turn this
1847         into -DHAVE_CONFIG_H.
1849 Mon Jan 11 14:39:23 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1851         * Version 3.62.26.
1853         * misc.c (init_access): Surround with #ifdef GETLOADAVG_PRIVILEGED.
1854         ({make,user,child}_access) [! GETLOADAVG_PRIVILEGED]: Make no-op.
1855         * compatMakefile (install_setgid): New var, set by configure.
1856         (install): Install setgid $(group) only if $(install_setgid) is true.
1858 Fri Jan  8 15:31:55 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1860         * job.c (load_too_high): If getloadavg fails with errno==0, give a
1861         message saying that load limits are not supported.
1863         * vpath.c (construct_vpath_list): Rewrote path deletion code to
1864         not try to use PATH's next link after freeing PATH.
1866         * main.c (define_makeflags): Rewritten; now handles string-valued
1867         option, and has no arbitrary limits.
1868         (switches): Set `toenv' flag for -I and -v.
1870         * main.c (decode_env_switches): Cast return value of alloca to char *.
1872         * misc.c (child_access) [HAVE_SETREUID, HAVE_SETREGID]: Use
1873         setre[gu]id in place of set[gu]id.
1875 Wed Jan  6 15:06:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1877         * main.c (main): Define MAKEOVERRIDES, MAKE, and MAKE_COMMAND with
1878         origin o_default.
1880         * make.h [POSIX]: Don't test this to use ANSI_STRING.
1881         Testing STDC_HEADERS should be sufficient.
1883         * job.h: Declare start_waiting_jobs.
1885         * read.c (read_makefile): Add missing parens in if stmt that find
1886         conditional directives.
1888         * main.c (main): Declare init_dir.
1889         * implicit.c (pattern_search): Always use two % specs in a
1890         DEBUGP2, and always pass two non-nil args.
1891         Cast field width args to int.
1892         Add missing parens in !RULE->subdir if stmt.
1893         * function.c (expand_function, patsubst_expand): Add parens around
1894         assignments inside `while' stmts.
1895         * commands.c (print_commands): Cast field width args to int.
1897         * read.c (do_define): Cast return value of alloca to (char *).
1899         * main.c (init_switches): New function, broken out of decode_switches.
1900         (decode_switches): Take new arg ENV.  If set, ignore non-option
1901         args; print no error msgs; ignore options with clear `env' flags.
1902         (decode_env_switches): Rewritten to chop envar value into words
1903         and pass them to decode_switches.
1904         (switches): Set `env' flag for -I and -v.
1906         * dir.c (init_dir): Cast free to __glob_closedir_hook's type.
1908 Tue Jan  5 14:52:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1910         * Version 3.62.25.
1912         * job.c [HAVE_SYS_WAIT || !USG]: Don't #include <sys/time.h> and
1913         <sys/resource.h>.  <sys/time.h> interacts badly with <time.h>, and
1914         we don't need these anyway.
1916         * configure.in (AC_HAVE_FUNCS): Check for setre[gu]id.
1917         * misc.c ({user,make}_access): Test #ifndef HAVE_SETRE[GU]ID, not
1918         #ifdef POSIX || USG.  SunOS 4.1 is supposedly POSIX.1 compliant,
1919         but its set[gu]id functions aren't; its setre[gu]id functions work.
1921         * misc.c ({user,make,child}_access): Give name of caller in error msgs.
1923         * job.c (load_too_high): Say "cannot enforce load limit" in error msg.
1925         * configure.in: Call AC_PROG_CC.
1926         * compatMakefile (CC): Define to @CC@ (autoconf magic).
1928         * compatMakefile: Add .NOEXPORT magic target.
1930 Mon Jan  4 17:00:03 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1932         * main.c (print_version): Updated copyright to include 93.
1934 Thu Dec 31 12:26:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1936         * make.h [_AIX]: Don't declare alloca.
1938 Tue Dec 29 13:45:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1940         * Version 3.62.24.
1942         * compatMakefile (objs): Add signame.o.
1943         (srcs): Add signame.[ch].
1945         * compatMakefile (srcs): Add config.h.in.
1946         (remote.o): Add -I. before -I$(srcdir).
1948 Mon Dec 28 15:51:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1950         * Version 3.62.23.
1952         * read.c (readline): Fatal when LEN==0, indicating a line starting
1953         with a NUL.
1954         (readline): Take new arg LINENO, for use in error msg.
1955         (read_makefile, do_define): Pass it.
1957         * compatMakefile (glob/libglob.a): Pass -DHAVE_CONFIG_H in CPPFLAGS.
1958         (.c.o): Add -I. before -I$(srcdir).
1960 Wed Dec 23 12:12:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1962         * read.c (read_makefile): Accept and ignore a rule with no targets.
1964         * compatMakefile (ALLOCA_SRC): New variable.
1965         (srcs): Include its value.
1967         * read.c (struct conditional): Renamed member `max_ignoring' to
1968         `allocated'; added new member `seen_else'.
1969         (conditional_line): Initialize seen_else flag when starting an `if...';
1970         set it when we see an `else'; fatal if set when we see `else'.
1971         (read_makefile): Fatal "missing `endif'" if there are any pending
1972         conditionals, not just if we are still ignoring.
1974 Tue Dec 22 15:36:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1976         * compatMakefile (manext): Set to 1, not l.
1977         ($(mandir)/$(instname).$(manext)): Use $(srcdir) for make.man in cmds.
1979         * file.c (file_hash_enter): Don't call uniquize_deps here.
1980         * read.c (record_files): Likewise.
1981         * implicit.c (pattern_search): Likewise.
1982         * commands.c (set_file_variables): Call it only here.
1984         * default.c (default_variables) [__convex__]: FC=fc.
1986         * variable.c (target_environment): Expand the values of recursively
1987         expanded variables when putting them into the environment.
1988         * expand.c (recursively_expand): Made global.
1989         * make.h (recursively_expand): Declare it.
1991         * remake.c (check_dep): Set FILE->command_state to cs_deps_running
1992         when a dep's command_state is cs_running or cs_deps_running.
1994         * read.c (read_makefile): Changed error msg for spurious cmds to
1995         not say "first target".
1997 Sun Dec 20 17:56:09 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
1999         * configure.in: Do AC_CONFIG_HEADER right after AC_INIT.
2000         * make.h (HAVE_CONFIG_H): #include "config.h", then #define this.
2001         * compatMakefile (config.h, configure, config.h.in): New rules.
2002         (defines): Removed @DEFS@.
2004 Thu Dec 17 16:11:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2006         * compatMakefile (realclean): Just depend on distclean; no cmds.
2007         (distclean): Do what realclean did before; also remove Makefile and
2008         config.h; don't remove configure.
2009         (info, dvi): New targets; depend on make.{info,dvi}.
2010         (doc): Removed target.
2011         (MAKEINFO, TEXI2DVI): New vars.
2012         (make.info, make.dvi): Use them instead of explicit cmds.
2014 Wed Dec 16 16:25:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2016         * configure.in: Added fcntl.h to AC_HAVE_HEADERS.  getloadavg cares.
2018 Wed Dec  9 15:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2020         * main.c (long_option_aliases): Add --new-file alias for -W.
2022         * default.c (default_variables): Change all C++ to CXX and C++FLAGS
2023         to CXXFLAGS.
2025         * read.c (do_define): Expand the variable name before using it.
2027         * main.c (main): Define variable "MAKE_COMMAND" to argv[0];
2028         define "MAKE=$(MAKE_COMMAND) $(MAKEOVERRIDES)" always.
2030         * remake.c (library_search): Search for libNAME.a in cwd; look in
2031         vpath before looking in standard dirs, not after.
2032         Changed order of std dirs to: /lib, /usr/lib, ${prefix}/lib.
2034 Mon Nov 23 14:57:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2036         * default.c (default_pattern_rules, default_terminal_rules): Added
2037         brackets around initializers.
2039         * variable.c (try_variable_definition): Don't check for LINE[0]=='\t'.
2040         (try_variable_definition): Expand the name before defining the var.
2042         * job.c (init_siglist): Removed function.
2043         Removed decl of `sys_siglist'.
2044         * make.h [! HAVE_SYS_SIGLIST]: #include "signame.h".
2045         [HAVE_SYS_SIGLIST && !SYS_SIGLIST_DECLARED]: Declare sys_siglist
2046         only under these conditions.
2047         * main.c (main): Don't declare init_siglist.
2048         (main) [! HAVE_SYS_SIGLIST]: Call signame_init instead of init_siglist.
2050 Wed Nov 18 14:52:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2052         * read.c (record_files): Don't try to append to FIRSTDEPS if it's
2053         nil; instead just set it to MOREDEPS.
2055 Mon Nov 16 17:49:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2057         * vpath.c (construct_vpath_list): Initialize P to DIRPATH before
2058         loop that sets MAXELEM.
2060 Fri Nov 13 18:23:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2062         * Version 3.62.22.
2064 Thu Nov 12 15:45:31 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2066         * job.c (start_job_command): Under -n, increment files_remade after
2067         processing (i.e., printing) all command lines.
2069 Tue Nov 10 15:33:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2071         * read.c (record_files): Append new deps if this rule has no
2072         commands; prepend them to existing deps if this rule has no commands.
2074         * dir.c (open_dirstream): Return nil if DIR->contents->files is nil.
2076         * read.c (parse_file_seq): Removed last arg STRIP.  Always strip `./'s.
2077         (read_makefile): Changed callers.
2078         * function.c (string_glob): Likewise.
2079         * rule.c (install_pattern_rule): Likewise.
2081 Mon Nov  9 17:50:16 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2083         * remake.c (files_remade): Made global.
2084         (notice_finished_file): Don't increment files_remade here; this
2085         function gets called in many situations where no remaking was in
2086         fact done.
2087         * job.c (reap_children): Do it here instead, when we know that 
2088         actual commands have been run for the file.
2089         * make.h (files_remade): Declare it.
2091 Thu Nov  5 18:26:10 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2093         * vpath.c (construct_vpath_list): Allow blanks as well as colons to
2094         separate elts in the search path.
2096         * read.c (read_makefile): Don't fatal on extra tokens in `vpath'.
2097         The search path can contain spaces now.
2099 Tue Nov  3 20:44:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2101         * compatMakefile (check): New target; no-op.
2103         * file.c (file_hash_enter): Mod OLDHASH by FILE_BUCKETS after
2104         testing for OLDHASH==0 but before using the value.
2105         (rename_file): Don't mod OLDHASH by FILE_BUCKETS before passing it
2106         to file_hash_enter.
2108         * file.c (rename_file): Notice when OLDFILE->cmds came from
2109         default.c, and don't try to print ->filename in that case.
2111 Sun Oct 25 01:48:23 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2113         * remake.c (update_file): Don't process F->also_make here.
2114         (notice_finished_file): Don't process FILE->also_make if no attempt
2115         to update FILE was actually made.
2116         Fixed to call f_mtime directly to refresh their modtimes.
2118 Sat Oct 24 22:08:59 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2120         * read.c (find_percent): Don't increment P again after skipping
2121         an escaped %.
2123         * expand.c (variable_expand): In call to patsubst_expand, don't
2124         find `%'s ourselves; let that function do it.
2126         * read.c (read_makefile: record_waiting_files): Don't call
2127         record_files if FILENAMES is nil.
2128         (read_makefile): All alternatives in the parsing, except for rule
2129         lines, fall through to the end of the loop.  At the end of the
2130         loop, do record_waiting_files so we notice later spurious cmds.
2132 Fri Oct 23 15:57:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2134         * variable.c (define_automatic_variables): Free old value of SHELL
2135         before replacing it.
2137 Thu Oct 15 18:57:56 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2139         * compatMakefile (.c.o): Add -I$(srcdir)/glob to flags.
2141         * dir.c (open_dirstream): Cast return value to __ptr_t.
2143         * default.c (default_variables: "GET") [_IBMR2]: Use USG defn.
2145         * make.h (MAXPATHLEN): Moved out of #ifndef POSIX.
2146         (GET_PATH_MAX): Moved from #ifdef POSIX to #ifdef PATH_MAX #else.
2147         Define as (get_path_max ()).
2148         [! PATH_MAX] (NEED_GET_PATH_MAX): Define.
2149         [! PATH_MAX] (get_path_max): Declare fn.
2150         * misc.c [NEED_GET_PATH_MAX] (get_path_max): New function.
2152 Mon Oct 12 13:34:45 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2154         * Version 3.62.21.
2156         * job.c (sys_siglist): Only declare #ifndef SYS_SIGLIST_DECLARED.
2157         * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2158         SYS_SIGLIST_DECLARED.
2160         * dir.c (file_impossible): When initializing DIR->contents, set
2161         DIR->contents->dirstream to nil.
2163         * compatMakefile (GLOB): Define new variable.
2164         (objs): Use it, rather than glob/libglob.a explicitly.
2166         * read.c (parse_file_seq): When stripping "./", handle cases like
2167         ".///foo" and "./////".
2168         * file.c (lookup_file, enter_file): Likewise.
2170 Sun Oct 11 17:00:35 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2172         * dir.c (struct dirstream, {open,read}_dirstream): New
2173         data type and functions to read a directory sequentially.
2174         (init_dir): New function to hook it into glob.
2175         * main.c (main): Call init_dir.
2177         * compatMakefile (objs): Added glob/libglob.a.
2178         * configure.in: Remove code to test for glob.
2180 Fri Oct  9 12:08:30 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2182         * read.c (record_files): Generalized test for NAME pointing
2183         somewhere into F->name.
2185         * variable.c (define_variable_in_set): Free old value when replacing.
2187         * read.c (do_define): Free the linebuffer before returning.
2188         (record_files): When clearing .SUFFIXES deps, free their data.
2189         (multi_glob): Free OLD and its data when replacing it with results
2190         of glob run.
2192         * commands.c (set_file_variables): Use alloca in place of xmalloc
2193         for temp space for $^, $?, et al.
2195         * dir.c (struct directory): New member `contents' replaces `files'
2196         and `dirstream'.
2197         (struct directory_contents): New type.
2198         (directories_contents): New hash table.
2199         (dir_struct_file_exists_p): Take a struct directory_contents.
2200         (dir_file_exists_p): Pass it the `contents' member of the dir found.
2201         (dir_struct_file_exists_p): Renamed to dir_contents_file_exists_p;
2202         made static.  Return 0 if DIR is nil (meaning it couldn't be stat'd).
2203         (dir_file_exists_p, find_directory): Change all callers.
2204         (file_impossible): Use DIR->contents, initializing it if nil.
2205         (print_dir_data_base): Use DIR->contents, and print out device and
2206         inode numbers with each directory.
2208         * Changes for performance win from John Gilmore <gnu@cygnus.com>:
2209         * dir.c (DIRECTORY_BUCKETS): Increase to 199.
2210         (DIRFILE_BUCKETS): Decrease to 107.
2211         (find_directory): Allocate and zero a multiple of
2212         sizeof (struct dirfile *), not of sizeof (struct dirfile).
2213         (dir_struct_file_exists_p): New function, nearly all code from
2214         dir_file_exists_p.
2215         (dir_file_exists_p): Just call find_directory+dir_struct_file_exists_p.
2216         * vpath.c (selective_vpath_search): Remove redundant
2217         dir_file_exists_p call.
2219         * configure.in: Comment out glob check; always use our code.
2221 Fri Oct  2 19:41:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2223         * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2224         HAVE_SYS_SIGLIST; after doing #define sys_siglist _sys_siglist, we
2225         do have it.
2227 Wed Sep 30 19:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2229         * main.c (main): Don't do -w automatically if -s.
2231 Tue Sep 29 21:07:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2233         * main.c (printed_version): Move variable inside print_version.
2234         (print_version): Return immediately if printed_version is set.
2235         (die): Don't test printed_version here.
2236         (decode_switches): Under -v, do print_version before giving usage.
2237         (DESCRIPTION_COLUMN): New macro.
2238         (decode_switches): Use it when printing the usage message.
2239         Leave at least two spaces between options and their descriptions.
2241 Fri Sep 25 13:12:42 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2243         * Version 3.62.20.
2245 Wed Sep 16 16:15:22 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2247         * read.c (read_makefile): Save errno value from trying to open
2248         FILENAME, and restore it before erring; otherwise we get the errno
2249         value from the last elt of the search path.
2251 Tue Sep 15 15:12:47 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2253         * main.c (long_option_aliases): Add --stop for -S.
2255         * read.c (word1eq): Do strncmp before dereferencing someplace that
2256         may be out in space.
2258 Wed Sep  9 15:50:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2260         * remake.c (notice_finished_file): If all the command lines were
2261         recursive, don't do the touching.
2263         * job.c (start_job_command): Don't check for + here.
2264         * commands.c (chop_commands): Do it here instead.
2266         * default.c (default_terminal_rules): Prepend + to cmds for RCS.
2268 Wed Sep  2 17:53:08 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2270         * compatMakefile (objs): Include $(ALLOCA).
2272         * make.h [CRAY]: Move #define signal bsdsignal to before #includes.
2274 Thu Aug 27 17:45:43 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
2276         * read.c (default_include_directories): Add INCLUDEDIR first.
2277         * compatMakefile (includedir): Define.
2278         (defines): Add -D for INCLUDEDIR="$(includedir)".
2280         * read.c (read_makefile): Grok multiple files in `include';
2281         globbing too.
2283         * remake.c (library_search): New function.
2284         (library_file_mtime): Remove function.
2285         (f_mtime): Use library_search instead of library_file_mtime.
2286         * compatMakefile (libdir): Define.
2287         (defines): Add -D for LIBDIR="$(libdir)".
2288         * make.texinfo (Libraries/Search): Document change.
2290         * file.c (rename_file): Fix file_hash_enter call with missing arg.
2292 Wed Aug 26 17:10:46 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2294         * Version 3.62.19.
2296         * main.c (main): Set command_state to cs_finished for temp files
2297         made for stdin makefiles.
2299         * main.c (decode_switches): Don't tell getopt to return non-option
2300         args in order.
2301         Ignore an argument of `-'.
2303 Thu Aug 20 13:36:04 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2305         * job.c (start_job_command): If (touch_flag && !RECURSIVE), ignore
2306         the command line and go to the next.
2307         (notice_finished_file): Under -t, touch FILE.
2308         * remake.c (remake_file): Don't touch it here.
2310 Wed Aug 19 16:06:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2312         * function.c (pattern_matches): Use temporary for strlen (WORD)
2313         instead of two function calls.
2315         * compatMakefile (LOAD_AVG): Remove variable and comments.
2317 Tue Aug 18 14:58:58 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2319         * make.texinfo (Running): Node renamed to `make Invocation'.
2321 Fri Aug 14 12:27:10 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2323         * arscan.c (ar_name_equal): Don't compare [MAX-3..MAX] if
2324         NAMELEN != MEMLEN.
2326 Thu Aug 13 17:50:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2328         * Version 3.62.18.
2330         * main.c: Don't #include <time.h>; make.h already does.
2332 Mon Aug 10 17:03:01 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2334         * implicit.c (pattern_search): Fixed copying of suffix when building
2335         also_make elts.
2337         * function.c (expand_function: `shell'): Make sure BUFFER is
2338         null-terminated before replacing newlines.
2340         * compatMakefile (mandir): Use man$(manext), not always manl.
2342 Sun Aug  2 01:42:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2344         * rule.c (new_pattern_rule): Not static.
2345         * rule.h: Declare it.
2347         * file.c (file_hash_enter): New function, most code from rename_file.
2348         (rename_file): Call it.
2349         * file.h (file_hash_enter): Declare it.
2351         * dep.h: Doc fix.
2353 Thu Jul 30 15:40:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2355         * main.c (decode_switches): Handle usage_and_exit when building
2356         long options vector.
2358         * default.c (default_terminal_rules): Make RCS rules use $(CHECKOUT,v).
2359         (default_variables): Define CHECKOUT,v (hairy).
2361         * make.h [!HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2362         sys_siglist to _sys_siglist.
2364 Sun Jul 26 16:56:32 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2366         * NEWS: Add header and tail copyright info like Emacs NEWS.
2368         * make.h [ANSI_STRING]: Don't #define index, rindex, bcmp, bzero,
2369         bcopy if already #define'd.
2370         [STDC_HEADERS] (qsort, abort, exit): Declare here.
2371         [! __GNU_LIBRARY__ && !POSIX]: Not here.
2373         * make.h [_AIX]: #pragma alloca first thing.
2375         * job.c (start_waiting_job): Set the command_state to cs_running
2376         when we queue a job on waiting_jobs.
2378 Fri Jul 24 02:16:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2380         * variable.c (define_automatic_variables): Use "" instead of nil
2381         for empty value.
2383 Thu Jul 23 22:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2385         * Version 3.62.17.
2387         * main.c (struct command_switch.type): Add alternative usage_and_exit.
2388         (command_switches): Add -h/--help.
2390 Thu Jul 16 14:27:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2392         * GNUmakefile (make-$(version).tar.Z): Include NEWS, not CHANGES.
2393         * README.template: Mention NEWS.
2394         * CHANGES: Renamed to NEWS.
2396         * main.c [! STDC_HEADERS] [sun]: Don't declare exit.
2398 Tue Jul 14 18:48:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2400         * main.c (main): Set -o files' command_states to cs_finished.
2402         * rule.c (count_implicit_rule_limits): Decrement num_pattern_rules
2403         when tossing a rule.
2405         * main.c (main): Use alloca only in simple local var assignment,
2406         for braindead SGI compiler.
2408         * rule.c (print_rule_data_base): Barf if num_pattern_rules is
2409         inconsistent with the number computed when listing them.
2411 Mon Jul 13 17:51:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2413         * commands.c (set_file_variables): For $? and $^ elts that are archive
2414         member refs, use member name only.
2416 Fri Jul 10 00:05:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2418         * variable.h (struct variable.export): Add new alternative v_ifset.
2419         * variable.c (target_environment): Check for it.
2420         (define_automatic_variables): Set it for MAKEFILES.
2422 Thu Jul  9 21:24:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2424         * compatMakefile (objs): Remove getloadavg.o; $(extras) gets it.
2425         (remote.o): Use $(srcdir)/remote.c, not $remote.c<.
2426         (distclean, mostlyclean): New targets.
2428 Tue Jul  7 19:12:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2430         * Version 3.62.16.
2432         * compatMakefile (config.status): Remove rule.
2434         * job.c (start_waiting_job): Free C after using C->file, not before.
2436 Sat Jul  4 20:51:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2438         * commands.c, job.c, main.c, make.h, remote-cstms.c: Use #ifdef
2439         HAVE_* instead of #ifndef *_MISSING.
2440         * configure.in: Use AC_HAVE_FUNCS instead of AC_MISSING_FUNCS (gone).
2442 Thu Jul  2 18:47:52 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2444         * main.c (main): makelevel>0 or -C implies -w.
2446 Tue Jun 30 20:50:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2448         * file.c, job.c, function.c: Don't #include <errno.h>.
2449         make.h: Do it here instead.
2450         * arscan.c (ar_member_touch): Don't declare errno.
2452 Thu Jun 25 17:06:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2454         * GNUmakefile (make-$(version).tar.Z): Depend on INSTALL, configure.in.
2456         * remake.c (update_file): If commands or deps are running after
2457         update_file_1 returns, break out of the :: rule (->prev) loop and
2458         just return.
2460         * job.c (job_next_command): New function; code from start_job.
2461         (start_job_command): Renamed from start_job.  Call job_next_command
2462         and recurse for empty command lines and -n.
2463         (start_waiting_job): Call start_job_command, not start_job.
2464         (new_job): Call job_next_command to prime the child structure, and
2465         then call start_waiting_job.
2466         (reap_children): Use job_next_command and start_job_command.
2467         (start_waiting_job): Call start_remote_job_p here, and store its
2468         result in C->remote.  If zero, check the load average and
2469         maybe put C on waiting_jobs.
2470         (start_job_command): Test CHILD->remote rather than calling
2471         start_remote_job_p.  Don't do load avg checking at all here.
2473         * main.c (main): Don't handle SIGILL, SIGIOT, SIGEMT, SIGBUS,
2474         SIGSEGV, SIGFPE or SIGTRAP.
2476         * compatMakefile (glob/libglob.a): Don't pass srcdir to sub-make.
2477         configure will set it in glob/Makefile.
2479 Wed Jun 24 19:40:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2481         * dir.c [DIRENT] (direct): Don't define to dirent.
2482         [! DIRENT] (direct): Define to dirent.
2483         (dir_file_exists_p): Use struct dirent instead of struct direct.
2485         * make.h (getcwd): No space between macro and ( for args!
2487         * job.c (start_job): Don't put the job on waiting_jobs if
2488         job_slots_used==0.
2490         * make.texinfo (Missing): Shortened title.
2492 Tue Jun 23 18:42:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2494         * file.c (remove_intermediates): Print "rm" commands under -n.
2496 Mon Jun 22 16:20:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2498         * Version 3.62.15.
2500 Fri Jun 19 16:20:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2502         * arscan.c [M_UNIX]: #undef M_XENIX.
2504 Wed Jun 17 17:59:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2506         * default.c (default_terminal_rules): Put @ prefix on RCS cmds.
2508 Tue Jun 16 19:24:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2510         * compatMakefile (getloadavg.o): Removed special rule.
2511         (CFLAGS): Don't include $(defines).
2512         (.c.o): Define suffix rule.
2513         (glob/libglob.a): Pass CPPFLAGS=$(defines) to submake.
2514         (GETOPT_SRC, srcs, tagsrcs): Prefix files with $(srcdir)/.
2516         * arscan.c (ar_name_equal): Moved local vars inside #if'd block.
2518         * make.h (max): Removed.
2519         * expand.c (variable_buffer_output): Don't use it.
2521         * compatMakefile (INSTALL): Define.
2522         (Makefile): New rule to make from Makefile.in.
2523         (srcdir): Define.
2524         (VPATH): Define.
2525         (getloadavg.o, remote.o): Use autoconf $foo< hack.
2527         * commands.c (fatal_error_signal): Removed return.
2529 Mon Jun 15 17:42:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2531         * Version 3.62.14.
2533         * make.texinfo (Summary): New node.
2534         (Special Targets): Mention .EXPORT_ALL_VARIABLES here.
2536         * variable.c (max): Moved to make.h.
2538         * compatMakefile (objs, srcs): Added ar & arscan.
2540         * job.c (start_waiting_job): New function, 2nd half of new_job.
2541         (new_job): Call it.
2542         (start_waiting_jobs): New function.
2543         * remake.c (update_goal_chain): Call start_waiting_jobs at the top
2544         of the main loop.
2545         * compatMakefile (objs, srcs): Removed load, added getloadavg.
2547 Fri Jun 12 19:33:16 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2549         * job.c (load_too_high): New function.  Uses getloadavg.
2550         (waiting_jobs): New variable.
2551         (start_job): Don't call wait_to_start_job.  Instead, if
2552         load_too_high returns nonzero, add the child to the
2553         `waiting_jobs' chain and return without starting the job.
2555 Thu Jun 11 00:05:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2557         * expand.c (variable_buffer_output): Made global again.
2558         * variable.h: And declare it.
2560         * arscan.c (PORTAR): Define for all systems if PORT5AR is not defined.
2561         (AR_NAMELEN, AR_TRAILING_SLASH): Removed.
2562         (ar_scan): Don't use it.  Don't #ifdef AR_TRAILING_SLASH; just look
2563         for a slash in the archive at run time.
2564         (ar_name_equal): Rewrote .o hacking to not use AR_NAMELEN, and to
2565         cope with trailing-slash and non-trailing-slash archives.
2567         * main.c (main) [! SETVBUF_REVERSED]: Test this instead of USGr3 et al.
2568         [SETVBUF_REVERSED]: Always allocate a buffer ourselves.
2570         * load.c (load_average) [sgi]: Use sysmp call.
2572         * compatMakefile (INSTALL_DATA, INSTALL_PROGRAM): Define.
2573         ($(bindir)/$(instname), $(mandir)/make.$(manext)): Use them.
2575         * make.h [HAVE_VFORK_H]: #include <vfork.h>.
2576         (vfork, VFORK_NAME): Don't define.
2577         * job.c (start_job): Use "vfork" in place of VFORK_NAME.
2579         * make.h [HAVE_LIMITS_H, HAVE_SYS_PARAM_H]: If #define'd, #include
2580         the each file.  Rearranged PATH_MAX hacking.
2581         * job.c: Rearranged NGROUPS_MAX hacking.
2583         * remake.c (fstat, time): Don't declare.
2585         * compatMakefile (defines): Value is @DEFS@.
2586         (LOADLIBES): Value is @LIBS@.
2587         (extras): Value is @LIBOBJS@.
2588         (ARCHIVES, ARCHIVES_SRC, ALLOCASRC): Removed.
2589         * arscan.c, ar.c: Surround body with #ifndef NO_ARCHIVES.
2591         * misc.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl get*id.
2593         * make.h [GETCWD_MISSING]: Test instead of !USG && !POSIX et al.
2594         (getcwd): Just declare if present.  If not, declare as a macro
2595         using getwd, and declare getwd.
2596         [PATH_MAX] (GET_PATH_MAX): #define to PATH_MAX.
2597         * main.c (main, log_working_directory): Use getcwd instead of getwd.
2599         * main.c (main) [SETLINEBUF_MISSING]: Test this instead of USG.
2601         * make.h (SIGHANDLER, SIGNAL): Removed.
2602         (RETSIGTYPE): Define if not #define'd.
2603         * main.c (main): Use signal in place of SIGNAL.
2605         * main.c [SYS_SIGLIST_MISSING]: Test instead of USG.
2607         * job.c (search_path) [GETGROUPS_MISSING]: Test instead of USG.
2608         [HAVE_UNISTD_H]: Test instead of POSIX to not decl getgroups.
2610         * main.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl chdir.
2611         [! STDC_HEADERS]: Test instead of !POSIX to decl exit & atof.
2613         * job.c (child_handler), commands.c (fatal_error_signal): Return
2614         RETSIGTYPE instead of int.
2615         * main.c (main): Declare fatal_error_signal and child_handler here
2616         to return RETSIGTYPE; removed top-level decl of former.
2618         * commands.c (fatal_error_signal), job.c (unblock_sigs, start_job),
2619         main.c [SIGSETMASK_MISSING]: Test this instead of USG.
2621 Wed Jun 10 22:06:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2623         * job.c [HAVE_WAITPID]: Test this instead of USG.
2624         [! HAVE_UNISTD_H]: Test this instead of !POSIX to declare misc fns.
2625         (GID_T): Don't #define.
2626         (search_path): Use gid_t instead of GID_T.
2627         [GETDTABLESIZE_MISSING, SYS_SIGLIST_MISSING, DUP2_MISSING]: Test
2628         these individually instead of USG for all.
2629         * make.h (ctime): Don't declare.  #include time.h instead.
2630         [HAVE_UNISTD_H]: #include <unistd.h> and #define POSIX #ifdef
2631         _POSIX_VERSION.
2632         * dir.c [__GNU_LIBRARY__] (D_NAMLEN): Define to use d_namlen member.
2633         * make.h [NEED_MEMORY_H]: Only include memory.h #ifdef this.
2635         * arscan.c: Removed #ifdef mess about string.h et al.
2636         Just #include make.h instead.
2637         * make.h (fstat, atol): Declare.
2639         * commands.c (fatal_error_signal): Don't use sigmask to check for
2640         propagated signals; use ||s instead.
2641         (PROPAGATED_SIGNAL_MASK): Removed.
2642         (fatal_error_signal) [POSIX]: Use sigprocmask in place of sigsetmask.
2644         * variable.c (variable_buffer, variable_buffer_length,
2645         initialize_variable_output, variable_output): Moved to expand.c;
2646         made all static.
2647         (struct output_state, save_variable_output,
2648         restore_variable_output): Removed.
2649         * expand.c (initialize_variable_output): Put a NUL at the beginning
2650         of the new buffer after allocating it.
2651         (allocated_variable_expand_for_file): Don't use
2652         {save,restore}_variable_output.  Do it by hand instead, keeping
2653         state on the stack instead of malloc'ing it.
2654         (allocated_variable_expand): Removed.
2655         * variable.h (allocated_variable_expand): Define here as macro.
2656         (variable_buffer_output, initialize_variable_output,
2657         save_variable_output, restore_variable_output): Removed decls.
2659         * read.c (conditional_line): For an if cmd, if any elt of the
2660         conditionals stack is ignoring, just push a new level that ignores
2661         and return 1; don't evaluate the condition.
2663 Thu Jun  4 21:01:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2665         * main.c (main): Put #ifdef's around frobbing SIGSYS and SIGBUS.
2667         * job.c (getdtablesize): Don't declare or #define if already #define'd.
2669 Wed Jun  3 23:42:36 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2671         * file.c (snap_deps): If `.EXPORT_ALL_VARIABLES' is a target, set
2672         export_all_variables.
2673         * make.texinfo (Variables/Recursion): Document .EXPORT_ALL_VARIABLES.
2675 Tue Jun  2 21:08:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2677         * Version 3.62.13.
2679         * commands.c (set_file_variables): Calculate length for ^D and ?D
2680         individually, making sure to give them at least enough space for "./".
2682         * make.h [CRAY]: #define signal to bsdsignal.
2684         * default.c (default_variables) [CRAY]: Define PC, SEGLDR,
2685         CF77PPFLAGS, CF77PP, CFT, CF, and FC.
2687         * arscan.c (AR_HDR_SIZE): Define to sizeof (struct ar_hdr), if it
2688         wasn't defined by <ar.h>.
2690 Thu May 28 00:56:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2692         * Version 3.62.12.
2694 Tue May 26 01:26:30 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2696         * rule.c (new_pattern_rule): Initialize LASTRULE to nil, not
2697         pattern_rules.
2699 Mon May 25 19:02:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2701         * main.c (decode_switches): Initialize all the long_option elt members.
2703 Thu May 21 16:34:24 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
2705         * make.texinfo (Text Functions): Correct filter-out description.
2707 Tue May 19 20:50:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2709         * compatMakefile (realclean): Don't remove backup files.
2711         * main.c (decode_switches): Allocate ARGC+1 elts in `other_args'.
2713 Sun May 17 16:38:48 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2715         * Version 3.62.11.
2717 Thu May 14 16:42:33 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2719         * job.c (reap_children): Don't die if wait returns EINTR.
2721 Wed May 13 18:28:25 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2723         * job.c (reap_children): Always run the next command for a
2724         successful target.  If we are going to die, we don't want to leave
2725         the target partially made.
2727 Tue May 12 00:39:19 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2729         * job.c (construct_command_argv_internal): After loop, if we only
2730         have one word, check it for being a shell command.
2732         * main.c (decode_switches): Allocate ARGC slots in other_args to
2733         begin with, so we never need to worry about growing it.
2734         If we get a non-option arg and POSIXLY_CORRECT is in the
2735         environment, break out of the loop.  After the loop, add all remaining
2736         args to other_args list.
2738         * main.c (decode_switches): For positive_int and floating switches
2739         when optarg is nil, use next arg if it looks right (start with a
2740         digit, or maybe decimal point for floating).
2742         * variable.c (define_automatic_variables): Always set SHELL to
2743         default if it comes from the environment.  Set its export bit.
2744         * make.texinfo (Environment): Document change.
2746 Mon May 11 00:32:46 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2748         * Version 3.62.10.
2750         * compatMakefile (tags, TAGS): Use vars for cmds.
2751         (ETAGS, CTAGS): Define.
2753         * main.c (decode_switches): If a switches elt has a nil long_name,
2754         make the long option name elt be "".
2755         Fixed loop to not ignore all the options.
2757         * make.texinfo (Option Summary): Added long options.
2759         * main.c (switches): Changed -m's description to "-b".
2760         (decode_switches): When printing the usage message, don't print
2761         switches whose descriptions start with -.
2762         When constructing the list of names for switch -C, search the
2763         switches vector for switches whose descriptions are "-C".
2765         * main.c (switches): Call -S --no-keep-going, not --dont-keep-going.
2766         Call -I --include-dir, not --include-path.
2767         (long_option_aliases): Added --new == -W, --assume-new == -W,
2768         --assume-old == -o, --max-load == -l, --dry-run == -n, --recon == -n,
2769         --makefile == -f.
2771         * main.c (switches): Removed bogus "silent" elt.
2772         (long_option_aliases): Define new var.
2773         (decode_switches): Add long_option_aliases onto the end of the long
2774         options vector created for getopt_long.
2775         Look through long_option_aliases for extra names to list
2776         in usage message.
2778 Sat May  9 00:21:05 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2780         * main.c (log_working_directory): Fixed to properly not print the
2781         leaving message when we haven't printed the entering message.
2783 Fri May  8 21:55:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2785         * main.c (struct command_switch): Added elts `long_name', 
2786         `description', and `argdesc'.
2787         (switches): Added initializers for new members.
2788         (decode_switches): Rewritten to use getopt_long.
2789         * compatMakefile (GETOPT, GETOPT_SRC): Define.
2790         (objs, srcs): Include them.
2792         * job.c (child_died): Renamed to dead_children; made static.
2793         (child_handler): Increment dead_children instead of setting child_died.
2794         (reap_children): Decrement dead_children instead of clearing
2795         child_died.  The point of all this is to avoid printing "waiting
2796         for unfinished jobs" when we don't actually need to block.
2797         This happened when multiple SIGCHLDs before reap_children was called.
2799         * job.c (reap_children): If ERR is set, so we don't call start_job
2800         on the child being reaped, instead set its command_state to
2801         cs_finished.
2802         (reap_children, child_handler, new_job): I added several
2803         debugging printf's while fixing this.  I left them in if (debug_flag) 
2804         because they may be useful for debugging this stuff again.
2806 Wed May  6 22:02:37 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2808         * read.c (read_makefile): v_export is not 1.
2810 Mon May  4 17:27:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2812         * Version 3.62.9.
2814         * variable.c (export_all_variables): New variable.
2815         (target_environment): Export variables whose `export' member is
2816         v_default if export_all_variables is set and their names are benign.
2817         * variable.h: Declare export_all_variables.
2818         * read.c (read_makefile): If export or unexport is given with no
2819         args, set or clear export_all_variables, respectively.
2821         * variable.c (target_environment): Exclude MAKELEVEL in the loop,
2822         so it isn't duplicated when we add it at the end.
2824 Sun May  3 17:44:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2826         * Version 3.62.8.
2828         * variable.h (struct variable): Added new member `export'.
2829         * variable.c (define_variable_in_set): Initialize it to v_default.
2830         (target_environment): Don't check for .NOEXPORT.
2831         Export variables whose `export' member is v_default and that would
2832         have been exported under .NOEXPORT, and variables whose `export'
2833         member is v_export.
2834         (try_variable_definition): Return the variable defined.
2835         * variable.h (try_variable_definition): Changed decl.
2836         * read.c (read_makefile): Recognize `export' and `unexport' directives.
2838 Fri May  1 11:39:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2840         * main.c (main) [POSIX]: Reversed args to sigaddset.
2842 Thu Apr 30 17:33:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2844         * job.c [POSIX || !USG] (unblock_sigs): New fn.
2845         (start_job): Block signals before forking.
2846         (new_job): Unblock signals after putting the new child on the chain.
2847         * main.c (main) [POSIX]: Use sigset_t fatal_signal_set instead of
2848         int fatal_signal_mask.
2850         * load.c [sgi] (LDAV_CVT): Define.
2852 Wed Apr 29 17:15:59 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2854         * Version 3.62.7.
2856         * load.c (load_average) [sgi]: Clear the high bit of the address
2857         from the symbol table before looking it up in kmem.
2859         * misc.c (fatal, makefile_fatal): Put *** in fatal error messages.
2860         (remake_file): No longer needed in message here.
2862         * main.c (die): Call reap_children with BLOCK==1.
2864 Tue Apr 28 20:44:35 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2866         * rule.c (freerule): Don't set LASTRULE->next if LASTRULE is nil.
2868 Sun Apr 26 15:09:51 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2870         * rule.c (count_implicit_rule_limits): Initialize LASTRULE to nil,
2871         not to head of chain.  Extract next ptr before we might do
2872         freerule, and use that for next iteration.
2873         (freerule): Still do next ptr frobbing if LASTRULE is nil.
2875 Tue Apr 21 03:16:29 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2877         * job.c (child_error): Removed extra %s from error msg format.
2879         * Version 3.62.6.
2881         * job.c (reap_children): Don't start later commands in a sequence
2882         if ERR is nonzero.
2884         * job.c (new_job): Always call reap_children with BLOCK==0 first thing.
2886         * job.c (reap_children): New function; work that used to be done in
2887         child_handler.
2888         (child_died): New global var.
2889         (child_handler): Now just sets child_died.
2890         (wait_for_children): Removed.
2891         (unknown_children_possible, block_signals, unblock_signals,
2892         push_signals_blocked_p, pop_signals_blocked_p): Removed.
2893         (child_execute_job): Removed call to unblock_signals.
2894         (new_job): Removed calls to push_signals_blocked_p and
2895         pop_signals_blocked_p.
2896         * job.h: Declare reap_children, not wait_for_children.
2897         * commands.c (fatal_error_signal), job.c (new_job),
2898         load.c [LDAV_BASED] (wait_to_start_job), main.c (die),
2899         remake.c (update_goal_chain), function.c (expand_function: `shell'):
2900         Changed wait_for_children calls to reap_children.
2901         Some needed to be loops to wait for all children to die.
2902         * commands.c (fatal_error_signal), main.c (main,
2903         log_working_directory), function.c (expand_function): Removed calls
2904         to push_signals_blocked_p and pop_signals_blocked_p.
2905         * job.h: Removed decls.
2907         * job.h: Added copyright notice.
2909 Wed Apr 15 02:02:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2911         * job.c (child_error): No *** for ignored error.
2913 Tue Apr 14 18:31:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2915         * implicit.c (DEBUGP2): Use do ... while (0) instead of if ... else to
2916         avoid compiler warnings.
2918         * read.c (parse_file_seq): Don't remove ./ when it is followed by a
2919         blank.
2921 Mon Apr 13 21:56:15 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2923         * make.h (DEBUGPR): Use do ... while (0) instead of if ... else to
2924         avoid compiler warnings.
2926         * remake.c (notice_finished_file): Run file_mtime on the also_make
2927         files, so vpath_search can happen.
2929         * GNUmakefile (tests): Use perl test suite from csa@sw.stratus.com.
2930         (alpha-files): Include test suite tar file.
2932 Fri Apr  3 00:50:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2934         * Version 3.62.5.
2936 Wed Apr  1 05:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2938         * remake.c (update_file, update_file_1): Do check_renamed on elts
2939         of dep chains when traversing them.  Something unrelated might have
2940         renamed one of the files the dep chain points to.
2942         * file.c (rename_file): If FILE has been renamed, follow its
2943         `renamed' ptr, so we get to the final real FILE.  Using the renamed
2944         ones loses because they are not in the hash table, so the removal
2945         code loops infinitely.
2947         * read.c (read_all_makefiles): Clobber null terminator into
2948         MAKEFILES expansion, so string passed to read_makefile is properly
2949         terminated.
2951 Mon Mar 30 20:18:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2953         * commands.c (set_file_variables): $* for archive member with
2954         explicit cmds is stem of member, not of whole `lib(member)'.
2956 Thu Mar 26 15:24:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2958         * Version 3.62.4.
2960 Tue Mar 24 05:20:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2962         * rule.c (new_pattern_rule): Rules are identical only if all their
2963         targets match (regardless of order).
2965 Wed Mar 11 13:49:54 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2967         * remake.c (remake_file): Changed error "no way to make" to "no
2968         rule to make".  Fiat Hugh.
2970         * make.texinfo (Last Resort): Describe %:: rules and new .DEFAULT
2971         behavior.
2973         * remake.c (update_file_1): Only use .DEFAULT cmds if FILE is not a
2974         target.
2976 Tue Mar 10 18:13:13 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
2978         * remote-stub.c, remote-cstms.c (start_remote_job): Take new arg,
2979         environment to pass to child.
2980         * job.c (start_job): Pass it.
2982 Mon Mar  9 19:00:11 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2984         * file.c (enter_file): Also strip ./s here, to get command-line
2985         target names.
2987         * remote-cstms.c: Add comment telling people to leave me alone.
2989         * compatMakefile (manpage install): Remove target before copying.
2991 Tue Mar  3 18:43:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2993         * make.texinfo (Missing): Renamed to "Incompatibilities and ...".
2994         Added paragraph describing $? incompatibility with Unix and POSIX.2.
2996 Sun Mar  1 15:50:54 1992  Roland McGrath  (roland@nutrimat.gnu.ai.mit.edu)
2998         * function.c (expand_function: `shell'): Don't declare fork or pipe.
2999         Use vfork instead of fork.
3001 Tue Feb 25 22:05:32 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3003         * make.texinfo (Chained Rules): Clarify .PRECIOUS to save
3004         intermediate files.
3006         * load.c [sun] (LDAV_CVT): Define to divide by FSCALE.
3008 Sun Feb 16 02:05:16 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3010         * Version 3.62.3.
3012 Sat Feb 15 17:12:20 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3014         * compatMakefile (makeinfo): Use emacs batch-texinfo-format fn.
3016 Fri Feb 14 00:11:55 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3018         * read.c (read_makefile): Correctly handle define & endef in ifdefs.
3020         * read.c (record_files): Pass arg for %s in error msg.
3022         * main.c (main) [__IBMR2, POSIX]: Use correct (a la USGr3) setvbuf
3023         call.
3025 Wed Feb 12 12:07:39 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3027         * make.texinfo (Libraries/Search): Say it does /usr/local/lib too.
3029 Sun Feb  9 23:06:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3031         * read.c (read_makefile): Check for extraneous `endef' when ignoring.
3033 Thu Feb  6 16:15:48 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3035         * Version 3.62.2.
3037 Tue Feb  4 20:04:46 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3039         * job.c (construct_command_argv_internal): Correctly ignore
3040         whitespace after backslash-NL.
3042 Fri Jan 31 18:30:05 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3044         * compatMakefile: Ignore errors from chgrp and chmod when installing.
3046 Wed Jan 29 18:13:30 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3048         * main.c (main): When setting MAKELEVEL in the env to re-exec,
3049         allocate space so as not to clobber past the end of the old string.
3051         * make.h [HAVE_ALLOCA_H]: Include <alloca.h>
3052         * compatMakefile (defines): Document HAVE_ALLOCA_H.
3054 Mon Jan 20 13:40:05 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3056         * make.h [VFORK_MISSING]: Use fork instead.
3057         * compatMakefile (defines): Document same.
3059         * job.c (construct_command_argv_internal): Don't create an empty
3060         arg if backslash-NL is at beginning of word.
3062 Sun Jan 19 16:26:53 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3064         * main.c [DGUX]: Call setvbuf as for USGr3.
3066         * job.c (construct_command_argv_internal): Notice correctly that
3067         backslash-NL is the end of the arg (because it is replaced with a
3068         space).
3070 Thu Jan 16 18:42:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3072         * job.c (construct_command_argv_internal): If SHELL is nil, set it
3073         to default_shell before proceeding.
3075         * make.h [sgi]: No alloca.h, after all.
3077 Wed Jan 15 12:30:04 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3079         * read.c (multi_glob): Cons up the chain of the results of glob
3080         from back to front, so it comes out in forward order.
3082         * job.c (construct_command_argv_internal): Don't eat char following
3083         backslash-NL.
3085 Mon Jan 13 19:16:56 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3087         * Version 3.62.1.
3089         * default.c (default_variables) [ultrix]: GET=get, like USG.
3091         * job.c (construct_command_argv_internal): Remove tabs following
3092         backslash-NL combos in the input line, so they don't show up when
3093         that line is printed.
3095         * read.c (read_makefile): Don't collapse_continuations the line on
3096         input; do it on the copy we do remove_comments on.
3097         For rule lines, collapse_continuations the line after chopping
3098         ";cmds" off the end, so we don't eat conts in the cmds.
3099         Give error for ";cmds" with no rule.
3100         * job.c (construct_command_argv_internal): Eat backslash-NL combos
3101         when constructing the line to recurse on for slow, too.
3103 Sat Jan 11 02:20:27 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3105         * file.c (enter_file): Don't strip leading `./'s.
3106         * read.c (parse_file_seq): Take new arg STRIP; if nonzero, do it here.
3107         * default.c (set_default_suffixes), function.c (string_glob),
3108         read.c (read_makefile), rule.c (install_pattern_rule): Change callers.
3110         * default.c (default_variables) [_IBMR2]: FC=xlf
3112         * job.c (construct_command_argv_internal): Turn backslash-NL and
3113         following whitespace into a single space, rather than just eating
3114         the backslash.
3116         * make.texinfo (Copying): @include gpl.texinfo, rather than
3117         duplicating its contents.
3119 Fri Nov  8 20:06:03 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3121         * job.c (construct_command_argv_internal): Make sure not to bother
3122         processing an empty line.
3124         * Version 3.62.0.
3126         * job.c (construct_command_argv_internal): Always recurse for slow;
3127         simple case didn't handle finding newlines.
3129 Tue Nov  5 18:51:10 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3131         * job.c (construct_command_argv_internal): Set RESTP properly when
3132         slow; don't \ify past a newline.
3134 Fri Nov  1 19:34:28 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3136         * make.h [sgi]: #include <alloca.h>.
3138 Tue Oct 29 20:57:36 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3140         * Version 3.62.
3142         * remake.c (update_file_1): Check for deps still running before
3143         giving up if any dep has failed.
3145 Sat Oct 26 16:20:00 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3147         * make.h [uts]: #undef S_ISREG and S_ISDIR if defined.
3149 Fri Oct 25 19:50:39 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3151         * Version 3.60.17.
3153 Thu Oct 24 16:58:36 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3155         * job.c (start_job): Don't check for empty cmds before tweaking the
3156         command_ptr.  Just let construct_command_argv do it.
3158 Tue Oct 22 20:21:03 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3160         * remake.c, arscan.c [POSIX]: <fcntl.h> instead of <sys/file.h>.
3162         * make.h [POSIX]: Declare vfork as pid_t.
3164 Mon Oct 21 15:37:30 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3166         * Version 3.60.16.
3168         * job.c (construct_command_argv, construct_command_argv_internal):
3169         Take new 2nd arg RESTP.  If non-NULL, stop parsing at newline, and
3170         store addr of the NL in *RESTP.
3171         (start_job): Don't chop expanded cmd lines up; use above code to do it.
3172         * function.c (expand_function: `shell'): Pass RESTP==NULL.
3174 Sat Oct 19 15:36:34 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3176         * Version 3.60.15.
3178 Fri Oct 18 15:26:55 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3180         * job.c (start_job): If on the same cmds->command_lines elt, look
3181         at cmds->lines_recurse[CHILD->command_line - 1] instead of
3182         [CHILD->command_line].
3184         * dir.c [sgi]: <sys/dir.h>, not ndir or anything else.
3186 Thu Oct 17 16:28:55 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3188         * file.c (print_file_data_base): Remove unused var.
3190         * make.h [NeXT]: No #define ANSI_STRING.
3192 Tue Oct 15 20:08:41 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3194         * Version 3.60.14.
3196 Fri Oct 11 16:23:52 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3198         * make.h: Use PATH_MAX for getwd defn.
3200         * make.h: Move getcwd/getwd outside of #ifndef POSIX, and make it
3201         #if USG||POSIX.
3203 Thu Oct 10 11:53:31 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3205         * Version 3.60.13.
3207         * read.c (read_all_makefiles): When processing MAKEFILES, save the
3208         malloc'd ptr to be freed, instead of freeing part-way thru it.
3210         * remake.c (update_file_1): Don't tweak FILE->also_make.
3211         (update_file): Do it here.  After calling update_file_1, set the
3212         command_state, update_status, and updated members of each also_make
3213         elt to FILE's values.
3215 Tue Oct  8 14:56:04 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3217         * Version 3.60.12.
3219         * remake.c (notice_finished_file): Set command_state of FILE and
3220         its also_make chain to cs_finished here.
3221         * commands.c (execute_file_commands), job.c (child_handler),
3222         remake.c (remake_file): Don't set it before calling
3223         notice_finished_file.
3225         * file.h (struct file): Changed `also_make' to struct dep *.
3226         * job.c (delete_child_targets), file.c (print_file_data_base),
3227         remake.c (notice_finished_file), implicit.c (pattern_search):
3228         Use dep chain instead of array of file names.
3230 Mon Oct  7 17:04:33 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3232         * Version 3.60.11.
3234         * arscan.c: Declare open.
3235         * misc.c: Declare {get,set}{re,}[ug]id.
3236         * variable.c (target_environment): Declare getenv.
3238 Sat Oct  5 15:13:03 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3240         * make.h [NeXT]: <string.h> instead of <strings.h>.
3242 Fri Oct  4 16:05:41 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3244         * default.c (default_suffixes, defualt_suffix_rules): Add .texi
3245         just like .texinfo.
3247         * Version 3.60.10.
3249         * job.c: Move vfork decl into make.h.
3251 Fri Sep 27 18:45:30 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3253         * compatMakefile (glob/libglob.a): Pass CC value to submake.
3255 Thu Sep 26 00:08:15 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3257         * load.c (load_average): Made not static.
3259         * load.c [ultrix && vax]: Define LDAV_TYPE and LDAV_CVT for Ultrix 4.2.
3261 Tue Sep 24 00:17:20 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3263         * Version 3.60.9.
3265         * read.c (record_files): Warn about extra cmds even if the target's
3266         name begins with a dot.  I think the lusers can handle this.
3268 Mon Sep 23 22:33:26 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3270         * make.h, arscan.c: Don't declare bcmp, bzero, or bcopy if they're
3271         #define'd.
3272         * make.h: Declare write and open.
3274         * default.c (default_suffixes, default_suffix_rules,
3275         default_variables): Add .C just like .cc.
3276         * make.texinfo (Catalogue of Rules): Document .C.
3278         * make.man (-w): Fix gramo.
3280 Fri Sep 20 17:18:16 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3282         * make.h: No text after #endif.
3284 Sun Sep 15 16:20:46 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3286         * Version 3.60.8.
3288         * implicit.c (pattern_search): In the second pass, recurse on rule
3289         deps that don't have a %.  Why did I make it not do this?
3291 Fri Sep 14 18:29:39 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3293         * read.c (record_files): For extra cmds, use the last ones given.
3294         If the target's name doesn't begin with a dot (bletch!!), emit a
3295         two-line warning, one line giving the old cmds' location and the
3296         other the new cmds' location.
3298         * misc.c (makefile_error, makefile_fatal): New fns.
3299         * make.h: Declare them.
3300         * Use them instead of error/fatal for all msgs including a file
3301         name and line number.
3303 Thu Sep 13 16:35:54 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3305         * make.h: Declare define_default_variables.
3306         Declare ar_parse_name, instead of ar_name_parse (M-t).
3308 Mon Sep 10 18:35:40 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3310         * Version 3.60.7.
3312         * make.texinfo (Variables: Setting): Say whitespace is removed if
3313         "immediately after =", rather than simply "after =".
3315         * job.c: Don't declare wait #ifdef POSIX.
3317         * make.h [__GNUC__]: #undef alloca and then #define it.
3319         * main.c (main): When pruning makefiles which might loop from the
3320         read_makefiles chain, look at all `prev' entries of double-colon rules.
3322 Fri Sep  7 00:41:53 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3324         * main.c (main): Only remove makefiles with cmds but no deps from
3325         the list of makefiles to be rebuilt if they are :: targets.
3326         : targets with cmds and no deps are not dangerous.
3328 Wed Sep  5 17:35:51 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3330         * compatMakefile (defines): Add comment that some compilers take
3331         ENUM_BITFIELDS but produce bogus code.
3332         (LOAD_AVG): Fix examples to \ "s.
3333         (LOADLIBES): Add comment that SGI Irix needs -lmld for nlist.
3335 Tue Sep  4 20:26:26 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3337         * Version 3.60.6.
3339 Fri Aug 30 19:34:04 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3341         * remake.c (update_file_1): When checking the command_state of
3342         deps, check through the prev chain.
3343         (update_goal_chain): When a target is finished, start checking its
3344         prev (if it has one) instead.
3346 Wed Aug  7 17:32:03 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3348         * rule.c (convert_to_pattern): Allow files with deps to define
3349         suffix rules (really this time).
3351 Mon Aug  5 17:09:21 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3353         * misc.c (user_access, make_access): Do saved-IDs (USG) flavor
3354         #ifdef POSIX.
3356         * file.c (enter_file): Strip ./s here.
3357         * read.c (parse_file_seq): Not here.
3359 Tue Jul 23 23:34:30 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3361         * compatMakefile: Added comment that -lPW alloca is broken on HPUX.
3363 Thu Jul 18 03:10:41 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3365         * Version 3.60.5.
3367         * read.c (read_makefile): Ignore lines containing chars that are
3368         all isspace, not just all isblank.
3370         * make.texinfo (Copying): @include gpl.texinfo, rather than copying
3371         the text.
3372         * gpl.texinfo: New file (symlink to /gd/gnu/doc/gpl.texinfo).
3373         * GNUmakefile: Put gpl.texinfo in distribution.
3375 Tue Jul 16 12:50:35 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3377         * make.h: #define _GNU_SOURCE before including headers.
3378         Include <ctype.h> and define isblank if <ctype.h> doesn't.
3379         * commands.c: Don't include <ctype.h> here.
3380         * *.c: Use isblank instead of explicit ' ' || '\t'.
3382 Mon Jul 15 17:43:38 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3384         * function.c (expand_function: `filter'/`filter-out'): Fixed to not
3385         loop infinitely.
3387 Fri Jul 12 12:18:12 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3389         * function.c (expand_function: `filter'/`filter-out'): Rewritten to
3390         handle filter-out of multiple patterns properly.  Also no longer
3391         mallocs and reallocs for temp array; uses alloca and a linked-list
3392         instead.
3394 Wed Jul 10 22:34:54 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3396         * Version 3.60.4.
3398         * make.texinfo: Moved some @groups that were outside @examples to
3399         be inside them.
3401         * load.c [apollo] (load_average): Define using special syscall for
3402         Apollo DOMAIN/OS SR10.n.
3404 Thu Jul  4 12:32:53 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3406         * make.texinfo (Missing): Added Unix excessive implicit rule
3407         search; mention that POSIX.2 doesn't require any of the missing
3408         features.
3409         (Top): Updated printed manual price to $15.
3411 Wed Jul  3 18:17:50 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3413         * file.c (rename_file): Carry over last_mtime when merging files.
3414         * remake.c (f_mtime): Tail-recurse after renaming VPATH file, to
3415         check for saved date in existing renamed-to file.
3417         * remote-cstms.c (start_remote_job): Use PATH_VAR.
3419         * commands.c [POSIX || __GNU_LIBRARY__]: Don't declare getpid.
3421         * compatMakefile (glob-{clean,realclean}): Run clean/realclean in glob.
3422         (clean, realclean): Require those.
3424         * make.h: Always declare environ.
3425         Don't declare old glob functions.
3427         * GNUmakefile: Make no-lib deps for load.c and remote.c.
3429 Tue Jul  2 18:35:20 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3431         * Version 3.60.3.
3433 Mon Jul  1 16:58:30 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3435         * read.c (multi_glob): Don't pass GLOB_QUOTE flag to glob.
3437         * make.h [POSIX]: Include <unistd.h>, and don't declare things that
3438         should be there.
3440         * main.c (main) [USG && sgi]: malloc a buffer for broken sgi stdio.
3442 Sat Jun 29 11:22:21 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3444         * function.c (expand_function: `shell'): Use alloca for the error
3445         msg buffer, instead of assuming an arbitrary max size.
3447 Fri Jun 28 18:15:08 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3449         * job.c [POSIX] (search_path): Do real 1003.1 goop to get NGROUPS_MAX.
3451 Wed Jun 26 11:04:44 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3453         * default.c (define_default_variables): New fn.
3454         (install_default_implicit_rules): Code for above fn moved there.
3455         * main.c (main): Do define_default_variables before reading the
3456         makefile.
3458 Tue Jun 25 17:30:46 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3460         * main.c (main): Quote ; in MAKEOVERRIDES.
3462 Tue Jun 18 13:56:30 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3464         * compatMakefile: Fixed typo in comment.
3466 Tue Jun 11 00:14:59 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3468         * Version 3.60.2.
3470 Mon Jun 10 14:46:37 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3472         * make.h: Always include <sys/types.h>.
3473         [POSIX]: Include <limits.h> and #define MAXPATHLEN to be PATH_MAX.
3475         * default.c (default_suffix_rules: .texinfo.dvi): Use $(TEXI2DVI).
3476         (default_variables): Define TEXI2DVI.
3478 Thu Jun  6 16:49:19 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3480         * Version 3.60.1.
3482         * make.h (SIGNAL): Cast handler arg to SIGHANDLER type.
3484 Wed Jun  5 06:00:43 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3486         * read.c (multi_glob): Use POSIX.2 `glob' function.
3487         If a glob pattern matches nothing, leave it as is (a la sh, bash).
3488         Also, if can't find USER for ~USER, leave it as is (a la bash).
3490 Mon Jun  3 16:36:00 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3492         * compatMakefile: Rewrote comments about -Ds to be easier to use.
3494         * make.h, arscan.c, remake.c, main.c, dir.c, job.c: Changed tests
3495         of _POSIX_SOURCE to POSIX.
3497         * job.c: Take getdtablesize out of #ifdef __GNU_LIBRARY__.
3498         Put separately #ifdef USG.
3500         * COPYING: Replaced with version 2.
3501         * Changed copyright notices to refer to GPL v2.
3503 Thu May 30 00:31:11 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3505         * make.h: Don't declare sigblock for POSIX.
3507         * main.c (main, log_working_directory) [USG]: Get getcwd failure
3508         mode from errno, not passed buffer like BSD getwd.
3510         * misc.c (child_access): New fn to set access for a child process;
3511         like user_access, but you can't change back.
3512         * make.h: Declare it.
3513         * job.c (exec_command): Use it in place of user_access.
3515 Wed May 29 23:28:48 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3517         * default.c (default_variables) [pyr]: PC = pascal.
3519 Tue May 28 20:24:56 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3521         * variable.c (print_variable): Put a newline before `endef'.
3523 Sat May 25 02:39:52 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3525         * Version 3.60.
3527 Wed May 22 19:41:37 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3529         * Version 3.59.5.
3531 Thu May 16 13:59:24 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3533         * main.c (main): Do USGr3 setvbuf behavior #ifdef APOLLO.
3534         Don't handle SIGCHLD #ifdef USG (Apollo is USG but defines SIGCHLD).
3536 Fri May 10 14:59:33 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3538         * remake.c [sgi]: Don't include <sys/file.h>.
3540 Wed May  8 01:54:08 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3542         * make.h (SIGHANDLER): #define as (void *) #if __STDC__,
3543         else (int (*)()).
3544         (SIGNAL): Use it to cast return value.
3545         * main.c (main): Cast SIG_IGN to SIGHANDLER when comparing.
3546         * job.c (block_signals, unblock_signals): Use SIGNAL instead of signal.
3548         * main.c: Declare mktemp to return char*, not int.
3550         * job.c (new_job): Don't increment files_remade.
3551         * remake.c (notice_finished_file): Do it here.
3553         * read.c (do_define): Don't clobber DEFINITION[-1] on empty defns.
3554         Free storage that is no longer needed.
3556 Wed Apr 24 20:49:48 1991  Roland McGrath  (roland at churchy.gnu.ai.mit.edu)
3558         * misc.c (message): New fn to print informational msgs with
3559         leading "make: " or "make[N]: ".
3560         * make.h: Declare it.
3561         * remake.c (update_file): Use it instead of printf.
3563 Fri Apr 19 05:52:45 1991  Roland McGrath  (roland at churchy.gnu.ai.mit.edu)
3565         * main.c (main): When there are no targets, if there were no
3566         makefiles, print a different error message, which mentions makefiles.
3568 Tue Apr 16 03:22:45 1991  Roland McGrath  (roland at geech.gnu.ai.mit.edu)
3570         * remake.c (update_file): Print "nothing to be done" instead of "is
3571         up to date" if FILE->cmds == 0.
3573         * job.c [!WIFEXITED]: Define if not already defined.
3575 Thu Apr 11 18:00:50 1991  Roland McGrath  (roland at wookumz.gnu.ai.mit.edu)
3577         * arscan.c (ar_name_equal): Fixed truncation comparison.
3579 Tue Apr  2 16:17:35 1991  Roland McGrath  (roland at churchy.gnu.ai.mit.edu)
3581         * glob.c: Use common version from djm.
3582         * dir.c: Snarfed #ifdef mess for <dirent.h> or whatever from glob.c.
3583         (dir_file_exists_p): Ignore directory entries with d_ino==0.
3585 Mon Apr  1 20:49:45 1991  Roland McGrath  (roland at albert.gnu.ai.mit.edu)
3587         * Version 3.59.4.
3589 Fri Mar 29 19:16:18 1991  Roland McGrath  (roland at albert.gnu.ai.mit.edu)
3591         * job.c (free_child): Free CHILD->environment and its elts.
3593 Sat Mar 23 14:08:09 1991  Roland McGrath  (roland at albert.gnu.ai.mit.edu)
3595         * read.c (read_makefile): Don't ignore lines containing only
3596         comments if they start with a tab.  Such lines should be passed to
3597         the shell for it to decide about the comments.
3599         * job.c (free_child): Free CHILD->command_lines and its elts, not
3600         CHILD->commands (which is obsolete).
3601         * job.h, job.c: Remove obsolete `commands' member of `struct child'.
3603 Sun Mar 17 18:40:53 1991  Roland McGrath  (roland at albert.ai.mit.edu)
3605         * remake.c (update_file): Print a msg for a top-level up-to-date
3606         phony target (a different one than for a real file).
3608         * read.c (conditional_line): Boundary check so we don't check the
3609         value of the -1th elt of the stack (which is bogus).
3611 Sat Mar 16 16:58:47 1991  Roland McGrath  (roland at albert.ai.mit.edu)
3613         * read.c (conditional_line): Don't evaluate an if* when we're
3614         already ignoring.  Instead, just push a new level, with a value of
3615         1, to keep ignoring.
3617 Tue Mar 12 00:16:52 1991  Roland McGrath  (roland at geech.ai.mit.edu)
3619         * Version 3.59.3.
3621 Mon Mar 11 23:56:57 1991  Roland McGrath  (roland at geech.ai.mit.edu)
3623         * job.c (construct_command_argv_internal): Quote backslashes
3624         when building the shell -c line.
3626 Fri Mar  8 01:40:18 1991  Roland McGrath  (roland at geech.ai.mit.edu)
3628         * job.c (exec_command): Call user_access rather than setgid(getgid()).
3630         * misc.c (remove_comments): Renamed from collapse_line; took out
3631         collapse_continuations call.
3632         * make.h: Change decl.
3633         * read.c (read_makefile): Collapse continuations on the line buffer
3634         immediately after reading it.  Call remove_comments rather than
3635         collapse_line (which is now defunct).
3637 Thu Feb 21 18:06:51 1991  Roland McGrath  (mcgrath at cygint.cygnus.com)
3639         * misc.c (user_access, make_access): New fns to toggle btwn permissions
3640         for user data (files and spawning children), and permissions for make
3641         (for taking the load average, mostly).
3642         * make.h: Declare them.
3643         * job.c (start_job): Call make_access before wait_to_start_job, and
3644         user_access after.
3645         * main.c (main): Call user_access before doing much.
3647 Mon Feb  3 15:02:03 1991  Roland McGrath  (roland at albert.ai.mit.edu)
3649         * Version 3.59.2.
3651 Tue Jan 29 20:30:50 1991  Roland McGrath  (roland at cygint.cygnus.com)
3653         * read.c (read_all_makefiles): Use allocated_variable_expand to expand
3654         `$(MAKEFILES)', since the results are used across calls to
3655         read_makefile, which could clobber them.
3657 Wed Jan 23 00:24:10 1991  Roland McGrath  (roland at cygint.cygnus.com)
3659         * main.c (main): Call install_default_implicit_rules after reading
3660         makefiles, not before.
3661         * default.c (install_default_implicit_rules): If a suffix-rule file
3662         entry has cmds, don't give it any from default_suffix_rules.
3664 Fri Jan 17 17:39:49 1991  Roland McGrath  (roland at albert.ai.mit.edu)
3666         * arscan.c: Added support for AIX archives.
3668         * remake.c: Don't include ar.h.
3669         * main.c: Removed unused atol decl.
3670         * arscan.c (ar_scan): Declare arg FUNCTION to return long int.
3671         * ar.c (ar_touch): Don't perror for an invalid archive.
3672         * make.h: Declare lseek as long int.
3674         * job.c [hpux]: Define getdtablesize a la USG.
3676 Sun Jan 12 21:08:34 1991  Roland McGrath  (roland at albert.ai.mit.edu)
3678         * Version 3.59.1.
3680 Fri Jan 10 03:48:08 1991  Roland McGrath  (roland at albert.ai.mit.edu)
3682         * job.c (search_path): Take new arg, place to put full pathname (rather
3683         than mallocing it).
3684         (exec_command): Pass it, using auto storage.
3686         * main.c (print_version): Updated copyright years.
3688 Wed Jan  8 19:46:19 1991  Roland McGrath  (roland at albert.ai.mit.edu)
3690         * job.c [_POSIX_SOURCE]: Just #include <sys/wait.h>, and define macro
3691         WAIT_NOHANG in terms of waitpid.
3692         [!_POSIX_SOURCE && (HAVE_SYS_WAIT || !USG)]: Don't #include <signal.h>
3693         (make.h does).
3694         Define macro WAIT_NOHANG in terms of wait3.
3695         (child_handler): #ifdef on WAIT_NOHANG, not HAVE_SYS_WAIT || !USG.
3696         Use WAIT_NOHANG macro instead of wait3.
3698         * file.h (struct file.command_state): Remove unused elt.
3700 Wed Dec 26 18:10:26 1990  Roland McGrath  (roland at albert.ai.mit.edu)
3702         * commands.c (set_file_variables): If FILE got its commands from
3703         .DEFAULT, make $< == $@ (4.3 BSD/POSIX.2d11 compat).
3705 Mon Dec 24 17:36:27 1990  Roland McGrath  (roland at albert.ai.mit.edu)
3707         * default.c (default_variables): Rename 2nd LINK.s defn to LINK.S.
3709 Fri Dec 14 15:05:25 1990  Roland McGrath  (roland at albert.ai.mit.edu)
3711         * vpath.c (selective_vpath_search): Check for makefile-mentioned before
3712         checking for actual existence.  The old order loses if the containing
3713         directory doesn't exist (but a rule might make it).
3715         * make.h [__GNUC__]: Don't #define alloca if already #define'd.
3717         * rule.c (convert_to_pattern): Don't look at the target constructed for
3718         the empty rule when making the null-suffix rule.  Construct it over
3719         again, since the former may have been freed already.
3721 Thu Dec 13 17:21:03 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3723         * make.h [__GNU_LIBRARY__]: Include <unistd.h> to get random fn decls.
3725 Wed Dec 12 17:12:59 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3727         * make.h, arscan.c, glob.c: Only include <memory.h> #ifdef USG.
3729         * variable.c (define_variable_in_set): Replace env_overrides check that
3730         wasn't really redundant (undoing Sep 28 change).  Add comment saying
3731         why this check is necessary.
3733         * job.c, main.c [DGUX]: Needs siglist like USG.
3735 Mon Dec 11 01:19:29 1990  Roland McGrath  (roland at albert.ai.mit.edu)
3737         * default.c [M_XENIX]: For rules that are different for Xenix, use the
3738         generic Unix version #ifdef __GNUC__.
3740         * main.c [M_XENIX]: Use USGr3-style setvbuf call.
3742         * read.c (find_percent): Do backslash folding correctly, not leaving
3743         extra crud on the end of the string.
3745 Sun Dec 10 21:48:36 1990  Roland McGrath  (roland at albert.ai.mit.edu)
3747         * job.c: Don't declare wait3 if it's #defined.
3749         * GNUmakefile, compatMakefile, make.texinfo: Change make-info
3750         to make.info.
3752 Thu Dec  7 21:20:01 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3754         * make.h [STDC_HEADERS || __GNU_LIBRARY__ || _POSIX_SOURCE]: Use
3755         ANSI <string.h> and names for str/mem functions.
3756         Use <stdlib.h> to declare misc fns rather than explicit decls.
3757         [_POSIX_SOURCE]: Don't declare kill (<signal.h> will).
3758         Include <sys/types.h> before <signal.h> because some braindead
3759         nonconformant 1003.1 implementation needs it.
3760         * misc.c: Don't declare malloc, realloc.  Do it in make.h.
3761         * arscan.c, glob.c: Use sequence for string fns from make.h verbatim.
3762         * make.h (S_ISDIR, S_ISREG): Declare if necessary.
3763         * commands.c (delete_child_targets), job.c (search_path), read.c
3764         (construct_include_path): Use S_ISfoo(m) instead of
3765         (m & S_IFMT) == S_IFfoo.
3766         * dir.c, glob.c [_POSIX_SOURCE]: Use dirent.
3768 Wed Nov 29 22:53:32 1990  Roland McGrath  (roland at geech.ai.mit.edu)
3770         * Version 3.59.
3772 Tue Nov 28 16:00:04 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3774         * arscan.c (ar_name_equal) [APOLLO]: Don't do `.o' hacking.  On Apollos
3775         the full file name is elsewhere, and there is no length restriction (or
3776         so I'm told).
3778 Thu Nov 23 17:33:11 1990  Roland McGrath  (roland at albert.ai.mit.edu)
3780         * load.c [hp300 && BSD] (LDAV_CVT): Define for this system.
3782 Tue Nov 21 07:58:40 1990  Roland McGrath  (roland at albert.ai.mit.edu)
3784         * read.c (record_files): Fix trivial bug with deciding to free storage
3785         for a file name.
3787 Thu Nov 16 06:21:38 1990  Roland McGrath  (roland at geech.ai.mit.edu)
3789         * compatMakefile ($(bindir)/make): Install it setgid kmem.
3791 Thu Nov  1 16:12:55 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3793         * GNUmakefile (make-*.tar.Z): Use `h' option to tar (dereference
3794         symlinks), to grab texinfo.tex from wherever it lives.
3796 Tue Oct 30 16:15:20 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3798         * Version 3.58.13.
3800 Fri Oct 26 14:33:34 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3802         * GNUmakefile: make-*.tar.Z: Include texinfo.tex.
3804 Tue Oct 23 19:34:33 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3806         * main.c (define_makeflags): When there are no flags to write, make
3807         sure the array has two leading nulls, since `MAKEFLAGS' is defined from
3808         &flags[1].
3810         * main.c (default_keep_going_flag): New variable (constant one).
3811         (command_switches: -k, -S): Use above for default value.
3812         (define_makeflags): Only write flag/flag_off switches if they are on,
3813         and either there is no default value, or they are not the default.
3815 Mon Oct 22 16:14:44 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3817         * main.c (struct command_switch): New member `no_makefile'.
3818         (command_switches: -n, -q, -t): Set no_makefile == 1.
3819         (define_makeflags): Take new arg MAKEFILE: if nonzero, don't use
3820         options whose `no_makefile' flags are set.
3821         (main): Call define_makeflags with MAKEFILE==1 before remaking
3822         makefiles, and again with MAKEFILE==0 before remaking goals.
3824 Tue Oct  2 17:16:45 1990  Roland McGrath  (roland at geech.ai.mit.edu)
3826         * Version 3.58.12.
3828 Mon Oct  1 15:43:23 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3830         * arscan.c [HPUX]: Use PORTAR==1 format.
3832 Sat Sep 29 16:38:05 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3834         * make.h, remake.c, arscan.c: Don't declare `open'.
3836 Fri Sep 28 04:46:23 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3838         * variable.c (define_variable_in_set): Remove redundant -e check.
3840 Wed Sep 26 00:28:59 1990  Roland McGrath  (roland at geech.ai.mit.edu)
3842         * job.c (start_job): Set RECURSIVE from the right elt of
3843         CHILD->file->cmds->lines_recurse.
3845         * commands.c (chop_commands): Don't botch the line count for allocating
3846         CMDS->lines_recurse.
3848         * Version 3.58.11.
3850         * job.c (start_job): Don't always increment CHILD->command_line!  Only
3851         do it when CHILD->command_ptr has run out!  (Dumb bug.  Sigh.)
3853 Thu Sep 20 02:18:51 1990  Roland McGrath  (roland at geech.ai.mit.edu)
3855         * GNUmakefile [ARCH]: Give explicit rule for remote.{c,dep} to use
3856         variable `REMOTE' for more flags.
3857         ($(prog)): Link in $(LOADLIBES).
3859 Wed Sep 19 02:30:36 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3861         * commands.h (struct commands): New member `ncommand_lines', the number
3862         of elts in `command_lines' et al.
3863         * commands.c (chop_commands): Set `ncommand_lines' elt of CMDS, and
3864         don't put a nil pointer at the end of `command_lines'.
3865         * job.h (struct child): New member `command_lines' to hold
3866         variable-expanded command lines.
3867         * job.c (new_job): Store expanded command lines in `command_lines'
3868         member of new child.  Don't clobber FILE->cmds.
3869         (start_job): Use CHILD->command_lines in place of
3870         CHILD->file->cmds->command_lines.
3872         * variable.h, variable.c, job.c, expand.c: Undo yesterday's change,
3873         which is no longer necessary since we have cleverly avoided the issue.
3875         * job.c (start_job): Don't variable-expand each command line.
3876         (new_job): Do them all here, storing the expansions in the array.
3878 Tue Sep 18 01:23:13 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3880         * variable.h (struct variable): Remove `expanding' member.
3881         * variable.c (define_variable_in_set): Don't initialize it.
3882         * expand.c (struct variable_expanding): New type, a linked list
3883         containing `struct variable' pointers.
3884         (variables_expanding): New variable, the chain of variables currently
3885         being expanded.
3886         (recursively_expand): Don't test and set `expanding' member.
3887         Instead, run through the `variables_expanding' chain looking for a link
3888         referring to V to find self-reference.  Add a new link to the chain,
3889         describing V, before recursive expansion, and pop it off afterward.
3890         * job.c (child_handler): Save `variables_expanding' and clear it before
3891         calling start_job, and restore it afterward.  This avoids major lossage
3892         when the SIGCHLD comes in the middle of variable expansion.
3894 Mon Sep 17 14:46:26 1990  Roland McGrath  (roland at geech.ai.mit.edu)
3896         * job.c, commands.c: Don't define sigmask.
3897         * make.h: Put it here instead.
3899         * variable.c (target_environment): If `.NOEXPORT' was specified as a
3900         target, only export command-line and environment variables, and
3901         file-origin variables that were in the original environment.
3903         * make.man: Add missing ?roff control for `-I' option description.
3905 Thu Sep 13 14:10:02 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3907         * load.c [UMAX]: Move #include <sys/sysdefs.h> to [not UMAX_43].
3909 Wed Sep 12 15:10:15 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3911         * expand.c (recursively_expand): Don't use `reading_filename' and
3912         `reading_lineno_ptr' if they're nil.
3914 Thu Aug 30 17:32:50 1990  Roland McGrath  (roland at geech)
3916         * Version 3.58.10.
3918 Tue Aug 28 04:06:29 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3920         * job.c [USG] (unknown_children_possible): New variable, set nonzero
3921         when it's possible for children not in the `children' chain to die.
3922         (block_signals) [USG]: Set it.
3923         (unblock_signals) [USG]: Clear it.
3924         (child_handler) [USG]: Don't complain about unknown children if
3925         `unknown_children_possible' is set.
3927         * read.c (do_define): Make sure there's enough space for the newline,
3928         so we don't write off the end of allocated space.
3930         * arscan.c (ar_name_equal): Fixed to work when MEM is AR_NAMELEN-1 but
3931         NAME is not the same length.
3933 Sat Aug 25 16:17:14 1990  Roland McGrath  (roland at geech)
3935         * job.c (construct_command_argv_internal): Use a static char array for
3936         a constant, since old C has no auto aggregate initializers.
3938 Thu Aug 23 16:11:03 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3940         * job.c (search_path): If PATH is nil or "" use a default path.
3942 Wed Aug 22 01:05:32 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
3944         * Version 3.58.9.
3946         * job.c (exec_command): Don't take PATH and SHELL args.  Get them from
3947         ENVP.
3948         (child_execute_job): Don't take FILE arg, and don't pass path and shell
3949         to exec_command.
3950         (start_job): Don't pass FILE arg to child_execute_job.
3951         * function.c (expand_function: `shell'): Ditto.
3952         * main.c (main): Don't pass path and shell to exec_command.
3954 Fri Aug 17 23:17:27 1990  Roland McGrath  (roland at geech)
3956         * job.c (construct_command_argv_internal): New fn broken out of
3957         construct_command_argv.  Takes strings SHELL and IFS instead of doing
3958         variable expansion for them.  Recurse to make an argv for SHELL,
3959         passing SHELL==0.  When SHELL==0, don't recurse for shell argv; make a
3960         simple one using /bin/sh.
3961         (construct_command_argv): Do the variable expansions and call above.
3963 Thu Aug 16 19:03:14 1990  Roland McGrath  (roland at geech)
3965         * read.c (multi_glob): For ~USER/FILE, if USER isn't found, don't
3966         change the file name at all.
3968 Tue Aug  7 18:33:28 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
3970         * function.c (expand_function: `suffix'/`notdir'): Don't kill the last
3971         space if we never wrote one.
3973         * function.c (expand_function: `suffix'): Retain the dot, like the
3974         documentation says.
3976 Mon Aug  6 14:35:06 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
3978         * Version 3.58.8.
3980         * main.c (decode_switches): For positive_int and floating cases, move
3981         SW past the arg (and don't set it to ""), so another switch can follow.
3983 Fri Aug  3 00:43:15 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
3985         * job.c (child_execute_job): Use unblock_signals instead of
3986         push_signals_blocked_p (0).
3988         * main.c (fatal_signal_mask): New variable, mask of signals caught with
3989         fatal_error_signal.
3990         (main): Set it.
3991         * job.c ({block,unblock}_children): Renamed to {block,unblock}_signals.
3992         Block/unblock both child signal and signals in fatal_signal_mask.
3993         (children_blocked_p_{stack,max,depth}, {push,pop}_children_blocked_p):
3994         Renamed from children to signals.  Use {block,unblock}_signals instead
3995         of {block,unblock}_children.
3996         * commands.c (fatal_error_signal), job.c (wait_for_children, new_job,
3997         child_execute_job, main, log_working_directory), function.c
3998         (expand_function: `shell'), job.h: Rename {push,pop}_children_blocked_p
3999         to {push,pop}_signals_blocked_p.
4000         * job.c (child_handler): Call {block,unblock}_signals instead of just
4001         {block,unblock}_remote_children.  We need to block the fatal signals.
4003 Thu Aug  2 22:41:06 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4005         * main.c, function.c: Fixed typos in comments.
4007         * file.c (print_file_data_base): Fix computation of avg files/bucket.
4009 Tue Jul 31 22:11:14 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4011         * Version 3.58.7.
4013 Wed Jul 25 16:32:38 1990  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
4015         * arscan.c (ar_name_equal): Fixed to really do it right.
4016         (ar_member_pos): Fixed order of args.
4017         * ar.c (ar_member_date_1): Ditto.
4019 Fri Jul 20 15:30:26 1990  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
4021         * arscan.c (ar_name_equal): Rewritten.  Accounts for a possible
4022         trailing slash in MEM.
4024         * remake.c (f_mtime): Keep track of whether ARNAME is used and free it
4025         if not.  Also free MEMNAME.
4026         * ar.c (ar_member_date, ar_touch): Ditto.
4028         * arscan.c (arscan) [HPUX or hpux]: Treat same as USGr3 PORTAR==1.
4030         * make.h: If NSIG is not defined, but _NSIG is, #define NSIG _NSIG.
4032         * compatMakefile: Don't use $* in explicit rules.
4034         * default.c (default_variables: "PREPROCESS.S"): Include $(CPPFLAGS).
4036         * remake.c (f_mtime): If FILE is an ar ref, get the member modtime.
4038         * function.c (string_glob): Terminate the string properly when it's
4039         empty.
4041 Wed Jul 18 11:26:56 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4043         * Version 3.58.6.
4045         * commands.c (set_file_variables): Fixed computation for ^F/?F elt len.
4047 Sat Jul 14 13:41:24 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4049         * job.c (construct_command_argv): Always use
4050         allocated_variable_expand_for_file instead of variable_expand_for_file
4051         because we might be called from inside a variable expansion (for the
4052         `shell' function).
4054         * function.c (expand_function: `shell'): Free the arglist's storage
4055         correctly.  construct_command_argv only allocates ARGV and ARGV[0].
4057         * job.c (children_blocked_p_idx): Renamed to children_blocked_p_depth.
4058         (push_children_blocked_p, pop_children_blocked_p): Use ..._depth
4059         instead of ..._idx, and do it right!
4061 Wed Jul 11 15:35:43 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4063         * make.h (SIGNAL): New macro to replace `signal' calls.  Does arg and
4064         ret value casts to (void *) #ifdef __STDC__ to avoid conflicts btwn
4065         ANSI and BSD `signal' and handler types.
4066         * main.c (main), job.c (child_handler): Use it.
4068 Fri Jul  6 00:00:38 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4070         * ar.c (ar_member_date, ar_touch): Pass 2nd arg to f_mtime.
4072         * read.c (read_makefile): Search the include path for MAKEFILES
4073         variable makefiles (TYPE == 1), like it says in the manual.
4075         * file.h (struct file), main.c (struct command_switch): Remove trailing
4076         commas from enums.
4078         * commands.c (execute_file_commands): Remove unused variables.
4079         * commands.h: Declare chop_commands.
4080         * make.h: Declare uniquize_deps.
4081         * main.c (main): Remove unused variable.
4082         (decode_switches): Remove unused label.
4083         * remake.c: Include "ar.h" for ar_parse_name decl.
4084         * implicit.c (try_implicit_rule): Remove unused variable.
4085         * function.c (expand_function: `shell'): Declare fork, pipe.
4086         * ar.c: Declare ar_name_equal.
4088         * GNUmakefile: If using gcc, add warning flags to CFLAGS.
4090         * remake.c: Remove decl of ar_member_date, since it's done in make.h.
4092         * remake.c (f_mtime): For ar refs, allow the archive to be found via
4093         VPATH search if we're searching, and change the ar ref accordingly.
4095         * ar.c (ar_parse_name): New global fn to parse archive-member
4096         references into the archive and member names.
4097         (ar_member_date, ar_touch): Use it.
4098         * make.h: Declare it.
4100         * remake.c (f_mtime): After doing rename_file, do check_renamed instead
4101         of assuming rename_file will always set FILE->renamed (which it won't).
4103         * vpath.c (selective_vpath_search): Only accept prospective files that
4104         don't actually exist yet are mentioned in a makefile if the file we are
4105         searching for isn't a target.
4107 Wed Jul  4 04:11:55 1990  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
4109         * remake.c (update_goal_chain): Do check_renamed after calling
4110         file_mtime.
4111         (check_dep): Ditto after update_file.
4113         * file.c (rename_file): Prettied up long message for merging cmds.
4115         * remake.c (update_file_1): Get each dep file's modtime, and allow for
4116         it being renamed, before checking for a circular dep, since a renaming
4117         may have introduced one.
4119 Tue Jul  3 18:15:01 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4121         * ar.c (ar_touch): Don't free ARNAME since enter_file holds onto the
4122         storage.
4124         * function.c (string_glob): Don't leave a trailing space.
4126         * read.c (do_define): Allow leading whitespace before `endef'.
4128 Mon Jul  2 14:10:16 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4130         * implicit.c (pattern_search): No longer take NAME arg.  Instead take
4131         ARCHIVE flag.  If ARCHIVE is nonzero, FILE->name is of the form
4132         "LIB(MEMBER)"; rule for "(MEMBER)" is searched for, and LASTSLASH is
4133         set to nil.  Since NAME was only non-nil when it was the archive member
4134         name passed by try_implicit_rule, this change easily allows turning off
4135         LASTSLASH checking for archive members without excessive kludgery.
4136         (try_implicit_rule): Pass ARCHIVE flag instead of file name.
4138         * Version 3.58.5.
4140         * commands./c (set_file_variables): Don't kill last char of $(^D) elts.
4142 Sat Jun 30 00:53:38 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4144         * ar.c (ar_member_date): Don't free ARNAME since enter_file holds onto
4145         the storage.
4147         * arscan.c (ar_scan) [sun386 && PORTAR == 1]: Treat like USGr3.
4149 Wed Jun 27 14:38:49 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4151         * main.c (main): Put a newline on the debugging message when deciding
4152         not to remake a makefile to avoid a possible loop.
4153         Only decide not to remake makefiles that have commands (as well as
4154         being targets and having no deps).
4156 Fri Jun 22 12:35:37 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4158         * default.c (default_variables): Define `LINK.s' and `LINK.S'.
4159         (default_suffix_rules): Define .S.o rule.
4161         * job.c (construct_command_argv): If we decide to go the slow route,
4162         free all storage for the chopped args.
4163         (start_job): Free the argument list's storage correctly.
4164         construct_command_argv only allocates ARGV and ARGV[0].
4166 Tue Jun 19 18:27:43 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4168         * Version 3.58.4.
4170 Fri Jun 15 21:12:10 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4172         * glob.c: New version from ai-lab which doesn't do [^abc].
4174 Thu Jun  7 00:30:46 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4176         * dir.c: Copied dirent vs direct et al mess from glob.c.
4178         * glob.c: Replaced with updated version from djm.
4179         * glob.c: Check macro DIRENT instead of _POSIX_SOURCE for <dirent.h>.
4180         __GNU_LIBRARY__ implies DIRENT and STDC_HEADERS.
4182 Thu May 31 22:19:49 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4184         * vpath.c (vpath_search): Don't stop the loop if a pattern matches but
4185         the search fails.  All matching patterns have their paths searched
4186         (like it says in the manual).
4188         * make.texinfo (Rules: Directory Search: Selective Search): Say that
4189         multiple `vpath' directives with the same pattern DO accumulate, not
4190         supersede earlier ones.
4192         * vpath.c (print_vpath_data_base): Increment the count of vpaths on
4193         each loop iteration, rather than letting it stay zero.
4195         * Version 3.58.3.
4197         * job.c (block_children, unblock_children): Made static.
4198         (push_children_blocked_p, pop_children_blocked_p): New functions to
4199         push and pop whether children are blocked or not.
4200         * job.h: Declare push_children_blocked_p, pop_children_blocked_p and
4201         not block_children, unblock_children.
4202         * commands.c (fatal_error_signal), job.c (wait_for_children, new_job,
4203         child_execute_job), main.c (main, log_working_directory): Use sequences
4204         of push_children_blocked_p (1) and pop_children_blocked_p () instead of
4205         explicitly blocking and unblocking children.
4206         * function.c (expand_function: `shell'): Don't unblock children.  The
4207         push-pop sequence in wait_for_children makes it unnecessary.
4209 Tue May 29 21:30:00 1990  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
4211         * read.c (do_define): Don't include the last newline in the definition.
4213         * function.c (expand_function: `shell'): Call construct_command_argv
4214         before forking and don't fork if it returns nil.  Free the argument
4215         list's storage before finishing.
4217         * job.c (start_job): Free the storage for the child's argument list
4218         in the parent side of the fork after the child has been spawned.
4220         * job.c (start_job): If construct_command_argv returns nil, go to the
4221         next command line.
4223         * job.c (construct_command_argv): Use the shell if the command contains
4224         an unterminated quote.
4226 Wed May 23 19:54:10 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4228         * Version 3.58.2.
4230         * read.c (read_makefile): Parse "override define" correctly.
4232 Thu May 17 15:25:58 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4234         * arscan.c [USG]: Don't declare memcpy and memcmp.  <memory.h> should
4235         do this anyway (and lack of declarations is harmless).
4237         * remote-customs.c: Renamed to remote-cstms.c for System V.
4238         * remote.c [CUSTOMS]: Changed accordingly.
4240 Sun May 13 14:38:39 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4242         * GNUmakefile: Use same cmds for doc tar.Z as for dist tar.Z (so the
4243         contents go in make-N.NN).
4245 Thu Apr 26 19:33:25 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4247         * Version 3.58.1.
4249 Wed Apr 25 20:27:52 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4251         * job.c (init_siglist): Don't do SIGUSR1 and SIGUSR2 if they are the
4252         same as SIGIO and SIGURG (true on Cray).
4254 Tue Apr 24 20:26:41 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4256         * arscan.c (ar_scan): Do behavior for PORTAR == 1 and USGr3 also
4257         #ifdef APOLLO.
4259 Wed Apr 11 10:00:39 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4261         * job.c (exec_command): Set the effective GID to the real GID.  Somehow
4262         this code got lost.
4264         * implicit.c (pattern_search): Use the right index variable when
4265         seeing if we need to expand FILE->also_make.
4267 Sun Mar  4 09:18:58 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4269         * Version 3.58.0.
4271         * remake.c (remake_file): Treat non-targets without commands under -t
4272         the same as anything else without commands.
4274 Sat Feb 24 17:46:04 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4276         * default.c (default_variables: PREPROCESS.S): Removed $< from defn.
4278         * main.c (main): Ignore arguments that are the empty string, rather
4279         than feeding them to enter_file and barfing therein.
4281 Wed Feb 14 16:28:37 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4283         * main.c (main): Call construct_include_path after doing chdirs.
4285 Thu Feb  8 13:43:44 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4287         * Version 3.58.
4289 Sat Feb  3 22:06:55 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4291         * Version 3.57.7.
4293         * make.texinfo (Implicit: Catalogue of Rules): For RCS, noted that
4294         working files are never overwritten by the default rule.
4296 Thu Feb  1 17:27:54 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4298         * rule.c (count_implicit_rule_limits): Redid loop control to not run
4299         twice on freed rules.
4301         * GNUmakefile: Made `.dep' files be architecture-specific too.
4303         * main.c (main, log_working_directory) [USG]: Block children around
4304         calls to `getwd' (actually `getcwd' on USG), because that function
4305         sometimes spawns a child running /bin/pwd on USG.
4307 Tue Jan 30 14:02:50 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4309         * function.c (subst_expand): Pay attention to SUFFIX_ONLY, putz.
4311 Wed Jan 24 21:03:29 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4313         * make.man: Fixed repeated word.
4315         * make.texinfo (Missing): Reworded a buggy sentence.
4317 Mon Jan 22 12:39:22 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4319         * main.c (print_version): Added 1990 to copyright notice.
4321         * Version 3.57.6.
4323 Sat Jan 20 11:52:01 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4325         * file.c (rename_file): Don't free the storage for the old name, since
4326         it might not have been malloc'd.
4328         * job.c (construct_command_argv): Call
4329         allocated_variable_expand_for_file instead of variable_expand_for_file
4330         to expand `$(SHELL)'.
4332         * make.texinfo (Bugs): Change address from roland@wheaties.ai.mit.edu
4333         to roland@prep.ai.mit.edu.
4335 Tue Jan 16 19:22:33 1990  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
4337         * Version 3.57.5.
4339 Sun Jan 14 16:48:01 1990  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
4341         * job.c (start_job): Only call wait_to_start_job for the first command
4342         line in each sequence.
4344 Thu Jan  4 14:27:20 1990  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
4346         * load.c [LDAV_BASED] (wait_to_start_job): Loop while job_slots_used >
4347         0, not > 1.
4349         * job.c (search_path): Don't return a pointer to local storage.
4350         Allocate data space for the pathname instead.
4352         * function.c (expand_function: `shell'): Don't write garbage if the
4353         child wrote no output.
4355 Wed Jan  3 15:28:30 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4357         * Version 3.57.4.
4359         * file.h (struct file): New member `renamed', a `struct file *' that is
4360         the place this file has been renamed to (or nil).
4361         (check_renamed): Macro to check for a file having been renamed.
4362         Dereferences the renaming and sets the given variable.
4363         * file.c (rename_file): Completely rewritten.  Renames in place if
4364         possible, or moves FILE to a different hash bucket if there is no
4365         existing file with the new name.  If there is an existing file with the
4366         new name, FILE is merged into it and FILE->renamed is set to point to
4367         it.
4368         * variable.c (merge_variable_sets): New fn to merge two variable sets.
4369         (merge_variable_set_lists): New fn to merge two variable set lists.
4370         * variable.h: Declare merge_variable_set_lists.
4371         * remake.c (update_file_1, check_dep): Run `check_renamed' after
4372         calling file_mtime, check_dep.
4373         (update_file): Same after update_file_1.
4374         (update_goal_chain, update_file_1, check_dep): Same after update_file.
4376         * read.c (uniquize_deps): New fn, broken out of record_files, to remove
4377         duplicate deps from a chain.
4378         (record_files): Use it.
4379         * implicit.c (pattern_search): Use uniquize_deps.
4381         * file.h (file_mtime_1): New macro, like file_mtime, but take second
4382         arg, passed to f_mtime.
4383         (file_mtime): Implement as file_mtime_1 (file, 1).
4384         (file_mtime_no_search): New macro: file_mtime (file, 0).
4385         * remake.c (f_mtime): Take new arg SEARCH.  Only do VPATH and `-lNAME'
4386         searching if it is nonzero.
4387         * main.c (main): Use file_mtime_no_search for makefiles.
4388         * remake.c (update_goal_chain): Use file_mtime_no_search if MAKEFILES.
4390         * main.c (printed_version): New variable, init'd to zero.
4391         (print_version): Set it to nonzero before returning.
4392         (die): If -v and !printed_version, call print_version before clean up
4393         and death.
4395         * main.c (log_working_directory): Keep track of whether or not the
4396         "Entering" message has been printed, and return without printing the
4397         "Leaving" message if not.
4399         * main.c (decode_switches): Don't complain about missing args before
4400         checking for a noarg_value elt in the command_switch structure.
4402 Tue Jan  2 15:41:08 1990  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
4404         * make.texinfo (Commands: Recursion: Options/Recursion): Document
4405         special case of -j.
4407         * make.texinfo, main.c, job.c: Changed copyright notices to include
4408         1990.
4410         * make.texinfo (Top): Fixed introductory paragraph, which said that
4411         `make' itself (instead of the manual) has various chapters.
4412         (Variables: Advanced: Substitution Refs): When pxref'ing about
4413         `patsubst', use node `Text Functions', not `Functions'.
4414         Add an xref about `patsubst' after description of $(var:a%b=c%d).
4415         (Functions: Syntax of Functions): Explain why mixing delimiters in
4416         function/var refs is unwise.  Clarify fn arg evaluation order.
4417         (Options): Reworded sentence about `-e'.
4418         (Implicit: Implicit Variables): Don't say `RM' is unused.
4419         Say the dflt values for the flag vars is empty unless otherwise noted,
4420         since some have defaults.
4421         (Implicit: Pattern Rules: Pattern Examples): Clarified use of $< and $@
4422         in first example.
4423         (Implicit: Last Resort): Don't say the .DEFAULT example creates files
4424         "silently".  It's automatic, but not silent.
4425         (Implicit: Search Algorithm): Fixed confusing ungrammatical sentence
4426         for item 5.1.
4427         (Archives: Archive Update): Added missing `next' pointer.
4428         (Archives: Archive Symbols): Note that GNU `ar' deals with this
4429         automatically.
4431         * job.c (search_path): New fn, to search for an executable file in a
4432         search path (broken out of exec_command).
4433         (exec_command): Take fourth arg, the shell program to use (if
4434         necessary).  Use search_path for the program, and the shell program.
4435         Pass args "file args ..." to shell program (with no -c), where FILE is
4436         the full pathname of the program (script) to be run.
4437         (child_execute_job): Pass shell program to exec_command.
4438         * main.c (main): Ditto.
4440         * main.c (main): Don't write a message if exec_command returns, because
4441         it will never return.
4443 Fri Dec 22 16:19:58 1989  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
4445         * default.c (default_variables: "LINK.cc"): Use $(C++FLAGS) instead of
4446         $(CFLAGS).
4448 Wed Dec 20 09:58:48 1989  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
4450         * job.c (new_job): If start_job set the child's `command_state' to
4451         `cs_finished', call notice_finished_file.
4453 Sun Dec 17 19:45:41 1989  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
4455         * Version 3.57.3.
4457 Wed Dec 13 17:57:12 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4459         * rule.c (convert_to_pattern): Accept files with dependencies as
4460         suffix rules.
4462 Thu Nov 30 15:47:13 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
4464         * Version 3.57.2.
4466         * function.c (expand_function: `shell'): Don't clobber BUFFER and then
4467         try to free it.
4469         * remake.c (update_file_1): Took code to force remake of nonexistent
4470         deps out of #if 0, and changed the test to nonexistent non-intermediate
4471         deps.  In version 4, I think removing this test completely will
4472         implement the new feature that if a: b and b: c and c is newer than a,
4473         b need not be remade.
4475 Sun Nov 26 16:12:41 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4477         * compatMakefile (load.o, remote.o): Use $*.c instead of explicit file
4478         names so that using VPATH works.
4480 Tue Nov 21 14:57:18 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4482         * Version 3.57.1.
4484 Fri Nov 10 03:28:40 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4486         * remake.c (check_dep): Set *MUST_MAKE_PTR if FILE does not exist after
4487         being updated.  (The exact opposite test was here before; why???)
4488         (update_file_1): Set a dep's `changed' member after updating it if it
4489         is phony and has commands (because they will then always be executed).
4491 Thu Nov  9 13:47:12 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4493         * load.c [UMAX]: #ifdef UMAX_43 include different headers for the
4494         `inq_stats' call.
4495         * compatMakefile (LOAD_AVG): Document UMAX_43.
4497         * Version 3.57.0.
4499         * commands.c (chop_commands): New function to chop commands into lines.
4500         * job.c (new_job): Break that code out, and call chop_commands.
4501         * remake.c (remake_file): Call chop_commands before looking at
4502         FILE->cmds->any_recurse.
4504         * make.texinfo (Running: Goals): Don't say that the default target
4505         won't be taken from an included makefile.
4507         * remake.c (update_file_1): #if 0 out setting MUST_MAKE if a dep
4508         doesn't exist.
4510 Fri Nov  3 15:53:03 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
4512         * Version 3.57.
4514         * variable.c (try_variable_definition): Don't calculate useless value.
4516         * main.c (define_makeflags): Fixed -j propagation.
4518         * commands.c (execute_file_commands): Removed unused variable.
4520 Sun Oct 29 11:11:15 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4522         * commands.c (execute_file_commands): If the commands are empty, call
4523         notice_finished_file before returning.
4525 Sat Oct 28 23:06:32 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4527         * remake.c (update_file_1): Don't always update a target that has no
4528         deps.  Only do this for double-colon targets.
4530 Wed Oct 25 16:36:16 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4532         * main.c (main) [hpux]: hpux == HPUX.
4533         * compatMakefile (defines): Document that HPUX should be defined.
4535 Tue Oct 24 19:19:48 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4537         * Version 3.56.8.
4539         * job.c (exec_command): Fixed what mode bits are checked.
4541         * remake.c (update_file_1): "No cmds and no deps actually changed"
4542         loses if ! FILE->is_target.
4544         * make.texinfo (Variables: Setting): Don't say that spaces after a
4545         variable definition are ignored (since they aren't).
4547 Mon Oct 23 14:34:23 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4549         * Version 3.56.7.
4551         * remake.c (update_file_1): If, after being updated, any dependency
4552         does not exist, remake the target.
4554         * remake.c (update_file_1): Always update if FILE has commands but no
4555         deps.
4557         * commands.c (execute_file_commands): If we return early because there
4558         are no commands, set FILE->updated.
4560 Thu Oct 19 18:47:37 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4562         * arscan.c (ar_scan) [M_XENIX]: Don't run atoi or atol on the
4563         `struct ar_hdr' members that are int or long int on Xenix.
4565 Sat Oct 14 10:43:03 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4567         * arscan.c (ar_scan): Cosmetic clean ups.
4568         (ar_name_equal): New function to compare names, handling truncated
4569         member names and special `.o' truncation.
4570         (ar_member_pos): Use ar_name_equal.
4571         * ar.c (ar_member_date_1): Use ar_name_equal.
4573         * Version 3.56.6.
4575         * file.h (struct file): Made `update_status' a `short int', and moved
4576         it before `command_state' so the bitfields can be packed better.
4578         * remake.c (files_remade): Made global.
4579         (notice_finished_file): Don't increment files_remade.
4580         * job.c (new_job): Do.
4582         * job.c (start_job): Don't return a value.  Always set
4583         CHILD->file->command_state to either cs_running or cs_finished.
4584         (new_job, child_handler): Don't expect start_job to return a value.
4585         Instead, look at the file's command_state.
4587         * commands.c (chop_commands): Merged into job.c (new_job).
4588         * commands.h: Don't declare chop_commands.
4590         * job.c (start_job): Made static.
4591         (new_job): New function to create a `struct child' and call start_job.
4592         (free_child): New function to free a `struct child'.
4593         (child_handler, new_job): Call it.
4594         * job.h: Don't declare start_job.  Do declare new_job.
4595         * commands.c (execute_file_commands): Call new_job.
4597         * commands.c (execute_file_commands): Don't set FILE->update_status if
4598         start_job fails.
4600         * function.c (expand_function): Don't use `reading_filename' and
4601         `reading_lineno_ptr' if they're nil.
4603 Fri Oct 13 18:16:00 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4605         * read.c (find_semicolon): New function to look for an unquoted ; not
4606         preceded by an unquoted # in a string.
4607         (read_makefile): Call it before expanding the line.  If it finds a ;,
4608         cut the line short there before expanding it.  If not, call it again
4609         after expanding.
4611         * commands.c (execute_file_commands): Don't check FILE->command_state.
4612         We won't get called unless it's cs_not_started.
4614         * read.c (read_makefile): Call collapse_line on the variable-expanded
4615         rule line after checking for ; and #.
4617         * job.c (start_job): When there are no more commands, always return 0.
4618         * commands.c (execute_file_commands): Don't put the new child in the
4619         `children' chain unless FILE->command_state is cs_running.
4621         * read.c (read_makefile): Rewrote ;-handling to only do it once (why
4622         did I do it twice??) and to check for a # before the ;.
4624         * job.c (start_job): Set CHILD->file->update_status to 0 when we run
4625         out of commands.  Set it to 1 before returning failure.
4626         (child_handler): Don't set C->file->update_status to 0 when start_job
4627         returns success and commands are not running.
4629         * read.c (read_makefile): If there is a # before the ; for commands,
4630         forget the ; and commands.
4632 Thu Oct 12 15:48:16 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4634         * job.c (child_execute_job): Pass -c to the shell.
4636 Wed Oct 11 18:41:10 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4638         * Version 3.56.5.
4640         * main.c (define_makeflags): Cleaned up to keep better track of dashes
4641         written, etc.
4643         * function.c (expand_function: `shell'): When converting newlines to
4644         spaces in output, search with `index' calls rather than a simple loop.
4646         * main.c (main): Make sure stdout is line-buffered.
4648         * main.c (decode_switches): Always check for missing switch arg.
4650 Mon Oct  9 17:17:23 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4652         * Version 3.56.4.
4654 Sat Oct  7 00:32:25 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4656         * commands.c (set_file_variables): #ifdef NO_ARCHIVES, still set $@ and
4657         $%.
4659         * commands.c (set_file_variables): Include a trailing slash in the
4660         directory variables (@D, etc.).
4662         * job.c (child_handler): Call notice_finished_file after changing a
4663         child's state to `cs_finished'.
4664         * remake.c (update_file_1): Don't call notice_finished_file if
4665         FILE->command_state == cs_finished.
4667 Wed Oct  4 16:09:33 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4669         * Version 3.56.3.
4671 Tue Oct  3 21:09:51 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4673         * read.c (read_all_makefiles): When setting elements of MAKEFILES from
4674         the contents of read_makefiles, make sure we're using the right
4675         element.
4677         * dir.c, glob.c [USGr3 || DIRENT]: Don't define d_ino as d_fileno.
4679         * Version 3.56.2.
4681         * remake.c (update_file_1): Return zero after calling remake_file if
4682         FILE->command_state != cs_finished.  Test update_status thoroughly.
4684         * commands.c (execute_file_commands): Don't call notice_finished_file.
4686         * remake.c (remake_file): Return immediately after calling
4687         execute_file_commands.
4689 Sat Sep 30 14:57:05 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4691         * Version 3.56.1 (alpha).
4693         * file.h (struct file): Made `update_status' not be a bitfield, since
4694         some broken compilers don't handle it right.
4696         * function.c (expand_function: `join'): Don't clobber the pointers and
4697         then try to free them.
4699         * job.c (exec_command): Fixed & vs = precedence problem.
4701 Thu Sep 28 17:29:56 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4703         * remake.c (update_file_1): Fixed typo in debugging output.
4705         * remake.c (library_file_mtime): Search for /usr/local/lib/libLIB.a
4706         after /usr/lib/libLIB.a.
4708 Tue Sep 26 16:07:58 1989  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
4710         * read.c (conditional_line): For `ifeq (a, b)', swallow space after the
4711         comma.
4713 Sun Sep 24 13:25:32 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4715         * function.c (patsubst_function): If BY_WORD and the match is not a
4716         full word, update the text pointer correctly.
4718         * function.c (expand_function: `word'): Don't lose track of the second
4719         arg's expansion and free something else instead.
4721 Fri Sep 22 16:15:29 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4723         * Version 3.56.
4725 Thu Sep 21 14:28:42 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4727         * main.c (main): Make an array of the mtimes of the makefiles before
4728         updating them, and compare their file_mtimes against this later.  Don't
4729         re-exec if a makefile was successfully updated but didn't change.  If a
4730         makefile failed to be remade and no longer exists, die.  If a makefile
4731         failed to be remade, but changed anyway, re-exec.  If a makefile failed
4732         to be remade, but is unchanged, continue on.
4734 Wed Sep 20 18:02:07 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4736         * Version 3.55.6.
4738         * implicit.c (pattern_search): Maintain an array CHECK_LASTSLASH of the
4739         CHECK_LASTSLASH flag values used to match each member of TRYRULES.
4740         When making FILE->stem, if CHECKED_LASTSLASH[FOUNDRULE], prepend the
4741         part of FILENAME before LASTSLASH.
4743 Tue Sep 19 17:44:08 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4745         * dir.c (dir_file_exists_p): Check for FILENAME being nil before
4746         checking for it being "".
4748         * main.c (define_makeflags): Fixed test for whether a flag/flag_off
4749         option was non-default.  Also changed to generate a string that Unix
4750         Make will grok (except for FP/int values and new flags).
4752         * job.c (child_execute_job): Don't use the shell's -c option.
4753         Also fixed an off-by-one bug in the ARGV -> shell arg list copying.
4755 Mon Sep 18 15:17:31 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4757         * Version 3.55.5.
4759         * read.c (parse_file_seq): Check the beginning of the file name for a
4760         `./', not the two chars after the end of the name (Q rather than P).
4762         * job.c (child_execute_job): Include all of ARGV in the arg list for
4763         the shell.
4765         * main.c (define_makeflags): Don't include floating and positive_int
4766         options in !PF.
4768         * job.c (exec_command): Set the effective gid to the real gid before
4769         execing.
4771         * job.c (child_execute_job): Don't clobber the arg list when execing
4772         the shell.
4774 Sun Sep 17 15:27:19 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4776         * main.c (define_makeflags): Moved all the checking inside the switch.
4778         * load.c [LDAV_BASED] (load_average): When we can't get the load
4779         average, return zero instead of running off the end.
4781         * file.c: Include variables.h.
4782         * job.c: Declare dup2 and {block,unblock}_remote_children.
4783         * file.h: Declare f_mtime.
4784         * job.c: Don't declare construct_command_argv, since job.h does.
4785         * function.c, main.c, load.c, remake.c: Include job.h.
4786         * load.c [LDAV_BASED] (load_average): Declare nlist.
4787         * variable.h: Declare print_file_variables.
4788         * job.c [!USG]: Don't declare sigsetmask.
4789         [!USG]: Declare getdtablesize.
4790         Don't declare load_average.  Do declare wait_to_start_job.
4791         Declare vfork, gete[gu]id, execve.
4792         * commands.c: Declare remote_kill, getpid.
4793         * make.h: Declare kill, exit, sigblock, pipe, close, ctime, open,
4794         lseek, read.
4795         * make.h [not USG]: Declare sigsetmask.
4796         * job.h: Declare wait_for_children and {block,unblock}_children.
4798         * dir.c (dir_file_exists_p): If FILENAME is nil, read in the whole
4799         directory.
4800         (find_directory): When we want to read in the whole directory, call
4801         dir_file_exists_p with nil instead of "".
4803         * file.h (struct file), job.h (struct child),
4804           variable.h (struct variable): Use bitfields for flags.
4805         * make.h (ENUM_BITFIELD): If GCC or #ifdef ENUM_BITFIELDS, define as
4806         :BITS, else empty.
4807         * compatMakefile (defines): Document ENUM_BITFIELDS.
4809 Sat Sep 16 12:38:58 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4811         * Version 3.55.4 (alpha).
4813         * GNUmakefile (dist): Depend on default and doc.
4815         * load.c [LDAV_BASED]: Include <nlist.h> rather than <a.out.h>; #ifdef
4816         NLIST_NAME_UNION, use n_un.n_name instead of n_name.
4817         * compatMakefile (LOAD_AVG): Document NLIST_NAME_UNION.
4819         * job.c [USG-ish]: Don't redefine WIF{SIGNALED,EXITED} if they're
4820         already defined.
4822 Fri Sep 15 13:59:42 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4824         * glob.c, dir.c [USGr3 or DIRENT]: If neither d_ino, nor d_fileno is
4825         defined, define d_ino as d_fileno.
4827 Thu Sep 14 18:29:38 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4829         * job.c: Don't declare exec_command static.
4831         * make.texinfo (Name Index): Changed title to include directives.
4833         * Version 3.55.3 (alpha).
4835         * make.texinfo (Running: Options): Document -e.
4837         * main.c (main): Always give imported environment variables origin
4838         `o_env'.
4839         * variable.c (define_variable_in_set): Under -e, if ORIGIN, or an
4840         existing variable's origin, is `o_env', make it `o_env_override'.
4842         * load.c: Use the symbol KERNEL_FILE_NAME instead of KERNEL_FILE.
4843         * compatMakefile: Changed the comment for `LOAD_AVG' accordinly.
4845 Thu Sep  7 16:46:26 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4847         * Version 3.55.2 (alpha).
4849         * variable.c (print_variable_set), rule.c (print_rule_data_base),
4850         file.c (print_file_data_base): If NO_FLOAT is defined, don't use
4851         floating-point for printing statistics.
4852         * compatMakefile (defines): Document NO_FLOAT.
4854         * make.h (HASH): New macro to add the hashing value of one char to a
4855         variable.c.
4856         * file.c (lookup_file, enter_file, rename_file): Use it.
4857         * dir.c (find_directory, dir_file_exists_p, file_impossible_p): Ditto.
4858         * variable.c (define_variable_in_set, lookup_variable): Same here.
4860         * variable.c, file.c, dir.c: Don't define *_BUCKETS if they are already
4861         defined.
4863         * compatMakefile (defines): Added comment about defining NO_ARCHIVES.
4864         (ARCHIVES, ARCHIVES_SRC): New variables for {ar,arscan}.[oc].
4865         (objs, srcs): Use $(ARCHIVES) and $(ARCHIVES_SRC).
4866         * commands.c (set_file_variables), dir.c (file_exists_p),
4867         remake.c (touch_file, name_mtime), implicit.c (try_implicit_rule,
4868         pattern_search), make.h: If NO_ARCHIVES is #defined, don't do any
4869         archive stuff.
4871         * commands.c (set_file_variables): Don't kill the last char of
4872         directory names in $([@*<%?^]D).
4874 Wed Sep  6 15:23:11 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
4876         * default.c (default_terminal_rules {%:: %,v}, {%:: RCS/%,v}): Don't
4877         run co if the target exists.
4879         * glob.c (glob_match): [!xyz], rather than [^xyz], means none of [xyz].
4881         * glob.c: Misc minor cosmetic changes.
4883 Tue Sep  5 14:49:56 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
4885         * load.c [LDAV_BASED] (load_average): Check for == -1, rather than < 0
4886         to see if lseek fails.  On some systems, `avenrun' is at an offset >
4887         (2**31)-1, and lseek succeeds, returning a negative value.
4889 Mon Sep  4 11:07:58 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
4891         * rule.c (new_pattern_rule): Return `int' instead of `void': nonzero if
4892         the passed rule was used, zero if not.
4893         (install_pattern_rule): Pay attention to the return from
4894         new_pattern_rule, and don't set the rule's `terminal' flag or give it
4895         commands unless it's used.
4896         (create_pattern_rule): Same idea.
4898         * dir.c (find_directory): Removed unused variable.
4900         * commands.c (execute_file_commands): Removed unused variable.
4902         * read.c (record_files): Don't use NAME after freeing it.
4904 Sat Sep  2 00:33:19 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
4906         * Version 3.55.1 (alpha).
4908         * function.c (string_glob): Don't add spaces after file names that
4909         aren't added.  (Also means don't add spaces without checking the size
4910         of the buffer.)
4912         * remake.c (update_goal_chain): Don't remove makefiles with cmds and no
4913         deps from the chain.
4914         * main.c (main): Do it here, before calling update_goal_chain.
4916         * remake.c (update_goal_chain): When updating fails, change STATUS even
4917         if MAKEFILES is set.  Also stop remaking when updating fails if not
4918         under -k and MAKEFILES is not set.
4920         * remake.c (remake_file, update_file_1, notice_finished_file),
4921         commands.c (execute_file_commands), make.h, commands.h: The functions
4922         remake_file, notice_finished_file, and execute_file_commands no longer
4923         return values, and their callers no longer expect values returned.
4925         * remake.c (notice_finished_file): Don't set FILE's modtime to now if
4926         it is a non-target with no commands.
4928 Fri Sep  1 00:04:39 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
4930         * read.c (read_all_makefiles): After freeing each element on MAKEFILES,
4931         replace it with the name stored in read_makefiles by read_makefile.
4933         * remake.c (update_file_1): Don't decide not to remake if FILE has no
4934         cmds and no deps actually changed if FILE doesn't have any deps.
4936         * file.c (remove_intermediate): Remove precious files that also have
4937         the `dontcare' flag set.
4939         * remake.c (update_file_1): Don't always remake if FILE has cmds but no
4940         deps; only if FILE is double-colon.  (I don't know why this should be
4941         done for double-colon targets, but that's what Unix make does.)
4943         * load.c [LDAV_BASED] (load_average): Write error messages if the
4944         various system calls fail.  Keep track of if we've failed before.
4945         The first time we fail, write a message saying -l won't be enforced.
4946         The first time we succeed after having failed, write a message saying
4947         -l will be enforced again.
4949         * remake.c [USG]: Don't #include <sys/file.h>
4951         * load.c [generic Unix LDAV_BASED]: #include <fcntl.h> #ifdef USG,
4952         else <sys/file.h> instead.
4954         * job.c [USG && !USGr3 && !HAVE_DUP2]: Remove redundant
4955         #include <errno.h> and declaration of `errno'.
4956         [...] (dup2): Fixed so it won't always lose.
4958         * default.c (default_suffix_rules: .texinfo.dvi): Copy, rather than
4959         move, the aux and index files, so the TeX run can use them.
4961         * compatMakefile: Remove redundant comment.
4963         * load.c [generic Unix LDAV_BASED]: Include <a.out.h> instead of
4964         <nlist.h>, since the `struct nlist' declaration in <nlist.h> varies
4965         more than the one in <a.out.h>.
4966         (load_average): Use the `n_un.n_name' field of the `struct nlist',
4967         since the <a.out.h> declaration uses the union.
4969         * main.c (main): For the temporary files made for stdin makefiles, set
4970         the `intermediate' and `dontcare' flags.
4971         * file.c (remove_intermediates): Don't print any messages for files
4972         whose `dontcare' flag is set.  (The only files that will be
4973         intermediate and `dontcare' will be the temporary files made for stdin
4974         makefiles.)
4976         * job.c (exec_command): Made global.
4977         * job.h: Declare it.
4978         * main.c (main): Use exec_command when re-execing.
4980         * make.h: Declare environ.
4981         * make.c: Don't.
4983         * job.c (child_execute_job): New function to perform everything done in
4984         the child side of a fork (for a job or `shell' function).
4985         (start_job): Call it.
4986         * job.h: Declare construct_command_argv and child_execute_job.
4987         * function.c (expand_function: `shell'): Use child_execute_job.
4989 Thu Aug 31 18:42:51 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
4991         * function.c (expand_function: `shell'): Remove a trailing newline
4992         instead of turning it into a space.
4994         * main.c (main): Do init_siglist #ifdef HAVE_SIGLIST.
4996         * job.c [WTERMSIG || (USG && !HAVE_SYS_WAIT)]: Test each W* macro
4997         separately and define all those that aren't defined.
4999 Sat Aug 26 15:13:21 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5001         * ar.c (ar_name): Return zero for `(foo)'.
5003         * Version 3.55.
5005         * make.texinfo (Rules: Multiple Targets): Make this node's `next'
5006         pointer point to `Static Pattern'.
5007         * make.texinfo (Makefiles: MAKEFILES Variable): Make this node's `prev'
5008         pointer point to `Makefile Names'.
5010         * make.1: Renamed to make.man.
5011         * compatMakefile: Define `mandir' and `manext'.
5012         (install): Depend on $(mandir)/make.$(manext).
5013         ($(mandir)/make.$(manext)): Depend on make.man and copy it to $@.
5014         ($(bindir)/make): Use `make' rather than $<; so Unix make can grok it.
5016 Thu Aug 24 03:35:48 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5018         * variable.c (target_environment): Allow variables that start with
5019         underscores.
5021 Wed Aug 23 22:50:32 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5023         * variable.c (target_environment): Reject variables that don't start
5024         with letters.
5026 Tue Aug 22 04:14:29 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5028         * GNUmakefile (make-$(version).tar.Z): Put make.1 (the Unix manual
5029         page) in the tar file.
5031         * variable.c (target_environment): Don't write variables with origin
5032         o_default (i.e., ones from default.c).
5033         * make.texinfo (Commands: Recursion: Variables/Recursion): Document
5034         that default variables are not put in the environment.
5036         * remake.c (update_file_1): Remake all targets with commands but no
5037         deps.
5039 Sat Aug 19 06:03:16 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5041         * remake.c (update_file_1): In the final loop, set the deps'
5042         `changed' members if they are newer than FILE.
5044         * remake.c (update_goal_chain): Under -d, print a message if we decide
5045         not to remake a makefile so as to avoid a possible infinite loop.
5047 Fri Aug 18 20:30:14 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5049         * remake.c (remake_file): Cleaned up.
5051         * commands.c (execute_file_commands): If the commands are empty, set
5052         FILE->update_status to zero before returning.
5054         * remake.c (notice_finished_file): Set `last_mtime' fields to zero
5055         instead of calling name_mtime; file_mtime will do that later if anybody
5056         cares.
5058 Thu Aug 17 10:01:11 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5060         * make.texinfo (Rules: Wildcards: Wildcard Examples): Give this node a
5061         `prev' pointer.
5063         * Version 3.54.9 (alpha).
5065         * make.texinfo: Fixed some @nodes.
5067         * remake.c (check_dep): Don't set *MUST_MAKE_PTR if FILE doesn't exist
5068         after running update_file.
5070         * remake.c (notice_finished_file): If FILE has no commands, pretend its
5071         modtime is now.
5073         * remake.c (update_file_1): In the loops that call update_file on the
5074         deps, compare modtimes before and after (unless deps are still being
5075         made) and set the deps' `changed' members.  Do not set the `changed'
5076         members in the loop that prints the newer/older debugging messages.
5077         * remake.c (update_file_1): If no deps changed and FILE has no
5078         commands, decide it doesn't need remaking.
5080         * remake.c (update_file_1): Print a debugging message if we take
5081         commands from default_file.
5083         * make.texinfo (Rules: Directory Search: Selective Search): Removed
5084         note about warning for `vpath' with a constant pathname, since it isn't
5085         warned about anymore.
5087         * remake.c (update_goal_chain): If MAKEFILES, remove makefiles which
5088         are targets and have no deps.
5089         * make.texinfo (Makefiles: Remaking Makefiles): Document that makefiles
5090         will not be remade if they are targets but have no dependencies.
5092 Tue Aug 15 00:00:08 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
5094         * remake.c (notice_finished_file): Increment files_remade for non-phony
5095         files if they didn't exist before (even if they still don't).
5097         * job.c: Include <errno.h> and declare errno.
5099         * job.c (exec_command): If the execve fails with ENOEXEC (Exec format
5100         error), return instead of exiting the child process.
5102         * job.c (start_job): In the child side, if exec_command fails, try
5103         using the shell.
5105         * job.c (start_job): In the child side, call unblock_children instead
5106         of sigsetmask.
5108         * remake.c (notice_finished_file): Under -n or -q, always increment
5109         files_remade for non-phony files.
5111         * rule.c (intall_pattern_rule): Use find_percent.
5113         * vpath.c (vpath_search): Pass the `percent' members to
5114         pattern_matches.
5116 Mon Aug 14 23:30:24 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
5118         * vpath.c (struct vpath): New member `percent', to hold a pointer into
5119         the pattern where the % is.
5120         (construct_vpath_list): Call find_percent on the pattern and set the
5121         new `percent' member.
5122         * read.c (read_makefile): Don't run find_percent on `vpath' directive
5123         patterns.
5125         * function.c (pattern_matches): Take new arg PERCENT, a pointer into
5126         PATTERN where the % is.  If PERCENT is nil, copy PATTERN into local
5127         space and run find_percent on it.
5128         (expand_function: `filter', `filter-out'): Pass new arg to
5129         pattern_matches.
5130         * read.c (record_files): Pass PATTERN_PERCENT to pattern_matches for
5131         static pattern rules.  Save the percent pointer into implicit rule
5132         targets, and pass them to create_pattern_rule.
5133         * rule.c (convert_to_pattern): Pass new arg to create_pattern_rule.
5134         (create_pattern_rule): Take new arg TARGET_PERCENTS, nil or an array of
5135         pointers into the corresponding elements of TARGETS, where the %s are.
5137 Sun Aug 13 00:29:19 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5139         * Version 3.54.8.
5141         * README.templatate, README-doc.template: New files, turned into README
5142         and README-doc to go into the two distribution tar files.
5143         * GNUmakefile: Added a rule to edit the version number in
5144         README.template and README-doc.template, producing README and
5145         README-doc.
5147         * remake.c (update_goal_chain): If -n or -q is in effect for a
5148         makefile, and it got updated, don't change STATUS, so we can still
5149         return -1 (meaning nothing was done).  This avoids an infinite loop on
5150         "make -n Makefile".
5152 Sat Aug 12 23:14:24 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5154         * remake.c (notice_finished_file): Treat -q the same as -n.
5156         * remake.c (update_goal_chain): Fixed handling of return from
5157         update_file.  If -n or -q is in effect, ignore it.
5159         * job.c (start_job): Don't test for -t.  We should never get called in
5160         that case.
5162 Fri Aug 11 04:09:14 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5164         * function.c (expand_function): Removed unused variables.
5165         (handle_function): Removed unused variable.
5167         * main.c (main): Removed unused variable.
5169 Wed Aug  9 09:37:10 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5171         * Version 3.54.7.
5173         * remake.c (notice_finished_file): If FILE's modtime actually changed,
5174         increment files_remade.
5175         (remake_file): Don't increment files_remade.
5177         * remake.c (update_file): Don't print "up to date" messages for
5178         phony files.
5180         * job.c (child_handler): Don't set C->file->update_status to 1 if
5181         start_job returns nonzero under -n or -t.
5183         * expand.c (variable_expand): Count parens in $(foo:a=b) refs.
5185         * main.c: Removed old declaration of `glob_tilde' (which hasn't existed
5186         for a few months).
5188 Tue Aug  8 23:53:43 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5190         * job.c (exec_command): Fixed to not ignore the last path component and
5191         to do the right thing with an empty path.
5193 Fri Aug  4 15:58:19 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5195         * remake.c (library_file_mtime): Look for libLIB.a, not /libLIB.a.
5196         Do VPATH search on libLIB.a, not /usr/lib/libLIB.a
5198 Thu Aug  3 20:42:00 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5200         * job.c [HAVE_SYS_WAIT or not USG]: If WIFSIGNALED is not defined by
5201         <sys/wait.h>, define it as (WTERMSIG != 0).
5203 Tue Aug  1 19:25:34 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5205         * remake.c (remake_file): If FILE has no commands and is a target,
5206         don't set its time to now.  The time gets reset by notice_finished_file
5207         anyway, and it isn't needed since check_dep checks for nonexistence.
5209         * Version 3.54.6.
5211         * read.c (read_makefile): Don't read off the end of the string after an
5212         `include'.
5214         * job.c (exec_command): New function to search the path for a file and
5215         execute it.
5216         (start_job): Use exec_command rather than execvp.
5218         * read.c (read_makefile): Expand `include' directive args before
5219         parsing them.  Allow trailing whitespace after filename.
5221         * variable.c (target_environment): Put makelevel + 1, rather than
5222         makelevel, in the `MAKELEVEL' envariable.
5224 Sat Jul 29 10:27:04 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5226         * remake.c (notice_finished_file): Don't get the new modtime of phony
5227         files.
5229         * remake.c (remake_file): Run commands instead of touching under -t if
5230         FILE->cmds->any_recurse is set.
5232         * commands.h (struct commands): Add new member `any_recurse', to be set
5233         nonzero if any `lines_recurse' element is nonzero.
5234         * commands.c (chop_commands): Set the `any_recurse' member.
5236         * commands.c (execute_file_commands): Split chopping of commands into
5237         lines into new function chop_commands.
5238         * commands.h: Declare chop_commands.
5240         * read.c (read_makefile): Test for a line beginning with a tab after
5241         checking for conditional lines, but before all other checks.
5243 Fri Jul 28 18:10:29 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5245         * read.c (read_makefile): Match directives against collapsed line
5246         and use that for their args.
5248         * read.c (read_makefile): Warn about extra text after `include'.
5250 Tue Jul 25 14:34:25 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5252         * make.texinfo (Rules: Directory Search: Selective Search): Fixed
5253         example to use correct `vpath' syntax.
5255 Mon Jul 24 12:10:58 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5257         * Version 3.54.5.
5259         * job.c (start_job): In the child side, unblock SIGCHLD.
5261 Fri Jul 21 18:25:59 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5263         * make.h: Don't include <sys/types.h> #ifdef sun.
5265 Mon Jul 17 14:29:10 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5267         * implicit.c (pattern_search): If ar_name (FILENAME), don't check for
5268         directory names.
5270         * job.c (wait_for_children): Changed "waiting for children" message to
5271         "waiting for unfinished jobs".
5273 Fri Jul 14 13:17:13 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5275         * load.c (load_average): Use an unsigned offset into kmem.
5277 Thu Jul 13 18:44:49 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5279         * variable.c (pop_variable_scope): Don't free the head of the chain of
5280         variables in each bucket twice.
5282 Tue Jul 11 06:45:24 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5284         * GNUmakefile: Include COPYING in the doc tar file.
5286         * variable.c, read.c, misc.c, job.c, function.c: Replace some identical
5287         "for" loops with next_token or end_of_token calls.
5289 Mon Jul 10 16:55:08 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5291         * Version 3.54.4.
5293         * compatMakefile: Documented new conditionals.
5295         * job.c: Don't define sys_siglist if HAVE_SIGLIST is defined.
5296         Don't define dup2 if HAVE_DUP2 is defined.
5298         * job.c (child_handler): Interpret the return from start_job correctly.
5300         * remake.c (update_file_1): Don't write "target not remade because of
5301         errors" message under -n or -q.
5303         * read.c: Declare getpwnam.
5305         * glob.c: Use <dirent.h> if DIRENT is defined.
5306         [USG]: Don't declare memcpy, since <memory.h> does.
5308 Fri Jul  7 20:53:13 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5310         * misc.c (collapse_line): Copy the line over in the right place.
5312 Fri Jul  7 18:33:24 1989  Roland McGrath    (fsf at void.ai.mit.edu)
5314         * remake.c: Conditionalize inclusion of <sys/file.h> on not
5315         USG, since HP-UX defines a `struct file' there.
5317 Fri Jul  7 12:11:30 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5319         * job.c: If WTERMSIG is defined by <sys/wait.h>, define WAIT_T as int,
5320         and don't define other macros; this covers HP-UX.
5321         If WTERMSIG is not defined, use int or union wait based on USG and
5322         HAVE_SYS_WAIT; this covers BSD and SysV.
5324         * Version 3.54.3 (alpha).
5326         * job.c [USG and not USGr3]: Include <errno.h> and declare errno.
5328         * job.c (unblock_children [USG]): Declare child_handler.
5330         * job.c: Renamed WRETCODE to WEXITSTATUS.
5331         [HAVE_SYS_WAIT or not USG]: Undefine WTERMSIG, WCOREDUMP, and
5332         WEXITSTATUS before defining them.  The HP-UX <sys/wait.h> defines them.
5334         * main.c (main): If there are no goals, fatal AFTER printing the data
5335         base under -p.
5337 Thu Jul  6 22:43:33 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
5339         * glob.c [USG]: #define rindex as strrchr.
5341         * job.c [USG]: Include <sys/param.h> and #define getdtablesize() as
5342         NOFILE.
5344 Wed Jul  5 09:36:00 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5346         * Version 3.54.2 (alpha).
5348         * expand.c (variable_expand): When expanding recursive variable
5349         references (${${a}}), use the correct delimiters in the constructed
5350         variable reference.
5352 Mon Jul  3 18:29:26 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
5354         * compatMakefile: Clear out and redefine the .SUFFIXES list because
5355         silly Sun 4 make defines .cps.h.
5357         * compatMakefile: Fix comment about -DNO_MINUS_C_MINUS_O.
5359         * remake.c: Include <sys/file.h> for O_* on 4.2.
5361         * commands.c: Define sigmask if it's not defined.
5363 Fri Jun 30 07:33:08 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
5365         * remake.c (remake_file): Don't always increment files_remade.
5367         * variable.c (push_new_variable_scope): Zero the new variable hash
5368         table.
5370 Thu Jun 29 17:14:32 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5372         * expand.c (variable_expand): When terminating the variable expansion
5373         buffer, use variable_buffer_output instead of a simply zero store,
5374         because the buffer may need to be enlarged.
5376 Wed Jun 28 16:53:47 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5378         * Version 3.54.
5380         * default.c (default_suffixes): Added `.ln'.
5381         (default_suffix_rules): Changed lint rules to use -C.
5383 Thu Jun 22 20:49:35 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5385         * job.c (start_job): Set `environ' to CHILD->environment before execing
5386         in the child process!
5388 Tue Jun 20 17:23:13 1989  Roland McGrath  (roland at spiff.ai.mit.edu)
5390         * compatMakefile: Put job.h and rule.h in `srcs'.
5392         * Version 3.53.
5394 Mon Jun 19 16:25:18 1989  Roland McGrath  (roland at spiff.ai.mit.edu)
5396         * job.c (start_job): If there are no more commands, return nonzero
5397         under -n or -t.
5399         * compatMakefile (make): Pass `-f' to mv.
5401         * GNUmakefile: If `ARCH' or `machine' is defined, make $(ARCH)/*.o and
5402         $(ARCH)/make instead of *.o and make.
5404         * function.c (string_glob): Don't try to use freed storage!
5406         * read.c (readline): If there is only one byte of space in the buffer,
5407         enlarge the buffer before reading more.
5409         * arscan.c [M_XENIX]: Miscellaneous minor changes for Xenix.
5411 Sun Jun 18 13:07:45 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5413         * GNUmakefile (depend): Split commands into two lines so they won't be
5414         so long when variable-expanded.
5416         * compatMakefile: Documented MINUS_C_MINUS_O meaning.  The line
5417         describing it got removed when the USG/wait stuff was documented.
5419 Sat Jun 17 22:56:54 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
5421         * Version 3.52.
5423 Mon Jun 12 17:45:11 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5425         * remake.c (check_dep): Drop circular dependencies instead of fataling.
5426         (update_file_1 already does this.)
5428         * default.c (default_suffix_rules): For .s -> .o, put the -o flag to
5429         the assembler before the source file name.
5431 Sun Jun 11 12:00:52 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
5433         * Version 3.51.
5435         * make.texinfo (Features): Noted 1003.2 requirement of `+' meaning.
5437         * file.c (remove_intermediates): If !SIG, write a single "rm" command
5438         line, listing all files.
5440         * read.c (read_makefile): Don't free the storage for the passed
5441         filename, since it might not be malloc'd.  When doing an included
5442         makefile, free the name's storage.
5443         (read_all_makefiles): Use variable_expand to find the value of
5444         `MAKEFILES'.  Free the storage for the names of -f makefiles.
5445         (read_makefile): Allocate storage for the makefile name in the
5446         `struct file' in read_makefiles.
5448         * make.texinfo (Running: Instead of Execution): Document the effect of
5449         + and $(MAKE)/${MAKE}.
5451         * make.texinfo (Functions: Foreach Function): Document that if the
5452         iteration variable was undefined before the `foreach' call, it will be
5453         undefined after the call.
5455         * commands.c: Split into commands.c, job.h, and job.c.
5457         * rule.c (try_implicit_rule, pattern_search): Moved to new file
5458         implicit.c.
5460         * rule.c: Split into rule.h, rule.c, and default.c.
5461         * default.c (install_default_pattern_rules): Renamed to
5462         install_default_implicit_rules.
5463         * make.h, main.c (main): Renamed uses.
5465         * make.c: Renamed to misc.c.
5467         * make.c (main, log_working_directory, decode_switches,
5468         decode_env_switches, define_makeflags, die, print_version,
5469         print_data_base): Moved to new file main.c.
5471         * commands.c (execute_file_commands): Don't collapse backslash-newlines
5472         here.  When chopping the commands up into lines, don't chop at
5473         backslash-newlines.
5474         (start_job): Collapse backslash-newlines after printing the line.
5476         * commands.c (start_job): Don't collapse backslash-newlines here.
5477         (execute_file_commands): Collapse backslash-newlines before chopping
5478         the commands up into lines.
5480         * commands.c (set_file_variables): Initialize the length counters for
5481         $^ and $? to zero!
5483         * commands.c (start_job): Use vfork instead of fork.  Someone else says
5484         the child and parent DO have separate file descriptors.
5486         * variable.c: Split internals into variable.c, function expansion into
5487         function.c, and variable expansion into expand.c.
5488         * function.c (handle_function): New function to check for a function
5489         invocation and expand it.
5490         * expand.c (variable_expand): Use handle_function.
5491         * variable.c (push_new_variable_scope): New function to push a new
5492         empty variable set onto the current setlist.
5493         (pop_variable_scope): New function to pop the topmost set from the
5494         current setlist and free its storage.
5495         * function.c (expand_function: `foreach'): Push a new variable scope
5496         for the iteration variable and pop the scope when finished.
5497         * variable.h: Declare new functions.
5498         * variable.c (initialize_variable_output): New function to return a
5499         pointer to the beginning of the output buffer.
5500         (save_variable_output): New function to save the variable output state.
5501         (restore_variable_output): New function to restore it.
5502         * expand.c (variable_expand): Use initialize_variable_output.
5503         (allocated_variable_expand): Use {save,restore}_variable_output.
5504         * variable.c (current_setlist): Renamed to current_variable_set_list
5505         and made global.
5507 Sat Jun 10 00:11:25 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5509         * remake.c (library_file_mtime): Check for libNAME.a in the current
5510         directory before doing VPATH search.
5512         * variable.c (print_variable_set): Don't write "# Variables", and write
5513         fewer blank lines.
5514         (print_variable_data_base): Precede the variables with "# Variables".
5516         * make.c (main): Print the data base under -p after doing everything
5517         else, just before exitting.  This way it gets info determined in
5518         updating the goal targets.
5520         * variable.c (print_variable_data_base): Split into print_variable,
5521         which prints one variable, and print_variable_set, which prints a set.
5522         Replaced with a call to print_variable_set for the global set.
5523         (print_file_variables): New function to print a given file's local
5524         variables.
5526         * file.c (print_file_data_base): Call print_file_variables to print
5527         each file's local variables.
5529         * commands.c (set_file_variables): Actually define the values for
5530         the $^ and $? variables!!!
5532         * make.texinfo (Implicit: Pattern Rules: Automatic): Document new D and
5533         F versions of $^ and $?.
5535         * commands.c (start_job): In the child fork, use getdtablesize and a
5536         loop to close all file descriptors other than 0, 1, and 2.  We need to
5537         do this since not only the bad stdin pipe, but also some directories,
5538         may be open.
5540         * commands.c (start_job): Use fork instead of vfork, because a vfork
5541         parent and child share file descriptors, and our child needs to diddle
5542         with stdin.
5544         * variable.c (initialize_file_variables): When created a new variable
5545         set, zero out the hash table.
5547         * variable.c (target_environment): Don't use variables whose names are
5548         not made up of alphanumerics and underscores.
5550         * remake.c (update_file_1): Set the `parent' member of each dependency
5551         to FILE before updating it.
5553         * file.h (struct file): Add `parent' member.
5555         * variable.c (initialize_file_variables): Don't take second arg PARENT.
5556         Use FILE->parent instead.  If FILE->parent->variables is nil, recurse
5557         to initialize it.
5559         * variable.h: Declare {allocated_}variable_expand_for_file.
5561         * variable.c (allocated_variable_expand): Now
5562         allocated_variable_expand_for_file, calling variable_expand_for_file,
5563         and taking second arg FILE.
5564         (allocated_variable_expand): New function, a wrapper around
5565         allocated_variable_expand_for_file, passing a nil second arg.
5567 Fri Jun  9 12:11:45 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5569         * commands.c (start_job): On the child side of the fork, always close
5570         the bad stdin file descriptor.
5572         * commands.c (struct child): New member `environment', to hold the
5573         environment for the child.
5574         (execute_file_commands): Set the new childs `environment' member to nil
5575         before calling start_job.
5576         (start_job): Set up CHILD->environment before running the commands if
5577         it is nil.
5579         * make.c (main): Don't call new_environ.  `shell' functions will now be
5580         run with the environment make was called with.
5582         * commands.c (child_handler): Don't check C->command_ptr before calling
5583         start_job since we now have to check C->file->cmds->command_lines and
5584         it's easier to let start_job handle all that.
5586         * commands.c (struct child): New member `command_line', to hold an
5587         index into file->cmds->command_lines.
5588         (execute_file_commands): Set the new child's `command_line' to 0 and
5589         its `commands' and `commands_ptr' to nil.
5590         (start_job): When CHILD->command_ptr runs out, increment
5591         CHILD->command_line and run the corresponding line from
5592         CHILD->file->cmds->command_lines.  Run it even under -t, -q, or -n if
5593         the CHILD->file->cmds->lines_recurse element for that line is set.
5595         * commands.c (execute_file_commands): Chop CMDS up into lines, setting
5596         its `command_lines' and `lines_recurse' members, if it wasn't already
5597         chopped.
5599         * commands.h (struct commands): New members `command_lines' and
5600         `lines_recurse'.  The first is an array of chopped-up lines; the second
5601         is an array of flags, each nonzero if the corresponding line is
5602         recursive.
5604         * variable.c (variable_expand_for_file): If FILE is nil, just do a
5605         vanilla variable_expand.
5606         (expand_function: `shell'): Pass second arg (as nil) to
5607         construct_command_argv.
5609         * commands.c (construct_command_argv): Use variable_expand_for_file on
5610         `$(SHELL)' and `$(IFS)' instead of lookup_variable to check those
5611         variables.  This handles file-local and recursive values correctly.
5612         To support this, take an additional argument FILE.
5614         * variable.c (initialize_file_variables): New function to initialize
5615         FILE's variable set list from PARENT's setlist.  PARENT is the
5616         immediate dependent that caused FILE to be remade, or nil if FILE is a
5617         goal.  (When user-level per-file variables are implemented, PARENT
5618         should be passed as nil when defining per-file variables.)
5620         * variable.c (variable_expand_for_file): New function to expand a line
5621         using the variable set of a given file, and reporting error messages
5622         for the file and line number of that file's commands.
5624         * variable.h: Don't declare lookup_variable_for_file.
5626         * variable.c (lookup_variable_*): Turned back into lookup_variable.  It
5627         now uses current_setlist.
5628         (global_setlist): New static `struct variable_set_list', a setlist
5629         containing global_variable_set.
5630         (current_setlist): New static `struct variable_set_list *', a pointer
5631         to the current variable set list.
5632         (define_variable): Define in the current top-level set, not the global
5633         set.
5635         * commands.c (set_file_variables): New function to set up the automatic
5636         variables for a file in its own variable set.
5637         (execute_file_commands): Use set_file_variables.
5639         * variable.c (new_environ): Replaced with target_environment, taking an
5640         argument FILE, and returning an environment for FILE's commands.
5642         * variable.c, variable.h: Remove all global special variable pointers.
5644         * variable.c (define_variable_for_file): New function like
5645         define_variable, but takes additional arg FILE, and defines the
5646         variable in the variable set at the top of FILE's chain.
5647         (lookup_variable_for_file): New function like lookup_variable, but
5648         takes additional arg FILE, and looks the variable up in all of FILE's
5649         variable sets.
5651         * file.h (struct file): New member `variables', a `struct
5652         variable_set_list' containing the list of variable sets used in the
5653         expansion of the file's commands.
5655         * variable.c (variables): Replaced with static `struct variable_set'
5656         global_variable_set.
5657         (define_variable): Now define_variable_in_set, taking additional
5658         argument SET, the `struct variable_set' to define it in.
5659         (define_variable): Use define_variable_in_set with global_variable_set.
5660         (lookup_variable): Now lookup_variable_in_set, taking additional
5661         argument SET, the `struct variable_set' to look it up in.
5662         (lookup_variable): Use lookup_variable_in_set with global_variable_set.
5663         (lookup_variable_in_setlist): New function to look up a variable in a
5664         `struct variable_set_list' using lookup_variable_in_set.
5666         * variable.h (struct variable_set): New structure, containing a hash
5667         table and the number of hash buckets.
5668         (struct variable_set_list): New structure, containing a link for a
5669         linked-list, and a `struct variable_set'.
5671         * commands.c (start_job): Under -n, return what the recursive start_job
5672         call returns, since it might actually start a child.
5674         * make.texinfo (Rules: Wildcards): Document ~ and ~USER expansion.
5676         * commands.c (execute_file_commands): If start_job returns
5677         failure, but -t is set, set FILE->update_status to success.
5678         (start_job): If -t is set, and the commands are not recursive, return
5679         failure (is is done for -q).
5681         * remake.c (touch_file): New function to touch FILE.
5682         (remake_file): Use touch_file.  When touching a file, still do
5683         execute_file_commands.
5685         * remake.c (remake_file): Don't check question_flag (-q), since we
5686         can't know here if the commands are recursive.
5688         * commands.c (start_job): Don't use the `recursive' member of
5689         CHILD->file->cmds.  Instead, check for leading +s and $(MAKE) or
5690         ${MAKE} in the command line here.
5692         * commands.h (struct commands): Remove `recursive' member.
5694         * rule.c (install_default_pattern_rules): Remove use of `recursive'
5695         member.
5697         * read.c (record_files): Don't check commands from $(MAKE) and set
5698         their `recursive' member.
5700         * commands.c (fatal_error_signal): Treat SIGQUIT like SIGINT, SIGHUP,
5701         and SIGTERM, but don't send it to ourselves because it will cause a
5702         core dump.
5704 Thu Jun  8 20:30:04 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5706         * Version 3.50.
5708         * variable.c (variable_expand): Use allocated_variable_expand instead
5709         of expand_argument in a few places.
5711         * variable.c (allocated_variable_expand): Do static variable shuffling
5712         here instead of using expand_argument.
5713         (expand_argument): Use allocated_variable_expand.
5715         * variable.c (recursively_expand): New function to recursively expand
5716         its argument (a `struct variable'), returning the malloc'd value.
5717         (variable_expand): Use recursively_expand.
5719 Sun May 28 12:49:27 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
5721         * make.c (main): Fixed buggy fix in deciding to increase space for
5722         command-line variable definitions.  (First it never did it, then it
5723         always did it; now it does it when necessary.)
5725 Sat May 27 14:01:54 1989  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
5727         * make.c (main): Fixed bug in deciding to increase space for
5728         command-line variable definitions.
5730 Fri May 26 15:48:01 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5732         * read.c (multi_glob): Use allocated_expand_variable for checking
5733         `HOME' variable for ~ expansion, since this may be called from inside a
5734         `wildcard' function expansion.
5736         * variable.h: Declare allocated_expand_variable.
5738         * variable.c (allocated_expand_variable): New function to do variable
5739         expansion in an allocated buffer, rather than the static one.
5741         * make.c (main): Don't set glob_tilde (it no longer exists).
5743         * variable.c (string_glob): Use multi_glob and parse_file_seq.
5745         * read.c (multi_glob): Do ~ expansion here.
5747         * glob.c (glob_tilde, glob_filename): Removed ~ expansion.
5749         * variable.c (define_variable, lookup_variable): Use a smarter hashing
5750         algorithm (the same one used for files and directories).
5751         (VARIABLE_BUCKETS): Increased to 523.
5753         * file.c (enter_file, lookup_file, rename_file): Use a smarter hashing
5754         algorithm, spreading the bits about somewhat.
5756         * make.c (log_working_directory): Under `-p', precede the directory
5757         message with a `#'.
5759         * make.c (print_version): Under `-p', precede each line with a `#'.
5760         (print_data_base): Precede the header line with a `#' and include the
5761         date and time on it.
5763         * vpath.c (print_vpath_data_base): Precede non-directive
5764         lines with `#'s.
5766         * commands.c (print_commands): Precede the non-command line with a `#'.
5768         * rule.c (print_rule_data_base), file.c (print_file_data_base): Precede
5769         non-rule lines with `#'s.
5771         * dir.c (print_dir_data_base): Precede all lines with `#'s.
5773         * variable.c (print_variable_data_base): Changed format so that it can
5774         be makefile input.  Lines that are not variable definitions are
5775         preceded with `#'.  Nonrecursive variable definitions are made with all
5776         dollar signs doubled to reproduce the initial value.  Recursive
5777         variable definitions containing newlines are done with `define'
5778         directives.  Nonrecursive variable definitions containing newlines, and
5779         variable names containing :, =, or newlines, will come out garbled.
5781 Wed May 24 00:20:04 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5783         * Version 3.49.
5785 Tue May 23 19:18:00 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5787         * variable.c (expand_function: `filter'/`filter-out'): Use
5788         find_percent instead of pattern_p.
5790         * variable.c (expand_function: `patsubst'): Pass new args (both nil)
5791         to patsubst_expand.
5792         (variable_expand): For $(var:pat%=rep%) references, pass new args to
5793         patsubst_expand so as to avoid find_percent and thus disallow
5794         quoting the %s.
5796         * read.c (record_files): Pass new args to patsubst_expand.
5798         * variable.c (patsubst_expand): Take two new args: PATTERN_PERCENT
5799         and REPLACE_PERCENT.  Each of these, if non-nil, means that PATTERN
5800         (or REPLACE) has already been run through find_percent, and
5801         PATTERN_PERCENT (or REPLACE_PERCENT) is the result.
5803         * make.h: Declare find_percent instead of pattern_p.
5805         * read.c (pattern_p): Changed to find_percent, returning a pointer
5806         to the %, or nil if there is none.
5807         (record_files): Take another arg, PATTERN_PERCENT, a pointer to the
5808         % in PATTERN.
5809         (read_makefile): Pass PATTERN_PERCENT to record_files.
5811         * make.texinfo (Rules: Static Pattern: Static Usage,
5812         Rules: Directory Search: Selective Search,
5813         Functions: Text Functions): Documented that `%' can be quoted.
5815         * variable.c (expand_function: `filter'/`filter-out'): Use pattern_p
5816         to allow quoted %s in patterns.
5818         * variable.c (patsubst_expand): Use pattern_p on PATTERN and REPLACE
5819         to allow quoted %s.  Quoting backslashes are removed from REPLACE
5820         even if PATTERN contains no unquoted %.
5822         * read.c (pattern_p): Made global.
5823         * make.h: Declare pattern_p.
5825         * read.c (pattern_p): New function to search for an unquoted % in a
5826         string.  Backslashes quote %s and backslashes.  Quoting backslashes
5827         are removed from the string by compacting it into itself.  Returns
5828         nonzero if an unquoted % was found, zero if not.
5829         (record_files): Use pattern_p to check for implicit rules.
5830         (read_makefile): Use pattern_p to check for static pattern rules.
5831         Also use it to allow quoted %s in `vpath' patterns; warn about
5832         `vpath' patterns with no %s.
5834 Mon May 22 16:31:52 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
5836         * glob.c (glob_filename): Replace a `1' with the `l' that should
5837         have been there.  This incidentally stops it from dumping core.
5839         * glob.c (glob_filename): If the path is just a directory, with no
5840         file name pattern, return the directory alone.
5842         * glob.c (glob_tilde): New global variable (int), defaults to zero.
5843         (glob_filename): If glob_tilde is nonzero, expand ~ or ~USER.
5845         * variable.c (string_glob): Keep a static allocated buffer for file
5846         names taken from the list, instead of allocating and freeing one
5847         every time.
5849 Fri May 19 18:06:26 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5851         * make.c (decode_switches): Get floating numbers from the right string.
5853 Sun May 14 13:48:04 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
5855         * commands.c (delete_child_targets): When deleting `also_make'
5856         files, include the target's name in the message:
5857                 make: *** [foo] Deleting file `bar'
5859 Sat May 13 17:34:26 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
5861         * make.c (max_load_average, default_load_average): Default to -1.
5863         * load.c (wait_to_start_job): Return if max_load_average is < 0.0,
5864         not equal.
5866 Fri May 12 16:08:05 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
5868         * variable.c (variable_buffer_output): Don't try to do pointer
5869         arithmetic between objects not in the same array.
5871 Wed May 10 15:55:29 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5873         * rule.c [M_XENIX] (default_suffix_rules, default_variables): Minor
5874         changes to allow for strange compiler syntax.
5876         * rule.c (default_variables): Don't include "> $@" in
5877         $(PREPROCESS.S), since it's already in the .S.s rule.
5879         * file.c (enter_file): Make a new double-colon file the `prev'
5880         member of the bottom `prev' file (the one whose `prev' is nil).
5882         * read.c (do_define): Append newlines after copying the lines into
5883         the value buffer, so we end up with a trailing newline.
5885         * make.c (print_version): If the global variable
5886         `remote_description' is not nil or "", append "-%s" (its value) to
5887         the version number.
5888         * remote-*.c: Define remote_description appropriately.
5890 Sun May  7 15:15:53 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5892         * commands.c (error_status): Converted to new function child_error,
5893         taking new arguments TARGET_NAME and IGNORED, and writing an error
5894         message: "*** [target] Error 1" (or signal #, etc.), appending
5895         " (ignored)" if IGNORED is nonzero.
5896         (child_handler): Use child_error instead of error_status.
5898         * compatMakefile (all): Don't depend on `doc'.
5900         * compatMakefile (clean): Don't remove make-info*.
5901         (realclean): New rule, depends on `clean', removes tags, TAGS,
5902         and all Info and TeX files.
5904 Thu May  4 17:00:46 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5906         * variable.c (print_variable_data_base), file.c
5907         (print_file_data_base), rule.c (print_rule_data_base),
5908         Use floating-point for averages and percentages.
5910         * make.c (print_data_base): Print messages before and after the data
5911         base information.
5913         * commands.c (print_commands): Changed output format to separate
5914         lines in commands and prefix them with tabs.
5916         * dir.c (print_dir_data_base): Changed output format slightly.
5918         * vpath.c (struct vpath, construct_vpath_list,
5919         selective_vpath_search): Remove the `exists' member and its uses.
5921         * vpath.c (print_vpath_data_base): New function to print all
5922         selective and general VPATH search paths (for -p).
5924         * make.c (print_data_base): Call print_vpath_data_base.
5926         * file.c (print_file_data_base): Changed format to look more like a
5927         makefile rule.  Now reports all information in the `struct file'.
5929         * rule.c (print_rule_data_base): Changed format of display from:
5930           %: (terminal)
5931            depends on: RCS/%,v
5932         to:
5933           %: RCS/%,v
5934             is terminal.
5935             references nonexistent subdirectory.
5936         Also include number and percent that refer to nonexistent
5937         subdirectories.
5939 Thu Apr 27 15:45:40 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5941         * make.c (main): Figure out the level of recursion before writing
5942         the `Entering directory' message.
5943         * variable.c (define_automatic_variables): Don't figure out the
5944         level of recursion from `MAKELEVEL'.  It's now done in main.
5946         * Version 3.48.
5948 Wed Apr 26 16:39:17 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5950         * commands.c (child_handler): Set `update_status' to zero when there
5951         are no more commands.
5953         * make.c (log_working_directory): If MAKELEVEL > 0, indicate the
5954         recurson in the message (make[1]: ...).
5956         * commands.c (child_handler): Change status to `cs_finished' when
5957         commands fail.
5959         * commands.c (start_job): Return 0 (success) if there were no more
5960         commands for the child.
5961         (child_handler): Change the status to `cs_finished' when start_job
5962         fails to start the commands.
5964         * make.c (main): Don't handle SIGEMT if it's not defined.
5965         Do handle SIGDANGER if it is defined.
5967         * commands.c (child_handler): Reorganized inner loop so that it
5968         doesn't try to inspect the child before finding it.
5970 Tue Apr 25 16:28:24 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5972         * make.c (end_of_token): Fixed bug wherein backslashes caused
5973         immediate return.
5975         * Version 3.47.
5977         * make.texinfo (Implicit: Pattern Rules: Automatic): Document
5978         setting of `$*' for explicit rules.  Add note clarifying that
5979         automatic variables, though referred to in the documentation as
5980         `$<', etc. are no different than `$(<)', etc.
5982 Fri Apr 21 18:00:12 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5984         * file.c (enter_file): Don't strip leading `./'s.
5986         * read.c (parse_file_seq): Strip leading `./'s.
5988 Thu Apr 13 17:26:41 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
5990         * make.texinfo (Commands: Parallel, Running: Options): Document that
5991         -l with no argument removes a previous load limit.
5993         * make.c (struct command_switch): New member `default_value'.
5994         (default_job_slots): Default value (of 1) for -j.
5995         (default_load_average): Default value (of 0, unlimited) for -l.
5996         (command_switches): Use default values for -j and -l.
5997         Also, -l without an arg now means no load limit.
5998         (define_makeflags): Don't write positive_int or floating options
5999         whose values are their defaults.
6001         * make.c (main): Under -w, write a `Leaving directory' message
6002         before re-execing.
6004 Tue Apr 11 16:46:29 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6006         * Version 3.46.
6008         * Makefile: Provide an easy place for system-specific definitions
6009         (-DUSG, etc.) and extra object files (for whatever).
6011         * make.texinfo: Miscellaneous fixes from RMS.
6013 Mon Apr 10 19:31:34 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6015         * rule.c (pattern_search): Put rules with `subdir' flags set in
6016         TRYRULES, since these might be valid with VPATHs.  In the TRYRULES
6017         loop, don't do lookup_file or file_exists_p calls for dependencies
6018         of rules with `subdir' flags set, but still do vpath_search calls
6019         and intermediate-file searches.
6021 Thu Apr  6 16:33:00 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6023         * make.texinfo (Implicit: Pattern Rules: Automatic): Document the
6024         new definition of $* for explicit rules.
6026         * commands.c (execute_file_commands): If FILE->stem is nil, figure
6027         out if FILE->name ends in a suffix in the .SUFFIXES list; if so,
6028         store the name sans suffix in FILE->stem (and $*).
6030 Wed Apr  5 15:24:48 1989  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
6032         * file.c (remove_intermediates): Don't use `file_exists_p' to check
6033         for the existence of intermediate files, because the hashed
6034         directories will probably be out of date.
6036         * commands.c (child_handler): Free the good stdin before running the
6037         next command line.
6039         * commands.c [USG] (init_siglist): Don't case SIGEMT if it's not
6040         defined.  Do case SIGDANGER (for IBM RT) if it is defined.
6042         * commands.c: Changed `SYS_WAIT' to `HAVE_SYS_WAIT'.
6043         (child_handler): Use `wait3' if HAVE_SYS_WAIT is #defined.
6045         * file.c (enter_file): If any `./'s are stripped off, allocate a new
6046         copy of the shortened name.
6048         * rule.c (pattern_search): Allocate the right length strings for
6049         `also_make' members.
6051 Sat Apr  1 13:28:38 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6053         * Version 3.45.
6055         * GNUmakefile: Make a separate tarfile of the DVI and info files.
6057         * make.c (define_makeflags): If a switch that takes an argument has
6058         its default value, put the switch in MAKEFLAGS with no arguments.
6060         * make.c (command_switches): Pass `-l' in MAKEFLAGS.
6062 Wed Mar 29 17:50:05 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6064         * GNUmakefile: Don't include the DVI and info files in the dist.
6066         * commands.c (child_handler): Don't call
6067         check_changed_{directories,vpaths}.
6069         * make.h: Don't declare check_changed_{directories,vpaths}.
6071         * vpath.c (check_changed_vpaths): Removed this function.
6073         * dir.c (struct directory): Remove `modtime' member.
6074         (find_directory): Don't set `modtime' member.
6075         (check_changed_directories): Removed this function.
6077         * remake.c (update_file_1): Set FILE->command_state to cs_finished
6078         if it didn't need to be remade.
6080         * remake.c (update_file): Only write the "up to date" message if the
6081         target went from `not_started' state to `finished' state without
6082         incrementing the count of files remade.
6084         * commands.c [USG] (init_siglist): If both SIGCHLD and SIGCLD are
6085         defined, don't put them both in the `switch'.
6087 Tue Mar 28 15:37:02 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6089         * file.c (rename_file): Change FILE's name!!!
6091         * rule.c (create_pattern_rule): Set the `terminal' member of the new
6092         rule after calling new_pattern_rule, which zeros it.
6094         * rule.c (default_variables): Use $(C++) in $(COMPILE.cc)!
6096 Sun Mar 26 15:52:30 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6098         * Makefile: Added a `clean' target.
6100 Fri Mar 24 15:08:46 1989  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
6102         * Version 3.44.
6104         * file.c (rename_file): If a `struct file' for the renamed-to name
6105         exists, and it is a target or has deps or commands, barf.
6106         If not just remove the old one for put in the new one.
6108         * remake.c (update_file_1, check_dep): Changed it back so that equal
6109         modtimes to NOT make dependencies be considered newer.  RCS checks
6110         out files with equal modtimes as the RCS files, so this screws it.
6112         * make.h, glob.c: If __GNUC__ is defined, use __builtin_alloca.
6114         * Makefile: Use variables `ALLOCA' and `ALLOCASRC' so systems
6115         without a good standard alloca can get it from the Emacs
6116         distribution (or somewhere).
6118         * dir.c: Don't include <sys/stat.h>, since make.h does.
6120         * make.c: Removed debugging version of getwd.
6122 Thu Mar 23 16:16:27 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6124         * Version 3.43.
6126         * remake.c (update_file_1): If a dependency loop is found, don't
6127         fatal.  Emit an error message and remove the dependency.
6129         * remake.c (library_file_mtime): Fixed to use the right names.
6130         (update_file_1, check_dep): Consider a dependency "newer" than its
6131         dependent if they have the same modification time.
6133 Wed Mar 22 19:31:35 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6135         * file.c (remove_intermediates): Don't try to remove nonexistent files.
6137 Mon Mar 20 10:21:22 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6139         * Version 3.42.
6141         * rule.c (default_variables): Set F77 to $(FC) and F77FLAGS to
6142         $(FFLAGS) so explicit rules expecting these (which are in System V)
6143         will work.  However, there is no way to make setting these affect
6144         the implicit rules, unless we trash FC and FFLAGS (which BSD uses).
6145         [USG]: Set GET to `get' rather than `/usr/sccs/get'.
6147 Sun Mar 19 20:00:27 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6149         * vpath.c (construct_vpath_list): Don't replace VPATH[ELEM] with
6150         dir_name (V), because the latter may get freed.
6152 Sat Mar 18 15:01:39 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6154         * Version 3.41.
6156         * make.texinfo: Cleaned-up edition 0.1 Beta from RMS and Bob Chassell.
6158         * file.c (rename_file): If a file with the new name already existed,
6159         use the same storage space, after freeing the old file's name, deps,
6160         and `also_make' member, preserving the link in the chain.
6161         Also write an error message telling the user to report the incident;
6162         I don't think this should be able to happen, but I'm not sure.
6164         * file.c (rename_file): Don't add the hash values of the old and new
6165         names together!  Reset HASHVAL before computing the second value.
6167         * dir.c (check_changed_directories): Zero the new file hash table
6168         after allocating it.
6170         * dir.c (dir_file_exists_p): If FILENAME is "", return 1 if the
6171         directory exists.
6173         * vpath.c (check_changed_vpaths): New function to run through the
6174         search paths of all VPATHs, making the `exists' members correspond
6175         to reality.
6177         * commands.c (child_handler): Call check_changed_vpaths.
6179         * make.h: Declare check_changed_vpaths.
6181         * vpath.c (struct vpath): New element `exists', an array of char
6182         flags; exists[N] is nonzero if searchpath[N] exists.
6183         (construct_vpath_list): Set the `exists' member.
6184         (selective_vpath_search): Don't search directories whose `exists'
6185         elements are zero.
6187         * read.c (read_makefile): Set the `dontcare' flag of makefiles
6188         from the MAKEFILES variable if they were not mentioned anywhere but
6189         in the MAKEFILES variable.
6191         * read.c (read_makefile): Don't write an error message if fopen
6192         fails for a makefile from the MAKEFILES variable.
6194         * dir.c (struct directory): Add `modtime' member to record the
6195         modification time of the directory when it was opened.
6196         (check_changed_directories): New function to check all known
6197         directories; if their modtimes have changed since they were opened,
6198         their file tables are cleared and they are reset to be read in.
6200         * commands.c (child_handler): Call check_changed_directories before
6201         returning.
6202         make.h: Declare check_changed_directories.
6204 Tue Mar 14 20:07:13 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6206         * Version 3.40.
6208         * make.c (print_version): Made the copyright say 1988, 1989.
6210         * read.c (read_all_makefiles): Don't set *MAKEFILES to the name of
6211         the end of the read_makefiles chain, since the latter may be from an
6212         included makefile.  (Why did I do this before?)
6214         * make.c (main): Set argv[0] to "" if it was nil.  Don't put the
6215         command-line variable definitions into argv[0], only into the MAKE
6216         variable!
6218 Sun Mar  5 20:44:08 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6220         * ar.c (ar_member_date, ar_touch): Remove the trailing ) from the
6221         member name.
6223 Fri Mar  3 18:15:15 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6225         * commands.c (construct_command_argv): Initialize NEW_ARGV to 0.  At
6226         `slow' label, if NEW_ARGV is not 0, free it; then allocate 4 strings.
6228 Tue Feb 28 14:29:39 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6230         * Version 3.39.
6232         * COPYING, make.texinfo: New GNU General Public License, version 1.
6234         * *.c, *.h, Makefile: New copyright notices for the new GNU General
6235         Public License, version 1.
6237         * commands.c [USG]: Define WRETCODE correctly (again).
6239         * variable.c (expand_function: `shell'): Don't capture the standard
6240         error output of the shell command.
6242         * ar.c (ar_touch, ar_member_date): Allocate MEMNAME with the right
6243         length.
6245         * load.c [not UMAX] (load_average): Don't clobber the first nlist
6246         member when trying to set the second!
6248 Thu Feb 23 13:13:53 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6250         * commands.c (child_handler): Really ignore errors under -i and for
6251         - lines, don't just print a different message.
6253         * make.c (decode_switches): Fixed handling of arguments (or lack
6254         thereof) to switches.
6256 Wed Feb 22 16:25:39 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6258         * commands.c (construct_command_argv): Don't clobber LINE when
6259         checking the IFS variable.
6261 Sun Feb 19 11:17:07 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6263         * load.c [UMAX, not NO_LDAV] (load_average): Return 0.0 rather than
6264         randomness when calls fail.
6266         * Version 3.38.
6268         * commands.c (fatal_error_signal): If handling a user kill signal
6269         (TERM, INT, HUP), wait for the children without printing the
6270         "Waiting for children" message, since they will die quickly.
6272         * Version 3.37.
6274         * remote-stub.c (remote_status): Take another arg, BLOCK.  If this
6275         is nonzero block waiting for remote children.  If not, return 0 if
6276         we would have to block.
6278         * commands.c (child_handler) [not USG]: If called as a signal
6279         handler, use wait3 and don't block.
6280         [USG]: If called as a signal handler, return after handling one child.
6282 Sat Feb 18 13:37:04 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6284         * file.c (snap_deps): Process all double-colon entries of each file,
6285         not just the first one.
6287         * Version 3.36.
6289         * remote-stub.c: remote.c renamed.
6290         remote.c: Just include remote-stub.c
6292         * commands.c (child_handler): If we were called as a signal handler,
6293         return after handling one child.
6295         * commands.c [not USG]: Include <signal.h> and define `sigmask' if
6296         <signal.h> doesn't.
6297         (block_children, unblock_children): Use sigmask rather than
6298         bitshifting explicitly (and incorrectly).
6300         * remote.c (remote_kill): New function to send a signal to a
6301         remote child.
6303         * commands.c (fatal_error_signal): If we get a SIGTERM, send one to
6304         each living child.  If we get a SIGTERM, SIGINT, or SIGHUP, delete
6305         all pending targets before waiting for children.
6306         (struct child): Add new member `deleted'.
6307         (start_job): Initialize `deleted' member to 0.
6308         (delete_child_targets): New function to delete a given child's
6309         targets, unless the `deleted' flag in the `struct child' says they
6310         have already been deleted.  Sets this flag before returning.
6312 Thu Feb 16 18:32:07 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6314         * commands.c [USG]: Define `WRETCODE' correctly (X & 0xff00).
6316 Tue Feb 14 16:05:00 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6318         * commands.c (construct_command_argv): Don't make the 0th element of
6319         the argument list be "sh" when executing /bin/sh, because start_job
6320         uses the 0th element as the program name.
6322 Sun Feb 12 17:42:05 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6324         * Version 3.35.
6326         * read.c (readline): Put a null in the beginning of the buffer
6327         before starting the reading loop.
6329         * read.c (read_makefile): Made main reading loop while
6330         !feof (infile), and removed EOF check after calling readline.
6332 Sun Feb  5 19:52:38 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6334         * remote.c (block_remote_children, unblock_remote_children): New
6335         (stub) functions to block and restore asynchronous notification of
6336         remote child death.
6338         * commands.c (block_children): Call block_remote_children.
6339         (unblock_children): Call unblock_remote_children.
6340         (child_handler): If called as a signal handler, block remote
6341         children on entry and unblock them before returning.
6343         * commands.c (child_handler): For unknown children, if they are
6344         remote, give their remote ID; if local, give their PID and make's.
6346         * commands.c (execute_file_command): Don't put a new child in the
6347         chain unless start_job succeeds.  Block children before calling
6348         start_job, and unblock them after putting the child in the chain and
6349         incrementing `job_slots_used' (if start_job succeeded).
6351         * commands.c (block_children, unblock_children): Make these globally
6352         visible (not `static').
6353         commands.h: Declare block_children and unblock_children.
6355         * variable.c (expand_function: `shell'): Use
6356         `shell_function_completed'.  Block children before forking and
6357         unblock after `shell_function_pid' is set properly and
6358         `shell_functon_completed' is reset to 0.
6360         * commands.c (child_handler): When the child of the `shell' function
6361         completes, set `shell_function_completed' to 1 if it actually ran,
6362         or -1 if it didn't (due to fork or exec failure).
6364         * commands.c (block_children, unblock_children): New functions to
6365         block and unblock the child termination signal.
6366         (wait_for_children): Use block_children and unblock_children.
6367         (execute_file_commands): Block children around the critical section
6368         wherein a new child is put on the chain.
6370         * make.c (main): Change the environment to contain the correct
6371         MAKELEVEL before re-execing.
6373 Sat Feb  4 18:28:48 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6375         * Version 3.34.
6377 Fri Feb  3 16:36:49 1989  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
6379         * rule.c (default_variables): Fixed $(LINK.c).
6381 Wed Feb  1 18:05:07 1989  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
6383         * Version 3.33.
6385         * version.c: Removed copyright notice, since this is a one-line file.
6387         * commands.c (error_status): Made it return BUF, rather than running
6388         off the end (this apparently worked on Sun 3s for some reason).
6390         * ar.c, commands.c, dep.h, load.c, make.c, make.h, read.c, remake.c,
6391         rule.c, variable.c, Makefile: Changed copyrght notices to cover 1989.
6393 Mon Jan 30 15:51:28 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
6395         * Version 3.32.
6397 Fri Jan 27 20:09:24 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6399         * remake.c (remake_file): Don't touch phony targets.
6401         * rule.c (convert_to_pattern): Fixed an incorrect length passed to
6402         savestring.
6404         * variable.c (expand_function: `shell'): Close the read side of the
6405         pipe on the parent side of the fork.
6407         * commands.c (start_job): On the child of the fork, close the
6408         BAD_STDIN fd if we're not using it.
6410         * read.c (record_files): A file beginning with a dot can be a
6411         default target if it also contains a slash (as in `../foo').
6413         * commands.c (wait_for_children): For BSD, block SIGCHLD rather than
6414         ignoring it to avoid a race condition when child_handler is returning.
6416         * commands.c (child_handler): Do blocking waits.
6417         (error_status): Return a string describing exit status.  (Split out
6418         of child_handler).
6420         * read.c (multi_glob): Change VECTOR to VEC for Alliant.
6422 Thu Jan  5 00:06:51 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
6424         * Version 3.31.
6426         * make.texinfo (Features): Noted $(foo:PAT=SUB) from SunOS 4.0.
6428         * make.texinfo (Options/Recursion): -d and -p go in the environment.
6430         * load.c: Include "commands.h".
6432 Wed Jan  4 17:49:25 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
6434         * make.c (switches): -d and -p can come from the environment and are
6435         put into it.
6437         * read.c (record_files): Fixed the checking for duplicate deps so it
6438         doesn't clobber the first one.
6440         * make.texinfo: Documented default implicit rule changes.
6442         * rule.c: Revamped default suffix rules.  They now use Sun's style
6443         of using variables `COMPILE.c', `LINK.c', etc. for each suffix, and
6444         use `TARGET_ARCH' and `TARGET_MACH' variable where appropriate.
6445         Also support Modula-2 compilation (suffixes .sym, .def, and .mod).
6446         Ratfor Yacc support is gone, since nobody has yacc -r.
6447         All EFL support is gone, since nobody uses EFL.
6449         * ar.c, arscan.c: Don't assume `long int' and `int' are the same.
6451         * commands.c [USG]: Fixed wait status bit encoding.
6452         [USG and not USGr3] (dup2): Define this for SysVr2.
6454         * make.h, dep.h, make.c [iAPX286]: Make allowances for this
6455         brain-damaged compiler.
6457         * make.texinfo (Variables: Flavors): Fixed a typo.
6459 Tue Jan  3 18:09:31 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
6461         * ar.c (ar_member_date, ar_touch): Truncate member names to 15 chars.
6463         * Version 3.30.
6465         * commands.c [SYS_WAIT]: If this is defined, use BSD <sys/wait.h>
6466         and wait3 even if USG.
6468         * read.c (record_files): Defining .DEFAULT with no deps or commands
6469         clears its commands.
6471         * rule.c (default_suffixes): Added `.sh'.
6472         (default_suffix_rules): Added single-suffix .sh rule, copies source
6473         to target and makes target executable.
6474         make.texinfo (Catalogue of Rules): Documented .sh rule and its use
6475         in conjunction with SCCS.
6477         * rule.c (set_default_suffixes): Define variable `SUFFIXES' to the
6478         default list ("" under -r).
6479         make.texinfo (Suffix Rules): Document `SUFFIXES' variable.
6481         * rule.c (default_variables), make.texinfo (Implicit Variables):
6482         Variable AR defaults to `ar', ARFLAGS to `rv', and RM to `rm -f'.
6484         * rule.c (install_default_pattern_rules): Default variables are made
6485         recursive.
6486         (default_variables): Added "CPP", defined to "$(CC) -E".
6487         (default_suffixes): Added `.S', before `.s'.
6488         (default_suffix_rules): New rule for .S to .s, runs CPP.
6489         All rules that use CPP now include "$(CPPFLAGS)".
6490         make.texinfo (Catalogue of Implicit Rules, Implicit Variables):
6491         Documented above changes.
6493         * commands.c [USG] (sys_siglist): Don't define.
6494         [USG] (init_siglist): New function to initialize sys_siglist.
6496         * make.texinfo (Variables: Reference): Documented `$(foo:PAT=SUB)'
6497         references.
6499         * variable.c (variable_expand): A reference `$(foo:PAT=SUB)' is
6500         equivalent to `$(patsubst PAT,SUB,$(foo))'.
6502         * variable.c (variable_expand): Free the storage for the expansion
6503         of a recursive variable when it is nod longer needed.
6505         * variable.c (variable_expand): When checking for `$($(foo))', use
6506         lindex so as not to search for the second `$' outside the parens.
6508         * make.c (struct stringlist, main, decode_switches): Changed `index'
6509         member to `idx'.
6511 Sat Dec 24 16:02:32 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6513         * commands.c (wait_for_children [USG]): Handle SIGCLD with SIG_DFL,
6514         rather than SIG_IGN.  Ignoring SIGCLD reportedly makes wait return -1.
6516         * arscan.c [USGr3]: Define PORTAR to 1 (as with sun386).
6517         (ar_scan [USGr3]): Remove trailing slashes from member names.
6519 Thu Dec 22 17:54:05 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
6521         * make.texinfo (Makefiles: Overriding Makefiles): New node
6522         documenting use of .DEFAULT to have one makefile defer unmakeable
6523         targets to another.
6525         * make.texinfo (Implicit: Using Implicit, Implicit: Last Resort):
6526         Mention empty commands and xref node `Empty Commands'.
6528 Wed Dec 21 20:12:40 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6530         * Version 3.29.
6532         * make.c (struct command_switch, command_switches, et al): New
6533         member `noarg_value', if not nil, ptr to value to use if no arg is
6534         given to a switch that would otherwise require one.  The -j option
6535         can now be given w/o an arg, to mean infinite jobs.
6536         * commands.c: If job_slots is zero, infinite jobs.
6538         * read.c (read_all_makefiles, read_makefile): Make makefiles precious.
6540         * make.c (decode_switches): For a positive_int or floating option,
6541         if we moved to the next argument word, but found no argument for the
6542         option, move back to the correct word.
6544         * make.c (decode_switches): If we got any unknown options, die after
6545         processing all arguments.
6547         * GNUmakefile: Moved `include depend' to the end, so the default
6548         goal will be set before then.
6550         * load.c (wait_to_start_job [Unix, UMAX]): Merged into one version
6551         under #ifdef LDAV_BASED.  Only loop while we have jobs running.
6552         Sleep for increasing amounts (increase one second per iteration)
6553         before checking the load average (after the first check).
6554         Get the load average from function load_average.
6555         (wait_to_start_job [not LDAV_BASED]): Always return.
6556         (load_average [UMAX]): Fetch load average for Encore UMAX.
6557         (load_average [not NO_LDAV]): Fetch load average from /dev/kmem.
6558         [not NO_LDAV]: Define LDAV_BASED.
6560 Tue Dec 20 18:54:50 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6562         * Version 3.28.
6564         * commands.c (wait_for_children): Take second arg, ERROR.  If
6565         nonzero, and there are children, print a message on stderr.
6566         (execute_file_commands, fatal_error_signal): Pass second arg.
6567         * make.c (die), remake.c (update_goal_chain), variable.c
6568         (expand_function: `shell'): Ditto.
6570 Sat Dec 17 01:05:38 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6572         * commands.c (start_job): Call wait_to_start_job before forking.
6574         * load.c (load_average): Converted to wait_to_start_job.
6576         * remote.c: New file for remote execution functions.
6577         (start_remote_job_p): Return nonzero if the next job should be run
6578         remotely.
6579         (start_remote_job): Start a remote job and return an ID for it.
6580         (remote_status): Get status of dead remote children.
6582 Fri Dec 16 16:51:07 1988  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
6584         * commands.c (start_job): If start_remote_job_p () returns nonzero,
6585         call start_remote_job to start the job rather than fork and exec.
6586         (child_handler):
6588         * commands.c (execute_file_commands): Moved load average checking to
6589         start_job.
6591         * commands.c (child_handler: USG): Record the pid wait returns.
6593         * load.c (UMAX): Added some #include's needed for UMAX.
6595         * read.c (multi_glob), variable.c (string_glob): Ignore a (char **)
6596         -1 return from glob_filename.
6598         * variable.c (variable_expand): Make sure we don't increment past
6599         the end of the string we were passed.
6601         * variable.c (variable_expand): Terminate the expansion.
6603         * file.c (rename_file): If there is already a file under the new
6604         name, set its contents equal to FILE's (ick).
6606         * variable.c (define_automatic_variables): Pass all the args to
6607         define_variable when defining MAKELEVEL!
6609         * commands.c (execute_file_commands): If max_load_average > 0, and
6610         we have children running, don't start up another child until the
6611         load average goes below max_load_average.
6613         * make.c: New variable `max_load_average'.
6614         (struct command_switch, decode_switches, decode_env_switches):
6615         Handle floating-point (double) args.
6616         (command_switches): Added `-l' switch to set `max_load_average'.
6618         * load.c (load_average): New file and function to return a double
6619         that is the current load average (1.00 scale).
6620         * GNUmakefile, oldMakefile: Pass flags in $(LOAD_AVG) for load.c.
6622 Thu Dec 15 15:22:08 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
6624         * Makefile: Renamed to oldMakefile.
6625         * GNUmakefile: Make Makefile from oldMakefile and depend.
6627         * read.c (read_all_makefiles): When putting the default makefiles in
6628         the read_makefiles chain so they will be remade, put them in the
6629         right order.
6631         * remake.c (update_goal_chain): If MAKEFILES is nonzero, always make
6632         in serial, and return as soon as one goal whose `changed' member is
6633         nonzero  is successfully remade.
6635         * commands.c: Don't include <sys/fcntl.h>.
6637         * commands.c (construct_command_argv): Added ` to sh_chars.
6639         * make.h: Don't declare construct_makeflags.
6641         * make.c (main): Set up MAKEFLAGS and MFLAGS and make an environment
6642         both before and after reading the makefiles, so the makefiles can
6643         use them and possible change them, and later children will get the
6644         right information.
6645         (construct_makeflags): Replaced with define_makeflags (static void),
6646         which defines the two variables.
6647         * variable.c (define_automatic_variables): Don't define MAKEFLAGS
6648         and MFLAGS.
6650 Mon Dec 12 14:40:31 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
6652         * Version 3.27.
6654         * commands.c (child_handler): Reset the handler to ourselves when
6655         called for USG, since it has no safe signals.
6657         * commands.c: For USG, use an int rather than a `union wait' for
6658         wait calls, and dissect it with bitmasks.
6659         (child_handler): No wait3 system call in USG.  Since we can't
6660         protect from hanging, always return immediately if we have no
6661         children we know about and we're not running a `shell' function.
6662         (There is still the danger of hanging waiting for a child that died
6663         without our being notified.)
6665         * remake.c: Include <fcntl.h> instead of <sys/file.h>.  What we need
6666         is really in <fcntl.h>, and while BSD <sys/file.h> includes
6667         <fcntl.h>, USG doesn't.
6669         * make.c (main): Figure out the program name before doing anything
6670         which might need it (in a call to error or fatal).
6672         * dir.c, glob.c: Use `struct dirent' and <dirent.h> for USGr3.
6674         * arscan.c (ar_scan): Added missing & before buf (which is an int)
6675         if SARMAG is not defined (SysV).
6677 Fri Dec  9 18:44:13 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
6679         * Version 3.26.
6681         * dir.c (find_directory, dir_file_exists_p): Keep track of how many
6682         directories we have open and don't let it be more than
6683         MAX_OPEN_DIRECTORIES (currently 10).
6685         * variable.c (expand_function: `foreach'): Use expand_argument
6686         rather than variable_expand so each repetition doesn't clobber the
6687         last!!!
6689 Mon Dec  5 15:58:46 1988  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
6691         * Version 3.25.
6693         * Makefile: Define `install' target.
6695         * GNUmakefile: Don't include GNUmakefile or depend in the
6696         distribution file.
6698 Wed Nov 30 15:53:42 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
6700         * commands.c (execute_file_commands): Don't clobber a null into
6701         random storage if there were no $^ and/or $? words.
6703         * remake.c (check_dep): Set *MUST_MAKE_PTR nonzero if a dependency
6704         doesn't exist.
6706         * ar.c (ar_member_date, ar_touch): Make sure the modtime of the
6707         archive file itself is known before we fetch or change the modtime
6708         of one of its members.
6710         * read.c (read_makefile): Expand variable and function references
6711         before parsing rules so variable can contain special characters
6712         (colons and semicolons).
6714 Sat Nov 26 11:36:31 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
6716         * variable.c (expand_function: `filter', `filter-out'): Fixed so
6717         that filter-out works right.
6719         * variable.c (expand_function: `filter', `filter-out'): Made these
6720         functions use each word of their first argument as a pattern.
6722 Fri Nov 25 10:51:47 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6724         * Version 3.24.
6726         * read.c (record_files): If a target is listed more than once in a
6727         single rule (that defines commands), give a warning message rather
6728         than the counter-intuitive message saying commands were already
6729         defined (in the same place).
6731         * make.c (fatal, error): Made them both take 6 args since there is
6732         at least one error message that need that many.  Too bad vfprintf is
6733         not universal!
6735         * Version 3.23.
6737         * read.c (read_makefile): Moved the construction of the `struct
6738         commands' into record_files.  Call record_files before recursing for an
6739         included makefile so the higher-up will determine the default goal.
6740         (record_files): Take arguments COMMANDS, COMMANDS_IDX and
6741         COMMANDS_STARTED and construct a `struct commands.
6743 Thu Nov 24 14:36:33 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6745         * Version 3.22.
6747         * make.c (main): Made it a fatal error if we can't move back to the
6748         directory we started in before re-execing.
6750         * make.c (main): Get the current directory before doing anything
6751         else, so we know it even if we don't need it for the value of
6752         `MAKE', since we might want it when re-execing.
6754 Wed Nov 23 13:34:44 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
6756         * Version 3.21.
6758         * read.c (record_files): Eliminate duplicate deps in a chain.
6760         * variable.c (expand_function: `sort'): Pass the right number to
6761         qsort, not one less.
6763         * remake.c (remake_file): Always call notice_finished_file if
6764         FILE->command_state == cs_finished.
6766         * commands.c (execute_file_commands): Call notice_finished_file to
6767         set FILE's status correctly when start_job fails (because it's out
6768         of commands or running under -n).
6770 Fri Nov 18 15:31:12 1988  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
6772         * Version 3.20.
6774         * remake.c (update_file_1): Set the `update_status' of FILE to
6775         nonzero and set FILE's `updated' bit if we have decided to give up
6776         on remaking FILE because of errors in the dependencies.
6778         * rule.c (pattern_search): Debugging messages use `dependency' (vs.
6779         `dependent') properly.
6781         * make.texinfo (Conditionals: Conditional Syntax): Function index
6782         entries for `ifndef' and `ifneq'.
6784         * variable.c (define_automatic_variables): Define `MAKELEVEL' to the
6785         decimal number of the makelevel, since it may be malformed or blank.
6787         * remake.c (remake_file): Call notice_finished_file after touching.
6789 Sat Nov 12 19:29:34 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6791         * Version 3.19.
6793         * GNUmakefile (dist): Pass the `-f' flag to compress.
6795         * vpath.c (build_vpath_lists): Check for VPATHS being nil after
6796         constructing the general VPATH list from the `VPATH' variable.
6798 Fri Nov 11 08:02:26 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6800         * make.c (fatal, error): Made error messages for recursive runs be
6801         shorter.
6803 Thu Nov 10 16:51:36 1988  Roland McGrath  (mcgrath at basil.Berkeley.EDU)
6805         * Version 3.18.
6807         * read.c (read_makefile): Made it eat leading spaces and formfeeds
6808         (but not tabs), like it's documented to.
6810         * read.c (read_makefile): Let included makefiles determine the
6811         default goal, as is done by System V Make.
6813 Tue Nov  1 19:03:08 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6815         * variable.c (new_environ): Don't increment VCNT when a variable is
6816         rejected.
6818 Fri Oct 28 16:54:15 1988  Roland McGrath  (mcgrath at basil.Berkeley.EDU)
6820         * Version 3.17.
6822         * rule.c (convert_to_pattern): Don't use the same storage for a name
6823         in two rules since new_pattern_rule may free this storage when a
6824         rule is discarded.
6826         * rule.c (new_pattern_rule): Undid useless change I made Oct 25.
6828 Thu Oct 27 19:17:53 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6830         * Version 3.16.
6832         * GNUmakefile, Makefile: Fixed a typo in a comment.
6833         * Makefile: Removed malloc.o from object file list.
6835         * variable.c: Removed old debugging #define's for xmalloc and
6836         xrealloc so non-ANSI cpp's won't barf.
6838         * make.c (main): Made local array for temp file name static so
6839         compilers that don't do auto aggregate initialization won't barf.
6841         * read.c: Removed static declaration of copy_dep_chain since it is
6842         no longer static.
6844 Tue Oct 25 16:59:30 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
6846         * rule.c (new_pattern_rule): If we threw out the new rule because it
6847         matched an old one and OVERRIDE was zero, don't put the freed
6848         pointer in the chain!
6850 Wed Oct 19 15:07:43 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
6852         * Version 3.15.
6854         * variable.c (expand_function: `sort'): Don't do the sorting and
6855         writing out if there were no words in the first place.
6857         * remake.c (remake_file): Only fail with a "no way to make" message
6858         for a dependency (non-target) file.  If we don't know how to remake
6859         a target file, pretend it was successfully remade and is very new.
6861         * remake.c (remake_file): Don't increment `files_remade' for a
6862         non-target file we don't know how to remake.
6864         * read.c (record_files): Don't die with "both : and :: entries" for
6865         a file whose `is_target' flag is not set.
6867 Tue Oct 18 17:24:11 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
6869         * variable.c (expand_function: `patsubst', `subst'): Free the right
6870         things!
6872         * variable.c (expand_function: `subst'): Don't clobber the
6873         pointer to the end of the second arg and then try to use it!!!
6875 Mon Oct 17 16:44:45 1988  Roland McGrath  (mcgrath at catnip.Berkeley.EDU)
6877         * variable.c (expand_function: `patsubst'): Don't clobber the
6878         pointer to the end of the second arg and then try to use it!!!
6880         * variable.c (expand_function: `word' function): Made it parse its
6881         second argument correctly.
6883         * ar.c (ar_touch): Return 1 rather than -1 for on errors.
6885 Sat Oct 15 15:12:16 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
6887         * Version 3.14.
6889         * GNUmakefile: Removed explicit rule for make.dvi since the built-in
6890         implicit rule now works.
6892         * rule.c (default_suffix_rules): Fixed .texinfo.dvi rule yet again
6893         so that it really works, now that parens are counted.
6895         * remake.c (update_file_1): Set FILE's `updated' flag after calling
6896         remake_file if it failed or finished immediately.
6898         * remake.c (update_file): Use the `updated' flag rather than the
6899         command state to decide if a file was fully considered, and
6900         therefore might give an "up to date" message.
6902         * variable.c (expand_function): Made all functions that take more
6903         than one argument count parens of the appropriate flavor in their
6904         args and ignore commands nested in parens.
6906 Fri Oct 14 18:35:00 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6908         * read.c (read_all_makefiles): Pass second arg to read_makefile for
6909         default makefiles.
6911 Thu Oct 13 16:40:08 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6913         * Version 3.13.
6915         * GNUmakefile: Added an explicit rule for make.dvi since the
6916         built-in .texinfo.dvi implicit rule is screwed up.
6918         * rule.c (default_suffix_rules): Added a comment that the
6919         .texinfo.dvi rule does not work because of an ahem, feature of Make
6920         that at some point will be fixed--er, enhanced to alleviate this
6921         difficulty.
6923         * rule.c (default_suffix_rules): Fixed Texinfo -> DVI rule (again).
6925         * make.texinfo (Commands: Execution): Documented new competing for
6926         standard input among children.
6928         * commands.c (struct child): Added `good_stdin' flag to tell if this
6929         child has the stdin that doesn't point into nirvana.
6930         (good_stdin_used): New variable to tell if any child has the good
6931         standard input.
6932         (child_handler): Reset `good_stdin_used' if a dead child's
6933         `good_stdin' flag is set.
6934         (start_job): Give the new child the good standard input if
6935         `good_stdin_used' is no set, and set the child's `good_stdin' flag
6936         appropriately.
6938         * rule.c (default_suffix_rules): Changed Texinfo -> DVI rule to work
6939         better (I hope).
6941         * read.c (read_all_makefiles): Stop reading default makefiles after
6942         one is found.
6944         * read.c (read_makefile): Reset `reading_filename' and
6945         `reading_lineno_ptr' after recursing for an included makefile.
6947         * GNUmakefile: New GNU Make-specific makefile that does everything
6948         Makefile does plus distribution stuff, and doesn't contain any hacks
6949         to try to work with Unix make.
6951         * Makefile: Removed distribution stuff.
6953         * make.c (main): Use mktemp to construct the names of temporary
6954         files used for standard input makefiles.
6956         * make.c (main): Don't turn standard input into a broken pipe.
6958         * commands.c (start_job): Keep two extra file descriptors around: a
6959         good standard input, and a bad one that reads from a broken pipe.
6960         On the child side of the fork, if there are other children, give
6961         this one the broken pipe so they won't compete; if this is the only
6962         one, give it the good standard input.
6964         * make.h: Declare notice_finished_file.
6966         * commands.c (execute_file_commands): Use noticed_finished_file
6967         after waiting for the child when there is only one job slot.
6969         * remake.c (notice_finished_file): New function to re-check mtime's
6970         and such things to be done when commands finish.
6971         (update_file_1): Use notice_finished_file.
6973         * commands.c (child_handler, execute_file_commands): Use new
6974         variable `job_slots_used' to record the number of jobs currently
6975         running, rather than diddling with `job_slots'.
6976         (execute_file_commands): Increment `job_slots_used' before calling
6977         start_job and decrement it on failure to avoid race condition.
6978         If there is only one job slot, wait for the child to finish and
6979         return its status so commands are run in linear order, as if there
6980         were no parallelism.
6982 Wed Oct 12 15:59:03 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
6984         * remake.c (remake_file): Don't print a "No way to make" message for
6985         targets whose `dontcare' flags are set.
6987         * read.c (read_all_makefiles): Set the `dontcare' flag of the
6988         `struct file' each default makefile added to the chain.
6990         * file.h (struct file): Add `dontcare' member.
6992         * read.c (read_all_makefiles): When no default makefiles are found,
6993         put the names of all those tried in the `read_makefiles' chain so
6994         they will be updated if possible, giving their `struct dep's'
6995         `changed' members the value of 0 so we won't care if they cannot be
6996         found or remade.
6998         * make.texinfo (Makefiles: Remaking Makefiles): Documented that
6999         default makefiles will be remade if not found.
7001         * read.c (read_all_makefiles): If no default makefiles can be found,
7002         go through the list of default names, trying to make one, stopping
7003         if one is made.
7005         * remake.c (remake_file): Set STATUS to 0 after successfully touching.
7007         * dir.c (file_impossible, file_impossible_p): Don't clobber FILENAME
7008         to "" and then try to to a strcmp on it!!!
7010 Mon Oct 10 16:09:18 1988  Roland McGrath  (mcgrath at cinnamon.Berkeley.EDU)
7012         * make.c (main): Don't do `dir_load (".")'.
7014         * rule.c (count_implicit_rule_limits), vpath.c
7015         (construct_vpath_list): Test the existence of a given directory by
7016         `dir_file_exists_p (DIR, ".")' and assume that if this returns zero,
7017         it means the directory really does not exist.
7019         * dir.c (struct dirdata): Replaced with `struct directory' for
7020         directories, each containing a chain of `struct dirfiles', one for
7021         each file (real or impossible).
7022         (dir_load): Removed.
7023         (find_directory): New function to find the `struct directory' for a
7024         named directory and return it (possibly creating a new one).
7025         (dir_file_exists_p): Read the directory on the fly if its stream is
7026         still valid (and ever was) if the file we're looking for is not
7027         already in the hash tables.
7028         (file_impossible, file_impossible_p, dir_name, print_dir_data_base):
7029         Use the new directory/file scheme.
7031         * make.texinfo: Miscellaneous editorial changes and clarifiactions.
7033         * commands.c (struct child): Remove `environ' member.
7034         (child_handler, start_job, execute_file_commands): Remove use of
7035         `environ' member and new_environ.
7037         * make.c (main): Call new_environ after reading makefiles.
7039         * variable.h: Declare `new_environ' to return void.
7041         * variable.c (new_environ): Put the environment in `environ' and
7042         return void.
7044 Fri Oct  7 15:48:39 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
7046         * Version 3.12.
7048         * Makefile: Don't make the uncompressed tar file.
7050         * variable.c (expand_function: `shell' function): Made it not expect
7051         read to null-terminate the buffer.
7053         * Makefile: Made it use a temporary symlink to . rather than a
7054         temporary directory to make the distribution tar file.
7056 Thu Oct  6 17:52:35 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
7058         * Version 3.11.
7060         * make.texinfo: Fixed a line that got garbaged somehow.
7062 Mon Oct  3 16:14:39 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
7064         * make.c (main): Try to move back to the directory we started in
7065         before re-exec ourself.
7067         * remake.c (update_file_1): A double-colon target with no deps
7068         always needs to be remade.
7070         * remake.c (remake_file): Changed "No way to make" message to say
7071         `target' rather than `file'.
7073 Sun Oct  2 12:50:47 1988  Roland McGrath  (mcgrath at catnip.Berkeley.EDU)
7075         * remake.c (update_file_1): Set FILE->update_status to the return
7076         value of remake_file.
7078         * rule.c (convert_to_pattern): Fixed swapped lengths passed to
7079         xmalloc for source/target suffixes.
7081         * make.texinfo: Documented that MAKEFLAGS and MFLAGS are read in
7082         from makefiles.  Updated the `Features' section a bit.
7084         * make.c (main): Read switches from MAKEFLAGS and MFLAGS variables
7085         after reading in makefiles.
7087         * make.c (main): Put a line "/tmp/foo:;" rather than ".PHONY:
7088         /tmp/foo" in front of temp files made for stdin makefiles.
7090         * remake.c (update_file): Test the state of the right `struct file'
7091         for double-colon files.
7093         * make.c (main): Put a ".PHONY: /tmp/foo" line in front of temp
7094         files made for stdin makefiles so they won't be remade when we
7095         re-exec.  Kludge-o-matic!!
7097         * remake.c (update_goal_chain): Judge files as being finished based
7098         on their `updated' flag, not their state.
7100         * read.c (read_makefile): Don't check for FILENAME being "-".
7101         (read_all_makefiles): Set each element of MAKEFILES to the name put
7102         in READ_MAKEFILES by read_makefile, since read_makefile may free the
7103         storage for the name it is passed, and someone might want to look at
7104         the elements of MAKEFILES again.
7106         * make.c (main): For each `-f' flag with arg `-' (standard input),
7107         read standard input into a temp file and pass the temp file's name
7108         to read_all_makefiles, after making sure it will not be remade.
7110         * make.c (construct_makeflags): Always put out `-j1'.
7112 Sat Oct  1 00:19:59 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7114         * commands.c (execute_file_commands): If commands are nothing but
7115         whitespace, set the state to `cs_finished' before returning 0.
7117         * make.c (decode_switches): Allocate space for args in stringlists
7118         so they can be freed later.
7120         * make.h: Declare `makelevel'.
7122         * variable.c (makelevel): Moved to make.c (and made global).
7124         * make.c (fatal, error): Print the makelevel if it's > 0.
7125         (perror_with_name): Use error rather than calling fprintf directly.
7126         (pfatal_with_name): Use fatal rather than fprintf and die.
7128         * variable.c (new_environ): Don't put default variables (origin
7129         `o_default') into the environment; they just take up space.
7131         * read.c (read_makefile): Don't add FILENAME to the chain of read
7132         makefiles if it's "-" (standard input).
7134         * remake.c (update_goal_chain): Set STATUS correctly when nothing
7135         happens (as well as in all other situations).
7137         * make.c (construct_makeflags): Put a `-' before each switch and
7138         spaces between them.
7140         * Version 3.10.
7142         * commands.c (wait_for_children): Don't check if `children' is nil.
7143         This is the case when waiting for the child of a `shell' function.
7145         * dir.c (dir_load): Don't add a hash-table entry for directory
7146         DIRNAME and filename "" if DIRNAME doesn't exist.
7148         * commands.c (execute_file_commands): Return 0 after start_job
7149         returns 1 (failure) under the -n flag.
7151         * remake.c (remake_file): Set the state to `cs_finished' when not
7152         calling execute_file_commands.
7154         * remake.c (update_goal_chain): Second arg is now MAKEFILES, nonzero
7155         meaning to disable -t, -q, and -n for each target unless the target
7156         was also given on the command-line.
7158         * read.c (read_makefile): Enter the `struct file's for the makefiles
7159         added to the `read_makefiles' `struct dep' chain.
7161         * remake.c (update_goal_chain): Made it not enter the files for the
7162         goals in the chain.  It will already have been done.
7164         * rule.c (convert_to_pattern): Null-terminate the names of targets
7165         and deps of the pattern rules properly.
7167 Fri Sep 30 18:56:20 1988  Roland McGrath  (mcgrath at nutmeg.Berkeley.EDU)
7169         * make.c (main): Call install_default_pattern_rules.
7171         * make.h: Declare copy_dep_chain.
7173         * read.c (copy_dep_chain): Moved to make.c (and made global).
7175         * make.c (main): Call update_goal_chain to update goals.
7176         Update read makefiles and re-exec self if they change.
7178         * remake.c (update_file): Make this function static.
7179         (update_goal_chain): New function to update a `struct dep' chain of
7180         goals, waiting until they are all finished before returning.
7182         * make.h: Don't declare update_file.  Declare update_goal_chain.
7184         * make.c (main): Call snap_deps, etc. that were in read_all_makefiles.
7186         * read.c (find_makefile): Removed this function.
7187         (read_all_makefiles): Don't update makefiles, don't diddle with
7188         pattern rules, don't call snap_deps, etc.  Return a `struct dep'
7189         chain of all makefiles read.
7190         (read_makefile): Now takes two args: FILENAME and TYPE, which is 0
7191         for a normal makefile, 1 for MAKEFILES variable or 2 for an included
7192         makefile.  Add a `struct dep' containing the name of the makefile
7193         (as it was found in the search path for type 2s), and TYPE in the
7194         `changed' member to the global `read_makefiles' chain.
7196         * make.h, rule.c (displace_pattern_rules,
7197         add_displaced_pattern_rules): Removed these functions.
7199         * read.c (read_makefile): Variable-expand the name of an `include'd
7200         makefile before calling find_makefile on it.
7202         * file.c (snap_deps): If the `struct file' for a `struct dep'
7203         already exists, free the `struct dep's `name' member before setting
7204         it to nil (since this info is in the `struct file').
7206         * read.c (copy_dep_chain): Made it copy each name rather than
7207         leaving multiple `struct dep's with the same pointers.
7209 Thu Sep 29 19:08:13 1988  Roland McGrath  (mcgrath at catnip.Berkeley.EDU)
7211         * make.c (decode_switches): Fixed second decode_env_switches call to
7212         use correct length of "MFLAGS" (6, not 5).
7214         * read.c (read_makefile): Don't stop reading when readline returns
7215         zero lines read.  Only stop when the stream reaches EOF.  This makes
7216         it recognize the last line of a makefile without a newline.
7218         * remake.c (remake_file): If we don't know how to make FILE, set its
7219         command state to `cs_finished'.
7221         * remake.c (update_file): Don't write the "up to date" message if
7222         update_file_1 returned a nonzero status.
7224 Wed Sep 28 16:30:07 1988  Roland McGrath  (mcgrath at catnip.Berkeley.EDU)
7226         * commands.c (child_handler): Set the `update_status' member
7227         properly for ignored errors.
7229         * rule.c (convert_to_pattern): Made it not care about if the target
7230         suffix comes before the source suffix in the .SUFFIXES list.
7232         * make.texinfo: Misc editorial changes.
7234         * commands.c (wait_for_children): Return immediately if `children'
7235         is nil (there are no children).
7237 Tue Sep 27 15:33:14 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
7239         * Version 3.09.
7241         * commands.c (struct child): New member `command_ptr' to hold the
7242         current position in the commands.  The `commands' member is never
7243         changed.
7244         (start_job, child_handler, execute_file_commands): Use new method
7245         for `commands' and `command_ptr' members.
7247         * make.c (decode_env_switches): Skip past an invalid letter (instead
7248         of looping forever).
7250         * commands.c (struct child): Add `environ' member to hold the
7251         environment for this child.
7252         (execute_file_commands): Get a new environment from new_environ and
7253         put in the the new `struct child's `environ' member.
7254         (child_handler): When freeing a child, free its `commands' member, the
7255         elements of its `environ' array and its `environ' member itself.
7256         (start_job): Set `environ' to the child's `environ' member before
7257         exec'ing the command.
7259         * variable.h, variable.c (new_environ): Made it return the new
7260         environment, not putting it in `environ'.
7262         * remake.c (update_file): Don't give a "is up to date" message
7263         unless no files were remade and the state went from `cs_not_started'
7264         to `cs_finished', so repeat calls to finish jobs won't get the message.
7266 Mon Sep 26 16:26:08 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
7268         * Version 3.08.
7270         * make.texinfo (Commands: Execution): Documented that children will
7271         be waited for rather than killed.
7273         * commands.c (fatal_error_signal): Wait for children.
7274         (kill_children): Removed this function.
7276         * make.c (main, die): Wait for children to die, don't kill them.
7278         * variable.c (expand_function): Use wait_for_children.
7280         * make.c (main): Use wait_for_children rather than child_handler.
7282         * commands.c (wait_for_children): New function to block waiting for
7283         children, insuring that child_handler is not called recursively.
7284         (execute_file_commands, kill_children): Use wait_for_children.
7286         * commands.c (child_handler): Start up additional commands in a
7287         sequence after an ignored error.
7289         * remake.c (update_file): Don't print "`foo' is up to date" messages
7290         when update_file_1 returns while commands are executing.
7292         * remake.c (update_file_1): Pass the file name to name_mtime, not
7293         the bloody `struct file', dammit!!
7295         * commands.c (child_handler): Print out the "*** ..." error message
7296         when not under -i.  (I somehow forgot this.)
7298         * remake.c (update_file_1): Use name_mtime rather than file_mtime to
7299         re-get the mtime of a file whose commands have finished.
7301         * make.c (command_switches, decode_switches, decode_env_switches):
7302         Make all switches that take string args allow them right after the
7303         switch letter.
7305         * commands.c (child_handler): Check for a child being the `shell'
7306         function's command returning and set the global variable for
7307         expand_function to check.
7309         * variable.c (expand_function): For the `shell' function, instead of
7310         waiting for the child shell ourselves, let child_handler do it and
7311         loop around waiting for something to happen.
7313         * make.c (print_version): Made the copyright year static, not dynamic.
7315         * make.h, make.c: Remove construct_argv function.
7317         * make.c (main): Say "no goal target" instead of "no target".
7319         * make.texinfo (Commands: Parallel): Don't send SIGKILL.
7321         * commands.c (kill_children): Don't send SIGKILL to children that
7322         aren't killed by the first signal.
7324         * make.c (main), commands.c (kill_children): Decide between SIGCHLD
7325         and SIGCLD based on whether or not SIGCHLD is defined, not on USG.
7327         * Makefile: Link make with $(LOADLIBES).
7329         * read.c (construct_include_path): Fixed another bad xrealloc call.
7331         * make.c (decode_switches): Fixed an xrealloc call with no first arg.
7333 Sat Sep 24 01:16:21 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
7335         * Version 3.07.
7337         * remake.c (update_file_1): If deps are running, set state to
7338         `cs_deps_running' and return 0.  If deps are done, run commands.
7340         * commands.c (child_handler): Made it delete non-precious targets
7341         killed by fatal signals.
7343         * make.texinfo: Documented parallelism.
7345 Fri Sep 23 16:52:27 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
7347         * remake.c (update_file_1): Don't return if FILE's state is
7348         `cs_deps_running'.  In that case, we need to run through and check
7349         the states of all our dependencies.
7351         * commands.c (execute_file_commands): Decrement `job_slots' after
7352         starting a new job to run file commands.
7354         * commands.c (start_job): Made it set the state to `cs_running'.
7356         * make.c (main): Fixed usage of `g', `lastgoal', and `goals' in the
7357         goal-making loop.
7359         * commands.c (child_handler): When commands finish, set the
7360         corresponding file's `update_status' and `updated' flags as
7361         appropriate, and reset the modtimes of the file and any `also_make'
7362         files it has.
7364         * remake.c (remake_file): Don't re-set `last_mtime' and set `updated'.
7366         * commands.c (fatal_error_signal): Don't swallow all the children
7367         with a loop around `wait ((union wait *) 0)'!!!
7369         * make.c (struct command_switch): Added `positive_int' type.
7370         (switches): Added -j (job_slots).
7371         (construct_makeflags, decode_switches, decode_env_switches):
7372         Handle`positive_int'-type switches.
7374         * glob.c (glob_vector): Rename local variable `vector' to `VeCtOr'.
7375         This is said to avoid a conflict with some system's global `vector'
7376         variable.
7378         * variable.c (expand_function): Made the `shell' function use
7379         construct_command_argv and do its own child control and piping.
7381         * make.c (main): Turn standard input into a broken pipe after
7382         reading in all makefiles (the last time it will be needed).
7384         * commands.c (struct child): Remove `pipe_fd' member.  We don't use
7385         pipes any more.
7386         (start_job): Return 0 for success, 1 or failure (rather than void).
7387         Don't use pipes.  Don't turn the child's stdin into a broken pipe.
7388         (child_handler): Print "*** Error" messages when necessary.
7389         Die on failed commands when -k was not given.
7390         (execute_file_commands): Check the return of start_job and remove
7391         the child from the chain and return failure if it is nonzero.
7393         * make.c (die): New function to clean up and exit.
7394         (fatal, pfatal_with_name): Use die.
7396 Thu Sep 22 14:27:11 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
7398         * commands.c (struct child): Added `commands', `pipe_fd', and
7399         `noerror' members to keep track of info about a command thread.
7400         (start_job): New function to start a job and update the argument
7401         `struct child' to reflect its status.
7402         (execute_file_commands): Merged run_file_commands back in.
7403         Made it use new start_job function.
7405         * rule.c (freerule): Don't free the `struct commands' of the
7406         discarded rule.  It may be used in more than one place.
7408         * commands.c (execute_command_line): Made it not try to delete the
7409         possibly partly-made file.  The child_handler function will do this.
7410         (fatal_error_signal): Ditto + call kill_children.
7412         * make.h: Declare job_slots.
7414         * make.c (main): Collect goals in a dep chain and run through this
7415         chain waiting for a child, eliminating finished goals, updating all
7416         remaining goals, and quitting if they fail and not -k.
7418         * commands.c (child_handler): If called with SIG < 0, - SIG is the
7419         max number of children to bury.
7421         * commands.c (child_handler): If called with SIG as zero,
7422         block waiting for running children.
7423         (kill_children): Call child_handler with zero rather than SIGCHLD.
7425         * remake.c (update_file_1): Use the `command_state' member of FILE
7426         and its dependencies to determine what commands are running, what to
7427         do, etc.  If commands or dep commands are running when we are
7428         called, return success (0).  If commands finished since the last
7429         time we were called, return their status.
7431         * commands.h: Declare kill_children.
7433         * commands.c: Define `struct child' to keep track of child
7434         processes, with the chain in `children'.
7435         (child_handler): New function to catch child-termination signals
7436         (SIGCHLD, or SIGCLD for USG), store the returned status in the
7437         appropriate structure, take the now-obsolete `struct child' out of
7438         the chain, and free its storage.
7439         (execute_file_commands): Put all of the stuff invloving running the
7440         commands into new function run_file_commands.  Execute_file_commands
7441         now does process management for the commands, while
7442         run_file_commands (which is run in a subprocess) runs the commands.
7443         (kill_children): New function to kill all running children by
7444         sending them signal SIG.  If there are any children still living
7445         after they are all sent SIG, they are all sent SIGKILL.
7447         * make.c (main): Catch SIGCHLD (SIGCLD for USG) with child_handler.
7449         * commands.h: Declare child_handler function.
7451         * commands.c (execute_file_commands): Check the `command_state'
7452         member of FILE and return 0 if it is `cs_running' or
7453         `cs_deps_running' and return the stored status if it is `cs_finished'.
7455         * file.h (struct file): Added `command_state' member.
7457         * commands.c (execute_command_line): Add `$' to the list of
7458         characters special to the shell.
7460 Wed Sep 21 15:57:41 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
7462         * read.c (read_all_makefiles): Call convert_to_pattern before
7463         recomputing the limits after adding the displaced rules.
7465         * make.c (main): Move calls to snap_deps, convert_to_pattern, and
7466         build_vpath_lists to read_all_makefiles.
7468         * read.c (read_all_makefiles): Install the default pattern rules
7469         before checking to remake the makefiles, displace these rules before
7470         reading in the makefiles, and then add the displaced rules to the
7471         chain after reading in all the makefiles.
7473         * make.c (main): Don't call install_default_pattern_rules or
7474         count_implicit_rule_limits.
7476         * make.h: Declare displace_pattern_rules and
7477         add_displaced_pattern_rules.
7479         * rule.c (displace_pattern_rules, add_displaced_pattern_rules): New
7480         functions to stow the chain and add the stowed chain on the end of
7481         the current chain.
7483         * make.texinfo (Implicit: Search Algorithm): Fixed PREV reference.
7485         * make.c (main): Call construct_include_path right after decoding
7486         the switches.
7488         * read.c (find_makefile): Use rename_file.
7490         * file.h: Declare rename_file.
7492         * file.c (rename_file): New function to rename a `struct file' and
7493         put it in the correct hash bucket.
7495         * read.c (find_makefile): New function to find and update a makefile.
7496          (read_all_makefilese): Use find_makefile.
7497          (read_makefile): Don't do updating.  Removed UPDATEIT arg.
7499         * remake.c (update_file_1): Took out setting the `updated' member to
7500         -1 rather than 1 sometimes.
7502         * make.c (main): Made it print version info before doing anything else.
7504         * remake.c (library_file_mtime, f_mtime): Removed use of last two
7505         arguments to vpath_search.
7507         * rule.c (pattern_search): Removed use of last two arguments
7508         to vpath_search.
7510         * vpath.c (vpath_search, selective_vpath_search): Removed unused
7511         DIRPREFIX and DPLEN args.
7513         * read.c (read_makefile): Also turn off -n when updating makefiles.
7515 Tue Sep 20 17:01:10 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
7517         * Makefile: Put tags files in the tarfile.
7519         * read.c (read_makefile): Get the modtime of the makefile via a stat
7520         call so that a later file_mtime call won't do VPATH search for it.
7522         * read.c (read_makefile): Don't turn off -t and -q if the makefile
7523         was a command-line target.
7525         * make.c (main): Enter command-line targets as files and set their
7526         `cmd_target' members.
7528         * file.h (struct file): Added `cmd_target' member.
7530         * read.c (read_makefile): Temporarily turn off -t and -q while
7531         updating makefiles.
7533         * make.c (main): Don't use arg 0 from other_args (which is now
7534         argv[0]; i.e., the program's name).
7536         * read.c (read_makefile): Only return nonzero if commands were
7537         actually run to remake the makefile.
7539         * remake.c (update_file_1): Set FILE->updated to -1 if no commands
7540         were actually run (because no update was done or -t was given).
7542         * make.c (decode_switches): Fixed bug wherein xrealloc was passed
7543         bad args if it tried to expand other_args->list.
7545         * read.c (read_all_makefiles): Made it not look at the `MAKE'
7546         variable, just use argv[0].
7548 Sun Sep 18 17:34:11 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
7550         * read.c (rerun_make): New function to re-exec make.
7552         * make.c (construct_makeflags, construct_argv): New functions to
7553         construct the `MAKEFLAGS' variable and to construct an arg list from
7554         parsed info.
7556         * read.c (read_makefile): New arg UPDATEIT, if nonzero, says to
7557         update the makefile as a target before reading it in.  When reading
7558         included makefiles, pass this as zero.  Now returns nonzero if the
7559         makefile was updated, zero if not.
7560         (read_all_makefiles): Pass a nonzero UPDATEIT arg to read_makefile
7561         for all default and -f makefiles and all makefiles from the
7562         `MAKEFILES' variable.  If any of the makefiles has changed, re-exec
7563         self to re-read them.
7565         * remake.c (update_file): Print a "File `foo' up to date'" message
7566         under -p.
7568         * commands.c (execute_file_commands): Allocate one byte for each of
7569         $^ and $< rather than zero if they are to be empty.
7571 Fri Sep 16 13:59:59 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7573         * Version 3.06.
7575         * make.c (command_switches): Fixed entry for `-o' switch.
7577         * make.texinfo: Renamed -c switch to -C.
7579         * make.c: Renamed -c switch to -C.
7581         * Miscellaneous de-linting.
7583         * read.c (record_files): Made it not free the storage for the name
7584         if it started with `./' and was therefore not quite the same as in
7585         the `struct file'.
7587         * read.c (record_files): If commands were specified twice, the error
7588         message specifies in what files and at what line numbers.
7590         * make.c (main): If any of the signals we usually fatal on were
7591         ignored by the parent (probably a shell), ignore them.
7593         * make.c (main): Print version info for -v, -p, or -d.
7594         (print_data_base): Don't print version info.  It will be done in main.
7596         * variable.c: Increased number of hash buckets to 257.
7598         * file.c: Increased number of hash buckets to 1007.
7600         * rule.c (count_implicit_rule_limits): Moved comptation of
7601         `maxsuffix' to convert_to_pattern, since that function uses
7602         `maxsuffix', and must be called before count_implicit_rule_limits.
7604         * rule.c (pattern_search): If an existent (non-intermediate)
7605         dependendency was found via a terminal rule, set its
7606         `tried_implicit' flag, so it will never have implicit rule search done.
7608         * glob.c: Bug fix to avoid alloca(0).
7610         * arscan.c: USG and Sun386i fixes.
7612 Thu Sep 15 19:40:26 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
7614         * make.texinfo: Fixed some typos and spelling errors.
7616 Wed Sep  7 14:20:39 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
7618         * make.c (decode_switches): Fixed bug wherein a bad option would
7619         give a useless error message and loop forever.
7621 Tue Sep  6 14:36:02 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7623         * make.texinfo: Documented `shell' function.
7625         * variable.c (expand_function): New function `shell', does
7626         backquote-style command expansion of its arg.
7628         * commands.c (execute_command_line): Second arg OUTBUF, if not nil,
7629         gets filled in with a malloc'd buffer containing the piped stdout of
7630         the command.
7631         (execute_file_commands): Use above (pass nil).
7633 Mon Sep  5 17:03:49 1988  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
7635         * Makefile: Added copyright notice.
7636         Added a comment about defining `NO_MINUS_C_MINUS_O' if necessary.
7638         * Version 3.05.
7640         * rule.c (default_suffix_rules): Don't pass `-o' switches with `-c'
7641         switches if `NO_MINUS_C_MINUS_O' is #define'd.
7643         * make.texinfo: Documented `GNUmakefile'.
7645         * read.c (read_all_makefiles): Made it try default makefile
7646         `GNUmakefile' before others.
7648         * make.texinfo: Added new-style Texinfo header thingies.
7650 Sat Sep  3 18:09:39 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
7652         * Version 3.04.
7654         * make.texinfo (Chained Rules): Added a @cindex about using
7655         .PRECIOUS to preserve intermediate files.
7657         * remake.c (update_file_1): Made it not just return before executing
7658         commands under -p.
7660         * rule.c (default_pattern_rules, default_variables): Made it use
7661         `$(AR)' for `ar r' (to put files in archives).
7663         * vpath.c (build_vpath_lists): Made it recursively expand the
7664         `VPATH' variable (by using variable_expand instead of lookup_variable).
7666         * read.c (conditional_line): Made it not swallow whitespace after
7667         the comma in an `ifeq' using the `(a,b)' syntax.
7669         * rule.c (count_implicit_rule_limits): Made it not crash if a
7670         pattern rule dep begins with `/'.
7672 Sun Aug 28 15:51:12 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
7674         * make.texinfo: Clarified that the arg to the `origin' function is a
7675         variable *name*, not a reference.
7677         * make.texinfo: Clarified that both -Idir and -I dir are allowed.
7679 Sat Aug 27 13:49:28 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7681         * remake.c (remake_file): Made touching phonies work right.
7683 Wed Aug 24 20:40:48 1988  Roland McGrath  (mcgrath at nutmeg.Berkeley.EDU)
7685         * make.texinfo: Removed reference to `RANLIB' variable.
7687         * Version 3.03.
7689         * variables.c (expand_function): Added `origin' function.
7690         * make.texinfo: Documented same.
7692         * read.c (record_files): Made double-colon entries work.
7694 Sat Aug 20 21:09:39 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7696         * make.c (collapse_continuations): Bug fix from RMS.
7698         * rule.c (install_default_pattern_rules): Made it set the
7699         `in_use' flag of the created rules to zero, rather than letting
7700         it be random garbage.
7702         * rule.c (pattern_search): Fixed putting `also make' targets into
7703         file strucutres.
7705         * read.c (record_files): Fixed bug which made double-colon entries
7706         make it read off into space.
7708         * make.c (decode_switches): Made it understand `ignored' switches
7709         rather than dumping core.
7711 Sun Aug 14 16:49:00 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7713         * read.c (read_makefile): Made `include' filenames be
7714         variable-expanded.
7716         * read.c (read_makefile): Fixed an error message.
7718         * read.c (read_makefile): Made it accept ^L's as whitespace.
7719         * make.c (next_token, end_of_token): Ditto.
7721         * vpath.c (vpath_search): Fixed it so that the general VPATH (from
7722         the variable) is always checked, even if a selective VPATH (from a
7723         directive) matched the filename.
7725 Sat Aug 13 14:20:46 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7727         * make.c (decode_switches, main): Made the command switches be
7728         processed from a table of switches, variables, and types.  No
7729         functions are passed argc and argv any more.  They are passed arrays
7730         of strings they need to process.
7731         * read.c (read_all_makefiles): Made it take an array rather than
7732         argc and argv.
7733         (construct_include_path): Ditto.
7735         * make.c (collapse_continuations): Made it work right (I hope).
7737         * make.texinfo: Minor editorial changes.
7739         * read.c (read_makefile): Minor speed improvement by freeing and
7740         then mallocing something rather than reallocing it to avoid the
7741         unnecessary bcopy.
7743 Thu Aug 11 00:10:43 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7745         * make.texinfo: Fixed some unquoted @'s.
7747         * make.texinfo: Documented multiple-target pattern rules.
7748         Miscellaneous minor editorial changes and corrections.
7750         * make.texinfo (Implicit: Catalogue of Rules): Removed the list of
7751         variables.  That's what the next section is for.
7752         (Implicit: Implicit Variables): Made it agree with reality.
7754 Wed Aug 10 00:55:39 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7756         * variable.c (print_variable_data_base): Fixed bug which made -p
7757         dump core.  (This was a really idiotic bug.)
7759         * rule.c (pattern_search): Fixed a bug which made it make the
7760         `also_make' member of the file in question nil if the first of
7761         the successful rule's targets was the matching one.
7762         Made it use only as much storage as necessary in the `also_make'
7763         member.
7764         (create_pattern): Made it use only as much storage as necessary in
7765         the `lens' and `suffixes' members of the created rule.
7767         * remake.c (library_file_mtime): Made it `static'.
7769         * file.c: Added a declaration for `errno', which is declared in some
7770         <errno.h>'s, but not all.
7772         * file.h (struct file): Added `also_make' member for multiple-target
7773         implicit rules.
7774         * rule.c (pattern_search): Made it put the names of files updated by
7775         the given file's commands in its `also_make' member.
7776         * remake.c (update_file_1): Made it mark the files in a file's
7777         `also_make' member as updated when the file is updated.
7779         * variable.c (try_variable_definition): Fixed a bug which made it
7780         define a variable with the name of the whole definition when there
7781         was no space before the = or :=.
7783         * make.texinfo (Features): Made the changes which were made in RCS
7784         revision 2.7 but somehow lost since then.  Added -W.
7786 Tue Aug  9 10:04:50 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7788         * variable.h: Added `o_default' to `enum variable_origin'.
7789         * variable.c (print_variable_data_base): Made it print the origins of
7790         the variables.
7791         * rule.c (install_default_pattern_rules): Made it define the default
7792         variables with origin `o_default'.
7794         * make.texinfo: Documented -W.
7796         * make.c (decode_switches, main): Added the -W flag to give files a
7797         time-stamp of now, for a `what if' effect when used with -n.
7799         * commands.c (print_commands): Made it say `(built-in)' for commands
7800         that are built into the default ruleset.
7802         * read.c (record_file): Made .SUFFIXES get its deps frontwards (again).
7803         * rule.c (set_default_suffixes, convert_to_pattern): Made it read
7804         .SUFFIXES's deps frontwards, so the converted rules will not be in
7805         reverse order.
7807         * rule.c (new_pattern_rule): Fixed a bug wherein it would keep
7808         searching after it had removed a matching rule and ended up diddling
7809         with freed storage.
7811         * rule.c (freerule): Made it take the given rule off the chain.
7812         (new_pattern_rule, count_implicit_rule_limits): Use freerule to
7813         remove rules from the chain.
7815         * vpath.c (construct_vpath_list): Made it return after cleaning out
7816         all previous searchpaths when given a nil DIRPATH arg, so it won't
7817         go into the construction code and dump core dereferencing a nil
7818         pointer.
7820         * variable.c (patsubst_expand): Fixed a bug which made it not match
7821         correctly and sometimes dump core.
7823 Mon Aug  8 16:35:48 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7825         * rule.c (default_suffix_rules): Made the .texinfo.dvi rule remove
7826         the files used in the comparison to determine whether or not a
7827         second TeX run is necessary.
7829         * make.texinfo: Fixed some overfull TeX hboxes.
7831         * make.texinfo (Implicit: Catalogue of Rules): Fixed a Texinfo error.
7833         * rule.c (create_pattern_rule): Fixed bug wherein index was not
7834         being passed its second arg.
7836         * read.c (getline): Merged back into readline.
7838         * rule.c (default_suffixes, default_suffix_rules,
7839         default_variables): Added .texinfo.info rule.
7840         * make.texinfo (Implicit: Catalogue of Rules): Documented
7841         .texinfo.dvi and .texinfo.info rules.
7843         * make.texinfo (Top): Changed `last updated' date to be correct (for
7844         the last time it was updated, not today).  Changed `for version
7845         3.00' since it's not going to be called that.
7847 Sat Aug  6 19:51:10 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7849         * commands.c (print_commands): Added this function to print the
7850         contents of a `struct commands' for -p.
7851         * rule.c (print_rule_data_base): Use above.
7852         * file.c (print_file_data_base): Ditto.
7854         * rule.c (count_implicit_rule_limits, new_pattern_rule,
7855         install_pattern_rule, print_rule_data_base): Made it understand the
7856         changed `struct rule' and act accordingly.
7857         (freerule): Added this function to free all the storage used by a rule.
7859         * rule.c (pattern_search): Made it grok multiple targets of pattern
7860         rules.  The matching is done properly, but at present, only the
7861         matching pattern's target is used to give deps and commands.
7863 Fri Aug  5 18:00:29 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7865         * rule.c (struct rule): Changed name, namelen, and patsuffix members
7866         to targets, lens, and suffixes, which are arrays, for multiple targets.
7867         (create_pattern_rule): Now takes first arg TARGETS, a nil-terminated
7868         array of targets, rather than a single target and patsuffix pointer.
7870         * read.c (record_files): If it finds an implicit pattern rule, it
7871         collects all the targets into an array and passes the whole thing to
7872         create_pattern_rule.  If there are non-pattern targets, it is a
7873         fatal error.
7875 Tue Aug  2 15:06:38 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7877         * make.c (readline): Split backslash-newline checking from reading
7878         and buffer-expanding.
7879         (getline): Created to do the reading and buffer-expanding formerly
7880         done in readline.
7882         * rule.c (pattern_search): Made it reject nonterminal match-anything
7883         rules when a specific rule has matched, rather than rejecting
7884         terminal match-anything rules in this case.
7886         * rule.c (convert_to_pattern): Fixed a bug caused when the change to
7887         make it only recognize two-suffix rules whose target suffixes
7888         precede their dependency suffixes which made it work in the opposite
7889         direction (even worse than it started out).
7891         * rule.c (pattern_search): Made it reject nonterminal match-anything
7892         rules as intermediate targets when searching for both real and
7893         intermediate dependencies, rather than only when searching for
7894         intermediate ones.
7896 Sun Jul 31 00:33:56 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7898         * rule.c (convert_to_pattern): Made it only recognize two-suffix
7899         rules whose target suffix comes before the dependency suffix in the
7900         .SUFFIXES list.
7902         * variable.c (define_automatic_variables): Made all automatic
7903         variables be defined with origin `o_automatic'.
7905         * variable.h: Added `o_automatic' to `enum variable_origin'
7907         * file.c (remove_intermediates): Made it not print an error message
7908         if the error was that the file does not exist.
7910         * rule.c: Removed `recursive' member from `struct rule'.
7912         * remake.c (library_file_mtime): Made it not use the directory hash
7913         functions, as reading in and hashing /usr/lib and /lib is slow and
7914         most likely unnecessary.
7916         * remake.c (remake_file): Changed message from ``No specification
7917         for making'' to ``No way to make'' so it will be short enough that
7918         most filenames will fit on a line.
7919         Made it look at the `recursive' member of the `struct commands',
7920         rather than of the `struct file' (which no longer has one).
7922         * commands.c (execute_file_commands): Made it look at the
7923         `recursive' member of the `struct commands', rather than of the
7924         `struct file' (which no longer has one).
7926         * file.h: Removed `recursive' member from `struct file'.
7928         * commands.h: Added `recursive' member to `struct commands'.
7930         * dep.h: Removed unused `quotedparen' member from `struct nameseq'
7931         and `struct dep'.
7933         * read.c (dequote): Removed this function.
7934         (multi_glob): Removed reference to `quotedparen' member of
7935         a `struct nameseq' and calls to dequote.
7937         * read.c (record_files): Made it set the stem for $* for all static
7938         pattern rules, not just those with commands given at that time.
7939         Removed check for recursive commands.
7940         Made it check for pairs of .SUFFIXES dependencies to reject as
7941         default goals as well as single ones (that don't start with dots).
7942         (read_makefile): Added checks for recursive commands to set
7943         the `recursive' flag in the `struct commands'.
7945 Sat Jul 30 15:47:23 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7947         * make.c (find_next_token): Made the LENGTHPTR arg optionally nil.
7949         * make.c: Removed `files_made' variable which is defined static in
7950         remake.c and used only there.
7951         (main): Cleaned up somewhat.
7952         (decode_switches): Cleaned up a bit.  Made an unknown option be a
7953         non-fatal error.
7954         (decode_env_switches): Made LEN arg unsigned.  Cleaned up.
7955         (print_version): Made it say ``see the source'' rather than ``see
7956         the source file'', since there is more than one.
7958         * file.h: Made `num_intermediates' declared unsigned.
7960         * file.c: Made `num_intermediates' variable unsigned.
7961         (remove_intermediates): Removed unused FORMAT arg.
7962         (enter_file): Made it handle double-colon files properly, adding the
7963         new entry as the old entry's prev pointer.
7965         * dir.c: Re-indented the `struct dir' definition to be right.
7966         (dir_load): Cleaned up slighty.
7967         (file_exists_p): Removed comment saying we could use `access', since
7968         that is a bad idea (except for setuid programs).  Cleaned up slightly.
7970         * commands.c: Changed some comments slightly.
7971         (execute_file_commands): Cleaned up a bit.  Changed some comments,
7972         added others.  Moved freeing of storage for $^ and $? to the same
7973         place as for the other automatic variables.
7974         (execute_command_line): Made `#' trigger a shell.
7975         Added some comments.  Cleaned up a bit.  Put all the special chars
7976         that trigger shells into an array easily changeable at the top.
7978         * ar.c: Added comments explaining each function.
7979         (ar_scan_1): Merged into ar_member_date.
7980         (ar_member_date): Changed call to ar_scan_1 to the body of that
7981         function.
7982         (ar_member_date_1): Simplified to a ?: expression rather than an
7983         if-else statement.
7984         (ar_member_touch): Changed error handling around a bit.
7985         None of these errors are fatal now.
7987         * variable.c (subst_expand): Added a new arg BY_WORD, to do substs
7988         only on full words.
7989         (patsubst_expand): Fixed bug which made calls whose patterns
7990         contained no `%' to not work correctly, by using above.
7991         (variable_expand): Pass extra arg to `subst_expand'.
7993         * variable.c (expand_function): Fixed bug which made `foreach' calls
7994         with one-word lists run off into never-never land.
7996 Fri Jul 29 20:12:36 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
7998         * variable.c (expand_function): Made a very minor speed improvement
7999         by avoiding an unnecessary strlen call.
8001 Wed Jul 27 16:01:47 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
8003         * rule.c (default_suffixes): Rearranged the list somewhat; added
8004         `.el' and `.elc' to speed things up (especially when building
8005         Emacs), for the same reason `.h' is there.
8007         * read.c (record_files): Changed `lineno' from `long' to
8008         `unsigned int'.
8010 Sun Jul 24 02:15:30 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
8012         * variable.c (expand_function): Eliminated use of `wstok'
8013         because it is non-reentrant and unreliable.
8014         Fixed a minor bug which would cause something not to be freed.
8015         * make.c (wstok): Removed `wstok' because it is no longer used.
8017         * variable.c (expand_function): Made `foreach' function put
8018         spaces between output texts like it's supposed to.
8019         
8020 Sat Jul 23 17:32:55 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
8022         * rule.c (default_suffixes, default_suffix_rules): Added rule
8023         to make %.dvi from %.texinfo.
8025         * dir.c (print_dir_data_base): Made it say a bit more.
8027 Fri Jul 22 23:13:16 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
8029         * make.c (print_data_base): Split this function up into one
8030         for each thing.
8031         * variable.c (print_variable_data_base): One of the above.
8032         * rule.c (print_rule_data_base): Ditto.
8033         * file.c (print_file_data_base): Ditto.
8034         * dir.c (print_dir_data_base): Ditto.
8036         * rule.c (install_pattern_rule): Fixed a bug which caused the
8037         terminal and recursive flags to always be zero for rules
8038         entered by this function.
8040         * make.texinfo (Rules: Double-colon): Added a paragraph
8041         explaining the purpose of double-colon rules.
8043         * make.texinfo (Implicit: Catalogue of Rules): Updated to
8044         reflect new C++, TeX, Web, and Texinfo rules.  Other slight
8045         editorial changes.
8047         * commands.c (execute_file_commands): Fixed a bug wherein
8048         random memory could get written for files with no deps.
8049         
8050 Wed Jul 20 19:30:31 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
8052         * read.c (readline): Fix bug wherein it would not recognize a
8053         backslash-newline if the buffer filled up and was enlarged
8054         right before reading the newline.
8055         
8056 Tue Jul 19 19:55:02 1988  Roland McGrath  (mcgrath at chilli.Berkeley.EDU)
8058         * read.c: Added default suffix rules for .cc (using $(C++),
8059         which defaults to `g++', and $(C++FLAGS)), .tex, .dvi, .web
8060         and .cweb (using $(TEX), $(WEAVE), $(TANGLE), $(CWEAVE) and
8061         $(CTANGLE)).
8062         
8063 Sat Jul 16 21:24:28 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
8065         * Made error formats use %u rather than %ld for line numbers,
8066         which are now unsigned int's rather than long's.
8068         * read.c (conditional_line): Fixed some bugs caused by use of
8069         unsigned int rather than int in one place.
8071         * read.c (conditional_line): Put the info about active
8072         conditionals in a struct.
8073         (read_makefile): Make a new struct of info about conditionals
8074         for included makefiles and restore the old one after the
8075         included makefile has been read.
8077         * read.c (read_makefile): Don't try to read a makefile with
8078         name "" after giving an error message because an `include'
8079         directive gave no filename.
8081         * read.c (read_makefile): Give an error message for
8082         non-whitespace text after the filename in an `include' directive.
8084         * make.c (error): Take five args, like `fatal'.  It managed to
8085         lose with only two.  Is there a better way to do this without vfprintf?
8087         * read.c (read_makefile): Commands consisting of only
8088         whitespace are not the same as no commands.  I thought I'd
8089         fixed this bug months ago; it seems to have come back.
8091         * make.c (collapse_continuations): All whitespace around a
8092         backslash-newline combination is turned into a single space.
8094         * Added COPYING file and copyright notices to all files.
8096         * make.texinfo (Running: Goals): Fix a typo.
8098         * read.c (do_define): Take an arg for the origin of the
8099         variable being defined.
8100         (read_makefile): Grok `override define'.
8102         * make.texinfo (Variables: Override Directive, Defining):
8103         Document the `override define' combination directive.
8105         * ar.c (ar_member_date): Make a 0 return from `ar_scan' return
8106         (time_t) -1 (nonexistent file), rather than (time_t) 0, which,
8107         when put in the `struct file', makes `file_mtime' try to get
8108         the mtime over and over again.
8110         * variable.c (pattern_matches): Fix a bug that made patterns
8111         not beginning with `%' never match.
8112         
8113 Fri Jul 15 21:01:44 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
8115         * Took Make out of RCS.
8117         * Split the monolithic `make.c' into several smaller files.