1 Thu Apr 27 12:39:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
5 Wed Apr 26 17:15:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
7 * file.c (remove_intermediates): Fix inverted test to bail under
8 -n for signal case. Bail under -q or -t.
9 Skip files with update_status==-1.
11 * job.c (job_next_command): Skip empty lines.
12 (new_job): Don't test the return of job_next_command.
13 Just let start_waiting_job handle the case of empty commands.
15 Wed Apr 19 03:25:54 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
17 * function.c [__MSDOS__]: Include <fcntl.h>. From DJ Delorie.
21 Sat Apr 8 14:53:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
23 * remake.c (notice_finished_file): Set FILE->update_status to zero
26 Wed Apr 5 00:20:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
28 * Version 3.73 released.
30 Tue Mar 28 13:25:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
32 * main.c (main): Fixed braino in assert.
36 Mon Mar 27 05:29:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
38 * main.c: Avoid string in assert expression. Some systems are broken.
40 Fri Mar 24 00:32:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
42 * main.c (main): Handle 1 and 2 returns from update_goal_chain
43 makefile run properly.
47 * main.c (handle_non_switch_argument): New function, broken out of
49 (decode_switches): Set optind to 0 to reinitialize getopt, not to 1.
50 When getopt_long returns EOF, break the loop and handle remaining args
51 with a simple second loop.
53 * remake.c (remake_file): Set update_status to 2 instead of 1 for
54 no rule to make. Mention parent (dependent) in error message.
55 (update_file_1): Handle FILE->update_status == 2 in -d printout.
56 * job.c (start_job_command, reap_children): Set update_status to 2
57 instead of 1 for failed commands.
59 Tue Mar 21 16:23:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
61 * job.c (search_path): Function removed (was already #if 0'd out).
62 * configure.in: Remove AC_TYPE_GETGROUPS; nothing needs it any more.
64 Fri Mar 17 15:57:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
66 * configure.bat: Write @CPPFLAGS@ translation.
68 Mon Mar 13 00:45:59 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
70 * read.c (parse_file_seq): Rearranged `l(a b)' -> `l(a) l(b)' loop
71 to not skip the elt immediately preceding `l(...'.
73 Fri Mar 10 13:56:49 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
77 * read.c (find_char_unquote): Make second arg a string of stop
78 chars instead of a single stop char. Stop when any char in the
79 string is hit. All callers changed.
80 (find_semicolon): Pass stop chars "#;" to one find_char_unquote call,
81 instead of using two calls. If the match is not a ; but a #,
83 * misc.c: Changed find_char_unquote callers here too.
87 * read.c (read_makefile, parse_file_seq): Fix typo __MS_DOS__ ->
90 * GNUmakefile (globfiles): Add glob/configure.bat.
91 (distfiles): Add configh.dos, configure.bat.
93 Wed Mar 8 13:10:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
95 Fixes for MS-DOS from DJ Delorie.
96 * read.c (read_makefile, parse_file_seq) [__MS_DOS__]: Don't see :
97 as separator in "C:\...".
98 * configh.dos (STDC_HEADERS): Define only if undefined.
99 (HAVE_SYS_PARAM_H): Don't define this.
100 (HAVE_STRERROR): Define this.
101 * job.c (construct_command_argv_internal) [__MSDOS__]: Fix typos.
105 * main.c (decode_switches): Reset optind to 1 instead of 0.
107 Tue Mar 7 17:31:06 1995 Roland McGrath <roland@geech.gnu.ai.mit.edu>
109 * main.c (decode_switches): If non-option arg is "-", ignore it.
111 Mon Mar 6 23:57:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
115 Wed Feb 22 21:26:36 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
119 Tue Feb 21 22:10:43 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
121 * main.c (main): Pass missing arg to tmpnam.
123 * configure.in: Check for strsignal.
124 * job.c (child_error): Use strsignal.
125 * main.c (main): Don't call signame_init #ifdef HAVE_STRSIGNAL.
127 * misc.c (strerror): Fix swapped args in sprintf.
129 Mon Feb 13 11:50:08 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
131 * configure.in (CFLAGS, LDFLAGS): Don't set these variables.
133 Fri Feb 10 18:44:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
135 * main.c (print_version): Add 95 to copyright years.
139 * job.c (start_job_command): Remember to call notice_finished_file
140 under -n when not recursing. To do this, consolidate that code
141 under the empty command case and goto there for the -n case.
143 Tue Feb 7 13:36:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
145 * make.h [! STDC_HEADERS]: Don't declare qsort. Sun headers
148 Mon Feb 6 17:37:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
150 * read.c (read_makefile): For bogus line starting with tab, ignore
151 it if blank after removing comments.
153 * main.c: Cast results of `alloca' to `char *'.
154 * expand.c: Likewise.
156 Sun Feb 5 18:35:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
160 * configure.in: Check for mktemp.
161 * main.c (main) [! HAVE_MKTEMP]: Use tmpnam instead of mktemp.
163 * configure.in (make_cv_sysconf_open_max): New check for `sysconf
165 * acconfig.h: Added #undef HAVE_SYSCONF_OPEN_MAX.
166 * job.c [HAVE_SYSCONF_OPEN_MAX] (getdtablesize): Define as macro
169 Fri Jan 27 04:42:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
171 * remake.c (update_file_1): When !MUST_MAKE, don't set
172 FILE->update_status to zero before calling notice_finished_file.
173 (notice_finished_file): Touch only when FILE->update_status is zero.
174 (remake_file): Set FILE->update_status to zero after not calling
175 execute_file_command and deciding to touch instead.
177 Thu Jan 26 01:29:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
179 * main.c (debug_signal_handler): New function; toggles debug_flag.
180 (main): Handle SIGUSR1 with that.
182 Mon Jan 16 15:46:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
184 * compatMakefile (realclean): Remove Info files.
186 Sun Jan 15 08:23:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
190 * job.c (start_job_command): Save and restore environ around vfork
192 (search_path): Function #if 0'd out.
193 (exec_command): Use execvp instead of search_path.
195 * expand.c (variable_expand): Rewrote computed variable name and
196 substitution reference handling to be simpler. First expand the
197 entire text between the parens if it contains any $s, then examine
198 the result of that for subtitution references and do no further
199 expansion while parsing them.
201 * job.c (construct_command_argv_internal): Handle " quoting too,
202 when no backslash, $ or ` characters appear inside the quotes.
204 * configure.in (union wait check): If WEXITSTATUS and WTERMSIG are
205 defined, just use int.
207 Tue Jan 10 06:27:27 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
209 * default.c (default_variables) [__hpux]: Remove special
210 definition of ARFLAGS. Existence of the `f' flag is not
211 consistent across HPUX versions; and one might be using GNU ar
214 * compatMakefile (clean): Don't remove Info files.
216 * compatMakefile (check): Remove gratuitous target declaration.
218 Sat Jan 7 11:38:23 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
220 * compatMakefile (ETAGS, CTAGS): Don't use -t.
222 * arscan.c (ar_name_equal) [cray]: Subtract 1 like [__hpux].
224 * main.c (decode_switches): For --help, print usage to stdout.
226 Mon Dec 5 12:42:18 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
230 * remake.c (update_file_1): Do set_command_state (FILE,
231 cs_not_started) only if old state was deps_running.
233 Mon Nov 28 14:24:03 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
235 * job.c (start_waiting_job): Use set_command_state.
237 * build.template (CPPFLAGS): New variable.
238 (prefix, exec_prefix): Set from @...@.
239 (compilation loop): Pass $CPPFLAGS to compiler.
241 * GNUmakefile (build.sh.in): Make it executable.
243 * GNUmakefile (globfiles): Add configure.in, configure.
247 * configure.in (AC_OUTPUT): Don't write glob/Makefile.
249 * configure.in (AC_CHECK_SYMBOL): Use AC_DEFINE_UNQUOTED.
251 * configure.in: Don't check for ranlib.
253 Tue Nov 22 22:42:40 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
255 * remake.c (notice_finished_file): Only mark also_make's as
256 updated if really ran cmds.
258 Tue Nov 15 06:32:46 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
260 * configure.in: Put dnls before random whitespace.
262 Sun Nov 13 05:02:25 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
264 * compatMakefile (CPPFLAGS): New variable, set from @CPPFLAGS@.
265 (RANLIB): Variable removed.
266 (prefix, exec_prefix): Set these from @...@.
267 (.c.o): Use $(CPPFLAGS).
268 (glob/libglob.a): Don't pass down variables to sub-make.
269 glob/Makefile should be configured properly by configure.
270 (distclean): Remove config.log and config.cache (autoconf stuff).
272 Mon Nov 7 13:58:06 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
274 * acconfig.h: Add #undef HAVE_UNION_WAIT.
275 * configure.in: Converted to Autoconf v2.
276 * dir.c: Test HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H instead
277 of DIRENT, SYSDIR, NDIR.
278 * build.sh.in (prefix, exec_prefix): Set these from @...@.
279 (CPPFLAGS): New variable, set from @CPPFLAGS@.
280 (compiling loop): Pass $CPPFLAGS before $CFLAGS.
281 * install.sh: File renamed to install-sh.
283 * main.c (define_makeflags): When no flags, set WORDS to zero.
285 Sun Nov 6 18:34:01 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
289 * main.c (define_makeflags): Terminate properly when FLAGSTRING is
292 Fri Nov 4 16:02:51 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
296 Tue Nov 1 01:18:10 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
300 * job.c (start_job_command): When ARGV is nil, only set
301 update_state and call notice_finished_file if job_next_command
304 * job.c (start_job_command): Call notice_finished_file for empty
307 Thu Oct 27 02:02:45 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
309 * file.c (snap_deps): Set COMMANDS_SILENT for .SILENT, not
312 Wed Oct 26 02:14:10 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
316 Tue Oct 25 22:49:24 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
318 * file.c (snap_deps): Set command_flags bits in all :: entries.
320 Mon Oct 24 18:47:50 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
322 * make.h (posix_pedantic): Declare it.
323 * main.c (main): Move checks .IGNORE, .SILENT, .POSIX to
325 * file.c (snap_deps): Check .IGNORE, .SILENT, .POSIX here instead
326 of in main. If .IGNORE has deps, OR COMMANDS_NOERROR into their
327 command_flags and don't set -i. Likewise .SILENT.
328 * job.c (start_job_command): In FLAGS initialization, OR in
329 CHILD->file->command_flags.
330 * file.h (struct file): New member `command_flags'.
332 Sun Oct 16 01:01:51 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
334 * main.c (switches): Bump flag values for --no-print-directory and
335 --warn-undefined-variables, so neither is 1 (which indicates a
338 Sat Oct 15 23:39:48 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
340 * main.c (main): Add missing code in .IGNORE test.
342 Mon Oct 10 04:09:03 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
344 * variable.c (define_automatic_variables): Define +D and +F.
346 Sat Oct 1 04:07:48 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
348 * main.c (main): Define hidden automatic variable with command
349 vars, and MAKEOVERRIDES to a reference to that.
350 (define_makeflags): If posix_pedantic, write a reference to that
353 Thu Sep 29 00:14:26 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
355 * main.c (posix_pedantic): New variable.
356 (main): Set posix_pedantic if .POSIX is a target.
357 Fix .IGNORE and .SILENT checks to require is_target.
359 * commands.c (set_file_variables): Define new automatic variable
360 $+, like $^ but before calling uniquize_deps.
362 * job.c (reap_children): Call delete_child_targets for non-signal
363 error if .DELETE_ON_ERROR is a target.
365 Tue Sep 27 01:57:14 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
369 Mon Sep 26 18:16:55 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
371 * job.c (reap_children): Don't change C->file->command_state when
372 dying. Test it only after calling start_job_command for a new
373 command line. When no more cmds, just set C->file->update_status.
374 (start_job_command): When the last line is empty or under -n, set
375 C->file->update_status.
376 (start_waiting_job): Grok cs_not_started after start_job_command
378 (new_job): Set C->file->update_status when there are no cmds.
379 (job_next_command): When out of lines, don't set
380 CHILD->file->update_status or CHILD->file->command_state.
382 * main.c (quote_as_word): Renamed from shell_quote. Take new arg;
383 if nonzero, also double $s.
384 (main): Define MAKEOVERRIDES from command_variables here.
385 (define_makeflags): Don't use command_variables here; instead write a
386 reference $(MAKEOVERRIDES) in MAKEFLAGS. Make vars recursive.
388 * dir.c [__MSDOS__]: Fixed typo.
390 * vpath.c (selective_vpath_search): Reset EXISTS when stat fails.
392 Sat Sep 10 03:01:35 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
394 * remake.c: Include <assert.h> and use assert instead of printfs
397 * main.c (decode_switches): Loop until optind hits ARGC, not just
398 until getopt_long returns EOF. Initialize C to zero before loop;
399 in loop if C is EOF, set optarg from ARGV[optind++], else call
401 (decode_env_switches): Use variable_expand instead of
402 allocated_variable_expand. Allocate a fresh buffer to copy split
403 words into; scan characters by hand to break words and
405 (shell_quote): New function.
406 (define_makeflags): Allocate doubled space for switch args, and command
407 variable names and values; use shell_quote to quote those things.
409 Fri Sep 9 01:37:47 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
413 * acconfig.h: Add HAVE_SYS_SIGLIST and HAVE__SYS_SIGLIST.
415 * main.c (decode_switches): The non-option return from getopt is
417 (command_variables): New type and variable.
418 (decode_switches, decode_env_switches): After making a variable
419 definition, record the struct variable pointer in the
420 command_variables chain.
421 (define_makeflags): If ALL, write variable definitions for
424 * main.c (other_args): Variable removed.
425 (goals, lastgoal): New static variables (moved from auto in main).
426 (main): Don't process OTHER_ARGS at all.
427 Don't set variable MAKEOVERRIDES at all; define MAKE to just
429 (init_switches): Prepend a - {return in order} instead of a +
431 (decode_switches): Don't set OTHER_ARGS at all.
432 Grok '\0' return from getopt_long as non-option argument; try
433 variable definition and (if !ENV) enter goal targets here.
434 (decode_env_switches): Use allocated_variable_expand to store value.
435 Use find_next_token to simplify word-splitting loop. Don't
436 prepend a dash to uninterpreted value. Instead, if split into
437 only one word, try variable definition and failing that prepend a
438 dash to the word and pass it to decode_switches as a single arg.
440 Wed Sep 7 03:02:46 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
442 * remake.c (notice_finished_file): Only recheck modtimes if
443 FILE->command_state was cs_running on entry (meaning the commands
445 (update_file_1): Whenever we set FILE->update_status, call
446 notice_finished_file instead of just set_command_state.
447 * job.c (start_job_command): Whenever we set
448 CHILD->file->update_status, call notice_finished_file instead of
449 just set_command_state.
451 Tue Sep 6 19:13:54 1994 Roland McGrath <roland@geech.gnu.ai.mit.edu>
453 * default.c: Add missing ".
455 * job.c: Changed all assignments of command_state members to calls
456 to set_command_state.
457 * remake.c: Likewise.
458 * file.c (set_command_state): New function.
459 * file.h: Declare set_command_state.
461 * main.c (init_switches): Put a + first in options.
463 Mon Jul 25 18:07:46 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
465 Merge MSDOS/GO32 port from DJ Delorie <dj@ctron.com>.
466 * vpath.c: Changed all uses of ':' to PATH_SEPARATOR_CHAR.
467 * main.c (directory_before_chdir): New variable, moved out of main
469 (main) [__MSDOS__]: Look for \ or : to delimit last component of
470 PROGRAM. Don't frob ARGV[0] before setting MAKE_COMMAND variable.
471 (die): Change back to `directory_before_chdir' before dying.
472 * make.h (PATH_SEPARATOR_CHAR): New macro; differing defns for
474 * job.c [__MSDOS__]: Include <process.h>.
475 [__MSDOS__] (dos_pid, dos_status, dos_bname, dos_bename,
476 dos_batch_file): New variables.
477 (reap_children) [__MSDOS__]: Don't call wait; just examine those vars.
478 (unblock_sigs) [__MSDOS__]: Do nothing.
479 (start_job_command) [__MSDOS__]: Use spawnvpe instead of vfork & exec.
480 (load_too_high) [__MSDOS__]: Always return true.
481 (search_path) [__MSDOS__]: Check for : or / in FILE to punt.
482 Use PATH_SEPARATOR_CHAR instead of ':'.
483 (construct_command_argv_internal) [__MSDOS__]: Wholly different
484 values for sh_chars and sh_cmds. Wholly new code to handle shell
486 * function.c (expand_function: `shell') [__MSDOS__]: Wholly new
488 * dir.c [__MSDOS__] (dosify): New function.
489 (dir_contents_file_exists_p) [__MSDOS__]: Call it on FILENAME and
490 process the result instead of FILENAME itself.
491 (file_impossible_p) [__MSDOS__]: Likewise.
492 * default.c [__MSDOS__]: Define GCC_IS_NATIVE.
493 (default_suffix_rules) [__MSDOS__]: Use `y_tab.c' instead of `y.tab.c'.
494 (default_variables) [GCC_IS_NATIVE]: Set CC and CXX to `gcc', YACC to
495 `bison -y', and LEX to `flex'.
496 * configure.bat, configh.dos: New files.
497 * commands.c (fatal_error_signal) [__MSDOS__]: Just remove
498 intermediates and exit.
500 * commands.c (set_file_variables): Add parens in length
501 computation in .SUFFIXES dep loop to quiet compiler warning. From
504 * read.c (read_makefile): Free FILENAME if we allocated it. From
507 Mon Jul 4 17:47:08 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
509 * misc.c (safe_stat): New function, EINTR-safe wrapper around stat.
510 * vpath.c (selective_vpath_search): Use safe_stat in place of stat.
511 * read.c (construct_include_path): Use safe_stat in place of stat.
512 * job.c (search_path): Use safe_stat in place of stat.
513 * dir.c (find_directory): Use safe_stat in place of stat.
514 * commands.c (delete_target): Use safe_stat in place of stat.
515 * arscan.c (ar_member_touch) [EINTR]: Do EINTR looping around fstat.
516 * remake.c (name_mtime): Use safe_stat in place of stat.
517 (touch_file) [EINTR]: Do EINTR looping around fstat.
519 Fri Jun 24 05:40:24 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
521 * read.c (read_makefile): Check for a shell command first, and
522 then strip leading tabs before further checking if it's not a
525 * make.h [__arm]: Undefine POSIX.
526 [!__GNU_LIBRARY__ && !POSIX && !_POSIX_VERSION]: Don't declare system
527 functions that return int.
529 * job.c (construct_command_argv_internal): After swallowing a
530 backslash-newline combination, if INSTRING is set goto string_char
531 (new label) for normal INSTRING handling code.
533 Sat Jun 4 01:11:20 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
535 * configure.in: Don't check for sys_siglist and _sys_siglist with
536 AC_HAVE_FUNCS. Instead use two AC_COMPILE_CHECKs.
538 Mon May 23 18:20:38 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
540 * Version 3.71.1 released.
542 * make.h [!__GNU_LIBRARY__ && !POSIX]: Also test #ifndef
543 _POSIX_VERSION for these declarations.
545 * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Remove bogus #ifndefs
546 around #undefs of HAVE_SETREUID and HAVE_SETREGID.
548 Sat May 21 16:26:38 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
550 * Version 3.71 released.
552 * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Don't test [HAVE_SETUID]
553 and [HAVE_SETGID]. Every system has those, and configure doesn't
556 * make.h [_POSIX_VERSION]: Don't #define POSIX #ifdef ultrix.
558 * compatMakefile (loadavg): Depend on and use loadavg.c instead of
560 (loadavg.c): Link or copy it from getloadavg.c.
561 (distclean): Remove loadavg.c.
563 Mon May 16 22:59:04 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
567 * misc.c [GETLOADAVG_PRIVILEGED] [! POSIX]: Undefine HAVE_SETEUID
570 * default.c (default_terminal_rules): In SCCS rules, put
571 $(SCCS_OUTPUT_OPTION) before $<. On some systems -G is grokked
572 only before the file name.
573 * configure.in (SCCS_GET_MINUS_G check): Put -G flag before file name.
575 Tue May 10 16:27:38 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
577 * job.c (construct_command_argv_internal): Swallow
578 backslash-newline combinations inside '' strings too.
580 Thu May 5 04:15:10 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
582 * read.c (do_define): Call collapse_continuations on each line
585 Mon Apr 25 19:32:02 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
587 * job.c (construct_command_argv_internal): Notice newline inside
588 '' string when RESTP is non-null.
590 Fri Apr 22 17:33:30 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
594 * remake.c (update_goal_chain): Reset FILE to G->file after the
595 double-colon loop so it is never null for following code.
597 * read.c (read_makefile): Fix `override define' parsing to skip
598 whitespace after `define' properly.
600 * compatMakefile (srcdir): Define as @srcdir@; don't reference
602 (glob/Makefile): New target.
604 Thu Apr 21 16:16:55 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
608 * misc.c (remove_comments): Use find_char_unquote.
609 * make.h (find_char_unquote): Declare it.
610 * read.c (find_char_unquote): New function, generalized from
612 (find_percent, find_semicolon, parse_file_seq): Use that.
614 Wed Apr 20 18:42:39 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
616 * implicit.c (pattern_search): Always allocate new storage for
617 FILE->stem. It is not safe to store STEM's address because it
618 might be auto storage.
620 * configure.in: Check for seteuid and setegid.
621 * misc.c [HAVE_SETEUID]: Declare seteuid.
622 [HAVE_SETEGID]: Declare setegid.
623 (make_access, user_access) [HAVE_SETEUID]: Use seteuid.
624 [HAVE_SETEGID]: Use setegid.
626 * remake.c (update_goal_chain): Set STATUS to FILE->update_status,
627 to preserve whether it's 2 for error or 1 for -q trigger. When
628 STATUS gets nonzero and -q is set, always stop immediately.
629 * main.c (main, decode_switches): Die with 2 for errors.
630 (main): Accept 2 return from update_goal_chain and die with that.
631 * misc.c (fatal, makefile_fatal): Die with 2; 1 is reserved for -q
633 * job.c (reap_children): Die with 2 for error.
634 (start_job_command): Set update_status to 2 for error. Set it to
635 1 when we would run a command and question_flag is set.
637 * read.c (read_makefile): Don't mark makefiles as precious. Just
638 like other targets, they can be left inconsistent and in need of
639 remaking by aborted commands.
641 * read.c (read_makefile): Write no error msg for -include file.
643 Tue Apr 5 05:22:19 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
645 * commands.c (fatal_error_signal): Don't unblock signals.
647 * file.h (struct file): Change member `double_colon' from flag to
649 * read.c (record_files): Set double_colon pointer instead of flag.
650 * main.c (main): When disqualifying makefiles for updating, use
651 double_colon pointer to find all entries for a file.
652 * file.c (enter_file): If there is already a double-colon entry
653 for the file, set NEW->double_colon to that pointer.
654 (file_hash_enter): Use FILE->double_colon to find all entries to
656 * remake.c (update_goal_chain): Do inner loop on double-colon entries.
657 (update_file): Use FILE->double_colon pointer to find all entries.
659 (notice_finished_file): Propagate mtime change to all entries.
661 * variable.c (try_variable_definition): Return after abort.
663 Fri Apr 1 18:44:15 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
665 * read.c (read_makefile): Remove unused variable.
666 (parse_file_seq): When removing an elt that is just `)', properly
667 fix up the previous elt's next pointer.
669 Mon Mar 28 18:31:49 1994 Roland McGrath (roland@mole.gnu.ai.mit.edu)
671 * configure.in: Do AC_SET_MAKE.
672 * GNUmakefile (Makefile.in): Edit MAKE assignment into @SET_MAKE@.
674 Fri Mar 4 00:02:32 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
676 * function.c (subst_expand): If BY_WORD or SUFFIX_ONLY is set and
677 the search string is the empty string, find a match at the end of
678 each word (using end_of_token in place of sindex).
680 * misc.c (end_of_token): Don't treat backslashes specially; you
681 can no longer escape blanks with backslashes in export, unexport,
682 and vpath. This was never documented anyway.
684 Thu Mar 3 23:53:46 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
686 * read.c (read_makefile): Variable name for `define' is not just
687 first token; use whole rest of line and strip trailing blanks.
689 Wed Feb 16 16:03:45 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
693 * read.c (read_makefile): Add -d msg stating args.
695 * read.c (read_makefile): Use isspace to skip over leading
696 whitespace, and explicitly avoid skipping over tabs. Don't want
697 to skip just spaces though; formfeeds et al should be skipped.
699 * default.c (default_variables) [__hpux]: Add f in ARFLAGS.
701 * arscan.c (ar_name_equal) [__hpux]: Subtract 2 instead of 1 from
702 sizeof ar_name for max length to compare.
704 * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Undefine HAVE_SETREUID
705 #ifdef HAVE_SETUID; likewise HAVE_SETREGID and HAVE_SETGID.
707 * main.c (main): Call user_access after setting `program', in case
708 it needs to use it in an error message.
710 * read.c (read_makefile): Ignore an empty line starting with a tab.
712 Thu Feb 10 21:45:31 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
714 * configure.in (AC_SYS_SIGLIST_DECLARED): Use this instead of
715 AC_COMPILE_CHECK that is now its contents.
717 Fri Feb 4 16:28:54 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
719 * make.h: #undef strerror after #include <string.h>.
720 [! ANSI_STRING]: Declare strerror.
722 Thu Feb 3 02:21:22 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
724 * misc.c (strerror): #undef any macro before function definition.
726 Mon Jan 31 19:07:23 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
728 * variable.c (try_variable_definition): Calculate BEG before loop
729 to strip blanks by decrementing END. Don't decr END to before BEG.
731 * read.c (read_makefile): Skip over leading space characters, but
732 not tabs, after removing continuations and comments (it used to
735 Tue Jan 25 16:45:05 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
737 * variable.c (define_automatic_variables): In $(@D) et al, use
738 patsubst to remove trailing slash.
740 * commands.c (delete_target): New function, broken out of
741 delete_child_targets. Check for archive members and give special msg.
742 (delete_child_targets): Use delete_target.
744 Mon Jan 17 17:03:22 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
746 * default.c (default_suffix_rules): Use $(TEXI2DVI_FLAGS) in
747 texi2dvi rules. Use $(MAKEINFO_FLAGS) in makeinfo rules.
749 Tue Jan 11 19:29:55 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
751 * GNUmakefile (tarfiles): Omit make-doc.
752 (make-$(version).tar): Include make.info*.
754 Fri Jan 7 16:27:00 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
756 * compatMakefile (configure, config.h.in): Comment out rules.
758 Thu Jan 6 18:08:08 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
760 * compatMakefile (binprefix, manprefix): New variables.
761 (instname): Variable removed.
762 (install): Use $({bin,man}prefix)make in place of $(instname).
763 File targets likewised renamed.
765 Mon Jan 3 17:50:25 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
767 * Version 3.70 released.
769 Thu Dec 23 14:46:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
773 * read.c (parse_file_seq): Inside multi-word archive ref
774 translation loop, check NEW1==0 at end and break out of the loop.
776 * GNUmakefile (make-$(version).tar): Distribute install.sh.
777 * install.sh: New file.
779 * configure.in (SCCS_GET_MINUS_G check): Put redirection for admin
780 cmds outside subshell parens, to avoid "command not found" msgs
783 Wed Dec 22 17:00:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
785 * configure.in (SCCS_GET_MINUS_G check): Put -G flag last in get cmd.
786 Redirect output & error from get to /dev/null.
787 Fix reversed sense of test.
789 Fri Dec 17 15:31:36 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
791 * configure.in (SCCS_GET_MINUS_G check): Use parens instead of
792 braces inside if condition command; some shells lose.
794 Thu Dec 16 15:10:23 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
798 * arscan.c [M_UNIX]: Move #undef M_XENIX for PORTAR stuff.
799 (PORTAR) [M_XENIX]: Define to 0 instead of 1.
801 * main.c (define_makeflags): Only export MAKEFLAGS if !ALL.
803 Wed Dec 15 17:47:48 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
805 * main.c (main): Cast result of pointer arith to unsigned int
806 before passing to define_variable for envars. Matters when
807 sizeof(unsigned)!=sizeof(ptrdiff_t).
809 Tue Dec 14 14:21:16 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
811 * configure.in: Add new check for SCCS_GET_MINUS_G.
812 * config.h.in: Add #undef SCCS_GET_MINUS_G.
813 * default.c (default_terminal_rules): Use `$(SCCS_OUTPUT_OPTION)' in
814 place of `-G $@' in SCCS commands.
815 (default_variables) [SCCS_GET_MINUS_G]: Define SCCS_OUTPUT_OPTION
818 * configure.in (AC_OUTPUT): Put touch stamp-config in second arg
819 (so it goes in config.status), rather than afterward.
821 * ar.c (ar_member_date): Don't call enter_file on the archive file
822 if it doesn't exist (by file_exists_p).
824 * compatMakefile ($(infodir)/make.info): Replace `$$d/foo.info'
825 with `$$dir/make.info' in install-info invocation (oops).
827 * vpath.c (construct_vpath_list): Only set LASTPATH set PATH when
828 we do not unlink and free PATH.
830 * file.c (print_file_data_base): Fix inverted calculation for
831 average files per hash bucket.
833 * read.c (readline): When we see a NUL, give only a warning and
834 synthesize a newline to terminate the building line (used to
835 fatal). Move fgets call into the loop condition, and after the
836 loop test ferror (used to test !feof in the loop).
838 Fri Dec 3 16:40:31 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
840 * configure.in: Check for strerror in AC_HAVE_FUNCS.
842 Thu Dec 2 15:37:50 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
844 Differentiate different flavors of missing makefile error msgs,
845 removing gratuitous `fopen: ' and giving caller for included makefiles.
846 * misc.c [! HAVE_STRERROR]: Define our own strerror here.
847 (perror_with_name, pfatal_with_name): Use strerror instead of
848 replicating its functionality.
849 * read.c (read_makefile): Return int instead of void.
850 (read_all_makefiles, read_makefile): Change callers to notice zero
851 return and give error msg.
853 Thu Nov 11 11:47:36 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
857 * default.c: Put `-G $@' before $< in SCCS cmds.
859 Wed Nov 10 06:06:14 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
861 * read.c (read_makefile): After trying a variable defn, notice if
862 the line begins with a tab, and diagnose an error.
864 Sun Nov 7 08:07:37 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
868 Wed Nov 3 06:54:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
872 * implicit.c (try_implicit_rule): Look for a normal rule before an
875 Fri Oct 29 16:45:28 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
877 * function.c (expand_function: `sort'): Double NWORDS when it
878 overflows, instead of adding five.
880 * compatMakefile (clean): Remove loadavg.
882 Wed Oct 27 17:58:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
886 * file.h (NEW_MTIME): Define new macro.
887 * main.c (main): Set time of NEW_FILES to NEW_MTIME, not to
888 current time returned from system. Removed variable NOW.
889 * remake.c (notice_finished_file): Use NEW_MTIME in place of
890 current time here too.
892 Tue Oct 26 19:45:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
896 * remake.c (update_file_1): Don't clear MUST_MAKE when FILE has no
897 cmds and !DEPS_CHANGED unless also !NOEXIST.
899 Mon Oct 25 15:25:21 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
901 * read.c (parse_file_seq): When converting multi-word archive
902 refs, ignore a word beginning with a '('.
904 Fri Oct 22 02:53:38 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
906 * configure.in: Check for sys/timeb.h.
907 * make.h [HAVE_SYS_TIMEB_H]: Test this before including it.
909 Thu Oct 21 16:48:17 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
913 * rule.c (convert_suffix_rule): New local TARGPERCENT. Set it to
914 TARGNAME+1 for "(%.o)", to TARGNAME for "%.?". Use it in place of
915 TARGNAME to initialize PERCENTS[0].
917 Mon Oct 18 06:49:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
919 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
920 Remove AC_USG; it is no longer used.
922 * file.c (print_file): New function, broken out of
923 print_file_data_base.
924 (print_file_data_base): Call it.
925 * rule.c (print_rule): New function, broken out of
926 print_rule_data_base.
927 (print_rule_data_base): Call it.
929 Thu Oct 14 14:54:03 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
931 * default.c (install_default_suffix_rules): New function, broken
932 out of install_default_implicit_rules.
933 (install_default_implicit_rules): Move suffix rule code there.
934 * make.h: Declare install_default_suffix_rules.
935 * main.c (main): Call install_default_suffix_rules before reading
936 makefiles. Move convert_to_pattern call before
937 install_default_implicit_rules.
939 * job.h (struct child): Make `pid' member type `pid_t' instead of
942 * compatMakefile (RANLIB): New variable, set by configure.
943 (glob/libglob.a): Pass RANLIB value down to submake.
945 Fixes for SCO 3.2 "devsys 4.2" from pss@tfn.com (Peter Salvitti).
946 * make.h: Include <sys/timeb.h> before <time.h> for SCO lossage.
947 * job.c [! getdtablesize] [! HAVE_GETDTABLESIZE]: If NOFILE is not
948 defined but NOFILES_MAX is, define it to be that.
950 Mon Oct 11 19:47:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
952 * GNUmakefile (make-$(version).tar): Depend on acconfig.h, so it
955 Sun Oct 3 15:15:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
957 * default.c (default_terminal_rules): Add `-G $@' to SCCS get cmds.
959 Tue Sep 28 14:18:20 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
961 * job.c (construct_command_argv_internal): Add ^ to SH_CHARS; it
962 is another symbol for | in some shells.
963 * main.c (main): Add it to CMD_DEFS quoting list as well.
965 Mon Sep 20 18:05:24 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
967 * job.c (construct_command_argv_internal): Remove '=' from
968 SH_CHARS. Only punt on '=' if it is unquoted in a word before the
969 first word without an unquoted '='.
971 * main.c (define_makeflags): Set v_export for MAKEFLAGS.
973 Fri Sep 17 00:37:18 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
975 * remake.c (update_file_1): Use .DEFAULT cmds for phony targets.
977 * make.h [_AIX && _POSIX_SOURCE]: Define POSIX.
979 * commands.c (delete_child_targets): Don't delete phony files.
981 * job.c (start_job_command): Set COMMANDS_RECURSE in FLAGS if we
982 see a `+' at the beginning of the command line.
984 Thu Sep 9 17:57:14 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
988 Wed Sep 8 20:14:21 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
990 * main.c (define_makeflags): Define MAKEFLAGS with o_file, not o_env.
992 Mon Aug 30 12:31:58 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
994 * expand.c (variable_expand): Fatal on an unterminated reference.
996 Thu Aug 19 16:27:53 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1000 * variable.c (define_automatic_variables): Define new o_default
1001 variable `MAKE_VERSION' from version_string and remote_description.
1003 * make.h (version_string, remote_description): Declare these here.
1004 * main.c: Don't declare version_string.
1005 (print_version): Don't declare remote_description.
1007 Wed Aug 18 15:01:24 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1009 * read.c (read_makefile): Free space pointed to by CONDITIONALS
1010 before restoring the old pointer.
1012 Mon Aug 16 17:33:36 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1014 * compatMakefile ($(objs)): Depend on config.h.
1016 * GNUmakefile (build.sh.in): Depend on compatMakefile.
1018 * configure.in: Touch stamp-config after AC_OUTPUT.
1020 Fri Aug 13 16:04:22 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1024 Thu Aug 12 17:18:57 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1026 * make.h: Include <config.h> instead of "config.h".
1028 Wed Aug 11 02:35:25 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1030 * main.c (main): Make all variables interned from ENVP be v_export.
1031 * variable.c (try_variable_definition): In v_default case, don't
1032 check for an o_file variable that `getenv' finds.
1034 * job.c (reap_children): New local variable ANY_LOCAL; set it
1035 while setting ANY_REMOTE. If !ANY_LOCAL, don't wait for local kids.
1037 * main.c (main): Don't call decode_env_switches on MFLAGS. DOC THIS.
1039 * function.c (expand_function): #if 0 out freeing of ENVP since it
1042 Mon Aug 9 17:37:20 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1046 * remote-stub.c (remote_status): Set errno to ECHILD before return.
1047 * job.c (reap_children): Scan the chain for remote children and
1048 never call remote_status if there are none.
1050 * function.c (expand_function: `shell'): #if 0 out calling
1051 target_environment; just set ENVP to environ instead.
1053 * job.c (reap_children): Check for negative return from
1054 remote_status and fatal for it.
1055 When blocking local child wait returns 0, then try a blocking call
1058 Tue Aug 3 00:19:00 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1060 * compatMakefile (clean): Delete make.info* and make.dvi here.
1061 (distclean): Not here.
1063 * dep.h (RM_*): Use #defines instead of enum to avoid lossage from
1064 compilers that don't like enum values used as ints.
1066 Mon Aug 2 16:46:34 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1068 * compatMakefile (loadavg): Add $(LOADLIBES).
1070 Sun Aug 1 16:01:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1074 * compatMakefile (loadavg, check-loadavg): New targets.
1075 (check): Depend on check-loadavg.
1077 * compatMakefile (glob/libglob.a): Depend on config.h.
1079 * misc.c (log_access): Write to stderr instead of stdout.
1081 Fri Jul 30 00:07:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1085 Thu Jul 29 23:26:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1087 * configure.in (SYS_SIGLIST_DECLARED): In test program include
1088 <unistd.h> #ifdef HAVE_UNISTD_H.
1090 * compatMakefile (.PHONY): Put after `all' et al.
1092 * configure.in: Add AC_IRIX_SUN.
1094 Wed Jul 28 17:41:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1098 Mon Jul 26 14:36:49 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1102 Sun Jul 25 22:09:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1106 * compatMakefile ($(infodir)/make.info): Don't use $(instname).
1107 Run install-info script if present.
1109 Fri Jul 23 16:03:50 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1111 * make.h [STAT_MACROS_BROKEN]: Test this instead of [uts].
1113 * configure.in: Add AC_STAT_MACROS_BROKEN.
1115 Wed Jul 14 18:48:11 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1119 * read.c (read_makefile): Recognize directive `-include', like
1120 `include' but sets RM_DONTCARE flag.
1122 * variable.c (target_environment): If FILE is nil, use
1123 current_variable_set_list in place of FILE->variables.
1124 * function.c (expand_function: `shell'): Get an environment for
1125 the child from target_environment instead of using environ.
1127 * dep.h: Declare read_all_makefiles here.
1128 (RM_*): Define new enum constants.
1129 * read.c (read_makefile): Second arg is FLAGS instead of TYPE.
1130 Treat it as a bit mask containing RM_*.
1131 (read_all_makefiles): For default makefiles, set D->changed to
1132 RM_DONTCARE instead of 1.
1133 * main.c: Don't declare read_all_makefiles here.
1134 (main): Check `changed' member of read_makefiles elts for RM_*
1135 flags instead of specific integer values.
1137 Mon Jul 12 22:42:17 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1139 * make.h [sequent && i386]: #undef POSIX. From trost@cse.ogi.edu.
1141 Thu Jul 8 19:51:23 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1143 * vpath.c (construct_vpath_list): If ELEM is zero 0, free PATTERN
1145 (build_vpath_lists): Empty `vpaths' around construct_vpath_list
1146 call for $(VPATH). Expand $(strip $(VPATH)), not just $(VPATH).
1148 * rule.c (convert_suffix_rule): Use alloca instead of xmalloc for
1149 PERCENTS, whose storage is not consumed by create_pattern_rule.
1151 * make.h [__mips && _SYSTYPE_SVR3]: #undef POSIX.
1153 Wed Jun 30 18:11:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1157 * rule.c (max_pattern_targets): New variable.
1158 (count_implicit_rule_limits): Compute its value.
1159 * rule.h: Declare it.
1160 * implicit.c (pattern_search): Make TRYRULES max_target_patterns
1161 times bigger. Move adding new TRYRULES elt inside the inner
1162 targets loop, so each matching target gets its own elt in MATCHES
1163 and CHECKED_LASTSLASH.
1165 * file.c (remove_intermediates): If SIG!=0 say `intermediate file'
1166 instead of just `file' in error msg.
1168 Fri Jun 25 14:55:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1170 * job.c (construct_command_argv): Turn off
1171 --warn-undefined-variables around expansion of SHELL and IFS.
1172 * read.c (tilde_expand): Likewise for HOME.
1173 (read_all_makefiles): Likewise for MAKEFILES.
1174 * vpath.c (build_vpath_lists): Likewise for VPATH.
1176 * main.c (warn_undefined_variables_flag): New flag variable.
1177 (switches): Add --warn-undefined-variables.
1178 * make.h (warn_undefined_variables_flag): Declare it.
1179 * expand.c (warn_undefined): New function.
1180 (reference_variable): Call it if the variable is undefined.
1181 (variable_expand): In substitution ref, call warn_undefined if the
1182 variable is undefined.
1184 * default.c (default_pattern_rules): Add `%.c: %.w %.ch' and
1185 `%.tex: %.w %.ch' rules.
1186 (default_suffix_rules: .w.c, .w.tex): Pass three args: $< - $@.
1187 (default_suffixes): Add `.ch'.
1189 Mon Jun 21 17:55:39 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1191 * default.c (default_suffixes): Replace `.cweb' with `.w'.
1192 (default_suffix_rules): Rename `.cweb.c' and `.cweb.tex' to `.w.c'
1195 Fri Jun 11 14:42:09 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1197 * compatMakefile ($(bindir)/$(instname)): Add missing backslash.
1199 Thu Jun 10 18:14:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1203 * read.c (multi_glob): Don't free OLD and OLD->name in the
1204 FOUND!=0 fork. Use new block-local variable F instead of
1207 * ar.c (glob_pattern_p): New function, snarfed from glob/glob.c.
1208 (ar_glob): Call it; return nil immediately if MEMBER_PATTERN
1209 contains no metacharacters.
1211 Wed Jun 9 16:25:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1213 * ar.c (ar_glob{_match,_alphacompare}): New function.
1215 * dep.h [! NO_ARCHIVES]: Declare it.
1216 * read.c (multi_glob) [! NO_ARCHIVES]: Use it on archive member elts.
1218 * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
1219 multi_glob (which doesn't take a 3rd arg).
1220 * rule.c (install_pattern_rule): Likewise.
1221 * default.c (set_default_suffixes): Here too.
1222 * function.c (string_glob): Don't pass gratuitous arg to multi_glob.
1224 * read.c (parse_file_seq) [! NO_ARCHIVES]: Add post-processing
1225 loop to translate archive refs "lib(a b)" into "lib(a) lib(b)".
1227 Mon Jun 7 19:26:51 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1229 * compatMakefile (installdirs): Actually pass directory names.
1230 ($(bindir)/$(instname)): Test chgrp&&chmod exit status with `if';
1231 if it fails, echo a warning msg, but don't make the rule fail.
1233 * read.c (tilde_expand): New function, broken out of tilde_expand.
1234 (multi_glob): Call it.
1235 (construct_include_path): Expand ~ in directory names.
1236 * dep.h: Declare tilde_expand.
1237 * main.c (enter_command_line_file): Expand ~ at the start of NAME.
1238 (main): Expand ~ in -C args.
1239 * read.c (read_makefile): Expand ~ in FILENAME unless TYPE==2.
1241 Fri Jun 4 13:34:47 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1243 * main.c (decode_env_switches): Use xmalloc instead of alloca for ARGS.
1245 * main.c (main): Put result of alloca in temporary variable with
1246 simple assignment, to make SGI compiler happy.
1248 Thu Jun 3 20:15:46 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1252 * main.c (main): Before re-execing, remove intermediate files, and
1253 print the data base under -p. Sexier debugging message.
1255 * implicit.c (pattern_search): Allocate an extra copy of the name
1256 of a winning intermediate file when putting it in FOUND_FILES.
1258 Wed Jun 2 16:38:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1260 * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
1261 multi_glob (which doesn't take a 3rd arg).
1263 * dir.c (dir_contents_file_exists_p): When reading dirents, ignore
1264 chars within D_NAMLEN that are NULs.
1266 * main.c (decode_switches): Don't savestring ARGV[0] to put it
1268 For string switch, don't savestring `optarg'.
1269 (main): Don't free elts of makefiles->list that are "-".
1270 Use alloca'd rather than savestring'd storage for elts of
1271 makefiles->list that are temporary file names.
1272 * read.c (read_all_makefiles): Don't free *MAKEFILES.
1273 * file.c (enter_file): Don't strip `./'s.
1274 * main.c (enter_command_line_file): New function.
1275 (main): Use it in place of enter_file for command-line goals from
1276 other_files, and for old_files and new_files.
1278 Mon May 31 18:41:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1282 * compatMakefile (.SUFFIXES): Add .info.
1283 ($(infodir)/$(instname).info): Find make.info* in cwd if there,
1284 else in $srcdir. Use basename to remove dir name from installed name.
1286 Thu May 27 17:35:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1288 * implicit.c (pattern_search): When interning FOUND_FILES, try
1289 lookup_file first; if found, free the storage for our copy of the name.
1291 Wed May 26 14:31:20 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1295 * main.c (decode_switches): In usage msg, write `--switch=ARG' or
1296 `--switch[=OPTARG]' rather than `--switch ARG' or `--switch [ARG]'.
1298 Mon May 24 16:17:31 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1300 * rule.c (convert_suffix_rule): New function.
1301 (convert_to_pattern): Use it instead of doing all the work here
1303 For target suffix `.a', generate both the archive magic rule and
1306 * compatMakefile (distclean): Remove stamp-config.
1308 Sat May 22 16:15:18 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1312 * file.c (remove_intermediates): Don't write extra space after `rm'.
1314 * main.c (struct command_switch.type): Remove `usage_and_exit'.
1315 (print_usage_flag): New variable.
1316 (switches: --help): Make type `flag', to set print_usage_flag.
1317 (init_switches): Remove `usage_and_exit' case.
1318 (decode_switches): Likewise.
1319 (decode_switches): Print usage if print_usage_flag is set.
1320 When printing usage, die with status of BAD.
1321 (main): Die with 0 if print_version_flag.
1323 Fri May 21 16:09:28 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1327 Wed May 19 21:30:44 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1329 * compatMakefile (installdirs): New target.
1330 (install): Depend on it.
1332 Sun May 16 20:15:07 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1336 Fri May 14 16:40:09 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1338 * vpath.c (construct_vpath_list): In removal loop for DIRPATH==0,
1339 set LASTPATH to PATH, not NEXT.
1341 * dir.c (read_dirstream): Break out of loop after incrementing
1342 DS->buckets such that it reaches DIRFILE_BUCKETS; avoid trying to
1343 dereference DS->contents->files[DIRFILE_BUCKETS].
1345 * read.c (read_makefile): Clear no_targets after reading a
1346 targetful rule line.
1348 * main.c (main): If print_version_flag is set, exit after printing
1350 (switches): Change --version docstring to say it exits.
1352 * make.h [butterfly]: #undef POSIX.
1354 Wed May 12 15:20:21 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
1358 * arscan.c (ar_scan) [! AIAMAG]: Don't declare LONG_NAME.
1359 [AIAMAG]: Pass TRUNCATE flag arg to (*FUNCTION), always zero.
1361 * function.c (handle_function): Use fatal instead of
1362 makefile_fatal when reading_filename is nil.
1364 * configure.in: Add AC_GETGROUPS_T.
1365 * job.c (search_path): Use GETGROUPS_T in place of gid_t.
1367 Sun May 9 15:41:25 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1371 Fri May 7 18:34:56 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1373 * function.c (handle_function): Fatal for unmatched paren.
1375 Thu May 6 16:13:41 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1379 * commands.c (handling_fatal_signal): New variable.
1380 (fatal_error_signal): Set it.
1381 * job.c (reap_children): Avoid nonreentrant operations if that is set.
1382 * make.h: Declare handling_fatal_signal.
1384 * expand.c (reference_variable): New function, snippet of code
1385 broken out of simple-reference case of variable_expand.
1386 (variable_expand): Use it for simple refs.
1387 (variable_expand): When checking for a computed variable name,
1388 notice a colon that comes before the final CLOSEPAREN. Expand
1389 only up to the colon, and then replace the pending text with a
1390 copy containing the expanded name and fall through to subst ref
1392 (variable_expand): Don't bother expanding the name if a colon
1393 appears before the first $.
1394 (expand_argument): Use alloca instead of savestring.
1395 (variable_expand): For subst ref, expand both sides of = before
1396 passing to [pat]subst_expand. Use find_percent instead of lindex
1397 to check the lhs for a %.
1399 Wed May 5 14:45:52 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1403 Mon May 3 17:00:32 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1405 * arscan.c (ar_name_equal) [AIAMAG]: Abort if TRUNCATED is nonzero.
1407 * read.c (read_makefile): Pass extra arg of 1 to parse_file_seq,
1410 Thu Apr 29 19:47:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1414 * arscan.c (ar_scan): New local flag var LONG_NAME. Set it when
1415 we read the member name in any of the fashions that allow it to be
1416 arbitrarily long. Pass its negation to FUNCTION.
1417 (describe_member): Take TRUNCATED from ar_scan and print it.
1418 (ar_name_equal): Take new arg TRUNCATED; if nonzero, compare only
1419 the first sizeof (struct ar_hdr.ar_name) chars.
1420 (ar_member_pos): Take TRUNCATED from ar_scan, pass to ar_name_equal.
1421 * ar.c (ar_member_date_1): Likewise.
1423 Wed Apr 28 21:18:22 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1425 * job.c (reap_children): Before calling start_job_command to start
1426 the next command line, reset C->remote by calling start_remote_job_p.
1428 Mon Apr 26 15:56:15 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
1430 * arscan.c (ar_scan): New local var NAMEMAP.
1431 In loop, rename NAME to NAMEBUF; new var NAME is a pointer; new
1432 flag IS_NAMEMAP. When extracting the member name, always put a
1433 null at its end first. If the name is "//" or "/ARFILENAMES", set
1434 IS_NAMEMAP. If we have already read in NAMEMAP, and NAME looks
1435 like " /N", get full name from NAMEMAP+N.
1436 Else if NAME looks like "#1/N", read N chars from the
1437 elt data to be the full name. At end of loop, if IS_NAMEMAP, read
1438 the elt's data into alloca'd NAMEMAP.
1439 (ar_name_equal): #if 0 truncating code.
1441 * make.h: Don't declare vfork at all. It returns int anyway,
1442 unless <unistd.h> declared it; and we conflicted with some systems.
1444 * main.c (define_makeflags): If FLAGSTRING[1] is '-', define
1445 MAKEFLAGS to all of FLAGSTRING, not &FLAGSTRING[1]. Don't want to
1446 define it to something like "-no-print-directory".
1447 Use %g format instead of %f for floating-valued things.
1449 Thu Apr 22 18:40:58 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1451 * GNUmakefile (Makefile.in): Use a substitution ref on nolib-deps
1452 to change remote-%.dep to remote-stub.dep.
1454 Wed Apr 21 15:17:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1458 Fri Apr 16 14:22:22 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1460 * compatMakefile (install): Remove - prefix from chgrp+chmod.
1464 Thu Apr 15 18:24:07 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1466 * acconfig.h: New file; contains "#undef SCCS_GET" for autoheader.
1467 * configure.in: If /usr/sccs/get exists, define SCCS_GET to that,
1469 * default.c (default_variables): Set GET to macro SCCS_GET.
1471 * read.c (parse_file_seq): Take extra arg STRIP; strip `./' only
1472 if nonzero. I hope this is the last time this argument is added
1474 (read_makefile): Pass it 1 when parsing include file names.
1475 Pass it 1 when parsing target file names.
1476 Pass it 1 when parsing static pattern target pattern names.
1477 * rule.c (install_pattern_rule): Pass it 1 when parsing rule deps.
1478 * default.c (set_default_suffixes): Pass it 1 when parsing
1480 * function.c (string_glob): Pass it 0 here.
1482 Wed Apr 14 11:32:05 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1484 * misc.c (log_access): New function.
1485 ({init,user,make,child}_access): Call it.
1486 (child_access): Abort if !access_inited.
1488 * main.c (switches: --no-print-directory): Use 1 instead of -1 for
1489 single-letter option.
1490 (init_switches, decode_switches, define_makeflags): An option with
1491 no single-letter version is no longer indicated by a value of -1;
1492 instead a value that is !isalnum.
1493 (init_switches): Don't put such switches into the string, only
1494 into the long_option table.
1496 * make.h [!NSIG] [!_NSIG]: #define NSIG 32.
1498 * job.c [HAVE_WAITPID]: Remove #undef HAVE_UNION_WAIT. AIX's
1499 bsdcc defined WIF* to use union wait.
1501 * main.c (struct command_switch): Change member `c' to type int.
1502 (switches): Make const.
1503 (decode_switches): Use `const struct command_switch *'.
1504 (define_makeflags): Likewise.
1506 * default.c (default_suffix_rules): Add `-o $@' to makeinfo rules.
1508 Mon Apr 12 12:30:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1512 * configure.in (AC_HAVE_HEADERS): Check for string.h and memory.h.
1513 Removed AC_MEMORY_H.
1514 * make.h [USG, NeXT]: Don't test these.
1515 [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
1516 [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
1517 [! ANSI_STRING]: Put decls of bcopy et al here.
1518 [sparc]: Don't test this for alloca.h; HAVE_ALLOCA_H is sufficient.
1519 [HAVE_SIGSETMASK]: Test this rather than USG.
1520 [__GNU_LIBRARY__ || POSIX]: Don't #include <unistd.h> again.
1521 * main.c (main): Handle SIGCHLD if defined, and SIGCLD if defined.
1522 It doesn't hurt to do both if they are both defined, and testing
1524 * dir.c: Rationalize directory header conditionals.
1525 * arscan.c [HAVE_FCNTL_H]: Test this rather than USG || POSIX.
1527 * default.c (default_suffixes): Add `.txinfo'.
1528 (default_suffix_rules): Add `.txinfo.info' and `.txinfo.dvi' rules.
1530 * variable.c (try_variable_definition): Replace RECURSIVE flag
1531 with enum FLAVOR, which can be simple, recursive, or append.
1532 Recognize += as append flavor. Set new variable VALUE in a switch
1533 on FLAVOR. For append flavor, prepend the variable's old value.
1534 If the variable was previously defined recursive, set FLAVOR to
1535 recursive; if it was defined simple, expand the new value before
1536 appending it to the old value. Pass RECURSIVE flag to
1537 define_variable iff FLAVOR == recursive.
1539 * variable.c (try_variable_definition): Use alloca and bcopy for
1540 NAME, instead of savestring. Might as well use stack storage
1541 since we free it immediately anyway.
1543 Thu Apr 8 18:04:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1545 * job.c (start_waiting_jobs): Move decl of JOB outside of loop.
1547 * main.c (define_makeflags): Rename `struct flag' member `switch'
1548 to `cs', which is not a reserved word.
1550 Wed Apr 7 15:30:51 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1552 * job.c (new_job): Call start_waiting_jobs first thing.
1553 (start_waiting_job): Changed return type from void to int.
1554 Return 0 when putting the child on the waiting_jobs chain.
1555 (start_waiting_jobs): Don't check load and job_slots here.
1556 Always take a job off the chain and call start_waiting_job on it;
1557 give up and return when start_waiting_job returns zero.
1559 * main.c (define_makeflags: struct flag): Change member `char c' to
1560 `struct command_switch *switch'.
1561 (ADD_FLAG): Set that to CS instead of CS->c.
1562 If CS->c is -1, increment FLAGSLEN for the long name.
1563 When writing out FLAGS, handle FLAGS->switch->c == -1 and write
1564 the long name instead.
1566 * compatMakefile (stamp-config): New target of old config.h rule.
1567 Touch stamp-config after running config.status.
1568 (config.h): Just depend on stamp-config, and have empty commands.
1570 Mon Apr 5 20:14:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1572 * job.c [HAVE_WAITPID]: #undef HAVE_UNION_WAIT.
1574 * configure.in (AC_HAVE_FUNCS): Check for psignal.
1576 Fri Apr 2 17:15:46 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1578 * main.c (long_option_aliases): Remove "new"; it is already an
1579 unambiguous prefix of "new-file".
1581 Sun Mar 28 16:57:17 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
1585 Wed Mar 24 14:26:19 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1587 * vpath.c (selective_vpath_search): When adding the
1588 name-within-directory at the end of NAME, and we don't add a
1589 slash, don't copy FILENAME in one char too far into NAME.
1591 * variable.c (define_automatic_variables): Find default_shell's
1592 length with strlen, not numerology.
1594 Wed Mar 17 20:02:27 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1596 * main.c (define_makeflags): Add the elts of a string option in
1597 reverse order, so they come out right when reversed again.
1599 Fri Mar 12 15:38:45 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
1601 * compatMakefile (make.info): Use `-o make.info'.
1603 Thu Mar 11 14:13:00 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
1605 * compatMakefile (REMOTE): Set to @REMOTE@; change comments to
1607 (objs): Replace remote.o with remote-$(REMOTE).o.
1608 (srcs): Replace remote.c with remote-$(REMOTE).c.
1609 (remote.o): Rule removed.
1611 * configure.in (REMOTE): Subst this in Makefile et al; default "stub".
1612 Use AC_WITH to grok --with-customs arg to set REMOTE=cstms.
1613 * GNUmakefile (build.sh.in): Filter out remote-% from objs list.
1614 * build.template (REMOTE): New var; set to @REMOTE@.
1615 (objs): Add remote-${REMOTE}.o.
1617 Wed Mar 10 15:12:24 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
1621 * implicit.c (pattern_search): Fix "dependent"->"dependency" in
1622 "Rejecting impossible" -d msg.
1624 * file.c (file_hash_enter): New local vars {OLD,NEW}BUCKET. Store
1625 mod'd values there; never mod {OLD,NEW}HASH.
1627 Mon Mar 8 13:32:48 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
1629 * remake.c [eta10]: Include <fcntl.h> instead of <sys/file.h>.
1631 * compatMakefile (VPATH): Set this to @srcdir@.
1632 (srcdir): Set this to $(VPATH).
1634 * main.c (main): New local var DIRECTORY_BEFORE_CHDIR. Save in it
1635 a copy of CURRENT_DIRECTORY after the first getcwd. Use it
1636 instead of CURRENT_DIRECTORY when chdir'ing back before re-execing.
1638 * remake.c (notice_finished_file): Pass missing SEARCH arg to f_mtime.
1640 * read.c (read_makefile): Remove extraneous arg to parse_file_seq.
1642 Mon Feb 22 14:19:38 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1644 * compatMakefile ($(infodir)/$(instname).info): Use , instead of /
1645 as the sed delimiter char.
1647 Sun Feb 21 14:11:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1651 * rule.h (struct rule): Removed `subdir' member.
1652 * rule.c (new_pattern_rule): No need to clear it.
1653 (count_implicit_rule_limits): Set the `changed' flag in each dep
1654 that refers to a nonexistent directory. No longer set rule-global
1655 `subdir' flag with that information.
1656 (print_rule_data_base): Don't record info on `subdir' flags.
1658 * implicit.c (pattern_search): Check the DEP->changed flag rather
1659 than the (now gone) RULE->subdir flag. Also test CHECK_LASTSLASH;
1660 if it is set, the file might exist even though the DEP->changed
1663 * rule.c (count_implicit_rule_limits): Pass "", not ".", as file
1664 name arg to dir_file_exists_p to check for existence of directory.
1666 * implicit.c (pattern_search): Inside dep-finding loop, set
1667 CHECK_LASTSLASH from the value recorded in CHECKED_LASTSLASH[I],
1668 rather than computing it anew.
1670 * commands.c (set_file_variables): Must alloca space for PERCENT
1671 and copy it, to avoid leaving the trailing `)' in the value.
1673 * misc.c (remove_comments): Fixed backslash-checking loop
1674 condition to allow it to look at the first char on the line.
1675 P2 >= LINE, not P2 > LINE.
1677 * compatMakefile ($(bindir)/$(instname)): Before moving $@.new to
1678 $@, rm $@.old and mv $@ to $@.old.
1680 * variable.c (try_variable_definition): Take new args FILENAME and
1681 LINENO. Fatal if the variable name is empty.
1682 * read.c (read_makefile): Change callers.
1683 * main.c (main): Likewise.
1685 * compatMakefile (group): Define to @KMEM_GROUP@, autoconf magic
1686 that configure will replace with the group owning /dev/kmem.
1688 Mon Feb 8 14:26:43 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
1690 * vpath.c (vpath_search): Take second arg MTIME_PTR, pass thru to
1691 selective_vpath_search.
1692 (selective_vpath_search): Take second arg MTIME_PTR.
1693 If the dir cache thinks a file exists, stat it to make sure, and
1694 put the modtime in *MTIME_PTR.
1695 * remake.c (library_search): Take second arg MTIME_PTR.
1696 When we find a match, record its mtime there.
1697 Pass MTIME_PTR through to vpath_search to do same.
1698 (f_mtime): Pass &MTIME as new 2nd arg to {vpath,library}_search;
1699 store it in FILE->last_mtime if set nonzero.
1700 * implicit.c (pattern_search): Pass nil 2nd arg to vpath_search.
1702 * compatMakefile (remote.o): Prepend `$(srcdir)/' to `remote-*.c',
1703 so globbing looks somewhere it will find things.
1705 * compatMakefile ($(infodir)/$(instname).info): Install `make.info*'
1706 not `$(srcdir)/make.info*'; no need to use basename.
1708 Fri Feb 5 12:52:43 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
1712 * compatMakefile (install): Add missing ;\s.
1714 Make -, @, and + prefixes on a pre-expanded command line affect
1715 all lines in the expansion, not just the first.
1716 * commands.h (struct commands): Replace `lines_recurse' member
1718 (COMMANDS_{RECURSE,SILENT,NOERROR}): New macros, bits to set in
1720 * commands.c (chop_commands): Set `lines_flags' instead of
1721 `lines_recurse'. Record not only + but also @ and - prefixes.
1722 * remake.c (notice_finished_file): Check the COMMANDS_RECURSE bit
1723 in FILE->cmds->lines_flags, rather than FILE->cmds->lines_recurse.
1724 * job.c (start_job_command): Replaced RECURSIVE and NOPRINT local
1725 var with FLAGS; initialize it to the appropriate `lines_flags' byte.
1726 Set CHILD->noerror if the COMMANDS_NOERROR bit is set in FLAGS.
1727 Set the COMMANDS_SILENT bit in FLAGS for a @ prefix.
1729 * remake.c (update_goal_chain): Set G->file to its prev after
1730 checking for G being finished, since that check needs to examine
1733 * configure.in (union wait check) [HAVE_WAITPID]: Try using
1734 waitpid with a `union wait' STATUS arg. If waitpid and union wait
1735 don't work together, we should not use union wait.
1739 * remake.c (update_goal_chain): When G->file->updated, move
1740 G->file to its prev. We aren't finished until G->file is nil.
1742 Thu Feb 4 12:53:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1744 * main.c (starting_directory): New global variable.
1745 (main): Set it to cwd after doing -Cs.
1746 (log_working_directory): Use it, rather than computing each time.
1747 * make.h: Declare it.
1749 * compatMakefile (SHELL): Define to /bin/sh for losing Unix makes.
1751 * main.c (decode_env_switches): Allocate (1 + LEN + 1) words for
1752 ARGV, rather than LEN words plus one byte.
1754 Wed Feb 3 18:13:52 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
1756 * compatMakefile ($(bindir)/$(instname)): Put - before
1757 install_setgid command line, so its failure won't be an error.
1758 (infodir): New variable.
1759 (install): Depend on $(infodir)/$(instname).info.
1760 ($(infodir)/$(instname).info): New target.
1762 * read.c (read_makefile): If FILENAMES is nil when we see a line
1763 starting with a tab, don't treat it as a command. Just fall
1764 through, rather than giving an error.
1766 * read.c (read_makefile): If the NO_TARGETS flag is set when we see a
1767 command line, don't clear it before continuing. We want
1768 subsequent command lines to be ignored as well.
1770 * job.c (new_job): Before expanding each command line, collapse
1771 backslash-newline combinations that are inside var or fn references.
1773 Mon Feb 1 16:00:13 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
1775 * compatMakefile (exec_prefix): Default to $(prefix), not /usr/local.
1777 * compatMakefile (make.info): Pass -I$(srcdir) to makeinfo.
1779 * job.c [POSIX] (unblock_sigs): Made global.
1780 [!POSIX] (unblock_sigs): Move defns to job.h.
1781 * job.h [POSIX] (unblock_sigs): Declare.
1783 Sun Jan 31 19:11:05 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
1785 * read.c (read_makefile): In vpath parsing, after finding the
1786 pattern token, take entire rest of line as the search path, not
1787 just the next token.
1789 * compatMakefile (remote.o): Depend on remote-*.c.
1791 Thu Jan 28 16:40:29 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1793 * commands.c (set_file_variables): Don't define any F or D versions.
1794 * variable.c (define_automatic_variables): Define them here as
1795 recursively-expanded variables that use the dir and notdir funcs.
1797 * variable.c (target_environment): In v_default case, don't export
1798 o_default or o_automatic variables.
1800 * configure.in (union wait check): Remove ` and ' inside C code;
1801 they confuse the shell script.
1803 Mon Jan 25 13:10:42 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1807 * vpath.c (construct_vpath_list): When skipping further processing
1808 of an elt that is ".", don't also skip the code that pushes P past
1811 * compatMakefile (distclean): Don't remove make-*.
1813 * configure.in (HAVE_UNION_WAIT): Try to use WEXITSTATUS if it's
1814 defined. If one cannot use WEXITSTATUS with a `union wait'
1815 argument, we don't want to believe the system has `union wait' at all.
1817 * remake.c (update_file): Do nothing to print "up to date" msgs.
1818 (update_goal_chain): Do it here instead.
1819 Use the `changed' flag of each goal's `struct dep' to keep track
1820 of whether files_remade (now commands_started) changed around a
1821 call to update_file for that goal.
1822 When a goal is finished, and its file's update_status is zero (i.e.,
1823 success or nothing done), test the `changed' flag and give an "up
1824 to date" msg iff it is clear.
1825 * make.h (files_remade): Renamed to commands_started.
1826 * remake.c: Changed defn.
1827 (update_goal_chain): Changed uses.
1828 * job.c (start_job_command): Increment commands_started here.
1829 (reap_children): Not here.
1831 * remake.c (update_goal_chain): Don't do anything with files'
1832 `prev' members. update_file now completely handles this.
1834 * variable.c (target_environment): Don't expand recursive
1835 variables if they came from the environment.
1837 * main.c (define_makeflags): For flags with omitted optional args,
1838 store {"", 0} with ADD_FLAG. When constructing FLAGSTRING, a flag
1839 so stored cannot have more flags appended to the same word.
1841 Fri Jan 22 14:46:16 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1843 * variable.c (print_variable_set): In vars/bucket calculation,
1844 don't spuriously multiply by 100.
1848 * job.c [!HAVE_UNION_WAIT] (WTERMSIG, WCOREDUMP, WEXITSTATUS):
1849 Don't define if already defined.
1851 * remake.c (update_file): Don't keep track of the command_state before
1852 calling update_file_1. Remove local variable COMMANDS_FINISHED,
1853 and don't test it to decide to print the "is up to date" msg.
1854 Testing for files_remade having changed should always be sufficient.
1855 The old method lost when we are called in the goal chain run on a
1856 makefile, because the makefile's command_state is already
1857 `cs_finished' from the makefile chain run.
1859 * misc.c [HAVE_SETRE[GU]ID]: Test these to decl setre[gu]id.
1861 * configure.in: Rewrote wait checking.
1862 Use AC_HAVE_HEADERS to check for <sys/wait.h>.
1863 Use AC_HAVE_FUNCS to check for waitpid and wait3.
1864 Use a compile check to test just for `union wait'.
1865 * job.c: Rewrote conditionals accordingly.
1866 [HAVE_WAITPID]: Test this only to define WAIT_NOHANG.
1867 [HAVE_WAIT3]: Likewise.
1868 [HAVE_UNION_WAIT]: Test this to define WAIT_T and W*.
1870 * configure.in: Set CFLAGS and LDFLAGS before all checks.
1872 * dir.c: Add static forward decls of {open,read}_dirstream.
1874 Thu Jan 21 17:18:00 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
1878 * job.c [NGROUPS_MAX && NGROUPS_MAX==0]: #undef NGROUPS_MAX.
1880 * compatMakefile (CFLAGS, LDFLAGS): Set to @CFLAGS@/@LDFLAGS@.
1881 * build.template (CFLAGS, LDFLAGS): Same here.
1882 * configure.in: AC_SUBST(CFLAGS) and LDFLAGS.
1883 Set them to -g if not defined in the environment.
1885 * remake.c (library_search): Use LIBNAME consistently, setting it
1886 only once, to be the passed name sans `-l'.
1887 Pass new var FILE to be modified by vpath_search.
1889 Mon Jan 18 14:53:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1893 * job.c (start_waiting_jobs): Return when job_slots_used is equal to
1896 * configure.in: Add AC_CONST for the sake of getopt.
1898 * read.c (read_makefile): Continue after parsing `override'
1899 directive, rather than falling through to lossage.
1900 Check for EOL or blank after "override define".
1902 * compatMakefile (.c.o, remote.o): Put $(CFLAGS) after other switches.
1904 Fri Jan 15 12:52:52 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1908 * main.c (define_makeflags): After writing everything into
1909 FLAGSTRING, only back up two chars if [-1] is a dash, meaning we
1910 just wrote " -". Always terminate the string at *P.
1912 * remake.c (library_search): When constructing names in std dirs,
1913 use &(*LIB)[2] for the stem, not LIBNAME (which points at the
1914 buffer we are writing into!).
1916 Thu Jan 14 13:50:06 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1918 * read.c (read_makefile): Set IN_IGNORED_DEFINE for "override
1919 define" when IGNORING is true.
1921 * compatMakefile (distclean): Remove config.status and build.sh.
1923 Wed Jan 13 16:01:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1927 * misc.c (xmalloc, xrealloc): Cast result of malloc/realloc to
1930 * arscan.c (ar_scan) [AIAMAG]: Cast read arg to (char *).
1932 * variable.c (define_automatic_variables): Override SHELL value for
1933 origin o_env_override as well as o_env.
1935 * GNUmakefile (build.sh.in): Don't replace %globobjs%. Instead,
1936 add the names of the glob objects (w/subdir) to %objs%.
1937 * build.template (globobjs): Removed.
1938 Take basename of $objs before linking.
1940 Tue Jan 12 12:31:06 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
1944 * configure.in (AC_OUTPUT): Also edit build.sh.
1945 * build.template: New file.
1946 * GNUmakefile (build.sh.in): New rule to create it from build.template.
1947 (make-$(version).tar.Z): Depend on build.sh.in.
1949 * main.c (die): Call print_data_base if -p.
1950 (main): Don't call it here.
1952 * compatMakefile (defines): Add @DEFS@. configure should turn this
1953 into -DHAVE_CONFIG_H.
1955 Mon Jan 11 14:39:23 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
1959 * misc.c (init_access): Surround with #ifdef GETLOADAVG_PRIVILEGED.
1960 ({make,user,child}_access) [! GETLOADAVG_PRIVILEGED]: Make no-op.
1961 * compatMakefile (install_setgid): New var, set by configure.
1962 (install): Install setgid $(group) only if $(install_setgid) is true.
1964 Fri Jan 8 15:31:55 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1966 * job.c (load_too_high): If getloadavg fails with errno==0, give a
1967 message saying that load limits are not supported.
1969 * vpath.c (construct_vpath_list): Rewrote path deletion code to
1970 not try to use PATH's next link after freeing PATH.
1972 * main.c (define_makeflags): Rewritten; now handles string-valued
1973 option, and has no arbitrary limits.
1974 (switches): Set `toenv' flag for -I and -v.
1976 * main.c (decode_env_switches): Cast return value of alloca to char *.
1978 * misc.c (child_access) [HAVE_SETREUID, HAVE_SETREGID]: Use
1979 setre[gu]id in place of set[gu]id.
1981 Wed Jan 6 15:06:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
1983 * main.c (main): Define MAKEOVERRIDES, MAKE, and MAKE_COMMAND with
1986 * make.h [POSIX]: Don't test this to use ANSI_STRING.
1987 Testing STDC_HEADERS should be sufficient.
1989 * job.h: Declare start_waiting_jobs.
1991 * read.c (read_makefile): Add missing parens in if stmt that find
1992 conditional directives.
1994 * main.c (main): Declare init_dir.
1995 * implicit.c (pattern_search): Always use two % specs in a
1996 DEBUGP2, and always pass two non-nil args.
1997 Cast field width args to int.
1998 Add missing parens in !RULE->subdir if stmt.
1999 * function.c (expand_function, patsubst_expand): Add parens around
2000 assignments inside `while' stmts.
2001 * commands.c (print_commands): Cast field width args to int.
2003 * read.c (do_define): Cast return value of alloca to (char *).
2005 * main.c (init_switches): New function, broken out of decode_switches.
2006 (decode_switches): Take new arg ENV. If set, ignore non-option
2007 args; print no error msgs; ignore options with clear `env' flags.
2008 (decode_env_switches): Rewritten to chop envar value into words
2009 and pass them to decode_switches.
2010 (switches): Set `env' flag for -I and -v.
2012 * dir.c (init_dir): Cast free to __glob_closedir_hook's type.
2014 Tue Jan 5 14:52:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2018 * job.c [HAVE_SYS_WAIT || !USG]: Don't #include <sys/time.h> and
2019 <sys/resource.h>. <sys/time.h> interacts badly with <time.h>, and
2020 we don't need these anyway.
2022 * configure.in (AC_HAVE_FUNCS): Check for setre[gu]id.
2023 * misc.c ({user,make}_access): Test #ifndef HAVE_SETRE[GU]ID, not
2024 #ifdef POSIX || USG. SunOS 4.1 is supposedly POSIX.1 compliant,
2025 but its set[gu]id functions aren't; its setre[gu]id functions work.
2027 * misc.c ({user,make,child}_access): Give name of caller in error msgs.
2029 * job.c (load_too_high): Say "cannot enforce load limit" in error msg.
2031 * configure.in: Call AC_PROG_CC.
2032 * compatMakefile (CC): Define to @CC@ (autoconf magic).
2034 * compatMakefile: Add .NOEXPORT magic target.
2036 Mon Jan 4 17:00:03 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2038 * main.c (print_version): Updated copyright to include 93.
2040 Thu Dec 31 12:26:15 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2042 * make.h [_AIX]: Don't declare alloca.
2044 Tue Dec 29 13:45:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2048 * compatMakefile (objs): Add signame.o.
2049 (srcs): Add signame.[ch].
2051 * compatMakefile (srcs): Add config.h.in.
2052 (remote.o): Add -I. before -I$(srcdir).
2054 Mon Dec 28 15:51:26 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2058 * read.c (readline): Fatal when LEN==0, indicating a line starting
2060 (readline): Take new arg LINENO, for use in error msg.
2061 (read_makefile, do_define): Pass it.
2063 * compatMakefile (glob/libglob.a): Pass -DHAVE_CONFIG_H in CPPFLAGS.
2064 (.c.o): Add -I. before -I$(srcdir).
2066 Wed Dec 23 12:12:04 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2068 * read.c (read_makefile): Accept and ignore a rule with no targets.
2070 * compatMakefile (ALLOCA_SRC): New variable.
2071 (srcs): Include its value.
2073 * read.c (struct conditional): Renamed member `max_ignoring' to
2074 `allocated'; added new member `seen_else'.
2075 (conditional_line): Initialize seen_else flag when starting an `if...';
2076 set it when we see an `else'; fatal if set when we see `else'.
2077 (read_makefile): Fatal "missing `endif'" if there are any pending
2078 conditionals, not just if we are still ignoring.
2080 Tue Dec 22 15:36:28 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2082 * compatMakefile (manext): Set to 1, not l.
2083 ($(mandir)/$(instname).$(manext)): Use $(srcdir) for make.man in cmds.
2085 * file.c (file_hash_enter): Don't call uniquize_deps here.
2086 * read.c (record_files): Likewise.
2087 * implicit.c (pattern_search): Likewise.
2088 * commands.c (set_file_variables): Call it only here.
2090 * default.c (default_variables) [__convex__]: FC=fc.
2092 * variable.c (target_environment): Expand the values of recursively
2093 expanded variables when putting them into the environment.
2094 * expand.c (recursively_expand): Made global.
2095 * make.h (recursively_expand): Declare it.
2097 * remake.c (check_dep): Set FILE->command_state to cs_deps_running
2098 when a dep's command_state is cs_running or cs_deps_running.
2100 * read.c (read_makefile): Changed error msg for spurious cmds to
2101 not say "first target".
2103 Sun Dec 20 17:56:09 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
2105 * configure.in: Do AC_CONFIG_HEADER right after AC_INIT.
2106 * make.h (HAVE_CONFIG_H): #include "config.h", then #define this.
2107 * compatMakefile (config.h, configure, config.h.in): New rules.
2108 (defines): Removed @DEFS@.
2110 Thu Dec 17 16:11:40 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2112 * compatMakefile (realclean): Just depend on distclean; no cmds.
2113 (distclean): Do what realclean did before; also remove Makefile and
2114 config.h; don't remove configure.
2115 (info, dvi): New targets; depend on make.{info,dvi}.
2116 (doc): Removed target.
2117 (MAKEINFO, TEXI2DVI): New vars.
2118 (make.info, make.dvi): Use them instead of explicit cmds.
2120 Wed Dec 16 16:25:24 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2122 * configure.in: Added fcntl.h to AC_HAVE_HEADERS. getloadavg cares.
2124 Wed Dec 9 15:21:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2126 * main.c (long_option_aliases): Add --new-file alias for -W.
2128 * default.c (default_variables): Change all C++ to CXX and C++FLAGS
2131 * read.c (do_define): Expand the variable name before using it.
2133 * main.c (main): Define variable "MAKE_COMMAND" to argv[0];
2134 define "MAKE=$(MAKE_COMMAND) $(MAKEOVERRIDES)" always.
2136 * remake.c (library_search): Search for libNAME.a in cwd; look in
2137 vpath before looking in standard dirs, not after.
2138 Changed order of std dirs to: /lib, /usr/lib, ${prefix}/lib.
2140 Mon Nov 23 14:57:34 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2142 * default.c (default_pattern_rules, default_terminal_rules): Added
2143 brackets around initializers.
2145 * variable.c (try_variable_definition): Don't check for LINE[0]=='\t'.
2146 (try_variable_definition): Expand the name before defining the var.
2148 * job.c (init_siglist): Removed function.
2149 Removed decl of `sys_siglist'.
2150 * make.h [! HAVE_SYS_SIGLIST]: #include "signame.h".
2151 [HAVE_SYS_SIGLIST && !SYS_SIGLIST_DECLARED]: Declare sys_siglist
2152 only under these conditions.
2153 * main.c (main): Don't declare init_siglist.
2154 (main) [! HAVE_SYS_SIGLIST]: Call signame_init instead of init_siglist.
2156 Wed Nov 18 14:52:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2158 * read.c (record_files): Don't try to append to FIRSTDEPS if it's
2159 nil; instead just set it to MOREDEPS.
2161 Mon Nov 16 17:49:17 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2163 * vpath.c (construct_vpath_list): Initialize P to DIRPATH before
2164 loop that sets MAXELEM.
2166 Fri Nov 13 18:23:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2170 Thu Nov 12 15:45:31 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2172 * job.c (start_job_command): Under -n, increment files_remade after
2173 processing (i.e., printing) all command lines.
2175 Tue Nov 10 15:33:53 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2177 * read.c (record_files): Append new deps if this rule has no
2178 commands; prepend them to existing deps if this rule has no commands.
2180 * dir.c (open_dirstream): Return nil if DIR->contents->files is nil.
2182 * read.c (parse_file_seq): Removed last arg STRIP. Always strip `./'s.
2183 (read_makefile): Changed callers.
2184 * function.c (string_glob): Likewise.
2185 * rule.c (install_pattern_rule): Likewise.
2187 Mon Nov 9 17:50:16 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2189 * remake.c (files_remade): Made global.
2190 (notice_finished_file): Don't increment files_remade here; this
2191 function gets called in many situations where no remaking was in
2193 * job.c (reap_children): Do it here instead, when we know that
2194 actual commands have been run for the file.
2195 * make.h (files_remade): Declare it.
2197 Thu Nov 5 18:26:10 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2199 * vpath.c (construct_vpath_list): Allow blanks as well as colons to
2200 separate elts in the search path.
2202 * read.c (read_makefile): Don't fatal on extra tokens in `vpath'.
2203 The search path can contain spaces now.
2205 Tue Nov 3 20:44:32 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2207 * compatMakefile (check): New target; no-op.
2209 * file.c (file_hash_enter): Mod OLDHASH by FILE_BUCKETS after
2210 testing for OLDHASH==0 but before using the value.
2211 (rename_file): Don't mod OLDHASH by FILE_BUCKETS before passing it
2214 * file.c (rename_file): Notice when OLDFILE->cmds came from
2215 default.c, and don't try to print ->filename in that case.
2217 Sun Oct 25 01:48:23 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2219 * remake.c (update_file): Don't process F->also_make here.
2220 (notice_finished_file): Don't process FILE->also_make if no attempt
2221 to update FILE was actually made.
2222 Fixed to call f_mtime directly to refresh their modtimes.
2224 Sat Oct 24 22:08:59 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2226 * read.c (find_percent): Don't increment P again after skipping
2229 * expand.c (variable_expand): In call to patsubst_expand, don't
2230 find `%'s ourselves; let that function do it.
2232 * read.c (read_makefile: record_waiting_files): Don't call
2233 record_files if FILENAMES is nil.
2234 (read_makefile): All alternatives in the parsing, except for rule
2235 lines, fall through to the end of the loop. At the end of the
2236 loop, do record_waiting_files so we notice later spurious cmds.
2238 Fri Oct 23 15:57:37 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2240 * variable.c (define_automatic_variables): Free old value of SHELL
2241 before replacing it.
2243 Thu Oct 15 18:57:56 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2245 * compatMakefile (.c.o): Add -I$(srcdir)/glob to flags.
2247 * dir.c (open_dirstream): Cast return value to __ptr_t.
2249 * default.c (default_variables: "GET") [_IBMR2]: Use USG defn.
2251 * make.h (MAXPATHLEN): Moved out of #ifndef POSIX.
2252 (GET_PATH_MAX): Moved from #ifdef POSIX to #ifdef PATH_MAX #else.
2253 Define as (get_path_max ()).
2254 [! PATH_MAX] (NEED_GET_PATH_MAX): Define.
2255 [! PATH_MAX] (get_path_max): Declare fn.
2256 * misc.c [NEED_GET_PATH_MAX] (get_path_max): New function.
2258 Mon Oct 12 13:34:45 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2262 * job.c (sys_siglist): Only declare #ifndef SYS_SIGLIST_DECLARED.
2263 * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2264 SYS_SIGLIST_DECLARED.
2266 * dir.c (file_impossible): When initializing DIR->contents, set
2267 DIR->contents->dirstream to nil.
2269 * compatMakefile (GLOB): Define new variable.
2270 (objs): Use it, rather than glob/libglob.a explicitly.
2272 * read.c (parse_file_seq): When stripping "./", handle cases like
2273 ".///foo" and "./////".
2274 * file.c (lookup_file, enter_file): Likewise.
2276 Sun Oct 11 17:00:35 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2278 * dir.c (struct dirstream, {open,read}_dirstream): New
2279 data type and functions to read a directory sequentially.
2280 (init_dir): New function to hook it into glob.
2281 * main.c (main): Call init_dir.
2283 * compatMakefile (objs): Added glob/libglob.a.
2284 * configure.in: Remove code to test for glob.
2286 Fri Oct 9 12:08:30 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2288 * read.c (record_files): Generalized test for NAME pointing
2289 somewhere into F->name.
2291 * variable.c (define_variable_in_set): Free old value when replacing.
2293 * read.c (do_define): Free the linebuffer before returning.
2294 (record_files): When clearing .SUFFIXES deps, free their data.
2295 (multi_glob): Free OLD and its data when replacing it with results
2298 * commands.c (set_file_variables): Use alloca in place of xmalloc
2299 for temp space for $^, $?, et al.
2301 * dir.c (struct directory): New member `contents' replaces `files'
2303 (struct directory_contents): New type.
2304 (directories_contents): New hash table.
2305 (dir_struct_file_exists_p): Take a struct directory_contents.
2306 (dir_file_exists_p): Pass it the `contents' member of the dir found.
2307 (dir_struct_file_exists_p): Renamed to dir_contents_file_exists_p;
2308 made static. Return 0 if DIR is nil (meaning it couldn't be stat'd).
2309 (dir_file_exists_p, find_directory): Change all callers.
2310 (file_impossible): Use DIR->contents, initializing it if nil.
2311 (print_dir_data_base): Use DIR->contents, and print out device and
2312 inode numbers with each directory.
2314 * Changes for performance win from John Gilmore <gnu@cygnus.com>:
2315 * dir.c (DIRECTORY_BUCKETS): Increase to 199.
2316 (DIRFILE_BUCKETS): Decrease to 107.
2317 (find_directory): Allocate and zero a multiple of
2318 sizeof (struct dirfile *), not of sizeof (struct dirfile).
2319 (dir_struct_file_exists_p): New function, nearly all code from
2321 (dir_file_exists_p): Just call find_directory+dir_struct_file_exists_p.
2322 * vpath.c (selective_vpath_search): Remove redundant
2323 dir_file_exists_p call.
2325 * configure.in: Comment out glob check; always use our code.
2327 Fri Oct 2 19:41:20 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2329 * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2330 HAVE_SYS_SIGLIST; after doing #define sys_siglist _sys_siglist, we
2333 Wed Sep 30 19:21:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2335 * main.c (main): Don't do -w automatically if -s.
2337 Tue Sep 29 21:07:55 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2339 * main.c (printed_version): Move variable inside print_version.
2340 (print_version): Return immediately if printed_version is set.
2341 (die): Don't test printed_version here.
2342 (decode_switches): Under -v, do print_version before giving usage.
2343 (DESCRIPTION_COLUMN): New macro.
2344 (decode_switches): Use it when printing the usage message.
2345 Leave at least two spaces between options and their descriptions.
2347 Fri Sep 25 13:12:42 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2351 Wed Sep 16 16:15:22 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2353 * read.c (read_makefile): Save errno value from trying to open
2354 FILENAME, and restore it before erring; otherwise we get the errno
2355 value from the last elt of the search path.
2357 Tue Sep 15 15:12:47 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2359 * main.c (long_option_aliases): Add --stop for -S.
2361 * read.c (word1eq): Do strncmp before dereferencing someplace that
2362 may be out in space.
2364 Wed Sep 9 15:50:41 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2366 * remake.c (notice_finished_file): If all the command lines were
2367 recursive, don't do the touching.
2369 * job.c (start_job_command): Don't check for + here.
2370 * commands.c (chop_commands): Do it here instead.
2372 * default.c (default_terminal_rules): Prepend + to cmds for RCS.
2374 Wed Sep 2 17:53:08 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2376 * compatMakefile (objs): Include $(ALLOCA).
2378 * make.h [CRAY]: Move #define signal bsdsignal to before #includes.
2380 Thu Aug 27 17:45:43 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
2382 * read.c (default_include_directories): Add INCLUDEDIR first.
2383 * compatMakefile (includedir): Define.
2384 (defines): Add -D for INCLUDEDIR="$(includedir)".
2386 * read.c (read_makefile): Grok multiple files in `include';
2389 * remake.c (library_search): New function.
2390 (library_file_mtime): Remove function.
2391 (f_mtime): Use library_search instead of library_file_mtime.
2392 * compatMakefile (libdir): Define.
2393 (defines): Add -D for LIBDIR="$(libdir)".
2394 * make.texinfo (Libraries/Search): Document change.
2396 * file.c (rename_file): Fix file_hash_enter call with missing arg.
2398 Wed Aug 26 17:10:46 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2402 * main.c (main): Set command_state to cs_finished for temp files
2403 made for stdin makefiles.
2405 * main.c (decode_switches): Don't tell getopt to return non-option
2407 Ignore an argument of `-'.
2409 Thu Aug 20 13:36:04 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2411 * job.c (start_job_command): If (touch_flag && !RECURSIVE), ignore
2412 the command line and go to the next.
2413 (notice_finished_file): Under -t, touch FILE.
2414 * remake.c (remake_file): Don't touch it here.
2416 Wed Aug 19 16:06:09 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2418 * function.c (pattern_matches): Use temporary for strlen (WORD)
2419 instead of two function calls.
2421 * compatMakefile (LOAD_AVG): Remove variable and comments.
2423 Tue Aug 18 14:58:58 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2425 * make.texinfo (Running): Node renamed to `make Invocation'.
2427 Fri Aug 14 12:27:10 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2429 * arscan.c (ar_name_equal): Don't compare [MAX-3..MAX] if
2432 Thu Aug 13 17:50:09 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2436 * main.c: Don't #include <time.h>; make.h already does.
2438 Mon Aug 10 17:03:01 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2440 * implicit.c (pattern_search): Fixed copying of suffix when building
2443 * function.c (expand_function: `shell'): Make sure BUFFER is
2444 null-terminated before replacing newlines.
2446 * compatMakefile (mandir): Use man$(manext), not always manl.
2448 Sun Aug 2 01:42:50 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2450 * rule.c (new_pattern_rule): Not static.
2451 * rule.h: Declare it.
2453 * file.c (file_hash_enter): New function, most code from rename_file.
2454 (rename_file): Call it.
2455 * file.h (file_hash_enter): Declare it.
2459 Thu Jul 30 15:40:48 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2461 * main.c (decode_switches): Handle usage_and_exit when building
2462 long options vector.
2464 * default.c (default_terminal_rules): Make RCS rules use $(CHECKOUT,v).
2465 (default_variables): Define CHECKOUT,v (hairy).
2467 * make.h [!HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2468 sys_siglist to _sys_siglist.
2470 Sun Jul 26 16:56:32 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2472 * NEWS: Add header and tail copyright info like Emacs NEWS.
2474 * make.h [ANSI_STRING]: Don't #define index, rindex, bcmp, bzero,
2475 bcopy if already #define'd.
2476 [STDC_HEADERS] (qsort, abort, exit): Declare here.
2477 [! __GNU_LIBRARY__ && !POSIX]: Not here.
2479 * make.h [_AIX]: #pragma alloca first thing.
2481 * job.c (start_waiting_job): Set the command_state to cs_running
2482 when we queue a job on waiting_jobs.
2484 Fri Jul 24 02:16:28 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2486 * variable.c (define_automatic_variables): Use "" instead of nil
2489 Thu Jul 23 22:31:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2493 * main.c (struct command_switch.type): Add alternative usage_and_exit.
2494 (command_switches): Add -h/--help.
2496 Thu Jul 16 14:27:50 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2498 * GNUmakefile (make-$(version).tar.Z): Include NEWS, not CHANGES.
2499 * README.template: Mention NEWS.
2500 * CHANGES: Renamed to NEWS.
2502 * main.c [! STDC_HEADERS] [sun]: Don't declare exit.
2504 Tue Jul 14 18:48:41 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2506 * main.c (main): Set -o files' command_states to cs_finished.
2508 * rule.c (count_implicit_rule_limits): Decrement num_pattern_rules
2509 when tossing a rule.
2511 * main.c (main): Use alloca only in simple local var assignment,
2512 for braindead SGI compiler.
2514 * rule.c (print_rule_data_base): Barf if num_pattern_rules is
2515 inconsistent with the number computed when listing them.
2517 Mon Jul 13 17:51:53 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2519 * commands.c (set_file_variables): For $? and $^ elts that are archive
2520 member refs, use member name only.
2522 Fri Jul 10 00:05:04 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2524 * variable.h (struct variable.export): Add new alternative v_ifset.
2525 * variable.c (target_environment): Check for it.
2526 (define_automatic_variables): Set it for MAKEFILES.
2528 Thu Jul 9 21:24:28 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2530 * compatMakefile (objs): Remove getloadavg.o; $(extras) gets it.
2531 (remote.o): Use $(srcdir)/remote.c, not $remote.c<.
2532 (distclean, mostlyclean): New targets.
2534 Tue Jul 7 19:12:49 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2538 * compatMakefile (config.status): Remove rule.
2540 * job.c (start_waiting_job): Free C after using C->file, not before.
2542 Sat Jul 4 20:51:49 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2544 * commands.c, job.c, main.c, make.h, remote-cstms.c: Use #ifdef
2545 HAVE_* instead of #ifndef *_MISSING.
2546 * configure.in: Use AC_HAVE_FUNCS instead of AC_MISSING_FUNCS (gone).
2548 Thu Jul 2 18:47:52 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2550 * main.c (main): makelevel>0 or -C implies -w.
2552 Tue Jun 30 20:50:17 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2554 * file.c, job.c, function.c: Don't #include <errno.h>.
2555 make.h: Do it here instead.
2556 * arscan.c (ar_member_touch): Don't declare errno.
2558 Thu Jun 25 17:06:55 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2560 * GNUmakefile (make-$(version).tar.Z): Depend on INSTALL, configure.in.
2562 * remake.c (update_file): If commands or deps are running after
2563 update_file_1 returns, break out of the :: rule (->prev) loop and
2566 * job.c (job_next_command): New function; code from start_job.
2567 (start_job_command): Renamed from start_job. Call job_next_command
2568 and recurse for empty command lines and -n.
2569 (start_waiting_job): Call start_job_command, not start_job.
2570 (new_job): Call job_next_command to prime the child structure, and
2571 then call start_waiting_job.
2572 (reap_children): Use job_next_command and start_job_command.
2573 (start_waiting_job): Call start_remote_job_p here, and store its
2574 result in C->remote. If zero, check the load average and
2575 maybe put C on waiting_jobs.
2576 (start_job_command): Test CHILD->remote rather than calling
2577 start_remote_job_p. Don't do load avg checking at all here.
2579 * main.c (main): Don't handle SIGILL, SIGIOT, SIGEMT, SIGBUS,
2580 SIGSEGV, SIGFPE or SIGTRAP.
2582 * compatMakefile (glob/libglob.a): Don't pass srcdir to sub-make.
2583 configure will set it in glob/Makefile.
2585 Wed Jun 24 19:40:34 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2587 * dir.c [DIRENT] (direct): Don't define to dirent.
2588 [! DIRENT] (direct): Define to dirent.
2589 (dir_file_exists_p): Use struct dirent instead of struct direct.
2591 * make.h (getcwd): No space between macro and ( for args!
2593 * job.c (start_job): Don't put the job on waiting_jobs if
2596 * make.texinfo (Missing): Shortened title.
2598 Tue Jun 23 18:42:21 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2600 * file.c (remove_intermediates): Print "rm" commands under -n.
2602 Mon Jun 22 16:20:02 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2606 Fri Jun 19 16:20:26 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2608 * arscan.c [M_UNIX]: #undef M_XENIX.
2610 Wed Jun 17 17:59:28 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2612 * default.c (default_terminal_rules): Put @ prefix on RCS cmds.
2614 Tue Jun 16 19:24:17 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2616 * compatMakefile (getloadavg.o): Removed special rule.
2617 (CFLAGS): Don't include $(defines).
2618 (.c.o): Define suffix rule.
2619 (glob/libglob.a): Pass CPPFLAGS=$(defines) to submake.
2620 (GETOPT_SRC, srcs, tagsrcs): Prefix files with $(srcdir)/.
2622 * arscan.c (ar_name_equal): Moved local vars inside #if'd block.
2624 * make.h (max): Removed.
2625 * expand.c (variable_buffer_output): Don't use it.
2627 * compatMakefile (INSTALL): Define.
2628 (Makefile): New rule to make from Makefile.in.
2631 (getloadavg.o, remote.o): Use autoconf $foo< hack.
2633 * commands.c (fatal_error_signal): Removed return.
2635 Mon Jun 15 17:42:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2639 * make.texinfo (Summary): New node.
2640 (Special Targets): Mention .EXPORT_ALL_VARIABLES here.
2642 * variable.c (max): Moved to make.h.
2644 * compatMakefile (objs, srcs): Added ar & arscan.
2646 * job.c (start_waiting_job): New function, 2nd half of new_job.
2648 (start_waiting_jobs): New function.
2649 * remake.c (update_goal_chain): Call start_waiting_jobs at the top
2651 * compatMakefile (objs, srcs): Removed load, added getloadavg.
2653 Fri Jun 12 19:33:16 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2655 * job.c (load_too_high): New function. Uses getloadavg.
2656 (waiting_jobs): New variable.
2657 (start_job): Don't call wait_to_start_job. Instead, if
2658 load_too_high returns nonzero, add the child to the
2659 `waiting_jobs' chain and return without starting the job.
2661 Thu Jun 11 00:05:28 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2663 * expand.c (variable_buffer_output): Made global again.
2664 * variable.h: And declare it.
2666 * arscan.c (PORTAR): Define for all systems if PORT5AR is not defined.
2667 (AR_NAMELEN, AR_TRAILING_SLASH): Removed.
2668 (ar_scan): Don't use it. Don't #ifdef AR_TRAILING_SLASH; just look
2669 for a slash in the archive at run time.
2670 (ar_name_equal): Rewrote .o hacking to not use AR_NAMELEN, and to
2671 cope with trailing-slash and non-trailing-slash archives.
2673 * main.c (main) [! SETVBUF_REVERSED]: Test this instead of USGr3 et al.
2674 [SETVBUF_REVERSED]: Always allocate a buffer ourselves.
2676 * load.c (load_average) [sgi]: Use sysmp call.
2678 * compatMakefile (INSTALL_DATA, INSTALL_PROGRAM): Define.
2679 ($(bindir)/$(instname), $(mandir)/make.$(manext)): Use them.
2681 * make.h [HAVE_VFORK_H]: #include <vfork.h>.
2682 (vfork, VFORK_NAME): Don't define.
2683 * job.c (start_job): Use "vfork" in place of VFORK_NAME.
2685 * make.h [HAVE_LIMITS_H, HAVE_SYS_PARAM_H]: If #define'd, #include
2686 the each file. Rearranged PATH_MAX hacking.
2687 * job.c: Rearranged NGROUPS_MAX hacking.
2689 * remake.c (fstat, time): Don't declare.
2691 * compatMakefile (defines): Value is @DEFS@.
2692 (LOADLIBES): Value is @LIBS@.
2693 (extras): Value is @LIBOBJS@.
2694 (ARCHIVES, ARCHIVES_SRC, ALLOCASRC): Removed.
2695 * arscan.c, ar.c: Surround body with #ifndef NO_ARCHIVES.
2697 * misc.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl get*id.
2699 * make.h [GETCWD_MISSING]: Test instead of !USG && !POSIX et al.
2700 (getcwd): Just declare if present. If not, declare as a macro
2701 using getwd, and declare getwd.
2702 [PATH_MAX] (GET_PATH_MAX): #define to PATH_MAX.
2703 * main.c (main, log_working_directory): Use getcwd instead of getwd.
2705 * main.c (main) [SETLINEBUF_MISSING]: Test this instead of USG.
2707 * make.h (SIGHANDLER, SIGNAL): Removed.
2708 (RETSIGTYPE): Define if not #define'd.
2709 * main.c (main): Use signal in place of SIGNAL.
2711 * main.c [SYS_SIGLIST_MISSING]: Test instead of USG.
2713 * job.c (search_path) [GETGROUPS_MISSING]: Test instead of USG.
2714 [HAVE_UNISTD_H]: Test instead of POSIX to not decl getgroups.
2716 * main.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl chdir.
2717 [! STDC_HEADERS]: Test instead of !POSIX to decl exit & atof.
2719 * job.c (child_handler), commands.c (fatal_error_signal): Return
2720 RETSIGTYPE instead of int.
2721 * main.c (main): Declare fatal_error_signal and child_handler here
2722 to return RETSIGTYPE; removed top-level decl of former.
2724 * commands.c (fatal_error_signal), job.c (unblock_sigs, start_job),
2725 main.c [SIGSETMASK_MISSING]: Test this instead of USG.
2727 Wed Jun 10 22:06:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2729 * job.c [HAVE_WAITPID]: Test this instead of USG.
2730 [! HAVE_UNISTD_H]: Test this instead of !POSIX to declare misc fns.
2731 (GID_T): Don't #define.
2732 (search_path): Use gid_t instead of GID_T.
2733 [GETDTABLESIZE_MISSING, SYS_SIGLIST_MISSING, DUP2_MISSING]: Test
2734 these individually instead of USG for all.
2735 * make.h (ctime): Don't declare. #include time.h instead.
2736 [HAVE_UNISTD_H]: #include <unistd.h> and #define POSIX #ifdef
2738 * dir.c [__GNU_LIBRARY__] (D_NAMLEN): Define to use d_namlen member.
2739 * make.h [NEED_MEMORY_H]: Only include memory.h #ifdef this.
2741 * arscan.c: Removed #ifdef mess about string.h et al.
2742 Just #include make.h instead.
2743 * make.h (fstat, atol): Declare.
2745 * commands.c (fatal_error_signal): Don't use sigmask to check for
2746 propagated signals; use ||s instead.
2747 (PROPAGATED_SIGNAL_MASK): Removed.
2748 (fatal_error_signal) [POSIX]: Use sigprocmask in place of sigsetmask.
2750 * variable.c (variable_buffer, variable_buffer_length,
2751 initialize_variable_output, variable_output): Moved to expand.c;
2753 (struct output_state, save_variable_output,
2754 restore_variable_output): Removed.
2755 * expand.c (initialize_variable_output): Put a NUL at the beginning
2756 of the new buffer after allocating it.
2757 (allocated_variable_expand_for_file): Don't use
2758 {save,restore}_variable_output. Do it by hand instead, keeping
2759 state on the stack instead of malloc'ing it.
2760 (allocated_variable_expand): Removed.
2761 * variable.h (allocated_variable_expand): Define here as macro.
2762 (variable_buffer_output, initialize_variable_output,
2763 save_variable_output, restore_variable_output): Removed decls.
2765 * read.c (conditional_line): For an if cmd, if any elt of the
2766 conditionals stack is ignoring, just push a new level that ignores
2767 and return 1; don't evaluate the condition.
2769 Thu Jun 4 21:01:20 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2771 * main.c (main): Put #ifdef's around frobbing SIGSYS and SIGBUS.
2773 * job.c (getdtablesize): Don't declare or #define if already #define'd.
2775 Wed Jun 3 23:42:36 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2777 * file.c (snap_deps): If `.EXPORT_ALL_VARIABLES' is a target, set
2778 export_all_variables.
2779 * make.texinfo (Variables/Recursion): Document .EXPORT_ALL_VARIABLES.
2781 Tue Jun 2 21:08:35 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2785 * commands.c (set_file_variables): Calculate length for ^D and ?D
2786 individually, making sure to give them at least enough space for "./".
2788 * make.h [CRAY]: #define signal to bsdsignal.
2790 * default.c (default_variables) [CRAY]: Define PC, SEGLDR,
2791 CF77PPFLAGS, CF77PP, CFT, CF, and FC.
2793 * arscan.c (AR_HDR_SIZE): Define to sizeof (struct ar_hdr), if it
2794 wasn't defined by <ar.h>.
2796 Thu May 28 00:56:53 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2800 Tue May 26 01:26:30 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2802 * rule.c (new_pattern_rule): Initialize LASTRULE to nil, not
2805 Mon May 25 19:02:15 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2807 * main.c (decode_switches): Initialize all the long_option elt members.
2809 Thu May 21 16:34:24 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
2811 * make.texinfo (Text Functions): Correct filter-out description.
2813 Tue May 19 20:50:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2815 * compatMakefile (realclean): Don't remove backup files.
2817 * main.c (decode_switches): Allocate ARGC+1 elts in `other_args'.
2819 Sun May 17 16:38:48 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
2823 Thu May 14 16:42:33 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
2825 * job.c (reap_children): Don't die if wait returns EINTR.
2827 Wed May 13 18:28:25 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2829 * job.c (reap_children): Always run the next command for a
2830 successful target. If we are going to die, we don't want to leave
2831 the target partially made.
2833 Tue May 12 00:39:19 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
2835 * job.c (construct_command_argv_internal): After loop, if we only
2836 have one word, check it for being a shell command.
2838 * main.c (decode_switches): Allocate ARGC slots in other_args to
2839 begin with, so we never need to worry about growing it.
2840 If we get a non-option arg and POSIXLY_CORRECT is in the
2841 environment, break out of the loop. After the loop, add all remaining
2842 args to other_args list.
2844 * main.c (decode_switches): For positive_int and floating switches
2845 when optarg is nil, use next arg if it looks right (start with a
2846 digit, or maybe decimal point for floating).
2848 * variable.c (define_automatic_variables): Always set SHELL to
2849 default if it comes from the environment. Set its export bit.
2850 * make.texinfo (Environment): Document change.
2852 Mon May 11 00:32:46 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
2856 * compatMakefile (tags, TAGS): Use vars for cmds.
2857 (ETAGS, CTAGS): Define.
2859 * main.c (decode_switches): If a switches elt has a nil long_name,
2860 make the long option name elt be "".
2861 Fixed loop to not ignore all the options.
2863 * make.texinfo (Option Summary): Added long options.
2865 * main.c (switches): Changed -m's description to "-b".
2866 (decode_switches): When printing the usage message, don't print
2867 switches whose descriptions start with -.
2868 When constructing the list of names for switch -C, search the
2869 switches vector for switches whose descriptions are "-C".
2871 * main.c (switches): Call -S --no-keep-going, not --dont-keep-going.
2872 Call -I --include-dir, not --include-path.
2873 (long_option_aliases): Added --new == -W, --assume-new == -W,
2874 --assume-old == -o, --max-load == -l, --dry-run == -n, --recon == -n,
2877 * main.c (switches): Removed bogus "silent" elt.
2878 (long_option_aliases): Define new var.
2879 (decode_switches): Add long_option_aliases onto the end of the long
2880 options vector created for getopt_long.
2881 Look through long_option_aliases for extra names to list
2884 Sat May 9 00:21:05 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2886 * main.c (log_working_directory): Fixed to properly not print the
2887 leaving message when we haven't printed the entering message.
2889 Fri May 8 21:55:35 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2891 * main.c (struct command_switch): Added elts `long_name',
2892 `description', and `argdesc'.
2893 (switches): Added initializers for new members.
2894 (decode_switches): Rewritten to use getopt_long.
2895 * compatMakefile (GETOPT, GETOPT_SRC): Define.
2896 (objs, srcs): Include them.
2898 * job.c (child_died): Renamed to dead_children; made static.
2899 (child_handler): Increment dead_children instead of setting child_died.
2900 (reap_children): Decrement dead_children instead of clearing
2901 child_died. The point of all this is to avoid printing "waiting
2902 for unfinished jobs" when we don't actually need to block.
2903 This happened when multiple SIGCHLDs before reap_children was called.
2905 * job.c (reap_children): If ERR is set, so we don't call start_job
2906 on the child being reaped, instead set its command_state to
2908 (reap_children, child_handler, new_job): I added several
2909 debugging printf's while fixing this. I left them in if (debug_flag)
2910 because they may be useful for debugging this stuff again.
2912 Wed May 6 22:02:37 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
2914 * read.c (read_makefile): v_export is not 1.
2916 Mon May 4 17:27:37 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2920 * variable.c (export_all_variables): New variable.
2921 (target_environment): Export variables whose `export' member is
2922 v_default if export_all_variables is set and their names are benign.
2923 * variable.h: Declare export_all_variables.
2924 * read.c (read_makefile): If export or unexport is given with no
2925 args, set or clear export_all_variables, respectively.
2927 * variable.c (target_environment): Exclude MAKELEVEL in the loop,
2928 so it isn't duplicated when we add it at the end.
2930 Sun May 3 17:44:48 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2934 * variable.h (struct variable): Added new member `export'.
2935 * variable.c (define_variable_in_set): Initialize it to v_default.
2936 (target_environment): Don't check for .NOEXPORT.
2937 Export variables whose `export' member is v_default and that would
2938 have been exported under .NOEXPORT, and variables whose `export'
2940 (try_variable_definition): Return the variable defined.
2941 * variable.h (try_variable_definition): Changed decl.
2942 * read.c (read_makefile): Recognize `export' and `unexport' directives.
2944 Fri May 1 11:39:38 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
2946 * main.c (main) [POSIX]: Reversed args to sigaddset.
2948 Thu Apr 30 17:33:32 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2950 * job.c [POSIX || !USG] (unblock_sigs): New fn.
2951 (start_job): Block signals before forking.
2952 (new_job): Unblock signals after putting the new child on the chain.
2953 * main.c (main) [POSIX]: Use sigset_t fatal_signal_set instead of
2954 int fatal_signal_mask.
2956 * load.c [sgi] (LDAV_CVT): Define.
2958 Wed Apr 29 17:15:59 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
2962 * load.c (load_average) [sgi]: Clear the high bit of the address
2963 from the symbol table before looking it up in kmem.
2965 * misc.c (fatal, makefile_fatal): Put *** in fatal error messages.
2966 (remake_file): No longer needed in message here.
2968 * main.c (die): Call reap_children with BLOCK==1.
2970 Tue Apr 28 20:44:35 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
2972 * rule.c (freerule): Don't set LASTRULE->next if LASTRULE is nil.
2974 Sun Apr 26 15:09:51 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
2976 * rule.c (count_implicit_rule_limits): Initialize LASTRULE to nil,
2977 not to head of chain. Extract next ptr before we might do
2978 freerule, and use that for next iteration.
2979 (freerule): Still do next ptr frobbing if LASTRULE is nil.
2981 Tue Apr 21 03:16:29 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2983 * job.c (child_error): Removed extra %s from error msg format.
2987 * job.c (reap_children): Don't start later commands in a sequence
2990 * job.c (new_job): Always call reap_children with BLOCK==0 first thing.
2992 * job.c (reap_children): New function; work that used to be done in
2994 (child_died): New global var.
2995 (child_handler): Now just sets child_died.
2996 (wait_for_children): Removed.
2997 (unknown_children_possible, block_signals, unblock_signals,
2998 push_signals_blocked_p, pop_signals_blocked_p): Removed.
2999 (child_execute_job): Removed call to unblock_signals.
3000 (new_job): Removed calls to push_signals_blocked_p and
3001 pop_signals_blocked_p.
3002 * job.h: Declare reap_children, not wait_for_children.
3003 * commands.c (fatal_error_signal), job.c (new_job),
3004 load.c [LDAV_BASED] (wait_to_start_job), main.c (die),
3005 remake.c (update_goal_chain), function.c (expand_function: `shell'):
3006 Changed wait_for_children calls to reap_children.
3007 Some needed to be loops to wait for all children to die.
3008 * commands.c (fatal_error_signal), main.c (main,
3009 log_working_directory), function.c (expand_function): Removed calls
3010 to push_signals_blocked_p and pop_signals_blocked_p.
3011 * job.h: Removed decls.
3013 * job.h: Added copyright notice.
3015 Wed Apr 15 02:02:40 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3017 * job.c (child_error): No *** for ignored error.
3019 Tue Apr 14 18:31:21 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3021 * implicit.c (DEBUGP2): Use do ... while (0) instead of if ... else to
3022 avoid compiler warnings.
3024 * read.c (parse_file_seq): Don't remove ./ when it is followed by a
3027 Mon Apr 13 21:56:15 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3029 * make.h (DEBUGPR): Use do ... while (0) instead of if ... else to
3030 avoid compiler warnings.
3032 * remake.c (notice_finished_file): Run file_mtime on the also_make
3033 files, so vpath_search can happen.
3035 * GNUmakefile (tests): Use perl test suite from csa@sw.stratus.com.
3036 (alpha-files): Include test suite tar file.
3038 Fri Apr 3 00:50:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3042 Wed Apr 1 05:31:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3044 * remake.c (update_file, update_file_1): Do check_renamed on elts
3045 of dep chains when traversing them. Something unrelated might have
3046 renamed one of the files the dep chain points to.
3048 * file.c (rename_file): If FILE has been renamed, follow its
3049 `renamed' ptr, so we get to the final real FILE. Using the renamed
3050 ones loses because they are not in the hash table, so the removal
3051 code loops infinitely.
3053 * read.c (read_all_makefiles): Clobber null terminator into
3054 MAKEFILES expansion, so string passed to read_makefile is properly
3057 Mon Mar 30 20:18:02 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3059 * commands.c (set_file_variables): $* for archive member with
3060 explicit cmds is stem of member, not of whole `lib(member)'.
3062 Thu Mar 26 15:24:38 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
3066 Tue Mar 24 05:20:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3068 * rule.c (new_pattern_rule): Rules are identical only if all their
3069 targets match (regardless of order).
3071 Wed Mar 11 13:49:54 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3073 * remake.c (remake_file): Changed error "no way to make" to "no
3074 rule to make". Fiat Hugh.
3076 * make.texinfo (Last Resort): Describe %:: rules and new .DEFAULT
3079 * remake.c (update_file_1): Only use .DEFAULT cmds if FILE is not a
3082 Tue Mar 10 18:13:13 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
3084 * remote-stub.c, remote-cstms.c (start_remote_job): Take new arg,
3085 environment to pass to child.
3086 * job.c (start_job): Pass it.
3088 Mon Mar 9 19:00:11 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3090 * file.c (enter_file): Also strip ./s here, to get command-line
3093 * remote-cstms.c: Add comment telling people to leave me alone.
3095 * compatMakefile (manpage install): Remove target before copying.
3097 Tue Mar 3 18:43:21 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3099 * make.texinfo (Missing): Renamed to "Incompatibilities and ...".
3100 Added paragraph describing $? incompatibility with Unix and POSIX.2.
3102 Sun Mar 1 15:50:54 1992 Roland McGrath (roland@nutrimat.gnu.ai.mit.edu)
3104 * function.c (expand_function: `shell'): Don't declare fork or pipe.
3105 Use vfork instead of fork.
3107 Tue Feb 25 22:05:32 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
3109 * make.texinfo (Chained Rules): Clarify .PRECIOUS to save
3112 * load.c [sun] (LDAV_CVT): Define to divide by FSCALE.
3114 Sun Feb 16 02:05:16 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
3118 Sat Feb 15 17:12:20 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
3120 * compatMakefile (makeinfo): Use emacs batch-texinfo-format fn.
3122 Fri Feb 14 00:11:55 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
3124 * read.c (read_makefile): Correctly handle define & endef in ifdefs.
3126 * read.c (record_files): Pass arg for %s in error msg.
3128 * main.c (main) [__IBMR2, POSIX]: Use correct (a la USGr3) setvbuf
3131 Wed Feb 12 12:07:39 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
3133 * make.texinfo (Libraries/Search): Say it does /usr/local/lib too.
3135 Sun Feb 9 23:06:24 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3137 * read.c (read_makefile): Check for extraneous `endef' when ignoring.
3139 Thu Feb 6 16:15:48 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3143 Tue Feb 4 20:04:46 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3145 * job.c (construct_command_argv_internal): Correctly ignore
3146 whitespace after backslash-NL.
3148 Fri Jan 31 18:30:05 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3150 * compatMakefile: Ignore errors from chgrp and chmod when installing.
3152 Wed Jan 29 18:13:30 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
3154 * main.c (main): When setting MAKELEVEL in the env to re-exec,
3155 allocate space so as not to clobber past the end of the old string.
3157 * make.h [HAVE_ALLOCA_H]: Include <alloca.h>
3158 * compatMakefile (defines): Document HAVE_ALLOCA_H.
3160 Mon Jan 20 13:40:05 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
3162 * make.h [VFORK_MISSING]: Use fork instead.
3163 * compatMakefile (defines): Document same.
3165 * job.c (construct_command_argv_internal): Don't create an empty
3166 arg if backslash-NL is at beginning of word.
3168 Sun Jan 19 16:26:53 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
3170 * main.c [DGUX]: Call setvbuf as for USGr3.
3172 * job.c (construct_command_argv_internal): Notice correctly that
3173 backslash-NL is the end of the arg (because it is replaced with a
3176 Thu Jan 16 18:42:38 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
3178 * job.c (construct_command_argv_internal): If SHELL is nil, set it
3179 to default_shell before proceeding.
3181 * make.h [sgi]: No alloca.h, after all.
3183 Wed Jan 15 12:30:04 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
3185 * read.c (multi_glob): Cons up the chain of the results of glob
3186 from back to front, so it comes out in forward order.
3188 * job.c (construct_command_argv_internal): Don't eat char following
3191 Mon Jan 13 19:16:56 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
3195 * default.c (default_variables) [ultrix]: GET=get, like USG.
3197 * job.c (construct_command_argv_internal): Remove tabs following
3198 backslash-NL combos in the input line, so they don't show up when
3199 that line is printed.
3201 * read.c (read_makefile): Don't collapse_continuations the line on
3202 input; do it on the copy we do remove_comments on.
3203 For rule lines, collapse_continuations the line after chopping
3204 ";cmds" off the end, so we don't eat conts in the cmds.
3205 Give error for ";cmds" with no rule.
3206 * job.c (construct_command_argv_internal): Eat backslash-NL combos
3207 when constructing the line to recurse on for slow, too.
3209 Sat Jan 11 02:20:27 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
3211 * file.c (enter_file): Don't strip leading `./'s.
3212 * read.c (parse_file_seq): Take new arg STRIP; if nonzero, do it here.
3213 * default.c (set_default_suffixes), function.c (string_glob),
3214 read.c (read_makefile), rule.c (install_pattern_rule): Change callers.
3216 * default.c (default_variables) [_IBMR2]: FC=xlf
3218 * job.c (construct_command_argv_internal): Turn backslash-NL and
3219 following whitespace into a single space, rather than just eating
3222 * make.texinfo (Copying): @include gpl.texinfo, rather than
3223 duplicating its contents.
3225 Fri Nov 8 20:06:03 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3227 * job.c (construct_command_argv_internal): Make sure not to bother
3228 processing an empty line.
3232 * job.c (construct_command_argv_internal): Always recurse for slow;
3233 simple case didn't handle finding newlines.
3235 Tue Nov 5 18:51:10 1991 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
3237 * job.c (construct_command_argv_internal): Set RESTP properly when
3238 slow; don't \ify past a newline.
3240 Fri Nov 1 19:34:28 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3242 * make.h [sgi]: #include <alloca.h>.
3246 See ChangeLog.1 for earlier changes.