1 Thu May 9 13:54:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3 * main.c (main): Use unsigned for fread return.
5 * read.c (parse_file_seq): Use `int' for char arg to avoid widening
7 * dep.h: Fix prototype.
9 * function.c (expand_function) [_AMIGA]: Fix some typos.
10 (patsubst_expand): Make len vars unsigned.
12 * GNUmakefile (globfiles): Add AmigaDOS support files.
13 (distfiles): Add $(amigafiles).
14 (amigafiles): New variable.
16 Thu Nov 7 10:18:16 1995 Aaron Digulla <digulla@fh-konstanz.de>
18 * Added Amiga support in commands.c, dir.c, function.c,
19 job.c, main.c, make.h, read.c, remake.c
20 * commands.c: Amiga has neither SIGHUP nor SIGQUIT
21 * dir.c: Amiga has filenames with Upper- and Lowercase,
22 but "FileName" is the same as "filename". Added strieq()
23 which is use to compare filenames. This is like streq()
24 on all other systems. Also there is no such thing as
26 * function.c: On Amiga, the environment is not passed as envp,
27 there are no pipes and Amiga can't fork. Use my own function
28 to create a new child.
29 * job.c: default_shell is "" (The system automatically chooses
30 a shell for me). Have to use the same workaround as MSDOS for
31 running batch commands. Added HAVE_SYS_PARAM_H. NOFILE isn't
32 known on Amiga. Cloned code to run children from MSDOS. Own
33 version of sh_chars[] and sh_cmds[]. No dup2() or dup() on Amiga.
34 * main.c: Force stack to 20000 bytes. Read environment from ENV:
35 device. On Amiga, exec_command() does return, so I exit()
37 * make.h: Added strieq() to compare filenames.
38 * read.c: Amiga needs special extension to have passwd. Only
39 one include-dir. "Makefile" and "makefile" are the same.
40 Added "SMakefile". Added special code to handle device names (xxx:)
42 * remake.c: Only one lib-dir. Amiga link-libs are named "%s.lib"
44 * main.c, rule.c, variable.c: Avoid floats at all costs.
45 * vpath.c: Get rid of as many alloca()s as possible.
47 Thu May 9 13:20:43 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
49 * read.c (read_makefile): Grok `sinclude' as alias for `-include'.
51 Wed Mar 20 09:52:27 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
53 * GNUmakefile (vmsfiles): New variable.
54 (distfiles): Include $(vmsfiles).
56 Tue Mar 19 20:21:34 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
58 Merged VMS port from Klaus Kaempf <kkaempf@didymus.rmi.de>.
59 * make.h (PARAMS): New macro.
60 * config.h-vms: New file.
61 * makefile.com: New file.
62 * makefile.vms: New file.
63 * readme.vms: New file.
65 * vmsfunctions.c: New file.
67 * file.h: Renamed to filedef.h to avoid conflict with VMS system hdr.
68 * ar.c: Added prototypes and changes for VMS.
69 * commands.c: Likewise.
70 * commands.h: Likewise.
71 * default.c: Likewise.
76 * function.c: Likewise.
77 * implicit.c: Likewise.
85 * remote-stub.c: Likewise.
88 * variable.c: Likewise.
89 * variable.h: Likewise.
91 * compatMakefile (srcs): Rename file.h to filedef.h.
93 Sat Aug 19 23:11:00 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
95 * remake.c (check_dep): For a secondary file, try implicit and
96 default rules if appropriate.
98 Wed Aug 2 04:29:42 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
100 * remake.c (check_dep): If an intermediate file exists,
101 do consider its actual date.
103 Sun Jul 30 00:49:53 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
105 * file.h (struct file): New field `secondary'.
106 * file.c (snap_deps): Check for .INTERMEDIATE and .SECONDARY.
107 (remove_intermediates): Don't delete .SECONDARY files.
109 Sat Mar 2 16:26:52 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
111 * compatMakefile (srcs): Add getopt.h; prepend $(srcdir)/ to getopt*.
113 Fri Mar 1 12:04:47 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
117 * remake.c (f_mtime): Move future modtime check before FILE is
118 clobbered by :: loop.
120 * dir.c: Use canonical code from autoconf manual for dirent include.
121 [_D_NAMLEN]: Redefine NAMLEN using this.
122 (dir_contents_file_exists_p): Use NAMLEN macro.
123 (read_dirstream) [_DIRENT_HAVE_D_NAMLEN]: Only set d_namlen #if this.
125 * compatMakefile (objs): Add missing backslash.
127 Wed Feb 28 03:56:20 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
129 * default.c (default_terminal_rules): Remove + prefix from RCS cmds.
130 (default_variables): Put + prefix in $(CHECKOUT,v) value instead.
132 * remake.c (f_mtime): Check for future timestamps; give error and mark
133 file as "failed to update".
135 Fri Jan 12 18:09:36 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
137 * job.c: Don't declare unblock_sigs; job.h already does.
139 Sat Jan 6 16:24:44 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
141 * acconfig.h (HAVE_SYSCONF_OPEN_MAX): #undef removed.
143 * job.c (NGROUPS_MAX): Don't try to define this macro.
145 Fri Dec 22 18:44:44 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
147 * compatMakefile (GETOPT, GETOPT_SRC, GLOB): Variables removed.
148 (objs, srcs): Include their values here instead of references.
150 Thu Dec 14 06:21:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
154 * job.c (reap_children): Call unblock_sigs after start_job_command.
156 Thu Dec 14 07:22:03 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
158 * dir.c (dir_setup_glob): Don't use lstat; glob never calls it anyway.
159 Avoid & before function names to silence bogus sunos4 compiler.
161 * configure.in: Remove check for `sysconf (_SC_OPEN_MAX)'.
163 Tue Dec 12 00:48:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
167 * dir.c (read_dirstream): Fix braino: fill in the buffer when not
170 Mon Dec 11 22:26:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
172 * misc.c (collapse_continuations): Fix skipping of trailing \s so
173 it can never dereference before the beginning of the array.
175 * read.c (find_semicolon): Function removed.
176 (read_makefile): Don't use find_semicolon or remove_comments for
177 rule lines. Use find_char_unquote directly and handle quoted comments
180 * default.c: Remove all [M_XENIX] code.
182 * dir.c [HAVE_D_NAMLEN]: Define this for __GNU_LIBRARY__ > 1.
183 (D_NAMLEN): Macro removed.
184 (FAKE_DIR_ENTRY): New macro.
185 (dir_contents_file_exists_p): Test HAVE_D_NAMLEN instead of using
187 (read_dirstream): Return a struct dirent * for new glob interface.
188 (init_dir): Function removed.
189 (dir_setup_glob): New function.
190 * main.c (main): Don't call init_dir.
191 * read.c (multi_glob): Call dir_setup_glob on our glob_t and use
192 GLOB_ALTDIRFUNC flag.
194 * misc.c (safe_stat): Function removed.
195 * read.c, commands.c, remake.c, vpath.c: Use plain stat instead of
198 Sat Nov 25 20:35:18 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
200 * job.c [HAVE_UNION_WAIT]: Include sys/wait.h.
202 * main.c (log_working_directory): Made global.
203 Print entering msg only once.
204 * make.h (log_working_directory): Declare it.
205 * misc.c (message): Take new arg PREFIX. Print "make: " only if
206 nonzero. Call log_working_directory.
207 * remake.c: Pass new arg in `message' calls.
208 * job.c (start_job_command): Pass new arg to `message'; fix
209 inverted test in that call.
211 Tue Nov 21 19:01:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
213 * job.c (start_job_command): Use `message' to print the command,
214 and call it with null if the command is silent.
215 * remake.c (touch_file): Use message instead of printf.
217 Tue Oct 10 14:59:30 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
219 * main.c (enter_command_line_file): Barf if NAME is "".
221 Sat Sep 9 06:33:20 1995 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
223 * commands.c (delete_target): Ignore unlink failure if it is ENOENT.
225 Thu Aug 17 15:08:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
227 * configure.in: Don't check for getdtablesize.
228 * job.c (getdtablesize): Remove decls and macros.
230 Thu Aug 10 19:10:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
232 * main.c (define_makeflags): Omit command line variable
233 definitions from MFLAGS value.
235 * arscan.c (ar_scan) [AIAMAG]: Check for zero MEMBER_OFFSET,
236 indicating a valid, but empty, archive.
238 Mon Aug 7 15:40:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
240 * dir.c (file_impossible_p): Correctly reset FILENAME to name
241 within directory before hash search.
243 * job.c (child_error): Do nothing if IGNORED under -s.
245 * job.c (exec_command): Correctly use ARGV[0] for script name when
246 running shell directly.
248 Tue Aug 1 14:39:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
250 * job.c (child_execute_job): Close STDIN_FD and STDOUT_FD after
251 dup'ing from them. Don't try to close all excess descriptors;
252 getdtablesize might return a huge value. Any open descriptors in
253 the parent should have FD_CLOEXEC set.
254 (start_job_command): Set FD_CLOEXEC flag on BAD_STDIN descriptor.
256 Tue Jun 20 03:47:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
258 * read.c (read_all_makefiles): Properly append default makefiles
259 to the end of the `read_makefiles' chain.
261 Fri May 19 16:36:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
263 * Version 3.74 released.
265 Wed May 10 17:43:34 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
269 Tue May 9 17:15:23 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
271 * compatMakefile ($(infodir)/make.info): Make sure $$dir is set in
274 Wed May 3 15:56:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
276 * file.c (print_file): Grok update_status of 1 for -q.
278 Thu Apr 27 12:39:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
282 Wed Apr 26 17:15:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
284 * file.c (remove_intermediates): Fix inverted test to bail under
285 -n for signal case. Bail under -q or -t.
286 Skip files with update_status==-1.
288 * job.c (job_next_command): Skip empty lines.
289 (new_job): Don't test the return of job_next_command.
290 Just let start_waiting_job handle the case of empty commands.
292 Wed Apr 19 03:25:54 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
294 * function.c [__MSDOS__]: Include <fcntl.h>. From DJ Delorie.
298 Sat Apr 8 14:53:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
300 * remake.c (notice_finished_file): Set FILE->update_status to zero
303 Wed Apr 5 00:20:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
305 * Version 3.73 released.
307 Tue Mar 28 13:25:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
309 * main.c (main): Fixed braino in assert.
313 Mon Mar 27 05:29:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
315 * main.c: Avoid string in assert expression. Some systems are broken.
317 Fri Mar 24 00:32:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
319 * main.c (main): Handle 1 and 2 returns from update_goal_chain
320 makefile run properly.
324 * main.c (handle_non_switch_argument): New function, broken out of
326 (decode_switches): Set optind to 0 to reinitialize getopt, not to 1.
327 When getopt_long returns EOF, break the loop and handle remaining args
328 with a simple second loop.
330 * remake.c (remake_file): Set update_status to 2 instead of 1 for
331 no rule to make. Mention parent (dependent) in error message.
332 (update_file_1): Handle FILE->update_status == 2 in -d printout.
333 * job.c (start_job_command, reap_children): Set update_status to 2
334 instead of 1 for failed commands.
336 Tue Mar 21 16:23:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
338 * job.c (search_path): Function removed (was already #if 0'd out).
339 * configure.in: Remove AC_TYPE_GETGROUPS; nothing needs it any more.
341 Fri Mar 17 15:57:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
343 * configure.bat: Write @CPPFLAGS@ translation.
345 Mon Mar 13 00:45:59 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
347 * read.c (parse_file_seq): Rearranged `l(a b)' -> `l(a) l(b)' loop
348 to not skip the elt immediately preceding `l(...'.
350 Fri Mar 10 13:56:49 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
354 * read.c (find_char_unquote): Make second arg a string of stop
355 chars instead of a single stop char. Stop when any char in the
356 string is hit. All callers changed.
357 (find_semicolon): Pass stop chars "#;" to one find_char_unquote call,
358 instead of using two calls. If the match is not a ; but a #,
360 * misc.c: Changed find_char_unquote callers here too.
364 * read.c (read_makefile, parse_file_seq): Fix typo __MS_DOS__ ->
367 * GNUmakefile (globfiles): Add glob/configure.bat.
368 (distfiles): Add configh.dos, configure.bat.
370 Wed Mar 8 13:10:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
372 Fixes for MS-DOS from DJ Delorie.
373 * read.c (read_makefile, parse_file_seq) [__MS_DOS__]: Don't see :
374 as separator in "C:\...".
375 * configh.dos (STDC_HEADERS): Define only if undefined.
376 (HAVE_SYS_PARAM_H): Don't define this.
377 (HAVE_STRERROR): Define this.
378 * job.c (construct_command_argv_internal) [__MSDOS__]: Fix typos.
382 * main.c (decode_switches): Reset optind to 1 instead of 0.
384 Tue Mar 7 17:31:06 1995 Roland McGrath <roland@geech.gnu.ai.mit.edu>
386 * main.c (decode_switches): If non-option arg is "-", ignore it.
388 Mon Mar 6 23:57:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
392 Wed Feb 22 21:26:36 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
396 Tue Feb 21 22:10:43 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
398 * main.c (main): Pass missing arg to tmpnam.
400 * configure.in: Check for strsignal.
401 * job.c (child_error): Use strsignal.
402 * main.c (main): Don't call signame_init #ifdef HAVE_STRSIGNAL.
404 * misc.c (strerror): Fix swapped args in sprintf.
406 Mon Feb 13 11:50:08 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
408 * configure.in (CFLAGS, LDFLAGS): Don't set these variables.
410 Fri Feb 10 18:44:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
412 * main.c (print_version): Add 95 to copyright years.
416 * job.c (start_job_command): Remember to call notice_finished_file
417 under -n when not recursing. To do this, consolidate that code
418 under the empty command case and goto there for the -n case.
420 Tue Feb 7 13:36:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
422 * make.h [! STDC_HEADERS]: Don't declare qsort. Sun headers
425 Mon Feb 6 17:37:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
427 * read.c (read_makefile): For bogus line starting with tab, ignore
428 it if blank after removing comments.
430 * main.c: Cast results of `alloca' to `char *'.
431 * expand.c: Likewise.
433 Sun Feb 5 18:35:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
437 * configure.in: Check for mktemp.
438 * main.c (main) [! HAVE_MKTEMP]: Use tmpnam instead of mktemp.
440 * configure.in (make_cv_sysconf_open_max): New check for `sysconf
442 * acconfig.h: Added #undef HAVE_SYSCONF_OPEN_MAX.
443 * job.c [HAVE_SYSCONF_OPEN_MAX] (getdtablesize): Define as macro
446 Fri Jan 27 04:42:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
448 * remake.c (update_file_1): When !MUST_MAKE, don't set
449 FILE->update_status to zero before calling notice_finished_file.
450 (notice_finished_file): Touch only when FILE->update_status is zero.
451 (remake_file): Set FILE->update_status to zero after not calling
452 execute_file_command and deciding to touch instead.
454 Thu Jan 26 01:29:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
456 * main.c (debug_signal_handler): New function; toggles debug_flag.
457 (main): Handle SIGUSR1 with that.
459 Mon Jan 16 15:46:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
461 * compatMakefile (realclean): Remove Info files.
463 Sun Jan 15 08:23:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
467 * job.c (start_job_command): Save and restore environ around vfork
469 (search_path): Function #if 0'd out.
470 (exec_command): Use execvp instead of search_path.
472 * expand.c (variable_expand): Rewrote computed variable name and
473 substitution reference handling to be simpler. First expand the
474 entire text between the parens if it contains any $s, then examine
475 the result of that for subtitution references and do no further
476 expansion while parsing them.
478 * job.c (construct_command_argv_internal): Handle " quoting too,
479 when no backslash, $ or ` characters appear inside the quotes.
481 * configure.in (union wait check): If WEXITSTATUS and WTERMSIG are
482 defined, just use int.
484 Tue Jan 10 06:27:27 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
486 * default.c (default_variables) [__hpux]: Remove special
487 definition of ARFLAGS. Existence of the `f' flag is not
488 consistent across HPUX versions; and one might be using GNU ar
491 * compatMakefile (clean): Don't remove Info files.
493 * compatMakefile (check): Remove gratuitous target declaration.
495 Sat Jan 7 11:38:23 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
497 * compatMakefile (ETAGS, CTAGS): Don't use -t.
499 * arscan.c (ar_name_equal) [cray]: Subtract 1 like [__hpux].
501 * main.c (decode_switches): For --help, print usage to stdout.
503 Mon Dec 5 12:42:18 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
507 * remake.c (update_file_1): Do set_command_state (FILE,
508 cs_not_started) only if old state was deps_running.
510 Mon Nov 28 14:24:03 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
512 * job.c (start_waiting_job): Use set_command_state.
514 * build.template (CPPFLAGS): New variable.
515 (prefix, exec_prefix): Set from @...@.
516 (compilation loop): Pass $CPPFLAGS to compiler.
518 * GNUmakefile (build.sh.in): Make it executable.
520 * GNUmakefile (globfiles): Add configure.in, configure.
524 * configure.in (AC_OUTPUT): Don't write glob/Makefile.
526 * configure.in (AC_CHECK_SYMBOL): Use AC_DEFINE_UNQUOTED.
528 * configure.in: Don't check for ranlib.
530 Tue Nov 22 22:42:40 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
532 * remake.c (notice_finished_file): Only mark also_make's as
533 updated if really ran cmds.
535 Tue Nov 15 06:32:46 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
537 * configure.in: Put dnls before random whitespace.
539 Sun Nov 13 05:02:25 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
541 * compatMakefile (CPPFLAGS): New variable, set from @CPPFLAGS@.
542 (RANLIB): Variable removed.
543 (prefix, exec_prefix): Set these from @...@.
544 (.c.o): Use $(CPPFLAGS).
545 (glob/libglob.a): Don't pass down variables to sub-make.
546 glob/Makefile should be configured properly by configure.
547 (distclean): Remove config.log and config.cache (autoconf stuff).
549 Mon Nov 7 13:58:06 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
551 * acconfig.h: Add #undef HAVE_UNION_WAIT.
552 * configure.in: Converted to Autoconf v2.
553 * dir.c: Test HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H instead
554 of DIRENT, SYSDIR, NDIR.
555 * build.sh.in (prefix, exec_prefix): Set these from @...@.
556 (CPPFLAGS): New variable, set from @CPPFLAGS@.
557 (compiling loop): Pass $CPPFLAGS before $CFLAGS.
558 * install.sh: File renamed to install-sh.
560 * main.c (define_makeflags): When no flags, set WORDS to zero.
562 Sun Nov 6 18:34:01 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
566 * main.c (define_makeflags): Terminate properly when FLAGSTRING is
569 Fri Nov 4 16:02:51 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
573 Tue Nov 1 01:18:10 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
577 * job.c (start_job_command): When ARGV is nil, only set
578 update_state and call notice_finished_file if job_next_command
581 * job.c (start_job_command): Call notice_finished_file for empty
584 Thu Oct 27 02:02:45 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
586 * file.c (snap_deps): Set COMMANDS_SILENT for .SILENT, not
589 Wed Oct 26 02:14:10 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
593 Tue Oct 25 22:49:24 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
595 * file.c (snap_deps): Set command_flags bits in all :: entries.
597 Mon Oct 24 18:47:50 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
599 * make.h (posix_pedantic): Declare it.
600 * main.c (main): Move checks .IGNORE, .SILENT, .POSIX to
602 * file.c (snap_deps): Check .IGNORE, .SILENT, .POSIX here instead
603 of in main. If .IGNORE has deps, OR COMMANDS_NOERROR into their
604 command_flags and don't set -i. Likewise .SILENT.
605 * job.c (start_job_command): In FLAGS initialization, OR in
606 CHILD->file->command_flags.
607 * file.h (struct file): New member `command_flags'.
609 Sun Oct 16 01:01:51 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
611 * main.c (switches): Bump flag values for --no-print-directory and
612 --warn-undefined-variables, so neither is 1 (which indicates a
615 Sat Oct 15 23:39:48 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
617 * main.c (main): Add missing code in .IGNORE test.
619 Mon Oct 10 04:09:03 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
621 * variable.c (define_automatic_variables): Define +D and +F.
623 Sat Oct 1 04:07:48 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
625 * main.c (main): Define hidden automatic variable with command
626 vars, and MAKEOVERRIDES to a reference to that.
627 (define_makeflags): If posix_pedantic, write a reference to that
630 Thu Sep 29 00:14:26 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
632 * main.c (posix_pedantic): New variable.
633 (main): Set posix_pedantic if .POSIX is a target.
634 Fix .IGNORE and .SILENT checks to require is_target.
636 * commands.c (set_file_variables): Define new automatic variable
637 $+, like $^ but before calling uniquize_deps.
639 * job.c (reap_children): Call delete_child_targets for non-signal
640 error if .DELETE_ON_ERROR is a target.
642 Tue Sep 27 01:57:14 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
646 Mon Sep 26 18:16:55 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
648 * job.c (reap_children): Don't change C->file->command_state when
649 dying. Test it only after calling start_job_command for a new
650 command line. When no more cmds, just set C->file->update_status.
651 (start_job_command): When the last line is empty or under -n, set
652 C->file->update_status.
653 (start_waiting_job): Grok cs_not_started after start_job_command
655 (new_job): Set C->file->update_status when there are no cmds.
656 (job_next_command): When out of lines, don't set
657 CHILD->file->update_status or CHILD->file->command_state.
659 * main.c (quote_as_word): Renamed from shell_quote. Take new arg;
660 if nonzero, also double $s.
661 (main): Define MAKEOVERRIDES from command_variables here.
662 (define_makeflags): Don't use command_variables here; instead write a
663 reference $(MAKEOVERRIDES) in MAKEFLAGS. Make vars recursive.
665 * dir.c [__MSDOS__]: Fixed typo.
667 * vpath.c (selective_vpath_search): Reset EXISTS when stat fails.
669 Sat Sep 10 03:01:35 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
671 * remake.c: Include <assert.h> and use assert instead of printfs
674 * main.c (decode_switches): Loop until optind hits ARGC, not just
675 until getopt_long returns EOF. Initialize C to zero before loop;
676 in loop if C is EOF, set optarg from ARGV[optind++], else call
678 (decode_env_switches): Use variable_expand instead of
679 allocated_variable_expand. Allocate a fresh buffer to copy split
680 words into; scan characters by hand to break words and
682 (shell_quote): New function.
683 (define_makeflags): Allocate doubled space for switch args, and command
684 variable names and values; use shell_quote to quote those things.
686 Fri Sep 9 01:37:47 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
690 * acconfig.h: Add HAVE_SYS_SIGLIST and HAVE__SYS_SIGLIST.
692 * main.c (decode_switches): The non-option return from getopt is
694 (command_variables): New type and variable.
695 (decode_switches, decode_env_switches): After making a variable
696 definition, record the struct variable pointer in the
697 command_variables chain.
698 (define_makeflags): If ALL, write variable definitions for
701 * main.c (other_args): Variable removed.
702 (goals, lastgoal): New static variables (moved from auto in main).
703 (main): Don't process OTHER_ARGS at all.
704 Don't set variable MAKEOVERRIDES at all; define MAKE to just
706 (init_switches): Prepend a - {return in order} instead of a +
708 (decode_switches): Don't set OTHER_ARGS at all.
709 Grok '\0' return from getopt_long as non-option argument; try
710 variable definition and (if !ENV) enter goal targets here.
711 (decode_env_switches): Use allocated_variable_expand to store value.
712 Use find_next_token to simplify word-splitting loop. Don't
713 prepend a dash to uninterpreted value. Instead, if split into
714 only one word, try variable definition and failing that prepend a
715 dash to the word and pass it to decode_switches as a single arg.
717 Wed Sep 7 03:02:46 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
719 * remake.c (notice_finished_file): Only recheck modtimes if
720 FILE->command_state was cs_running on entry (meaning the commands
722 (update_file_1): Whenever we set FILE->update_status, call
723 notice_finished_file instead of just set_command_state.
724 * job.c (start_job_command): Whenever we set
725 CHILD->file->update_status, call notice_finished_file instead of
726 just set_command_state.
728 Tue Sep 6 19:13:54 1994 Roland McGrath <roland@geech.gnu.ai.mit.edu>
730 * default.c: Add missing ".
732 * job.c: Changed all assignments of command_state members to calls
733 to set_command_state.
734 * remake.c: Likewise.
735 * file.c (set_command_state): New function.
736 * file.h: Declare set_command_state.
738 * main.c (init_switches): Put a + first in options.
740 Mon Jul 25 18:07:46 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
742 Merge MSDOS/GO32 port from DJ Delorie <dj@ctron.com>.
743 * vpath.c: Changed all uses of ':' to PATH_SEPARATOR_CHAR.
744 * main.c (directory_before_chdir): New variable, moved out of main
746 (main) [__MSDOS__]: Look for \ or : to delimit last component of
747 PROGRAM. Don't frob ARGV[0] before setting MAKE_COMMAND variable.
748 (die): Change back to `directory_before_chdir' before dying.
749 * make.h (PATH_SEPARATOR_CHAR): New macro; differing defns for
751 * job.c [__MSDOS__]: Include <process.h>.
752 [__MSDOS__] (dos_pid, dos_status, dos_bname, dos_bename,
753 dos_batch_file): New variables.
754 (reap_children) [__MSDOS__]: Don't call wait; just examine those vars.
755 (unblock_sigs) [__MSDOS__]: Do nothing.
756 (start_job_command) [__MSDOS__]: Use spawnvpe instead of vfork & exec.
757 (load_too_high) [__MSDOS__]: Always return true.
758 (search_path) [__MSDOS__]: Check for : or / in FILE to punt.
759 Use PATH_SEPARATOR_CHAR instead of ':'.
760 (construct_command_argv_internal) [__MSDOS__]: Wholly different
761 values for sh_chars and sh_cmds. Wholly new code to handle shell
763 * function.c (expand_function: `shell') [__MSDOS__]: Wholly new
765 * dir.c [__MSDOS__] (dosify): New function.
766 (dir_contents_file_exists_p) [__MSDOS__]: Call it on FILENAME and
767 process the result instead of FILENAME itself.
768 (file_impossible_p) [__MSDOS__]: Likewise.
769 * default.c [__MSDOS__]: Define GCC_IS_NATIVE.
770 (default_suffix_rules) [__MSDOS__]: Use `y_tab.c' instead of `y.tab.c'.
771 (default_variables) [GCC_IS_NATIVE]: Set CC and CXX to `gcc', YACC to
772 `bison -y', and LEX to `flex'.
773 * configure.bat, configh.dos: New files.
774 * commands.c (fatal_error_signal) [__MSDOS__]: Just remove
775 intermediates and exit.
777 * commands.c (set_file_variables): Add parens in length
778 computation in .SUFFIXES dep loop to quiet compiler warning. From
781 * read.c (read_makefile): Free FILENAME if we allocated it. From
784 Mon Jul 4 17:47:08 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
786 * misc.c (safe_stat): New function, EINTR-safe wrapper around stat.
787 * vpath.c (selective_vpath_search): Use safe_stat in place of stat.
788 * read.c (construct_include_path): Use safe_stat in place of stat.
789 * job.c (search_path): Use safe_stat in place of stat.
790 * dir.c (find_directory): Use safe_stat in place of stat.
791 * commands.c (delete_target): Use safe_stat in place of stat.
792 * arscan.c (ar_member_touch) [EINTR]: Do EINTR looping around fstat.
793 * remake.c (name_mtime): Use safe_stat in place of stat.
794 (touch_file) [EINTR]: Do EINTR looping around fstat.
796 Fri Jun 24 05:40:24 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
798 * read.c (read_makefile): Check for a shell command first, and
799 then strip leading tabs before further checking if it's not a
802 * make.h [__arm]: Undefine POSIX.
803 [!__GNU_LIBRARY__ && !POSIX && !_POSIX_VERSION]: Don't declare system
804 functions that return int.
806 * job.c (construct_command_argv_internal): After swallowing a
807 backslash-newline combination, if INSTRING is set goto string_char
808 (new label) for normal INSTRING handling code.
810 Sat Jun 4 01:11:20 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
812 * configure.in: Don't check for sys_siglist and _sys_siglist with
813 AC_HAVE_FUNCS. Instead use two AC_COMPILE_CHECKs.
815 Mon May 23 18:20:38 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
817 * Version 3.71.1 released.
819 * make.h [!__GNU_LIBRARY__ && !POSIX]: Also test #ifndef
820 _POSIX_VERSION for these declarations.
822 * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Remove bogus #ifndefs
823 around #undefs of HAVE_SETREUID and HAVE_SETREGID.
825 Sat May 21 16:26:38 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
827 * Version 3.71 released.
829 * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Don't test [HAVE_SETUID]
830 and [HAVE_SETGID]. Every system has those, and configure doesn't
833 * make.h [_POSIX_VERSION]: Don't #define POSIX #ifdef ultrix.
835 * compatMakefile (loadavg): Depend on and use loadavg.c instead of
837 (loadavg.c): Link or copy it from getloadavg.c.
838 (distclean): Remove loadavg.c.
840 Mon May 16 22:59:04 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
844 * misc.c [GETLOADAVG_PRIVILEGED] [! POSIX]: Undefine HAVE_SETEUID
847 * default.c (default_terminal_rules): In SCCS rules, put
848 $(SCCS_OUTPUT_OPTION) before $<. On some systems -G is grokked
849 only before the file name.
850 * configure.in (SCCS_GET_MINUS_G check): Put -G flag before file name.
852 Tue May 10 16:27:38 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
854 * job.c (construct_command_argv_internal): Swallow
855 backslash-newline combinations inside '' strings too.
857 Thu May 5 04:15:10 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
859 * read.c (do_define): Call collapse_continuations on each line
862 Mon Apr 25 19:32:02 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
864 * job.c (construct_command_argv_internal): Notice newline inside
865 '' string when RESTP is non-null.
867 Fri Apr 22 17:33:30 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
871 * remake.c (update_goal_chain): Reset FILE to G->file after the
872 double-colon loop so it is never null for following code.
874 * read.c (read_makefile): Fix `override define' parsing to skip
875 whitespace after `define' properly.
877 * compatMakefile (srcdir): Define as @srcdir@; don't reference
879 (glob/Makefile): New target.
881 Thu Apr 21 16:16:55 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
885 * misc.c (remove_comments): Use find_char_unquote.
886 * make.h (find_char_unquote): Declare it.
887 * read.c (find_char_unquote): New function, generalized from
889 (find_percent, find_semicolon, parse_file_seq): Use that.
891 Wed Apr 20 18:42:39 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
893 * implicit.c (pattern_search): Always allocate new storage for
894 FILE->stem. It is not safe to store STEM's address because it
895 might be auto storage.
897 * configure.in: Check for seteuid and setegid.
898 * misc.c [HAVE_SETEUID]: Declare seteuid.
899 [HAVE_SETEGID]: Declare setegid.
900 (make_access, user_access) [HAVE_SETEUID]: Use seteuid.
901 [HAVE_SETEGID]: Use setegid.
903 * remake.c (update_goal_chain): Set STATUS to FILE->update_status,
904 to preserve whether it's 2 for error or 1 for -q trigger. When
905 STATUS gets nonzero and -q is set, always stop immediately.
906 * main.c (main, decode_switches): Die with 2 for errors.
907 (main): Accept 2 return from update_goal_chain and die with that.
908 * misc.c (fatal, makefile_fatal): Die with 2; 1 is reserved for -q
910 * job.c (reap_children): Die with 2 for error.
911 (start_job_command): Set update_status to 2 for error. Set it to
912 1 when we would run a command and question_flag is set.
914 * read.c (read_makefile): Don't mark makefiles as precious. Just
915 like other targets, they can be left inconsistent and in need of
916 remaking by aborted commands.
918 * read.c (read_makefile): Write no error msg for -include file.
920 Tue Apr 5 05:22:19 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
922 * commands.c (fatal_error_signal): Don't unblock signals.
924 * file.h (struct file): Change member `double_colon' from flag to
926 * read.c (record_files): Set double_colon pointer instead of flag.
927 * main.c (main): When disqualifying makefiles for updating, use
928 double_colon pointer to find all entries for a file.
929 * file.c (enter_file): If there is already a double-colon entry
930 for the file, set NEW->double_colon to that pointer.
931 (file_hash_enter): Use FILE->double_colon to find all entries to
933 * remake.c (update_goal_chain): Do inner loop on double-colon entries.
934 (update_file): Use FILE->double_colon pointer to find all entries.
936 (notice_finished_file): Propagate mtime change to all entries.
938 * variable.c (try_variable_definition): Return after abort.
940 Fri Apr 1 18:44:15 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
942 * read.c (read_makefile): Remove unused variable.
943 (parse_file_seq): When removing an elt that is just `)', properly
944 fix up the previous elt's next pointer.
946 Mon Mar 28 18:31:49 1994 Roland McGrath (roland@mole.gnu.ai.mit.edu)
948 * configure.in: Do AC_SET_MAKE.
949 * GNUmakefile (Makefile.in): Edit MAKE assignment into @SET_MAKE@.
951 Fri Mar 4 00:02:32 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
953 * function.c (subst_expand): If BY_WORD or SUFFIX_ONLY is set and
954 the search string is the empty string, find a match at the end of
955 each word (using end_of_token in place of sindex).
957 * misc.c (end_of_token): Don't treat backslashes specially; you
958 can no longer escape blanks with backslashes in export, unexport,
959 and vpath. This was never documented anyway.
961 Thu Mar 3 23:53:46 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
963 * read.c (read_makefile): Variable name for `define' is not just
964 first token; use whole rest of line and strip trailing blanks.
966 Wed Feb 16 16:03:45 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
970 * read.c (read_makefile): Add -d msg stating args.
972 * read.c (read_makefile): Use isspace to skip over leading
973 whitespace, and explicitly avoid skipping over tabs. Don't want
974 to skip just spaces though; formfeeds et al should be skipped.
976 * default.c (default_variables) [__hpux]: Add f in ARFLAGS.
978 * arscan.c (ar_name_equal) [__hpux]: Subtract 2 instead of 1 from
979 sizeof ar_name for max length to compare.
981 * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Undefine HAVE_SETREUID
982 #ifdef HAVE_SETUID; likewise HAVE_SETREGID and HAVE_SETGID.
984 * main.c (main): Call user_access after setting `program', in case
985 it needs to use it in an error message.
987 * read.c (read_makefile): Ignore an empty line starting with a tab.
989 Thu Feb 10 21:45:31 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
991 * configure.in (AC_SYS_SIGLIST_DECLARED): Use this instead of
992 AC_COMPILE_CHECK that is now its contents.
994 Fri Feb 4 16:28:54 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
996 * make.h: #undef strerror after #include <string.h>.
997 [! ANSI_STRING]: Declare strerror.
999 Thu Feb 3 02:21:22 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1001 * misc.c (strerror): #undef any macro before function definition.
1003 Mon Jan 31 19:07:23 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1005 * variable.c (try_variable_definition): Calculate BEG before loop
1006 to strip blanks by decrementing END. Don't decr END to before BEG.
1008 * read.c (read_makefile): Skip over leading space characters, but
1009 not tabs, after removing continuations and comments (it used to
1012 Tue Jan 25 16:45:05 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1014 * variable.c (define_automatic_variables): In $(@D) et al, use
1015 patsubst to remove trailing slash.
1017 * commands.c (delete_target): New function, broken out of
1018 delete_child_targets. Check for archive members and give special msg.
1019 (delete_child_targets): Use delete_target.
1021 Mon Jan 17 17:03:22 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1023 * default.c (default_suffix_rules): Use $(TEXI2DVI_FLAGS) in
1024 texi2dvi rules. Use $(MAKEINFO_FLAGS) in makeinfo rules.
1026 Tue Jan 11 19:29:55 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1028 * GNUmakefile (tarfiles): Omit make-doc.
1029 (make-$(version).tar): Include make.info*.
1031 Fri Jan 7 16:27:00 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1033 * compatMakefile (configure, config.h.in): Comment out rules.
1035 Thu Jan 6 18:08:08 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1037 * compatMakefile (binprefix, manprefix): New variables.
1038 (instname): Variable removed.
1039 (install): Use $({bin,man}prefix)make in place of $(instname).
1040 File targets likewised renamed.
1042 Mon Jan 3 17:50:25 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1044 * Version 3.70 released.
1046 Thu Dec 23 14:46:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1050 * read.c (parse_file_seq): Inside multi-word archive ref
1051 translation loop, check NEW1==0 at end and break out of the loop.
1053 * GNUmakefile (make-$(version).tar): Distribute install.sh.
1054 * install.sh: New file.
1056 * configure.in (SCCS_GET_MINUS_G check): Put redirection for admin
1057 cmds outside subshell parens, to avoid "command not found" msgs
1060 Wed Dec 22 17:00:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1062 * configure.in (SCCS_GET_MINUS_G check): Put -G flag last in get cmd.
1063 Redirect output & error from get to /dev/null.
1064 Fix reversed sense of test.
1066 Fri Dec 17 15:31:36 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1068 * configure.in (SCCS_GET_MINUS_G check): Use parens instead of
1069 braces inside if condition command; some shells lose.
1071 Thu Dec 16 15:10:23 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1075 * arscan.c [M_UNIX]: Move #undef M_XENIX for PORTAR stuff.
1076 (PORTAR) [M_XENIX]: Define to 0 instead of 1.
1078 * main.c (define_makeflags): Only export MAKEFLAGS if !ALL.
1080 Wed Dec 15 17:47:48 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1082 * main.c (main): Cast result of pointer arith to unsigned int
1083 before passing to define_variable for envars. Matters when
1084 sizeof(unsigned)!=sizeof(ptrdiff_t).
1086 Tue Dec 14 14:21:16 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1088 * configure.in: Add new check for SCCS_GET_MINUS_G.
1089 * config.h.in: Add #undef SCCS_GET_MINUS_G.
1090 * default.c (default_terminal_rules): Use `$(SCCS_OUTPUT_OPTION)' in
1091 place of `-G $@' in SCCS commands.
1092 (default_variables) [SCCS_GET_MINUS_G]: Define SCCS_OUTPUT_OPTION
1095 * configure.in (AC_OUTPUT): Put touch stamp-config in second arg
1096 (so it goes in config.status), rather than afterward.
1098 * ar.c (ar_member_date): Don't call enter_file on the archive file
1099 if it doesn't exist (by file_exists_p).
1101 * compatMakefile ($(infodir)/make.info): Replace `$$d/foo.info'
1102 with `$$dir/make.info' in install-info invocation (oops).
1104 * vpath.c (construct_vpath_list): Only set LASTPATH set PATH when
1105 we do not unlink and free PATH.
1107 * file.c (print_file_data_base): Fix inverted calculation for
1108 average files per hash bucket.
1110 * read.c (readline): When we see a NUL, give only a warning and
1111 synthesize a newline to terminate the building line (used to
1112 fatal). Move fgets call into the loop condition, and after the
1113 loop test ferror (used to test !feof in the loop).
1115 Fri Dec 3 16:40:31 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1117 * configure.in: Check for strerror in AC_HAVE_FUNCS.
1119 Thu Dec 2 15:37:50 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1121 Differentiate different flavors of missing makefile error msgs,
1122 removing gratuitous `fopen: ' and giving caller for included makefiles.
1123 * misc.c [! HAVE_STRERROR]: Define our own strerror here.
1124 (perror_with_name, pfatal_with_name): Use strerror instead of
1125 replicating its functionality.
1126 * read.c (read_makefile): Return int instead of void.
1127 (read_all_makefiles, read_makefile): Change callers to notice zero
1128 return and give error msg.
1130 Thu Nov 11 11:47:36 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1134 * default.c: Put `-G $@' before $< in SCCS cmds.
1136 Wed Nov 10 06:06:14 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1138 * read.c (read_makefile): After trying a variable defn, notice if
1139 the line begins with a tab, and diagnose an error.
1141 Sun Nov 7 08:07:37 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1145 Wed Nov 3 06:54:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1149 * implicit.c (try_implicit_rule): Look for a normal rule before an
1152 Fri Oct 29 16:45:28 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1154 * function.c (expand_function: `sort'): Double NWORDS when it
1155 overflows, instead of adding five.
1157 * compatMakefile (clean): Remove loadavg.
1159 Wed Oct 27 17:58:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1163 * file.h (NEW_MTIME): Define new macro.
1164 * main.c (main): Set time of NEW_FILES to NEW_MTIME, not to
1165 current time returned from system. Removed variable NOW.
1166 * remake.c (notice_finished_file): Use NEW_MTIME in place of
1167 current time here too.
1169 Tue Oct 26 19:45:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1173 * remake.c (update_file_1): Don't clear MUST_MAKE when FILE has no
1174 cmds and !DEPS_CHANGED unless also !NOEXIST.
1176 Mon Oct 25 15:25:21 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1178 * read.c (parse_file_seq): When converting multi-word archive
1179 refs, ignore a word beginning with a '('.
1181 Fri Oct 22 02:53:38 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1183 * configure.in: Check for sys/timeb.h.
1184 * make.h [HAVE_SYS_TIMEB_H]: Test this before including it.
1186 Thu Oct 21 16:48:17 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1190 * rule.c (convert_suffix_rule): New local TARGPERCENT. Set it to
1191 TARGNAME+1 for "(%.o)", to TARGNAME for "%.?". Use it in place of
1192 TARGNAME to initialize PERCENTS[0].
1194 Mon Oct 18 06:49:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1196 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
1197 Remove AC_USG; it is no longer used.
1199 * file.c (print_file): New function, broken out of
1200 print_file_data_base.
1201 (print_file_data_base): Call it.
1202 * rule.c (print_rule): New function, broken out of
1203 print_rule_data_base.
1204 (print_rule_data_base): Call it.
1206 Thu Oct 14 14:54:03 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1208 * default.c (install_default_suffix_rules): New function, broken
1209 out of install_default_implicit_rules.
1210 (install_default_implicit_rules): Move suffix rule code there.
1211 * make.h: Declare install_default_suffix_rules.
1212 * main.c (main): Call install_default_suffix_rules before reading
1213 makefiles. Move convert_to_pattern call before
1214 install_default_implicit_rules.
1216 * job.h (struct child): Make `pid' member type `pid_t' instead of
1219 * compatMakefile (RANLIB): New variable, set by configure.
1220 (glob/libglob.a): Pass RANLIB value down to submake.
1222 Fixes for SCO 3.2 "devsys 4.2" from pss@tfn.com (Peter Salvitti).
1223 * make.h: Include <sys/timeb.h> before <time.h> for SCO lossage.
1224 * job.c [! getdtablesize] [! HAVE_GETDTABLESIZE]: If NOFILE is not
1225 defined but NOFILES_MAX is, define it to be that.
1227 Mon Oct 11 19:47:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1229 * GNUmakefile (make-$(version).tar): Depend on acconfig.h, so it
1232 Sun Oct 3 15:15:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1234 * default.c (default_terminal_rules): Add `-G $@' to SCCS get cmds.
1236 Tue Sep 28 14:18:20 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1238 * job.c (construct_command_argv_internal): Add ^ to SH_CHARS; it
1239 is another symbol for | in some shells.
1240 * main.c (main): Add it to CMD_DEFS quoting list as well.
1242 Mon Sep 20 18:05:24 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1244 * job.c (construct_command_argv_internal): Remove '=' from
1245 SH_CHARS. Only punt on '=' if it is unquoted in a word before the
1246 first word without an unquoted '='.
1248 * main.c (define_makeflags): Set v_export for MAKEFLAGS.
1250 Fri Sep 17 00:37:18 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1252 * remake.c (update_file_1): Use .DEFAULT cmds for phony targets.
1254 * make.h [_AIX && _POSIX_SOURCE]: Define POSIX.
1256 * commands.c (delete_child_targets): Don't delete phony files.
1258 * job.c (start_job_command): Set COMMANDS_RECURSE in FLAGS if we
1259 see a `+' at the beginning of the command line.
1261 Thu Sep 9 17:57:14 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1265 Wed Sep 8 20:14:21 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1267 * main.c (define_makeflags): Define MAKEFLAGS with o_file, not o_env.
1269 Mon Aug 30 12:31:58 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1271 * expand.c (variable_expand): Fatal on an unterminated reference.
1273 Thu Aug 19 16:27:53 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1277 * variable.c (define_automatic_variables): Define new o_default
1278 variable `MAKE_VERSION' from version_string and remote_description.
1280 * make.h (version_string, remote_description): Declare these here.
1281 * main.c: Don't declare version_string.
1282 (print_version): Don't declare remote_description.
1284 Wed Aug 18 15:01:24 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1286 * read.c (read_makefile): Free space pointed to by CONDITIONALS
1287 before restoring the old pointer.
1289 Mon Aug 16 17:33:36 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1291 * compatMakefile ($(objs)): Depend on config.h.
1293 * GNUmakefile (build.sh.in): Depend on compatMakefile.
1295 * configure.in: Touch stamp-config after AC_OUTPUT.
1297 Fri Aug 13 16:04:22 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1301 Thu Aug 12 17:18:57 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1303 * make.h: Include <config.h> instead of "config.h".
1305 Wed Aug 11 02:35:25 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1307 * main.c (main): Make all variables interned from ENVP be v_export.
1308 * variable.c (try_variable_definition): In v_default case, don't
1309 check for an o_file variable that `getenv' finds.
1311 * job.c (reap_children): New local variable ANY_LOCAL; set it
1312 while setting ANY_REMOTE. If !ANY_LOCAL, don't wait for local kids.
1314 * main.c (main): Don't call decode_env_switches on MFLAGS. DOC THIS.
1316 * function.c (expand_function): #if 0 out freeing of ENVP since it
1319 Mon Aug 9 17:37:20 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1323 * remote-stub.c (remote_status): Set errno to ECHILD before return.
1324 * job.c (reap_children): Scan the chain for remote children and
1325 never call remote_status if there are none.
1327 * function.c (expand_function: `shell'): #if 0 out calling
1328 target_environment; just set ENVP to environ instead.
1330 * job.c (reap_children): Check for negative return from
1331 remote_status and fatal for it.
1332 When blocking local child wait returns 0, then try a blocking call
1335 Tue Aug 3 00:19:00 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1337 * compatMakefile (clean): Delete make.info* and make.dvi here.
1338 (distclean): Not here.
1340 * dep.h (RM_*): Use #defines instead of enum to avoid lossage from
1341 compilers that don't like enum values used as ints.
1343 Mon Aug 2 16:46:34 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1345 * compatMakefile (loadavg): Add $(LOADLIBES).
1347 Sun Aug 1 16:01:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1351 * compatMakefile (loadavg, check-loadavg): New targets.
1352 (check): Depend on check-loadavg.
1354 * compatMakefile (glob/libglob.a): Depend on config.h.
1356 * misc.c (log_access): Write to stderr instead of stdout.
1358 Fri Jul 30 00:07:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1362 Thu Jul 29 23:26:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1364 * configure.in (SYS_SIGLIST_DECLARED): In test program include
1365 <unistd.h> #ifdef HAVE_UNISTD_H.
1367 * compatMakefile (.PHONY): Put after `all' et al.
1369 * configure.in: Add AC_IRIX_SUN.
1371 Wed Jul 28 17:41:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1375 Mon Jul 26 14:36:49 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1379 Sun Jul 25 22:09:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1383 * compatMakefile ($(infodir)/make.info): Don't use $(instname).
1384 Run install-info script if present.
1386 Fri Jul 23 16:03:50 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1388 * make.h [STAT_MACROS_BROKEN]: Test this instead of [uts].
1390 * configure.in: Add AC_STAT_MACROS_BROKEN.
1392 Wed Jul 14 18:48:11 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1396 * read.c (read_makefile): Recognize directive `-include', like
1397 `include' but sets RM_DONTCARE flag.
1399 * variable.c (target_environment): If FILE is nil, use
1400 current_variable_set_list in place of FILE->variables.
1401 * function.c (expand_function: `shell'): Get an environment for
1402 the child from target_environment instead of using environ.
1404 * dep.h: Declare read_all_makefiles here.
1405 (RM_*): Define new enum constants.
1406 * read.c (read_makefile): Second arg is FLAGS instead of TYPE.
1407 Treat it as a bit mask containing RM_*.
1408 (read_all_makefiles): For default makefiles, set D->changed to
1409 RM_DONTCARE instead of 1.
1410 * main.c: Don't declare read_all_makefiles here.
1411 (main): Check `changed' member of read_makefiles elts for RM_*
1412 flags instead of specific integer values.
1414 Mon Jul 12 22:42:17 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1416 * make.h [sequent && i386]: #undef POSIX. From trost@cse.ogi.edu.
1418 Thu Jul 8 19:51:23 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1420 * vpath.c (construct_vpath_list): If ELEM is zero 0, free PATTERN
1422 (build_vpath_lists): Empty `vpaths' around construct_vpath_list
1423 call for $(VPATH). Expand $(strip $(VPATH)), not just $(VPATH).
1425 * rule.c (convert_suffix_rule): Use alloca instead of xmalloc for
1426 PERCENTS, whose storage is not consumed by create_pattern_rule.
1428 * make.h [__mips && _SYSTYPE_SVR3]: #undef POSIX.
1430 Wed Jun 30 18:11:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1434 * rule.c (max_pattern_targets): New variable.
1435 (count_implicit_rule_limits): Compute its value.
1436 * rule.h: Declare it.
1437 * implicit.c (pattern_search): Make TRYRULES max_target_patterns
1438 times bigger. Move adding new TRYRULES elt inside the inner
1439 targets loop, so each matching target gets its own elt in MATCHES
1440 and CHECKED_LASTSLASH.
1442 * file.c (remove_intermediates): If SIG!=0 say `intermediate file'
1443 instead of just `file' in error msg.
1445 Fri Jun 25 14:55:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1447 * job.c (construct_command_argv): Turn off
1448 --warn-undefined-variables around expansion of SHELL and IFS.
1449 * read.c (tilde_expand): Likewise for HOME.
1450 (read_all_makefiles): Likewise for MAKEFILES.
1451 * vpath.c (build_vpath_lists): Likewise for VPATH.
1453 * main.c (warn_undefined_variables_flag): New flag variable.
1454 (switches): Add --warn-undefined-variables.
1455 * make.h (warn_undefined_variables_flag): Declare it.
1456 * expand.c (warn_undefined): New function.
1457 (reference_variable): Call it if the variable is undefined.
1458 (variable_expand): In substitution ref, call warn_undefined if the
1459 variable is undefined.
1461 * default.c (default_pattern_rules): Add `%.c: %.w %.ch' and
1462 `%.tex: %.w %.ch' rules.
1463 (default_suffix_rules: .w.c, .w.tex): Pass three args: $< - $@.
1464 (default_suffixes): Add `.ch'.
1466 Mon Jun 21 17:55:39 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1468 * default.c (default_suffixes): Replace `.cweb' with `.w'.
1469 (default_suffix_rules): Rename `.cweb.c' and `.cweb.tex' to `.w.c'
1472 Fri Jun 11 14:42:09 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1474 * compatMakefile ($(bindir)/$(instname)): Add missing backslash.
1476 Thu Jun 10 18:14:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1480 * read.c (multi_glob): Don't free OLD and OLD->name in the
1481 FOUND!=0 fork. Use new block-local variable F instead of
1484 * ar.c (glob_pattern_p): New function, snarfed from glob/glob.c.
1485 (ar_glob): Call it; return nil immediately if MEMBER_PATTERN
1486 contains no metacharacters.
1488 Wed Jun 9 16:25:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1490 * ar.c (ar_glob{_match,_alphacompare}): New function.
1492 * dep.h [! NO_ARCHIVES]: Declare it.
1493 * read.c (multi_glob) [! NO_ARCHIVES]: Use it on archive member elts.
1495 * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
1496 multi_glob (which doesn't take a 3rd arg).
1497 * rule.c (install_pattern_rule): Likewise.
1498 * default.c (set_default_suffixes): Here too.
1499 * function.c (string_glob): Don't pass gratuitous arg to multi_glob.
1501 * read.c (parse_file_seq) [! NO_ARCHIVES]: Add post-processing
1502 loop to translate archive refs "lib(a b)" into "lib(a) lib(b)".
1504 Mon Jun 7 19:26:51 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1506 * compatMakefile (installdirs): Actually pass directory names.
1507 ($(bindir)/$(instname)): Test chgrp&&chmod exit status with `if';
1508 if it fails, echo a warning msg, but don't make the rule fail.
1510 * read.c (tilde_expand): New function, broken out of tilde_expand.
1511 (multi_glob): Call it.
1512 (construct_include_path): Expand ~ in directory names.
1513 * dep.h: Declare tilde_expand.
1514 * main.c (enter_command_line_file): Expand ~ at the start of NAME.
1515 (main): Expand ~ in -C args.
1516 * read.c (read_makefile): Expand ~ in FILENAME unless TYPE==2.
1518 Fri Jun 4 13:34:47 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1520 * main.c (decode_env_switches): Use xmalloc instead of alloca for ARGS.
1522 * main.c (main): Put result of alloca in temporary variable with
1523 simple assignment, to make SGI compiler happy.
1525 Thu Jun 3 20:15:46 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1529 * main.c (main): Before re-execing, remove intermediate files, and
1530 print the data base under -p. Sexier debugging message.
1532 * implicit.c (pattern_search): Allocate an extra copy of the name
1533 of a winning intermediate file when putting it in FOUND_FILES.
1535 Wed Jun 2 16:38:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1537 * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
1538 multi_glob (which doesn't take a 3rd arg).
1540 * dir.c (dir_contents_file_exists_p): When reading dirents, ignore
1541 chars within D_NAMLEN that are NULs.
1543 * main.c (decode_switches): Don't savestring ARGV[0] to put it
1545 For string switch, don't savestring `optarg'.
1546 (main): Don't free elts of makefiles->list that are "-".
1547 Use alloca'd rather than savestring'd storage for elts of
1548 makefiles->list that are temporary file names.
1549 * read.c (read_all_makefiles): Don't free *MAKEFILES.
1550 * file.c (enter_file): Don't strip `./'s.
1551 * main.c (enter_command_line_file): New function.
1552 (main): Use it in place of enter_file for command-line goals from
1553 other_files, and for old_files and new_files.
1555 Mon May 31 18:41:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1559 * compatMakefile (.SUFFIXES): Add .info.
1560 ($(infodir)/$(instname).info): Find make.info* in cwd if there,
1561 else in $srcdir. Use basename to remove dir name from installed name.
1563 Thu May 27 17:35:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1565 * implicit.c (pattern_search): When interning FOUND_FILES, try
1566 lookup_file first; if found, free the storage for our copy of the name.
1568 Wed May 26 14:31:20 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1572 * main.c (decode_switches): In usage msg, write `--switch=ARG' or
1573 `--switch[=OPTARG]' rather than `--switch ARG' or `--switch [ARG]'.
1575 Mon May 24 16:17:31 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1577 * rule.c (convert_suffix_rule): New function.
1578 (convert_to_pattern): Use it instead of doing all the work here
1580 For target suffix `.a', generate both the archive magic rule and
1583 * compatMakefile (distclean): Remove stamp-config.
1585 Sat May 22 16:15:18 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1589 * file.c (remove_intermediates): Don't write extra space after `rm'.
1591 * main.c (struct command_switch.type): Remove `usage_and_exit'.
1592 (print_usage_flag): New variable.
1593 (switches: --help): Make type `flag', to set print_usage_flag.
1594 (init_switches): Remove `usage_and_exit' case.
1595 (decode_switches): Likewise.
1596 (decode_switches): Print usage if print_usage_flag is set.
1597 When printing usage, die with status of BAD.
1598 (main): Die with 0 if print_version_flag.
1600 Fri May 21 16:09:28 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1604 Wed May 19 21:30:44 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1606 * compatMakefile (installdirs): New target.
1607 (install): Depend on it.
1609 Sun May 16 20:15:07 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1613 Fri May 14 16:40:09 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1615 * vpath.c (construct_vpath_list): In removal loop for DIRPATH==0,
1616 set LASTPATH to PATH, not NEXT.
1618 * dir.c (read_dirstream): Break out of loop after incrementing
1619 DS->buckets such that it reaches DIRFILE_BUCKETS; avoid trying to
1620 dereference DS->contents->files[DIRFILE_BUCKETS].
1622 * read.c (read_makefile): Clear no_targets after reading a
1623 targetful rule line.
1625 * main.c (main): If print_version_flag is set, exit after printing
1627 (switches): Change --version docstring to say it exits.
1629 * make.h [butterfly]: #undef POSIX.
1631 Wed May 12 15:20:21 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
1635 * arscan.c (ar_scan) [! AIAMAG]: Don't declare LONG_NAME.
1636 [AIAMAG]: Pass TRUNCATE flag arg to (*FUNCTION), always zero.
1638 * function.c (handle_function): Use fatal instead of
1639 makefile_fatal when reading_filename is nil.
1641 * configure.in: Add AC_GETGROUPS_T.
1642 * job.c (search_path): Use GETGROUPS_T in place of gid_t.
1644 Sun May 9 15:41:25 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1648 Fri May 7 18:34:56 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1650 * function.c (handle_function): Fatal for unmatched paren.
1652 Thu May 6 16:13:41 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1656 * commands.c (handling_fatal_signal): New variable.
1657 (fatal_error_signal): Set it.
1658 * job.c (reap_children): Avoid nonreentrant operations if that is set.
1659 * make.h: Declare handling_fatal_signal.
1661 * expand.c (reference_variable): New function, snippet of code
1662 broken out of simple-reference case of variable_expand.
1663 (variable_expand): Use it for simple refs.
1664 (variable_expand): When checking for a computed variable name,
1665 notice a colon that comes before the final CLOSEPAREN. Expand
1666 only up to the colon, and then replace the pending text with a
1667 copy containing the expanded name and fall through to subst ref
1669 (variable_expand): Don't bother expanding the name if a colon
1670 appears before the first $.
1671 (expand_argument): Use alloca instead of savestring.
1672 (variable_expand): For subst ref, expand both sides of = before
1673 passing to [pat]subst_expand. Use find_percent instead of lindex
1674 to check the lhs for a %.
1676 Wed May 5 14:45:52 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1680 Mon May 3 17:00:32 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1682 * arscan.c (ar_name_equal) [AIAMAG]: Abort if TRUNCATED is nonzero.
1684 * read.c (read_makefile): Pass extra arg of 1 to parse_file_seq,
1687 Thu Apr 29 19:47:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1691 * arscan.c (ar_scan): New local flag var LONG_NAME. Set it when
1692 we read the member name in any of the fashions that allow it to be
1693 arbitrarily long. Pass its negation to FUNCTION.
1694 (describe_member): Take TRUNCATED from ar_scan and print it.
1695 (ar_name_equal): Take new arg TRUNCATED; if nonzero, compare only
1696 the first sizeof (struct ar_hdr.ar_name) chars.
1697 (ar_member_pos): Take TRUNCATED from ar_scan, pass to ar_name_equal.
1698 * ar.c (ar_member_date_1): Likewise.
1700 Wed Apr 28 21:18:22 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1702 * job.c (reap_children): Before calling start_job_command to start
1703 the next command line, reset C->remote by calling start_remote_job_p.
1705 Mon Apr 26 15:56:15 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
1707 * arscan.c (ar_scan): New local var NAMEMAP.
1708 In loop, rename NAME to NAMEBUF; new var NAME is a pointer; new
1709 flag IS_NAMEMAP. When extracting the member name, always put a
1710 null at its end first. If the name is "//" or "/ARFILENAMES", set
1711 IS_NAMEMAP. If we have already read in NAMEMAP, and NAME looks
1712 like " /N", get full name from NAMEMAP+N.
1713 Else if NAME looks like "#1/N", read N chars from the
1714 elt data to be the full name. At end of loop, if IS_NAMEMAP, read
1715 the elt's data into alloca'd NAMEMAP.
1716 (ar_name_equal): #if 0 truncating code.
1718 * make.h: Don't declare vfork at all. It returns int anyway,
1719 unless <unistd.h> declared it; and we conflicted with some systems.
1721 * main.c (define_makeflags): If FLAGSTRING[1] is '-', define
1722 MAKEFLAGS to all of FLAGSTRING, not &FLAGSTRING[1]. Don't want to
1723 define it to something like "-no-print-directory".
1724 Use %g format instead of %f for floating-valued things.
1726 Thu Apr 22 18:40:58 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1728 * GNUmakefile (Makefile.in): Use a substitution ref on nolib-deps
1729 to change remote-%.dep to remote-stub.dep.
1731 Wed Apr 21 15:17:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1735 Fri Apr 16 14:22:22 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1737 * compatMakefile (install): Remove - prefix from chgrp+chmod.
1741 Thu Apr 15 18:24:07 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1743 * acconfig.h: New file; contains "#undef SCCS_GET" for autoheader.
1744 * configure.in: If /usr/sccs/get exists, define SCCS_GET to that,
1746 * default.c (default_variables): Set GET to macro SCCS_GET.
1748 * read.c (parse_file_seq): Take extra arg STRIP; strip `./' only
1749 if nonzero. I hope this is the last time this argument is added
1751 (read_makefile): Pass it 1 when parsing include file names.
1752 Pass it 1 when parsing target file names.
1753 Pass it 1 when parsing static pattern target pattern names.
1754 * rule.c (install_pattern_rule): Pass it 1 when parsing rule deps.
1755 * default.c (set_default_suffixes): Pass it 1 when parsing
1757 * function.c (string_glob): Pass it 0 here.
1759 Wed Apr 14 11:32:05 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1761 * misc.c (log_access): New function.
1762 ({init,user,make,child}_access): Call it.
1763 (child_access): Abort if !access_inited.
1765 * main.c (switches: --no-print-directory): Use 1 instead of -1 for
1766 single-letter option.
1767 (init_switches, decode_switches, define_makeflags): An option with
1768 no single-letter version is no longer indicated by a value of -1;
1769 instead a value that is !isalnum.
1770 (init_switches): Don't put such switches into the string, only
1771 into the long_option table.
1773 * make.h [!NSIG] [!_NSIG]: #define NSIG 32.
1775 * job.c [HAVE_WAITPID]: Remove #undef HAVE_UNION_WAIT. AIX's
1776 bsdcc defined WIF* to use union wait.
1778 * main.c (struct command_switch): Change member `c' to type int.
1779 (switches): Make const.
1780 (decode_switches): Use `const struct command_switch *'.
1781 (define_makeflags): Likewise.
1783 * default.c (default_suffix_rules): Add `-o $@' to makeinfo rules.
1785 Mon Apr 12 12:30:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1789 * configure.in (AC_HAVE_HEADERS): Check for string.h and memory.h.
1790 Removed AC_MEMORY_H.
1791 * make.h [USG, NeXT]: Don't test these.
1792 [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
1793 [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
1794 [! ANSI_STRING]: Put decls of bcopy et al here.
1795 [sparc]: Don't test this for alloca.h; HAVE_ALLOCA_H is sufficient.
1796 [HAVE_SIGSETMASK]: Test this rather than USG.
1797 [__GNU_LIBRARY__ || POSIX]: Don't #include <unistd.h> again.
1798 * main.c (main): Handle SIGCHLD if defined, and SIGCLD if defined.
1799 It doesn't hurt to do both if they are both defined, and testing
1801 * dir.c: Rationalize directory header conditionals.
1802 * arscan.c [HAVE_FCNTL_H]: Test this rather than USG || POSIX.
1804 * default.c (default_suffixes): Add `.txinfo'.
1805 (default_suffix_rules): Add `.txinfo.info' and `.txinfo.dvi' rules.
1807 * variable.c (try_variable_definition): Replace RECURSIVE flag
1808 with enum FLAVOR, which can be simple, recursive, or append.
1809 Recognize += as append flavor. Set new variable VALUE in a switch
1810 on FLAVOR. For append flavor, prepend the variable's old value.
1811 If the variable was previously defined recursive, set FLAVOR to
1812 recursive; if it was defined simple, expand the new value before
1813 appending it to the old value. Pass RECURSIVE flag to
1814 define_variable iff FLAVOR == recursive.
1816 * variable.c (try_variable_definition): Use alloca and bcopy for
1817 NAME, instead of savestring. Might as well use stack storage
1818 since we free it immediately anyway.
1820 Thu Apr 8 18:04:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1822 * job.c (start_waiting_jobs): Move decl of JOB outside of loop.
1824 * main.c (define_makeflags): Rename `struct flag' member `switch'
1825 to `cs', which is not a reserved word.
1827 Wed Apr 7 15:30:51 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1829 * job.c (new_job): Call start_waiting_jobs first thing.
1830 (start_waiting_job): Changed return type from void to int.
1831 Return 0 when putting the child on the waiting_jobs chain.
1832 (start_waiting_jobs): Don't check load and job_slots here.
1833 Always take a job off the chain and call start_waiting_job on it;
1834 give up and return when start_waiting_job returns zero.
1836 * main.c (define_makeflags: struct flag): Change member `char c' to
1837 `struct command_switch *switch'.
1838 (ADD_FLAG): Set that to CS instead of CS->c.
1839 If CS->c is -1, increment FLAGSLEN for the long name.
1840 When writing out FLAGS, handle FLAGS->switch->c == -1 and write
1841 the long name instead.
1843 * compatMakefile (stamp-config): New target of old config.h rule.
1844 Touch stamp-config after running config.status.
1845 (config.h): Just depend on stamp-config, and have empty commands.
1847 Mon Apr 5 20:14:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1849 * job.c [HAVE_WAITPID]: #undef HAVE_UNION_WAIT.
1851 * configure.in (AC_HAVE_FUNCS): Check for psignal.
1853 Fri Apr 2 17:15:46 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1855 * main.c (long_option_aliases): Remove "new"; it is already an
1856 unambiguous prefix of "new-file".
1858 Sun Mar 28 16:57:17 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
1862 Wed Mar 24 14:26:19 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1864 * vpath.c (selective_vpath_search): When adding the
1865 name-within-directory at the end of NAME, and we don't add a
1866 slash, don't copy FILENAME in one char too far into NAME.
1868 * variable.c (define_automatic_variables): Find default_shell's
1869 length with strlen, not numerology.
1871 Wed Mar 17 20:02:27 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1873 * main.c (define_makeflags): Add the elts of a string option in
1874 reverse order, so they come out right when reversed again.
1876 Fri Mar 12 15:38:45 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
1878 * compatMakefile (make.info): Use `-o make.info'.
1880 Thu Mar 11 14:13:00 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
1882 * compatMakefile (REMOTE): Set to @REMOTE@; change comments to
1884 (objs): Replace remote.o with remote-$(REMOTE).o.
1885 (srcs): Replace remote.c with remote-$(REMOTE).c.
1886 (remote.o): Rule removed.
1888 * configure.in (REMOTE): Subst this in Makefile et al; default "stub".
1889 Use AC_WITH to grok --with-customs arg to set REMOTE=cstms.
1890 * GNUmakefile (build.sh.in): Filter out remote-% from objs list.
1891 * build.template (REMOTE): New var; set to @REMOTE@.
1892 (objs): Add remote-${REMOTE}.o.
1894 Wed Mar 10 15:12:24 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
1898 * implicit.c (pattern_search): Fix "dependent"->"dependency" in
1899 "Rejecting impossible" -d msg.
1901 * file.c (file_hash_enter): New local vars {OLD,NEW}BUCKET. Store
1902 mod'd values there; never mod {OLD,NEW}HASH.
1904 Mon Mar 8 13:32:48 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
1906 * remake.c [eta10]: Include <fcntl.h> instead of <sys/file.h>.
1908 * compatMakefile (VPATH): Set this to @srcdir@.
1909 (srcdir): Set this to $(VPATH).
1911 * main.c (main): New local var DIRECTORY_BEFORE_CHDIR. Save in it
1912 a copy of CURRENT_DIRECTORY after the first getcwd. Use it
1913 instead of CURRENT_DIRECTORY when chdir'ing back before re-execing.
1915 * remake.c (notice_finished_file): Pass missing SEARCH arg to f_mtime.
1917 * read.c (read_makefile): Remove extraneous arg to parse_file_seq.
1919 Mon Feb 22 14:19:38 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1921 * compatMakefile ($(infodir)/$(instname).info): Use , instead of /
1922 as the sed delimiter char.
1924 Sun Feb 21 14:11:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1928 * rule.h (struct rule): Removed `subdir' member.
1929 * rule.c (new_pattern_rule): No need to clear it.
1930 (count_implicit_rule_limits): Set the `changed' flag in each dep
1931 that refers to a nonexistent directory. No longer set rule-global
1932 `subdir' flag with that information.
1933 (print_rule_data_base): Don't record info on `subdir' flags.
1935 * implicit.c (pattern_search): Check the DEP->changed flag rather
1936 than the (now gone) RULE->subdir flag. Also test CHECK_LASTSLASH;
1937 if it is set, the file might exist even though the DEP->changed
1940 * rule.c (count_implicit_rule_limits): Pass "", not ".", as file
1941 name arg to dir_file_exists_p to check for existence of directory.
1943 * implicit.c (pattern_search): Inside dep-finding loop, set
1944 CHECK_LASTSLASH from the value recorded in CHECKED_LASTSLASH[I],
1945 rather than computing it anew.
1947 * commands.c (set_file_variables): Must alloca space for PERCENT
1948 and copy it, to avoid leaving the trailing `)' in the value.
1950 * misc.c (remove_comments): Fixed backslash-checking loop
1951 condition to allow it to look at the first char on the line.
1952 P2 >= LINE, not P2 > LINE.
1954 * compatMakefile ($(bindir)/$(instname)): Before moving $@.new to
1955 $@, rm $@.old and mv $@ to $@.old.
1957 * variable.c (try_variable_definition): Take new args FILENAME and
1958 LINENO. Fatal if the variable name is empty.
1959 * read.c (read_makefile): Change callers.
1960 * main.c (main): Likewise.
1962 * compatMakefile (group): Define to @KMEM_GROUP@, autoconf magic
1963 that configure will replace with the group owning /dev/kmem.
1965 Mon Feb 8 14:26:43 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
1967 * vpath.c (vpath_search): Take second arg MTIME_PTR, pass thru to
1968 selective_vpath_search.
1969 (selective_vpath_search): Take second arg MTIME_PTR.
1970 If the dir cache thinks a file exists, stat it to make sure, and
1971 put the modtime in *MTIME_PTR.
1972 * remake.c (library_search): Take second arg MTIME_PTR.
1973 When we find a match, record its mtime there.
1974 Pass MTIME_PTR through to vpath_search to do same.
1975 (f_mtime): Pass &MTIME as new 2nd arg to {vpath,library}_search;
1976 store it in FILE->last_mtime if set nonzero.
1977 * implicit.c (pattern_search): Pass nil 2nd arg to vpath_search.
1979 * compatMakefile (remote.o): Prepend `$(srcdir)/' to `remote-*.c',
1980 so globbing looks somewhere it will find things.
1982 * compatMakefile ($(infodir)/$(instname).info): Install `make.info*'
1983 not `$(srcdir)/make.info*'; no need to use basename.
1985 Fri Feb 5 12:52:43 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
1989 * compatMakefile (install): Add missing ;\s.
1991 Make -, @, and + prefixes on a pre-expanded command line affect
1992 all lines in the expansion, not just the first.
1993 * commands.h (struct commands): Replace `lines_recurse' member
1995 (COMMANDS_{RECURSE,SILENT,NOERROR}): New macros, bits to set in
1997 * commands.c (chop_commands): Set `lines_flags' instead of
1998 `lines_recurse'. Record not only + but also @ and - prefixes.
1999 * remake.c (notice_finished_file): Check the COMMANDS_RECURSE bit
2000 in FILE->cmds->lines_flags, rather than FILE->cmds->lines_recurse.
2001 * job.c (start_job_command): Replaced RECURSIVE and NOPRINT local
2002 var with FLAGS; initialize it to the appropriate `lines_flags' byte.
2003 Set CHILD->noerror if the COMMANDS_NOERROR bit is set in FLAGS.
2004 Set the COMMANDS_SILENT bit in FLAGS for a @ prefix.
2006 * remake.c (update_goal_chain): Set G->file to its prev after
2007 checking for G being finished, since that check needs to examine
2010 * configure.in (union wait check) [HAVE_WAITPID]: Try using
2011 waitpid with a `union wait' STATUS arg. If waitpid and union wait
2012 don't work together, we should not use union wait.
2016 * remake.c (update_goal_chain): When G->file->updated, move
2017 G->file to its prev. We aren't finished until G->file is nil.
2019 Thu Feb 4 12:53:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2021 * main.c (starting_directory): New global variable.
2022 (main): Set it to cwd after doing -Cs.
2023 (log_working_directory): Use it, rather than computing each time.
2024 * make.h: Declare it.
2026 * compatMakefile (SHELL): Define to /bin/sh for losing Unix makes.
2028 * main.c (decode_env_switches): Allocate (1 + LEN + 1) words for
2029 ARGV, rather than LEN words plus one byte.
2031 Wed Feb 3 18:13:52 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2033 * compatMakefile ($(bindir)/$(instname)): Put - before
2034 install_setgid command line, so its failure won't be an error.
2035 (infodir): New variable.
2036 (install): Depend on $(infodir)/$(instname).info.
2037 ($(infodir)/$(instname).info): New target.
2039 * read.c (read_makefile): If FILENAMES is nil when we see a line
2040 starting with a tab, don't treat it as a command. Just fall
2041 through, rather than giving an error.
2043 * read.c (read_makefile): If the NO_TARGETS flag is set when we see a
2044 command line, don't clear it before continuing. We want
2045 subsequent command lines to be ignored as well.
2047 * job.c (new_job): Before expanding each command line, collapse
2048 backslash-newline combinations that are inside var or fn references.
2050 Mon Feb 1 16:00:13 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2052 * compatMakefile (exec_prefix): Default to $(prefix), not /usr/local.
2054 * compatMakefile (make.info): Pass -I$(srcdir) to makeinfo.
2056 * job.c [POSIX] (unblock_sigs): Made global.
2057 [!POSIX] (unblock_sigs): Move defns to job.h.
2058 * job.h [POSIX] (unblock_sigs): Declare.
2060 Sun Jan 31 19:11:05 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2062 * read.c (read_makefile): In vpath parsing, after finding the
2063 pattern token, take entire rest of line as the search path, not
2064 just the next token.
2066 * compatMakefile (remote.o): Depend on remote-*.c.
2068 Thu Jan 28 16:40:29 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2070 * commands.c (set_file_variables): Don't define any F or D versions.
2071 * variable.c (define_automatic_variables): Define them here as
2072 recursively-expanded variables that use the dir and notdir funcs.
2074 * variable.c (target_environment): In v_default case, don't export
2075 o_default or o_automatic variables.
2077 * configure.in (union wait check): Remove ` and ' inside C code;
2078 they confuse the shell script.
2080 Mon Jan 25 13:10:42 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2084 * vpath.c (construct_vpath_list): When skipping further processing
2085 of an elt that is ".", don't also skip the code that pushes P past
2088 * compatMakefile (distclean): Don't remove make-*.
2090 * configure.in (HAVE_UNION_WAIT): Try to use WEXITSTATUS if it's
2091 defined. If one cannot use WEXITSTATUS with a `union wait'
2092 argument, we don't want to believe the system has `union wait' at all.
2094 * remake.c (update_file): Do nothing to print "up to date" msgs.
2095 (update_goal_chain): Do it here instead.
2096 Use the `changed' flag of each goal's `struct dep' to keep track
2097 of whether files_remade (now commands_started) changed around a
2098 call to update_file for that goal.
2099 When a goal is finished, and its file's update_status is zero (i.e.,
2100 success or nothing done), test the `changed' flag and give an "up
2101 to date" msg iff it is clear.
2102 * make.h (files_remade): Renamed to commands_started.
2103 * remake.c: Changed defn.
2104 (update_goal_chain): Changed uses.
2105 * job.c (start_job_command): Increment commands_started here.
2106 (reap_children): Not here.
2108 * remake.c (update_goal_chain): Don't do anything with files'
2109 `prev' members. update_file now completely handles this.
2111 * variable.c (target_environment): Don't expand recursive
2112 variables if they came from the environment.
2114 * main.c (define_makeflags): For flags with omitted optional args,
2115 store {"", 0} with ADD_FLAG. When constructing FLAGSTRING, a flag
2116 so stored cannot have more flags appended to the same word.
2118 Fri Jan 22 14:46:16 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2120 * variable.c (print_variable_set): In vars/bucket calculation,
2121 don't spuriously multiply by 100.
2125 * job.c [!HAVE_UNION_WAIT] (WTERMSIG, WCOREDUMP, WEXITSTATUS):
2126 Don't define if already defined.
2128 * remake.c (update_file): Don't keep track of the command_state before
2129 calling update_file_1. Remove local variable COMMANDS_FINISHED,
2130 and don't test it to decide to print the "is up to date" msg.
2131 Testing for files_remade having changed should always be sufficient.
2132 The old method lost when we are called in the goal chain run on a
2133 makefile, because the makefile's command_state is already
2134 `cs_finished' from the makefile chain run.
2136 * misc.c [HAVE_SETRE[GU]ID]: Test these to decl setre[gu]id.
2138 * configure.in: Rewrote wait checking.
2139 Use AC_HAVE_HEADERS to check for <sys/wait.h>.
2140 Use AC_HAVE_FUNCS to check for waitpid and wait3.
2141 Use a compile check to test just for `union wait'.
2142 * job.c: Rewrote conditionals accordingly.
2143 [HAVE_WAITPID]: Test this only to define WAIT_NOHANG.
2144 [HAVE_WAIT3]: Likewise.
2145 [HAVE_UNION_WAIT]: Test this to define WAIT_T and W*.
2147 * configure.in: Set CFLAGS and LDFLAGS before all checks.
2149 * dir.c: Add static forward decls of {open,read}_dirstream.
2151 Thu Jan 21 17:18:00 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2155 * job.c [NGROUPS_MAX && NGROUPS_MAX==0]: #undef NGROUPS_MAX.
2157 * compatMakefile (CFLAGS, LDFLAGS): Set to @CFLAGS@/@LDFLAGS@.
2158 * build.template (CFLAGS, LDFLAGS): Same here.
2159 * configure.in: AC_SUBST(CFLAGS) and LDFLAGS.
2160 Set them to -g if not defined in the environment.
2162 * remake.c (library_search): Use LIBNAME consistently, setting it
2163 only once, to be the passed name sans `-l'.
2164 Pass new var FILE to be modified by vpath_search.
2166 Mon Jan 18 14:53:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2170 * job.c (start_waiting_jobs): Return when job_slots_used is equal to
2173 * configure.in: Add AC_CONST for the sake of getopt.
2175 * read.c (read_makefile): Continue after parsing `override'
2176 directive, rather than falling through to lossage.
2177 Check for EOL or blank after "override define".
2179 * compatMakefile (.c.o, remote.o): Put $(CFLAGS) after other switches.
2181 Fri Jan 15 12:52:52 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2185 * main.c (define_makeflags): After writing everything into
2186 FLAGSTRING, only back up two chars if [-1] is a dash, meaning we
2187 just wrote " -". Always terminate the string at *P.
2189 * remake.c (library_search): When constructing names in std dirs,
2190 use &(*LIB)[2] for the stem, not LIBNAME (which points at the
2191 buffer we are writing into!).
2193 Thu Jan 14 13:50:06 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2195 * read.c (read_makefile): Set IN_IGNORED_DEFINE for "override
2196 define" when IGNORING is true.
2198 * compatMakefile (distclean): Remove config.status and build.sh.
2200 Wed Jan 13 16:01:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2204 * misc.c (xmalloc, xrealloc): Cast result of malloc/realloc to
2207 * arscan.c (ar_scan) [AIAMAG]: Cast read arg to (char *).
2209 * variable.c (define_automatic_variables): Override SHELL value for
2210 origin o_env_override as well as o_env.
2212 * GNUmakefile (build.sh.in): Don't replace %globobjs%. Instead,
2213 add the names of the glob objects (w/subdir) to %objs%.
2214 * build.template (globobjs): Removed.
2215 Take basename of $objs before linking.
2217 Tue Jan 12 12:31:06 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2221 * configure.in (AC_OUTPUT): Also edit build.sh.
2222 * build.template: New file.
2223 * GNUmakefile (build.sh.in): New rule to create it from build.template.
2224 (make-$(version).tar.Z): Depend on build.sh.in.
2226 * main.c (die): Call print_data_base if -p.
2227 (main): Don't call it here.
2229 * compatMakefile (defines): Add @DEFS@. configure should turn this
2230 into -DHAVE_CONFIG_H.
2232 Mon Jan 11 14:39:23 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2236 * misc.c (init_access): Surround with #ifdef GETLOADAVG_PRIVILEGED.
2237 ({make,user,child}_access) [! GETLOADAVG_PRIVILEGED]: Make no-op.
2238 * compatMakefile (install_setgid): New var, set by configure.
2239 (install): Install setgid $(group) only if $(install_setgid) is true.
2241 Fri Jan 8 15:31:55 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2243 * job.c (load_too_high): If getloadavg fails with errno==0, give a
2244 message saying that load limits are not supported.
2246 * vpath.c (construct_vpath_list): Rewrote path deletion code to
2247 not try to use PATH's next link after freeing PATH.
2249 * main.c (define_makeflags): Rewritten; now handles string-valued
2250 option, and has no arbitrary limits.
2251 (switches): Set `toenv' flag for -I and -v.
2253 * main.c (decode_env_switches): Cast return value of alloca to char *.
2255 * misc.c (child_access) [HAVE_SETREUID, HAVE_SETREGID]: Use
2256 setre[gu]id in place of set[gu]id.
2258 Wed Jan 6 15:06:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2260 * main.c (main): Define MAKEOVERRIDES, MAKE, and MAKE_COMMAND with
2263 * make.h [POSIX]: Don't test this to use ANSI_STRING.
2264 Testing STDC_HEADERS should be sufficient.
2266 * job.h: Declare start_waiting_jobs.
2268 * read.c (read_makefile): Add missing parens in if stmt that find
2269 conditional directives.
2271 * main.c (main): Declare init_dir.
2272 * implicit.c (pattern_search): Always use two % specs in a
2273 DEBUGP2, and always pass two non-nil args.
2274 Cast field width args to int.
2275 Add missing parens in !RULE->subdir if stmt.
2276 * function.c (expand_function, patsubst_expand): Add parens around
2277 assignments inside `while' stmts.
2278 * commands.c (print_commands): Cast field width args to int.
2280 * read.c (do_define): Cast return value of alloca to (char *).
2282 * main.c (init_switches): New function, broken out of decode_switches.
2283 (decode_switches): Take new arg ENV. If set, ignore non-option
2284 args; print no error msgs; ignore options with clear `env' flags.
2285 (decode_env_switches): Rewritten to chop envar value into words
2286 and pass them to decode_switches.
2287 (switches): Set `env' flag for -I and -v.
2289 * dir.c (init_dir): Cast free to __glob_closedir_hook's type.
2291 Tue Jan 5 14:52:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2295 * job.c [HAVE_SYS_WAIT || !USG]: Don't #include <sys/time.h> and
2296 <sys/resource.h>. <sys/time.h> interacts badly with <time.h>, and
2297 we don't need these anyway.
2299 * configure.in (AC_HAVE_FUNCS): Check for setre[gu]id.
2300 * misc.c ({user,make}_access): Test #ifndef HAVE_SETRE[GU]ID, not
2301 #ifdef POSIX || USG. SunOS 4.1 is supposedly POSIX.1 compliant,
2302 but its set[gu]id functions aren't; its setre[gu]id functions work.
2304 * misc.c ({user,make,child}_access): Give name of caller in error msgs.
2306 * job.c (load_too_high): Say "cannot enforce load limit" in error msg.
2308 * configure.in: Call AC_PROG_CC.
2309 * compatMakefile (CC): Define to @CC@ (autoconf magic).
2311 * compatMakefile: Add .NOEXPORT magic target.
2313 Mon Jan 4 17:00:03 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2315 * main.c (print_version): Updated copyright to include 93.
2317 Thu Dec 31 12:26:15 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2319 * make.h [_AIX]: Don't declare alloca.
2321 Tue Dec 29 13:45:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2325 * compatMakefile (objs): Add signame.o.
2326 (srcs): Add signame.[ch].
2328 * compatMakefile (srcs): Add config.h.in.
2329 (remote.o): Add -I. before -I$(srcdir).
2331 Mon Dec 28 15:51:26 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2335 * read.c (readline): Fatal when LEN==0, indicating a line starting
2337 (readline): Take new arg LINENO, for use in error msg.
2338 (read_makefile, do_define): Pass it.
2340 * compatMakefile (glob/libglob.a): Pass -DHAVE_CONFIG_H in CPPFLAGS.
2341 (.c.o): Add -I. before -I$(srcdir).
2343 Wed Dec 23 12:12:04 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2345 * read.c (read_makefile): Accept and ignore a rule with no targets.
2347 * compatMakefile (ALLOCA_SRC): New variable.
2348 (srcs): Include its value.
2350 * read.c (struct conditional): Renamed member `max_ignoring' to
2351 `allocated'; added new member `seen_else'.
2352 (conditional_line): Initialize seen_else flag when starting an `if...';
2353 set it when we see an `else'; fatal if set when we see `else'.
2354 (read_makefile): Fatal "missing `endif'" if there are any pending
2355 conditionals, not just if we are still ignoring.
2357 Tue Dec 22 15:36:28 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2359 * compatMakefile (manext): Set to 1, not l.
2360 ($(mandir)/$(instname).$(manext)): Use $(srcdir) for make.man in cmds.
2362 * file.c (file_hash_enter): Don't call uniquize_deps here.
2363 * read.c (record_files): Likewise.
2364 * implicit.c (pattern_search): Likewise.
2365 * commands.c (set_file_variables): Call it only here.
2367 * default.c (default_variables) [__convex__]: FC=fc.
2369 * variable.c (target_environment): Expand the values of recursively
2370 expanded variables when putting them into the environment.
2371 * expand.c (recursively_expand): Made global.
2372 * make.h (recursively_expand): Declare it.
2374 * remake.c (check_dep): Set FILE->command_state to cs_deps_running
2375 when a dep's command_state is cs_running or cs_deps_running.
2377 * read.c (read_makefile): Changed error msg for spurious cmds to
2378 not say "first target".
2380 Sun Dec 20 17:56:09 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
2382 * configure.in: Do AC_CONFIG_HEADER right after AC_INIT.
2383 * make.h (HAVE_CONFIG_H): #include "config.h", then #define this.
2384 * compatMakefile (config.h, configure, config.h.in): New rules.
2385 (defines): Removed @DEFS@.
2387 Thu Dec 17 16:11:40 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2389 * compatMakefile (realclean): Just depend on distclean; no cmds.
2390 (distclean): Do what realclean did before; also remove Makefile and
2391 config.h; don't remove configure.
2392 (info, dvi): New targets; depend on make.{info,dvi}.
2393 (doc): Removed target.
2394 (MAKEINFO, TEXI2DVI): New vars.
2395 (make.info, make.dvi): Use them instead of explicit cmds.
2397 Wed Dec 16 16:25:24 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2399 * configure.in: Added fcntl.h to AC_HAVE_HEADERS. getloadavg cares.
2401 Wed Dec 9 15:21:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2403 * main.c (long_option_aliases): Add --new-file alias for -W.
2405 * default.c (default_variables): Change all C++ to CXX and C++FLAGS
2408 * read.c (do_define): Expand the variable name before using it.
2410 * main.c (main): Define variable "MAKE_COMMAND" to argv[0];
2411 define "MAKE=$(MAKE_COMMAND) $(MAKEOVERRIDES)" always.
2413 * remake.c (library_search): Search for libNAME.a in cwd; look in
2414 vpath before looking in standard dirs, not after.
2415 Changed order of std dirs to: /lib, /usr/lib, ${prefix}/lib.
2417 Mon Nov 23 14:57:34 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2419 * default.c (default_pattern_rules, default_terminal_rules): Added
2420 brackets around initializers.
2422 * variable.c (try_variable_definition): Don't check for LINE[0]=='\t'.
2423 (try_variable_definition): Expand the name before defining the var.
2425 * job.c (init_siglist): Removed function.
2426 Removed decl of `sys_siglist'.
2427 * make.h [! HAVE_SYS_SIGLIST]: #include "signame.h".
2428 [HAVE_SYS_SIGLIST && !SYS_SIGLIST_DECLARED]: Declare sys_siglist
2429 only under these conditions.
2430 * main.c (main): Don't declare init_siglist.
2431 (main) [! HAVE_SYS_SIGLIST]: Call signame_init instead of init_siglist.
2433 Wed Nov 18 14:52:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2435 * read.c (record_files): Don't try to append to FIRSTDEPS if it's
2436 nil; instead just set it to MOREDEPS.
2438 Mon Nov 16 17:49:17 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2440 * vpath.c (construct_vpath_list): Initialize P to DIRPATH before
2441 loop that sets MAXELEM.
2443 Fri Nov 13 18:23:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2447 Thu Nov 12 15:45:31 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2449 * job.c (start_job_command): Under -n, increment files_remade after
2450 processing (i.e., printing) all command lines.
2452 Tue Nov 10 15:33:53 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2454 * read.c (record_files): Append new deps if this rule has no
2455 commands; prepend them to existing deps if this rule has no commands.
2457 * dir.c (open_dirstream): Return nil if DIR->contents->files is nil.
2459 * read.c (parse_file_seq): Removed last arg STRIP. Always strip `./'s.
2460 (read_makefile): Changed callers.
2461 * function.c (string_glob): Likewise.
2462 * rule.c (install_pattern_rule): Likewise.
2464 Mon Nov 9 17:50:16 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2466 * remake.c (files_remade): Made global.
2467 (notice_finished_file): Don't increment files_remade here; this
2468 function gets called in many situations where no remaking was in
2470 * job.c (reap_children): Do it here instead, when we know that
2471 actual commands have been run for the file.
2472 * make.h (files_remade): Declare it.
2474 Thu Nov 5 18:26:10 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2476 * vpath.c (construct_vpath_list): Allow blanks as well as colons to
2477 separate elts in the search path.
2479 * read.c (read_makefile): Don't fatal on extra tokens in `vpath'.
2480 The search path can contain spaces now.
2482 Tue Nov 3 20:44:32 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2484 * compatMakefile (check): New target; no-op.
2486 * file.c (file_hash_enter): Mod OLDHASH by FILE_BUCKETS after
2487 testing for OLDHASH==0 but before using the value.
2488 (rename_file): Don't mod OLDHASH by FILE_BUCKETS before passing it
2491 * file.c (rename_file): Notice when OLDFILE->cmds came from
2492 default.c, and don't try to print ->filename in that case.
2494 Sun Oct 25 01:48:23 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2496 * remake.c (update_file): Don't process F->also_make here.
2497 (notice_finished_file): Don't process FILE->also_make if no attempt
2498 to update FILE was actually made.
2499 Fixed to call f_mtime directly to refresh their modtimes.
2501 Sat Oct 24 22:08:59 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2503 * read.c (find_percent): Don't increment P again after skipping
2506 * expand.c (variable_expand): In call to patsubst_expand, don't
2507 find `%'s ourselves; let that function do it.
2509 * read.c (read_makefile: record_waiting_files): Don't call
2510 record_files if FILENAMES is nil.
2511 (read_makefile): All alternatives in the parsing, except for rule
2512 lines, fall through to the end of the loop. At the end of the
2513 loop, do record_waiting_files so we notice later spurious cmds.
2515 Fri Oct 23 15:57:37 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2517 * variable.c (define_automatic_variables): Free old value of SHELL
2518 before replacing it.
2520 Thu Oct 15 18:57:56 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2522 * compatMakefile (.c.o): Add -I$(srcdir)/glob to flags.
2524 * dir.c (open_dirstream): Cast return value to __ptr_t.
2526 * default.c (default_variables: "GET") [_IBMR2]: Use USG defn.
2528 * make.h (MAXPATHLEN): Moved out of #ifndef POSIX.
2529 (GET_PATH_MAX): Moved from #ifdef POSIX to #ifdef PATH_MAX #else.
2530 Define as (get_path_max ()).
2531 [! PATH_MAX] (NEED_GET_PATH_MAX): Define.
2532 [! PATH_MAX] (get_path_max): Declare fn.
2533 * misc.c [NEED_GET_PATH_MAX] (get_path_max): New function.
2535 Mon Oct 12 13:34:45 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2539 * job.c (sys_siglist): Only declare #ifndef SYS_SIGLIST_DECLARED.
2540 * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2541 SYS_SIGLIST_DECLARED.
2543 * dir.c (file_impossible): When initializing DIR->contents, set
2544 DIR->contents->dirstream to nil.
2546 * compatMakefile (GLOB): Define new variable.
2547 (objs): Use it, rather than glob/libglob.a explicitly.
2549 * read.c (parse_file_seq): When stripping "./", handle cases like
2550 ".///foo" and "./////".
2551 * file.c (lookup_file, enter_file): Likewise.
2553 Sun Oct 11 17:00:35 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2555 * dir.c (struct dirstream, {open,read}_dirstream): New
2556 data type and functions to read a directory sequentially.
2557 (init_dir): New function to hook it into glob.
2558 * main.c (main): Call init_dir.
2560 * compatMakefile (objs): Added glob/libglob.a.
2561 * configure.in: Remove code to test for glob.
2563 Fri Oct 9 12:08:30 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2565 * read.c (record_files): Generalized test for NAME pointing
2566 somewhere into F->name.
2568 * variable.c (define_variable_in_set): Free old value when replacing.
2570 * read.c (do_define): Free the linebuffer before returning.
2571 (record_files): When clearing .SUFFIXES deps, free their data.
2572 (multi_glob): Free OLD and its data when replacing it with results
2575 * commands.c (set_file_variables): Use alloca in place of xmalloc
2576 for temp space for $^, $?, et al.
2578 * dir.c (struct directory): New member `contents' replaces `files'
2580 (struct directory_contents): New type.
2581 (directories_contents): New hash table.
2582 (dir_struct_file_exists_p): Take a struct directory_contents.
2583 (dir_file_exists_p): Pass it the `contents' member of the dir found.
2584 (dir_struct_file_exists_p): Renamed to dir_contents_file_exists_p;
2585 made static. Return 0 if DIR is nil (meaning it couldn't be stat'd).
2586 (dir_file_exists_p, find_directory): Change all callers.
2587 (file_impossible): Use DIR->contents, initializing it if nil.
2588 (print_dir_data_base): Use DIR->contents, and print out device and
2589 inode numbers with each directory.
2591 * Changes for performance win from John Gilmore <gnu@cygnus.com>:
2592 * dir.c (DIRECTORY_BUCKETS): Increase to 199.
2593 (DIRFILE_BUCKETS): Decrease to 107.
2594 (find_directory): Allocate and zero a multiple of
2595 sizeof (struct dirfile *), not of sizeof (struct dirfile).
2596 (dir_struct_file_exists_p): New function, nearly all code from
2598 (dir_file_exists_p): Just call find_directory+dir_struct_file_exists_p.
2599 * vpath.c (selective_vpath_search): Remove redundant
2600 dir_file_exists_p call.
2602 * configure.in: Comment out glob check; always use our code.
2604 Fri Oct 2 19:41:20 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2606 * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2607 HAVE_SYS_SIGLIST; after doing #define sys_siglist _sys_siglist, we
2610 Wed Sep 30 19:21:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2612 * main.c (main): Don't do -w automatically if -s.
2614 Tue Sep 29 21:07:55 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2616 * main.c (printed_version): Move variable inside print_version.
2617 (print_version): Return immediately if printed_version is set.
2618 (die): Don't test printed_version here.
2619 (decode_switches): Under -v, do print_version before giving usage.
2620 (DESCRIPTION_COLUMN): New macro.
2621 (decode_switches): Use it when printing the usage message.
2622 Leave at least two spaces between options and their descriptions.
2624 Fri Sep 25 13:12:42 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2628 Wed Sep 16 16:15:22 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2630 * read.c (read_makefile): Save errno value from trying to open
2631 FILENAME, and restore it before erring; otherwise we get the errno
2632 value from the last elt of the search path.
2634 Tue Sep 15 15:12:47 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2636 * main.c (long_option_aliases): Add --stop for -S.
2638 * read.c (word1eq): Do strncmp before dereferencing someplace that
2639 may be out in space.
2641 Wed Sep 9 15:50:41 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2643 * remake.c (notice_finished_file): If all the command lines were
2644 recursive, don't do the touching.
2646 * job.c (start_job_command): Don't check for + here.
2647 * commands.c (chop_commands): Do it here instead.
2649 * default.c (default_terminal_rules): Prepend + to cmds for RCS.
2651 Wed Sep 2 17:53:08 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2653 * compatMakefile (objs): Include $(ALLOCA).
2655 * make.h [CRAY]: Move #define signal bsdsignal to before #includes.
2657 Thu Aug 27 17:45:43 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
2659 * read.c (default_include_directories): Add INCLUDEDIR first.
2660 * compatMakefile (includedir): Define.
2661 (defines): Add -D for INCLUDEDIR="$(includedir)".
2663 * read.c (read_makefile): Grok multiple files in `include';
2666 * remake.c (library_search): New function.
2667 (library_file_mtime): Remove function.
2668 (f_mtime): Use library_search instead of library_file_mtime.
2669 * compatMakefile (libdir): Define.
2670 (defines): Add -D for LIBDIR="$(libdir)".
2671 * make.texinfo (Libraries/Search): Document change.
2673 * file.c (rename_file): Fix file_hash_enter call with missing arg.
2675 Wed Aug 26 17:10:46 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2679 * main.c (main): Set command_state to cs_finished for temp files
2680 made for stdin makefiles.
2682 * main.c (decode_switches): Don't tell getopt to return non-option
2684 Ignore an argument of `-'.
2686 Thu Aug 20 13:36:04 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2688 * job.c (start_job_command): If (touch_flag && !RECURSIVE), ignore
2689 the command line and go to the next.
2690 (notice_finished_file): Under -t, touch FILE.
2691 * remake.c (remake_file): Don't touch it here.
2693 Wed Aug 19 16:06:09 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2695 * function.c (pattern_matches): Use temporary for strlen (WORD)
2696 instead of two function calls.
2698 * compatMakefile (LOAD_AVG): Remove variable and comments.
2700 Tue Aug 18 14:58:58 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2702 * make.texinfo (Running): Node renamed to `make Invocation'.
2704 Fri Aug 14 12:27:10 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2706 * arscan.c (ar_name_equal): Don't compare [MAX-3..MAX] if
2709 Thu Aug 13 17:50:09 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2713 * main.c: Don't #include <time.h>; make.h already does.
2715 Mon Aug 10 17:03:01 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2717 * implicit.c (pattern_search): Fixed copying of suffix when building
2720 * function.c (expand_function: `shell'): Make sure BUFFER is
2721 null-terminated before replacing newlines.
2723 * compatMakefile (mandir): Use man$(manext), not always manl.
2725 Sun Aug 2 01:42:50 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2727 * rule.c (new_pattern_rule): Not static.
2728 * rule.h: Declare it.
2730 * file.c (file_hash_enter): New function, most code from rename_file.
2731 (rename_file): Call it.
2732 * file.h (file_hash_enter): Declare it.
2736 Thu Jul 30 15:40:48 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2738 * main.c (decode_switches): Handle usage_and_exit when building
2739 long options vector.
2741 * default.c (default_terminal_rules): Make RCS rules use $(CHECKOUT,v).
2742 (default_variables): Define CHECKOUT,v (hairy).
2744 * make.h [!HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2745 sys_siglist to _sys_siglist.
2747 Sun Jul 26 16:56:32 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2749 * NEWS: Add header and tail copyright info like Emacs NEWS.
2751 * make.h [ANSI_STRING]: Don't #define index, rindex, bcmp, bzero,
2752 bcopy if already #define'd.
2753 [STDC_HEADERS] (qsort, abort, exit): Declare here.
2754 [! __GNU_LIBRARY__ && !POSIX]: Not here.
2756 * make.h [_AIX]: #pragma alloca first thing.
2758 * job.c (start_waiting_job): Set the command_state to cs_running
2759 when we queue a job on waiting_jobs.
2761 Fri Jul 24 02:16:28 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2763 * variable.c (define_automatic_variables): Use "" instead of nil
2766 Thu Jul 23 22:31:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2770 * main.c (struct command_switch.type): Add alternative usage_and_exit.
2771 (command_switches): Add -h/--help.
2773 Thu Jul 16 14:27:50 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2775 * GNUmakefile (make-$(version).tar.Z): Include NEWS, not CHANGES.
2776 * README.template: Mention NEWS.
2777 * CHANGES: Renamed to NEWS.
2779 * main.c [! STDC_HEADERS] [sun]: Don't declare exit.
2781 Tue Jul 14 18:48:41 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2783 * main.c (main): Set -o files' command_states to cs_finished.
2785 * rule.c (count_implicit_rule_limits): Decrement num_pattern_rules
2786 when tossing a rule.
2788 * main.c (main): Use alloca only in simple local var assignment,
2789 for braindead SGI compiler.
2791 * rule.c (print_rule_data_base): Barf if num_pattern_rules is
2792 inconsistent with the number computed when listing them.
2794 Mon Jul 13 17:51:53 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2796 * commands.c (set_file_variables): For $? and $^ elts that are archive
2797 member refs, use member name only.
2799 Fri Jul 10 00:05:04 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2801 * variable.h (struct variable.export): Add new alternative v_ifset.
2802 * variable.c (target_environment): Check for it.
2803 (define_automatic_variables): Set it for MAKEFILES.
2805 Thu Jul 9 21:24:28 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2807 * compatMakefile (objs): Remove getloadavg.o; $(extras) gets it.
2808 (remote.o): Use $(srcdir)/remote.c, not $remote.c<.
2809 (distclean, mostlyclean): New targets.
2811 Tue Jul 7 19:12:49 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2815 * compatMakefile (config.status): Remove rule.
2817 * job.c (start_waiting_job): Free C after using C->file, not before.
2819 Sat Jul 4 20:51:49 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2821 * commands.c, job.c, main.c, make.h, remote-cstms.c: Use #ifdef
2822 HAVE_* instead of #ifndef *_MISSING.
2823 * configure.in: Use AC_HAVE_FUNCS instead of AC_MISSING_FUNCS (gone).
2825 Thu Jul 2 18:47:52 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2827 * main.c (main): makelevel>0 or -C implies -w.
2829 Tue Jun 30 20:50:17 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2831 * file.c, job.c, function.c: Don't #include <errno.h>.
2832 make.h: Do it here instead.
2833 * arscan.c (ar_member_touch): Don't declare errno.
2835 Thu Jun 25 17:06:55 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2837 * GNUmakefile (make-$(version).tar.Z): Depend on INSTALL, configure.in.
2839 * remake.c (update_file): If commands or deps are running after
2840 update_file_1 returns, break out of the :: rule (->prev) loop and
2843 * job.c (job_next_command): New function; code from start_job.
2844 (start_job_command): Renamed from start_job. Call job_next_command
2845 and recurse for empty command lines and -n.
2846 (start_waiting_job): Call start_job_command, not start_job.
2847 (new_job): Call job_next_command to prime the child structure, and
2848 then call start_waiting_job.
2849 (reap_children): Use job_next_command and start_job_command.
2850 (start_waiting_job): Call start_remote_job_p here, and store its
2851 result in C->remote. If zero, check the load average and
2852 maybe put C on waiting_jobs.
2853 (start_job_command): Test CHILD->remote rather than calling
2854 start_remote_job_p. Don't do load avg checking at all here.
2856 * main.c (main): Don't handle SIGILL, SIGIOT, SIGEMT, SIGBUS,
2857 SIGSEGV, SIGFPE or SIGTRAP.
2859 * compatMakefile (glob/libglob.a): Don't pass srcdir to sub-make.
2860 configure will set it in glob/Makefile.
2862 Wed Jun 24 19:40:34 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2864 * dir.c [DIRENT] (direct): Don't define to dirent.
2865 [! DIRENT] (direct): Define to dirent.
2866 (dir_file_exists_p): Use struct dirent instead of struct direct.
2868 * make.h (getcwd): No space between macro and ( for args!
2870 * job.c (start_job): Don't put the job on waiting_jobs if
2873 * make.texinfo (Missing): Shortened title.
2875 Tue Jun 23 18:42:21 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2877 * file.c (remove_intermediates): Print "rm" commands under -n.
2879 Mon Jun 22 16:20:02 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2883 Fri Jun 19 16:20:26 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2885 * arscan.c [M_UNIX]: #undef M_XENIX.
2887 Wed Jun 17 17:59:28 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2889 * default.c (default_terminal_rules): Put @ prefix on RCS cmds.
2891 Tue Jun 16 19:24:17 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2893 * compatMakefile (getloadavg.o): Removed special rule.
2894 (CFLAGS): Don't include $(defines).
2895 (.c.o): Define suffix rule.
2896 (glob/libglob.a): Pass CPPFLAGS=$(defines) to submake.
2897 (GETOPT_SRC, srcs, tagsrcs): Prefix files with $(srcdir)/.
2899 * arscan.c (ar_name_equal): Moved local vars inside #if'd block.
2901 * make.h (max): Removed.
2902 * expand.c (variable_buffer_output): Don't use it.
2904 * compatMakefile (INSTALL): Define.
2905 (Makefile): New rule to make from Makefile.in.
2908 (getloadavg.o, remote.o): Use autoconf $foo< hack.
2910 * commands.c (fatal_error_signal): Removed return.
2912 Mon Jun 15 17:42:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2916 * make.texinfo (Summary): New node.
2917 (Special Targets): Mention .EXPORT_ALL_VARIABLES here.
2919 * variable.c (max): Moved to make.h.
2921 * compatMakefile (objs, srcs): Added ar & arscan.
2923 * job.c (start_waiting_job): New function, 2nd half of new_job.
2925 (start_waiting_jobs): New function.
2926 * remake.c (update_goal_chain): Call start_waiting_jobs at the top
2928 * compatMakefile (objs, srcs): Removed load, added getloadavg.
2930 Fri Jun 12 19:33:16 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2932 * job.c (load_too_high): New function. Uses getloadavg.
2933 (waiting_jobs): New variable.
2934 (start_job): Don't call wait_to_start_job. Instead, if
2935 load_too_high returns nonzero, add the child to the
2936 `waiting_jobs' chain and return without starting the job.
2938 Thu Jun 11 00:05:28 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2940 * expand.c (variable_buffer_output): Made global again.
2941 * variable.h: And declare it.
2943 * arscan.c (PORTAR): Define for all systems if PORT5AR is not defined.
2944 (AR_NAMELEN, AR_TRAILING_SLASH): Removed.
2945 (ar_scan): Don't use it. Don't #ifdef AR_TRAILING_SLASH; just look
2946 for a slash in the archive at run time.
2947 (ar_name_equal): Rewrote .o hacking to not use AR_NAMELEN, and to
2948 cope with trailing-slash and non-trailing-slash archives.
2950 * main.c (main) [! SETVBUF_REVERSED]: Test this instead of USGr3 et al.
2951 [SETVBUF_REVERSED]: Always allocate a buffer ourselves.
2953 * load.c (load_average) [sgi]: Use sysmp call.
2955 * compatMakefile (INSTALL_DATA, INSTALL_PROGRAM): Define.
2956 ($(bindir)/$(instname), $(mandir)/make.$(manext)): Use them.
2958 * make.h [HAVE_VFORK_H]: #include <vfork.h>.
2959 (vfork, VFORK_NAME): Don't define.
2960 * job.c (start_job): Use "vfork" in place of VFORK_NAME.
2962 * make.h [HAVE_LIMITS_H, HAVE_SYS_PARAM_H]: If #define'd, #include
2963 the each file. Rearranged PATH_MAX hacking.
2964 * job.c: Rearranged NGROUPS_MAX hacking.
2966 * remake.c (fstat, time): Don't declare.
2968 * compatMakefile (defines): Value is @DEFS@.
2969 (LOADLIBES): Value is @LIBS@.
2970 (extras): Value is @LIBOBJS@.
2971 (ARCHIVES, ARCHIVES_SRC, ALLOCASRC): Removed.
2972 * arscan.c, ar.c: Surround body with #ifndef NO_ARCHIVES.
2974 * misc.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl get*id.
2976 * make.h [GETCWD_MISSING]: Test instead of !USG && !POSIX et al.
2977 (getcwd): Just declare if present. If not, declare as a macro
2978 using getwd, and declare getwd.
2979 [PATH_MAX] (GET_PATH_MAX): #define to PATH_MAX.
2980 * main.c (main, log_working_directory): Use getcwd instead of getwd.
2982 * main.c (main) [SETLINEBUF_MISSING]: Test this instead of USG.
2984 * make.h (SIGHANDLER, SIGNAL): Removed.
2985 (RETSIGTYPE): Define if not #define'd.
2986 * main.c (main): Use signal in place of SIGNAL.
2988 * main.c [SYS_SIGLIST_MISSING]: Test instead of USG.
2990 * job.c (search_path) [GETGROUPS_MISSING]: Test instead of USG.
2991 [HAVE_UNISTD_H]: Test instead of POSIX to not decl getgroups.
2993 * main.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl chdir.
2994 [! STDC_HEADERS]: Test instead of !POSIX to decl exit & atof.
2996 * job.c (child_handler), commands.c (fatal_error_signal): Return
2997 RETSIGTYPE instead of int.
2998 * main.c (main): Declare fatal_error_signal and child_handler here
2999 to return RETSIGTYPE; removed top-level decl of former.
3001 * commands.c (fatal_error_signal), job.c (unblock_sigs, start_job),
3002 main.c [SIGSETMASK_MISSING]: Test this instead of USG.
3004 Wed Jun 10 22:06:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3006 * job.c [HAVE_WAITPID]: Test this instead of USG.
3007 [! HAVE_UNISTD_H]: Test this instead of !POSIX to declare misc fns.
3008 (GID_T): Don't #define.
3009 (search_path): Use gid_t instead of GID_T.
3010 [GETDTABLESIZE_MISSING, SYS_SIGLIST_MISSING, DUP2_MISSING]: Test
3011 these individually instead of USG for all.
3012 * make.h (ctime): Don't declare. #include time.h instead.
3013 [HAVE_UNISTD_H]: #include <unistd.h> and #define POSIX #ifdef
3015 * dir.c [__GNU_LIBRARY__] (D_NAMLEN): Define to use d_namlen member.
3016 * make.h [NEED_MEMORY_H]: Only include memory.h #ifdef this.
3018 * arscan.c: Removed #ifdef mess about string.h et al.
3019 Just #include make.h instead.
3020 * make.h (fstat, atol): Declare.
3022 * commands.c (fatal_error_signal): Don't use sigmask to check for
3023 propagated signals; use ||s instead.
3024 (PROPAGATED_SIGNAL_MASK): Removed.
3025 (fatal_error_signal) [POSIX]: Use sigprocmask in place of sigsetmask.
3027 * variable.c (variable_buffer, variable_buffer_length,
3028 initialize_variable_output, variable_output): Moved to expand.c;
3030 (struct output_state, save_variable_output,
3031 restore_variable_output): Removed.
3032 * expand.c (initialize_variable_output): Put a NUL at the beginning
3033 of the new buffer after allocating it.
3034 (allocated_variable_expand_for_file): Don't use
3035 {save,restore}_variable_output. Do it by hand instead, keeping
3036 state on the stack instead of malloc'ing it.
3037 (allocated_variable_expand): Removed.
3038 * variable.h (allocated_variable_expand): Define here as macro.
3039 (variable_buffer_output, initialize_variable_output,
3040 save_variable_output, restore_variable_output): Removed decls.
3042 * read.c (conditional_line): For an if cmd, if any elt of the
3043 conditionals stack is ignoring, just push a new level that ignores
3044 and return 1; don't evaluate the condition.
3046 Thu Jun 4 21:01:20 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3048 * main.c (main): Put #ifdef's around frobbing SIGSYS and SIGBUS.
3050 * job.c (getdtablesize): Don't declare or #define if already #define'd.
3052 Wed Jun 3 23:42:36 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3054 * file.c (snap_deps): If `.EXPORT_ALL_VARIABLES' is a target, set
3055 export_all_variables.
3056 * make.texinfo (Variables/Recursion): Document .EXPORT_ALL_VARIABLES.
3058 Tue Jun 2 21:08:35 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3062 * commands.c (set_file_variables): Calculate length for ^D and ?D
3063 individually, making sure to give them at least enough space for "./".
3065 * make.h [CRAY]: #define signal to bsdsignal.
3067 * default.c (default_variables) [CRAY]: Define PC, SEGLDR,
3068 CF77PPFLAGS, CF77PP, CFT, CF, and FC.
3070 * arscan.c (AR_HDR_SIZE): Define to sizeof (struct ar_hdr), if it
3071 wasn't defined by <ar.h>.
3073 Thu May 28 00:56:53 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3077 Tue May 26 01:26:30 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3079 * rule.c (new_pattern_rule): Initialize LASTRULE to nil, not
3082 Mon May 25 19:02:15 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3084 * main.c (decode_switches): Initialize all the long_option elt members.
3086 Thu May 21 16:34:24 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
3088 * make.texinfo (Text Functions): Correct filter-out description.
3090 Tue May 19 20:50:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3092 * compatMakefile (realclean): Don't remove backup files.
3094 * main.c (decode_switches): Allocate ARGC+1 elts in `other_args'.
3096 Sun May 17 16:38:48 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
3100 Thu May 14 16:42:33 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
3102 * job.c (reap_children): Don't die if wait returns EINTR.
3104 Wed May 13 18:28:25 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3106 * job.c (reap_children): Always run the next command for a
3107 successful target. If we are going to die, we don't want to leave
3108 the target partially made.
3110 Tue May 12 00:39:19 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
3112 * job.c (construct_command_argv_internal): After loop, if we only
3113 have one word, check it for being a shell command.
3115 * main.c (decode_switches): Allocate ARGC slots in other_args to
3116 begin with, so we never need to worry about growing it.
3117 If we get a non-option arg and POSIXLY_CORRECT is in the
3118 environment, break out of the loop. After the loop, add all remaining
3119 args to other_args list.
3121 * main.c (decode_switches): For positive_int and floating switches
3122 when optarg is nil, use next arg if it looks right (start with a
3123 digit, or maybe decimal point for floating).
3125 * variable.c (define_automatic_variables): Always set SHELL to
3126 default if it comes from the environment. Set its export bit.
3127 * make.texinfo (Environment): Document change.
3129 Mon May 11 00:32:46 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
3133 * compatMakefile (tags, TAGS): Use vars for cmds.
3134 (ETAGS, CTAGS): Define.
3136 * main.c (decode_switches): If a switches elt has a nil long_name,
3137 make the long option name elt be "".
3138 Fixed loop to not ignore all the options.
3140 * make.texinfo (Option Summary): Added long options.
3142 * main.c (switches): Changed -m's description to "-b".
3143 (decode_switches): When printing the usage message, don't print
3144 switches whose descriptions start with -.
3145 When constructing the list of names for switch -C, search the
3146 switches vector for switches whose descriptions are "-C".
3148 * main.c (switches): Call -S --no-keep-going, not --dont-keep-going.
3149 Call -I --include-dir, not --include-path.
3150 (long_option_aliases): Added --new == -W, --assume-new == -W,
3151 --assume-old == -o, --max-load == -l, --dry-run == -n, --recon == -n,
3154 * main.c (switches): Removed bogus "silent" elt.
3155 (long_option_aliases): Define new var.
3156 (decode_switches): Add long_option_aliases onto the end of the long
3157 options vector created for getopt_long.
3158 Look through long_option_aliases for extra names to list
3161 Sat May 9 00:21:05 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3163 * main.c (log_working_directory): Fixed to properly not print the
3164 leaving message when we haven't printed the entering message.
3166 Fri May 8 21:55:35 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3168 * main.c (struct command_switch): Added elts `long_name',
3169 `description', and `argdesc'.
3170 (switches): Added initializers for new members.
3171 (decode_switches): Rewritten to use getopt_long.
3172 * compatMakefile (GETOPT, GETOPT_SRC): Define.
3173 (objs, srcs): Include them.
3175 * job.c (child_died): Renamed to dead_children; made static.
3176 (child_handler): Increment dead_children instead of setting child_died.
3177 (reap_children): Decrement dead_children instead of clearing
3178 child_died. The point of all this is to avoid printing "waiting
3179 for unfinished jobs" when we don't actually need to block.
3180 This happened when multiple SIGCHLDs before reap_children was called.
3182 * job.c (reap_children): If ERR is set, so we don't call start_job
3183 on the child being reaped, instead set its command_state to
3185 (reap_children, child_handler, new_job): I added several
3186 debugging printf's while fixing this. I left them in if (debug_flag)
3187 because they may be useful for debugging this stuff again.
3189 Wed May 6 22:02:37 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
3191 * read.c (read_makefile): v_export is not 1.
3193 Mon May 4 17:27:37 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3197 * variable.c (export_all_variables): New variable.
3198 (target_environment): Export variables whose `export' member is
3199 v_default if export_all_variables is set and their names are benign.
3200 * variable.h: Declare export_all_variables.
3201 * read.c (read_makefile): If export or unexport is given with no
3202 args, set or clear export_all_variables, respectively.
3204 * variable.c (target_environment): Exclude MAKELEVEL in the loop,
3205 so it isn't duplicated when we add it at the end.
3207 Sun May 3 17:44:48 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3211 * variable.h (struct variable): Added new member `export'.
3212 * variable.c (define_variable_in_set): Initialize it to v_default.
3213 (target_environment): Don't check for .NOEXPORT.
3214 Export variables whose `export' member is v_default and that would
3215 have been exported under .NOEXPORT, and variables whose `export'
3217 (try_variable_definition): Return the variable defined.
3218 * variable.h (try_variable_definition): Changed decl.
3219 * read.c (read_makefile): Recognize `export' and `unexport' directives.
3221 Fri May 1 11:39:38 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
3223 * main.c (main) [POSIX]: Reversed args to sigaddset.
3225 Thu Apr 30 17:33:32 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3227 * job.c [POSIX || !USG] (unblock_sigs): New fn.
3228 (start_job): Block signals before forking.
3229 (new_job): Unblock signals after putting the new child on the chain.
3230 * main.c (main) [POSIX]: Use sigset_t fatal_signal_set instead of
3231 int fatal_signal_mask.
3233 * load.c [sgi] (LDAV_CVT): Define.
3235 Wed Apr 29 17:15:59 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
3239 * load.c (load_average) [sgi]: Clear the high bit of the address
3240 from the symbol table before looking it up in kmem.
3242 * misc.c (fatal, makefile_fatal): Put *** in fatal error messages.
3243 (remake_file): No longer needed in message here.
3245 * main.c (die): Call reap_children with BLOCK==1.
3247 Tue Apr 28 20:44:35 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
3249 * rule.c (freerule): Don't set LASTRULE->next if LASTRULE is nil.
3251 Sun Apr 26 15:09:51 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
3253 * rule.c (count_implicit_rule_limits): Initialize LASTRULE to nil,
3254 not to head of chain. Extract next ptr before we might do
3255 freerule, and use that for next iteration.
3256 (freerule): Still do next ptr frobbing if LASTRULE is nil.
3258 Tue Apr 21 03:16:29 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3260 * job.c (child_error): Removed extra %s from error msg format.
3264 * job.c (reap_children): Don't start later commands in a sequence
3267 * job.c (new_job): Always call reap_children with BLOCK==0 first thing.
3269 * job.c (reap_children): New function; work that used to be done in
3271 (child_died): New global var.
3272 (child_handler): Now just sets child_died.
3273 (wait_for_children): Removed.
3274 (unknown_children_possible, block_signals, unblock_signals,
3275 push_signals_blocked_p, pop_signals_blocked_p): Removed.
3276 (child_execute_job): Removed call to unblock_signals.
3277 (new_job): Removed calls to push_signals_blocked_p and
3278 pop_signals_blocked_p.
3279 * job.h: Declare reap_children, not wait_for_children.
3280 * commands.c (fatal_error_signal), job.c (new_job),
3281 load.c [LDAV_BASED] (wait_to_start_job), main.c (die),
3282 remake.c (update_goal_chain), function.c (expand_function: `shell'):
3283 Changed wait_for_children calls to reap_children.
3284 Some needed to be loops to wait for all children to die.
3285 * commands.c (fatal_error_signal), main.c (main,
3286 log_working_directory), function.c (expand_function): Removed calls
3287 to push_signals_blocked_p and pop_signals_blocked_p.
3288 * job.h: Removed decls.
3290 * job.h: Added copyright notice.
3292 Wed Apr 15 02:02:40 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3294 * job.c (child_error): No *** for ignored error.
3296 Tue Apr 14 18:31:21 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3298 * implicit.c (DEBUGP2): Use do ... while (0) instead of if ... else to
3299 avoid compiler warnings.
3301 * read.c (parse_file_seq): Don't remove ./ when it is followed by a
3304 Mon Apr 13 21:56:15 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3306 * make.h (DEBUGPR): Use do ... while (0) instead of if ... else to
3307 avoid compiler warnings.
3309 * remake.c (notice_finished_file): Run file_mtime on the also_make
3310 files, so vpath_search can happen.
3312 * GNUmakefile (tests): Use perl test suite from csa@sw.stratus.com.
3313 (alpha-files): Include test suite tar file.
3315 Fri Apr 3 00:50:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3319 Wed Apr 1 05:31:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3321 * remake.c (update_file, update_file_1): Do check_renamed on elts
3322 of dep chains when traversing them. Something unrelated might have
3323 renamed one of the files the dep chain points to.
3325 * file.c (rename_file): If FILE has been renamed, follow its
3326 `renamed' ptr, so we get to the final real FILE. Using the renamed
3327 ones loses because they are not in the hash table, so the removal
3328 code loops infinitely.
3330 * read.c (read_all_makefiles): Clobber null terminator into
3331 MAKEFILES expansion, so string passed to read_makefile is properly
3334 Mon Mar 30 20:18:02 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3336 * commands.c (set_file_variables): $* for archive member with
3337 explicit cmds is stem of member, not of whole `lib(member)'.
3339 Thu Mar 26 15:24:38 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
3343 Tue Mar 24 05:20:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3345 * rule.c (new_pattern_rule): Rules are identical only if all their
3346 targets match (regardless of order).
3348 Wed Mar 11 13:49:54 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3350 * remake.c (remake_file): Changed error "no way to make" to "no
3351 rule to make". Fiat Hugh.
3353 * make.texinfo (Last Resort): Describe %:: rules and new .DEFAULT
3356 * remake.c (update_file_1): Only use .DEFAULT cmds if FILE is not a
3359 Tue Mar 10 18:13:13 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
3361 * remote-stub.c, remote-cstms.c (start_remote_job): Take new arg,
3362 environment to pass to child.
3363 * job.c (start_job): Pass it.
3365 Mon Mar 9 19:00:11 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3367 * file.c (enter_file): Also strip ./s here, to get command-line
3370 * remote-cstms.c: Add comment telling people to leave me alone.
3372 * compatMakefile (manpage install): Remove target before copying.
3374 Tue Mar 3 18:43:21 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3376 * make.texinfo (Missing): Renamed to "Incompatibilities and ...".
3377 Added paragraph describing $? incompatibility with Unix and POSIX.2.
3379 Sun Mar 1 15:50:54 1992 Roland McGrath (roland@nutrimat.gnu.ai.mit.edu)
3381 * function.c (expand_function: `shell'): Don't declare fork or pipe.
3382 Use vfork instead of fork.
3384 Tue Feb 25 22:05:32 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
3386 * make.texinfo (Chained Rules): Clarify .PRECIOUS to save
3389 * load.c [sun] (LDAV_CVT): Define to divide by FSCALE.
3391 Sun Feb 16 02:05:16 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
3395 Sat Feb 15 17:12:20 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
3397 * compatMakefile (makeinfo): Use emacs batch-texinfo-format fn.
3399 Fri Feb 14 00:11:55 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
3401 * read.c (read_makefile): Correctly handle define & endef in ifdefs.
3403 * read.c (record_files): Pass arg for %s in error msg.
3405 * main.c (main) [__IBMR2, POSIX]: Use correct (a la USGr3) setvbuf
3408 Wed Feb 12 12:07:39 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
3410 * make.texinfo (Libraries/Search): Say it does /usr/local/lib too.
3412 Sun Feb 9 23:06:24 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3414 * read.c (read_makefile): Check for extraneous `endef' when ignoring.
3416 Thu Feb 6 16:15:48 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3420 Tue Feb 4 20:04:46 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3422 * job.c (construct_command_argv_internal): Correctly ignore
3423 whitespace after backslash-NL.
3425 Fri Jan 31 18:30:05 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3427 * compatMakefile: Ignore errors from chgrp and chmod when installing.
3429 Wed Jan 29 18:13:30 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
3431 * main.c (main): When setting MAKELEVEL in the env to re-exec,
3432 allocate space so as not to clobber past the end of the old string.
3434 * make.h [HAVE_ALLOCA_H]: Include <alloca.h>
3435 * compatMakefile (defines): Document HAVE_ALLOCA_H.
3437 Mon Jan 20 13:40:05 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
3439 * make.h [VFORK_MISSING]: Use fork instead.
3440 * compatMakefile (defines): Document same.
3442 * job.c (construct_command_argv_internal): Don't create an empty
3443 arg if backslash-NL is at beginning of word.
3445 Sun Jan 19 16:26:53 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
3447 * main.c [DGUX]: Call setvbuf as for USGr3.
3449 * job.c (construct_command_argv_internal): Notice correctly that
3450 backslash-NL is the end of the arg (because it is replaced with a
3453 Thu Jan 16 18:42:38 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
3455 * job.c (construct_command_argv_internal): If SHELL is nil, set it
3456 to default_shell before proceeding.
3458 * make.h [sgi]: No alloca.h, after all.
3460 Wed Jan 15 12:30:04 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
3462 * read.c (multi_glob): Cons up the chain of the results of glob
3463 from back to front, so it comes out in forward order.
3465 * job.c (construct_command_argv_internal): Don't eat char following
3468 Mon Jan 13 19:16:56 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
3472 * default.c (default_variables) [ultrix]: GET=get, like USG.
3474 * job.c (construct_command_argv_internal): Remove tabs following
3475 backslash-NL combos in the input line, so they don't show up when
3476 that line is printed.
3478 * read.c (read_makefile): Don't collapse_continuations the line on
3479 input; do it on the copy we do remove_comments on.
3480 For rule lines, collapse_continuations the line after chopping
3481 ";cmds" off the end, so we don't eat conts in the cmds.
3482 Give error for ";cmds" with no rule.
3483 * job.c (construct_command_argv_internal): Eat backslash-NL combos
3484 when constructing the line to recurse on for slow, too.
3486 Sat Jan 11 02:20:27 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
3488 * file.c (enter_file): Don't strip leading `./'s.
3489 * read.c (parse_file_seq): Take new arg STRIP; if nonzero, do it here.
3490 * default.c (set_default_suffixes), function.c (string_glob),
3491 read.c (read_makefile), rule.c (install_pattern_rule): Change callers.
3493 * default.c (default_variables) [_IBMR2]: FC=xlf
3495 * job.c (construct_command_argv_internal): Turn backslash-NL and
3496 following whitespace into a single space, rather than just eating
3499 * make.texinfo (Copying): @include gpl.texinfo, rather than
3500 duplicating its contents.
3502 Fri Nov 8 20:06:03 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3504 * job.c (construct_command_argv_internal): Make sure not to bother
3505 processing an empty line.
3509 * job.c (construct_command_argv_internal): Always recurse for slow;
3510 simple case didn't handle finding newlines.
3512 Tue Nov 5 18:51:10 1991 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
3514 * job.c (construct_command_argv_internal): Set RESTP properly when
3515 slow; don't \ify past a newline.
3517 Fri Nov 1 19:34:28 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3519 * make.h [sgi]: #include <alloca.h>.
3523 See ChangeLog.1 for earlier changes.