1 1999-03-04 Paul D. Smith <psmith@gnu.org>
3 * variable.c (try_variable_definition): If we see a conditional
4 variable and we decide to set it, re-type it as recursive so it
5 will be expanded properly later.
7 1999-02-22 Paul D. Smith <psmith@gnu.org>
9 * NEWS: Mention new .LIBPATTERNS feature.
11 * make.texinfo (Libraries/Search): Describe the use and
12 ramifications of the new .LIBPATTERNS variable.
14 * remake.c (library_search): Instead of searching only for the
15 hardcoded expansion "libX.a" for a library reference "-lX", we
16 obtain a list of patterns from the .LIBPATTERNS variable and
17 search those in order.
19 * default.c: Added a new default variable .LIBPATTERNS. The
20 default for UNIX is "lib%.so lib%.a". Amiga and DOS values are
23 * read.c: Remove bogus HAVE_GLOB_H references; always include
26 1999-02-21 Paul D. Smith <psmith@gnu.org>
28 * function.c (expand_function): Set value to 0 to avoid freeing it.
29 * variable.c (pop_variable_scope): Free the value of the variable.
30 (try_variable_definition): For simple variables, use
31 allocated_variable_expand() to avoid stomping on the variable
32 buffer when we still need it for other things.
34 * arscan.c: Modified to support AIX 4.3 big archives. The changes
35 are based on information provided by Phil Adams
36 <padams@austin.ibm.com>; thanks!
38 1999-02-19 Paul D. Smith <psmith@gnu.org>
40 * configure.in: Check to see if the GNU glob library is already
41 installed on the system. If so, _don't_ add -I./glob to the
42 compile line. Using the system glob code with the local headers
44 Rewrite SCCS macros to use more autoconf facilities.
46 * Makefile.am: Move -Iglob out of INCLUDES; it'll get added to
47 CPPFLAGS by configure now.
48 Automake 1.4 introduced its own "include" feature which conflicts
49 with the maintMakefile stuff. A hack that seems to work is add a
50 space before the include :-/.
52 * build.template: Move -Iglob out of the compile line; it'll get
53 added to CPPFLAGS by configure now.
55 1999-02-16 Glenn D. Wolf <Glenn_Wolf@email.sps.mot.com>
57 * arscan.c (ar_scan): [VMS] Initialized VMS_member_date before
58 calling lbr$get_index since if the archive is empty,
59 VMS_get_member_info won't get called at all, and any leftover date
60 will be used. This bug shows up if any member of any archive is
61 made, followed by a dependency check on a different, empty
64 1998-11-30 Paul D. Smith <psmith@gnu.org>
66 * signame.c (init_sig): Check the sizes of signals being set up to
67 avoid array overwrites (if the system headers have problems).
69 1998-11-17 Paul D. Smith <psmith@gnu.org>
71 * read.c (record_files): Clean up some indentation.
73 1998-10-13 Paul D. Smith <psmith@gnu.org>
75 * job.c (new_job): If the command list resolves to empty (through
76 variable expansion, for example), stop early rather than running
79 1998-10-12 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
81 * rule.c (print_rule_data_base): Ignore num_pattern_rules if it is
84 1998-10-09 Paul D. Smith <psmith@gnu.org>
86 * read.c (read_makefile): Allow non-empty lines to expand to the
87 empty string after variable, etc., expansion, and be ignored.
89 1998-09-21 Paul D. Smith <psmith@gnu.org>
91 * job.c (construct_command_argv_internal): Only add COMMAND.COM
92 "@echo off" line for non-UNIXy shells.
94 1998-09-09 Paul D. Smith <psmith@gnu.org>
96 * w32/subproc/sub_proc.c: Add in missing HAVE_MKS_SHELL tests.
98 1998-09-04 Paul D. Smith <psmith@gnu.org>
100 * read.c (read_makefile): If we hit the "missing separator" error,
101 check for the common case of 8 spaces instead of a TAB and give an
102 extra comment to help people out.
104 1998-08-29 Paul Eggert <eggert@twinsun.com>
106 * configure.in (AC_STRUCT_ST_MTIM_NSEC):
107 Renamed from AC_STRUCT_ST_MTIM.
109 * acinclude.m4 (AC_STRUCT_ST_MTIM_NSEC): Likewise.
110 Port to UnixWare 2.1.2 and pedantic Solaris 2.6.
112 * acconfig.h (ST_MTIM_NSEC):
113 Renamed from HAVE_ST_MTIM, with a new meaning.
115 * filedef.h (FILE_TIMESTAMP_FROM_S_AND_NS):
116 Use new ST_MTIM_NSEC macro.
118 1998-08-26 Paul D. Smith <psmith@gnu.org>
120 * remake.c (check_dep): For any intermediate file, not just
121 secondary ones, try implicit and default rules if no explicit
122 rules are given. I'm not sure why this was restricted to
123 secondary rules in the first place.
125 1998-08-24 Paul D. Smith <psmith@gnu.org>
127 * make.texinfo (Special Targets): Update documentation for
128 .INTERMEDIATE: if used with no dependencies, then it does nothing;
129 old docs said it marked all targets as intermediate, which it
130 didn't... and which would be silly :).
132 * implicit.c (pattern_search): If we find a dependency in our
133 internal tables, make sure it's not marked intermediate before
134 accepting it as a found_file[].
136 1998-08-20 Paul D. Smith <psmith@gnu.org>
138 * ar.c (ar_glob): Use existing alpha_compare() with qsort.
139 (ar_glob_alphacompare): Remove it.
141 Modify Paul Eggert's patch so we don't abandon older systems:
143 * configure.in: Warn the user if neither waitpid() nor wait3() is
146 * job.c (WAIT_NOHANG): Don't syntax error on ancient hosts.
147 (child_handler, dead_children): Define these if WAIT_NOHANG is not
149 (reap_children): Only track the dead_children count if no
150 WAIT_NOHANG. Otherwise, it's a boolean.
152 * main.c (main): Add back signal handler if no WAIT_NOHANG is
153 available; only use default signal handler if it is.
155 1998-08-20 Paul Eggert <eggert@twinsun.com>
157 Install a more robust signal handling mechanism for systems which
160 * job.c (WAIT_NOHANG): Define to a syntax error if our host
161 is truly ancient; this should never happen.
162 (child_handler, dead_children): Remove.
163 (reap_children): Don't try to keep separate track of how many
164 dead children we have, as this is too bug-prone.
165 Just ask the OS instead.
166 (vmsHandleChildTerm): Fix typo in error message; don't mention
169 * main.c (main): Make sure we're not ignoring SIGCHLD/SIGCLD;
170 do this early, before we could possibly create a subprocess.
171 Just use the default behavior; don't have our own handler.
173 1998-08-18 Eli Zaretskii <eliz@is.elta.co.il>
175 * read.c (read_makefile) [__MSDOS__, WINDOWS32]: Add code to
176 recognize library archive members when dealing with drive spec
177 mess. Discovery and initial fix by George Racz <gracz@mincom.com>.
179 1998-08-18 Paul D. Smith <psmith@gnu.org>
181 * configure.in: Check for stdlib.h explicitly (some hosts have it
182 but don't have STDC_HEADERS).
183 * make.h: Use HAVE_STDLIB_H. Clean up some #defines.
184 * config.ami: Re-compute based on new config.h.in contents.
185 * config.h-vms: Ditto.
186 * config.h.W32: Ditto.
187 * configh.dos: Ditto.
189 1998-08-17 Paul D. Smith <psmith@gnu.org>
191 * make.texinfo: Added copyright year to the printed copy. Removed
192 the price from the manual. Change the top-level reference to
193 running make to be "Invoking make" instead of "make Invocation",
194 to comply with GNU doc standards.
196 * make.h (__format__, __printf__): Added support for these in
198 (message, error, fatal): Use ... prototype form under __STDC__.
199 Add __format__ attributes for printf-style functions.
201 * configure.in (AC_FUNC_VPRINTF): Check for vprintf()/_doprnt().
203 * misc.c(message, error, fatal): Add preprocessor stuff to enable
204 creation of variable-argument functions with appropriate
205 prototypes, that works with ANSI, pre-ANSI, varargs.h, stdarg.h,
206 v*printf(), _doprnt(), or none of the above. Culled from GNU
207 fileutils and slightly modified.
208 (makefile_error, makefile_error): Removed (merged into error() and
209 fatal(), respectively).
212 * arscan.c: Use them.
213 * commands.c: Use them.
214 * expand.c: Use them.
216 * function.c: Use them.
221 * remake.c: Use them.
222 * remote-cstms.c: Use them.
224 * variable.c: Use them.
226 * make.h (struct floc): New structure to store file location
228 * commands.h (struct commands): Use it.
229 * variable.c (try_variable_definition): Use it.
230 * commands.c: Use it.
233 * function.c: Use it.
238 1998-08-16 Paul Eggert <eggert@twinsun.com>
240 * filedef.h (FILE_TIMESTAMP_PRINT_LEN_BOUND): Add 10, for nanoseconds.
242 1998-08-16 Paul Eggert <eggert@twinsun.com>
244 * filedef.h (FLOOR_LOG2_SECONDS_PER_YEAR): New macro.
245 (FILE_TIMESTAMP_PRINT_LEN_BOUND): Tighten bound, and try to
246 make it easier to understand.
248 1998-08-14 Paul D. Smith <psmith@gnu.org>
250 * read.c (read_makefile): We've already unquoted any colon chars
251 by the time we're done reading the targets, so arrange for
252 parse_file_seq() on the target list to not do so again.
254 1998-08-05 Paul D. Smith <psmith@gnu.org>
256 * configure.in: Added glob/configure.in data. We'll have the glob
257 code include the regular make config.h, rather than creating its
260 * getloadavg.c (main): Change return type to int.
262 1998-08-01 Paul Eggert <eggert@twinsun.com>
264 * job.c (reap_children): Ignore unknown children.
266 1998-07-31 Paul D. Smith <psmith@gnu.org>
268 * make.h, filedef.h, dep.h, rule.h, commands.h, remake.c:
269 Add prototypes for functions. Some prototypes needed to be moved
270 in order to get #include order reasonable.
272 1998-07-30 Paul D. Smith <psmith@gnu.org>
274 * make.h: Added MIN/MAX.
275 * filedef.h: Use them; remove FILE_TIMESTAMP_MIN.
277 1998-07-30 Paul Eggert <eggert@twinsun.com>
279 Add support for sub-second timestamp resolution on hosts that
280 support it (just Solaris 2.6, so far).
282 * acconfig.h (HAVE_ST_MTIM, uintmax_t): New undefs.
283 * acinclude.m4 (jm_AC_HEADER_INTTYPES_H, AC_STRUCT_ST_MTIM,
284 jm_AC_TYPE_UINTMAX_T): New defuns.
285 * commands.c (delete_target): Convert file timestamp to
286 seconds before comparing to archive timestamp. Extract mod
287 time from struct stat using FILE_TIMESTAMP_STAT_MODTIME.
288 * configure.in (C_STRUCT_ST_MTIM, jm_AC_TYPE_UINTMAX_T): Add.
289 (AC_CHECK_LIB, AC_CHECK_FUNCS): Add clock_gettime.
290 * file.c (snap_deps): Use FILE_TIMESTAMP, not time_t.
291 (file_timestamp_now, file_timestamp_sprintf): New functions.
292 (print_file): Print file timestamps as FILE_TIMESTAMP, not
294 * filedef.h: Include <inttypes.h> if available and if HAVE_ST_MTIM.
295 (FILE_TIMESTAMP, FILE_TIMESTAMP_STAT_MODTIME, FILE_TIMESTAMP_MIN,
296 FILE_TIMESTAMPS_PER_S, FILE_TIMESTAMP_FROM_S_AND_NS,
297 FILE_TIMESTAMP_DIV, FILE_TIMESTAMP_MOD, FILE_TIMESTAMP_S,
298 FILE_TIMESTAMP_NS, FILE_TIMESTAMP_PRINT_LEN_BOUND): New macros.
299 (file_timestamp_now, file_timestamp_sprintf): New decls.
300 (struct file.last_mtime, f_mtime, file_mtime_1, NEW_MTIME):
301 time_t -> FILE_TIMESTAMP.
302 * implicit.c (pattern_search): Likewise.
303 * vpath.c (vpath_search, selective_vpath_search): Likewise.
304 * main.c (main): Likewise.
305 * remake.c (check_dep, name_mtime, library_search, f_mtime): Likewise.
306 (f_mtime): Use file_timestamp_now instead of `time'.
307 Print file timestamp with file_timestamp_sprintf.
308 * vpath.c (selective_vpath_search): Extract file time stamp from
309 struct stat with FILE_TIMESTAMP_STAT_MODTIME.
311 1998-07-28 Paul D. Smith <psmith@gnu.org>
313 * Version 3.77 released.
315 * dosbuild.bat: Change to DOS CRLF line terminators.
317 * make-stds.texi: Update from latest version.
319 * make.texinfo (Options Summary): Clarify that the -r option
320 affects only rules, not builtin variables.
322 1998-07-27 Paul D. Smith <psmith@gnu.org>
324 * make.h: Make __attribute__ resolve to empty for non-GCC _and_
327 * misc.c (log_access): Print UID/GID's as unsigned long int for
330 * job.c (reap_children): Print PIDs as long int for maximum
333 1998-07-24 Eli Zaretskii <eliz@is.elta.co.il>
335 * Makefile.DOS (*_INSTALL, *_UNINSTALL): Replace `true' with `:'.
337 1998-07-25 Paul D. Smith <psmith@gnu.org>
339 * Version 3.76.94 released.
341 1998-07-23 Paul D. Smith <psmith@gnu.org>
343 * config.h.W32.template: Make sure all the #defines of macros here
344 have a value (e.g., use ``#define HAVE_STRING_H 1'' instead of
345 just ``#define HAVE_STRING_H''. Keeps the preprocessor happy in
348 * make.h: Remove __attribute__((format...)) stuff; using it with
349 un-prototyped functions causes older GCC's to fail.
351 * Version 3.76.93 released.
353 1998-07-22 Paul D. Smith <psmith@gnu.org>
355 * file.c (print_file_data_base): Fix average calculation.
357 1998-07-20 Paul D. Smith <psmith@gnu.org>
359 * main.c (die): Postpone the chdir() until after
360 remove_intermediates() so that intermediate targets with relative
361 pathnames are removed properly.
363 1998-07-17 Paul D. Smith <psmith@gnu.org>
365 * filedef.h (struct file): New flag: did we print an error or not?
367 * remake.c (no_rule_error): New function to print error messages,
368 extraced from remake_file().
370 * remake.c (remake_file): Invoke the new error print function.
371 (update_file_1): Invoke the error print function if we see that we
372 already tried this target and it failed, but that an error wasn't
373 printed for it. This can happen if a file is included with
374 -include or sinclude and couldn't be built, then later is also
375 the dependency of another target. Without this change, make just
378 1998-07-16 Paul D. Smith <psmith@gnu.org>
380 * make.texinfo: Removed "beta" version designator.
381 Updated ISBN for the next printing.
383 1998-07-13 Paul Eggert <eggert@twinsun.com>
385 * acinclude.m4: New AC_LFS macro to determine if special compiler
386 flags are needed to allow access to large files (e.g., Solaris 2.6).
387 * configure.in: Invoke it.
389 1998-07-08 Eli Zaretskii <eliz@is.elta.co.il>
391 * Makefile.DOS: track changes in Makefile.in.
393 1998-07-07 Paul D. Smith <psmith@gnu.org>
395 * remote-cstms.c (start_remote_job): Move gethostbyaddr() to the
396 top so host is initialized early enough.
398 * acinclude.m4: New file. Need some special autoconf macros to
399 check for network libraries (-lsocket, -lnsl, etc.) when
402 * configure.in (make_try_customs): Invoke new network libs macro.
404 1998-07-06 Paul D. Smith <psmith@gnu.org>
406 * Version 3.76.92 released.
408 * README.customs: Added to the distribution.
410 * configure.in (make_try_customs): Rewrite to require an installed
411 Customs library, rather than looking at the build directory.
413 * Makefile.am (man_MANS): Install make.1.
414 * make.1: Renamed from make.man.
416 * make.texinfo (Bugs): New mailing list address for GNU make bug
419 1998-07-02 Paul D. Smith <psmith@gnu.org>
421 * Version 3.76.91 released.
423 * default.c: Added default rule for new-style RCS master file
424 storage; ``% :: RCS/%''.
425 Added default rules for DOS-style C++ files with suffix ".cpp".
426 They use the new LINK.cpp and COMPILE.cpp macros, which are set by
427 default to be equal to LINK.cc and COMPILE.cc.
429 1998-06-19 Eli Zaretskii <eliz@is.elta.co.il>
431 * job.c (start_job_command): Reset execute_by_shell after an empty
434 1998-06-09 Paul D. Smith <psmith@gnu.org>
436 * main.c (main): Keep track of the temporary filename created when
437 reading a makefile from stdin (-f-) and attempt to remove it
438 as soon as we know we're not going to re-exec. If we are, add it
439 to the exec'd make's cmd line with "-o" so the exec'd make doesn't
440 try to rebuild it. We still have a hole: if make re-execs then
441 the temporary file will never be removed. To fix this we'd need
442 a brand new option that meant "really delete this".
443 * AUTHORS, getopt.c, getopt1.c, getopt.h, main.c (print_version):
444 Updated mailing addresses.
446 1998-06-08 Paul D. Smith <psmith@gnu.org>
448 * main.c (main): Andreas Luik <luik@isa.de> points out that the
449 check for makefile :: rules with commands but no dependencies
450 causing a loop terminates incorrectly.
452 * maintMakefile: Make a template for README.DOS to update version
455 1998-05-30 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
457 * remake.c (update_file_1): Don't free the memory for the
458 dependency structure when dropping a circular dependency.
460 1998-05-30 Eli Zaretskii <eliz@is.elta.co.il>
462 * dir.c (file_exists_p, file_impossible_p, file_impossible)
463 [__MSDOS__, WINDOWS32]: Retain trailing slash in "d:/", and make
464 dirname of "d:foo" be "d:".
466 1998-05-26 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
468 * read.c (read_makefile): Avoid running past EOS when scanning
469 file name after `include'.
471 1998-05-26 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
473 * make.texinfo (Flavors): Correct description of conditional
474 assignment, which is not equivalent to ifndef.
477 1998-05-24 Paul D. Smith <psmith@gnu.org>
479 * arscan.c (ar_name_equal): strncmp() might be implemented as a
480 macro, so don't put preprocessor conditions inside the arguments
483 1998-05-23 Eli Zaretskii <eliz@is.elta.co.il>
485 * read.c (read_makefile) [__MSDOS__, WINDOWS32]: Skip colons in
486 drive specs when parsing targets, target-specific variables and
487 static pattern rules. A colon can only be part of drive spec if
488 it is after the first letter in a token.
490 1998-05-22 Eli Zaretskii <eliz@is.elta.co.il>
492 * remake.c (f_mtime) [__MSDOS__]: Allow up to 3 sec of skew before
493 yelling bloody murder.
495 * dosbuild.bat: Use -DINCLUDEDIR= and -DLIBDIR= where appropriate.
497 * read.c (parse_file_seq): Combine the special file-handling code
498 for WINDOWS32 and __MSDOS__ into a single snippet.
499 (get_next_mword) [__MSDOS__, WINDOWS32]: Allow a word to include a
500 colon as part of a drive spec.
502 * job.c (batch_mode_shell) [__MSDOS__]: Declare.
504 1998-05-20 Paul D. Smith <psmith@gnu.org>
506 * Version 3.76.90 released.
508 1998-05-19 Paul D. Smith <psmith@gnu.org>
510 * make.texinfo (Make Errors): Added a new appendix describing
511 common errors make might generate and how to resolve them (or at
512 least more information on what they mean).
514 * maintMakefile (NMAKEFILES): Use the new automake 1.3 feature
515 to create a dependency file to construct Makefile.DOS, SMakefile,
517 (.dep_segment): Generate the dependency fragment file.
519 1998-05-14 Paul D. Smith <psmith@gnu.org>
521 * make.man: Minor changes.
523 1998-05-13 Paul D. Smith <psmith@gnu.org>
525 * function.c (pattern_matches,expand_function): Change variables
526 and types named "word" to something else, to avoid compilation
527 problems on Cray C90 Unicos.
528 * variable.h: Modify the function prototype.
530 1998-05-11 Rob Tulloh <rob_tulloh@tivoli.com>
532 * job.c (construct_command_argv_internal): [WINDOWS32] Turn off
533 echo when using a batch file, and make sure the command ends in a
536 1998-05-03 Paul D. Smith <psmith@gnu.org>
538 * configure.in (make_try_customs): Add some customs flags if the
539 user configures custom support.
541 * job.c, remote-cstms.c: Merge in changes for custom library.
543 * remote-stub.c: Add option to stub start_remote_job_p().
545 1998-05-01 Paul D. Smith <psmith@gnu.org>
547 * remake.c (f_mtime): Install VPATH+ handling for archives; use
548 the hname field instead of the name field, and rehash when
551 1998-04-30 Paul D. Smith <psmith@gnu.org>
553 * rule.c (print_rule_data_base): Print out any pattern-specific
554 variable values into the rules database.
556 * variable.c (print_variable_set): Make this variable extern, to
557 be called by print_rule_data_base() for pattern-specific variables.
559 * make.texinfo (Pattern-specific): Document pattern-specific
562 1998-04-29 Paul D. Smith <psmith@gnu.org>
564 * expand.c (variable_expand_for_file): Make static; its only
565 called internally. Look up this target in the list of
566 pattern-specific variables and insert the variable set into the
567 queue to be searched.
569 * filedef.h (struct file): Add a new field to hold the
570 previously-found pattern-specific variable reference. Add a new
571 flag to remember whether we already searched for this file.
573 * rule.h (struct pattern_var): New structure for storing
574 pattern-specific variable values. Define new function prototypes.
576 * rule.c: New variables pattern_vars and last_pattern_var for
577 storage and handling of pattern-specific variable values.
578 (create_pattern_var): Create a new pattern-specific variable value
580 (lookup_pattern_var): Try to match a target to one of the
581 pattern-specific variable values.
583 1998-04-22 Paul D. Smith <psmith@gnu.org>
585 * make.texinfo (Target-specific): Document target-specific
588 1998-04-21 Paul D. Smith <psmith@gnu.org>
590 * variable.c (define_variable_in_set): Made globally visible.
591 (lookup_variable_in_set): New function: like lookup_variable but
592 look only in a specific variable set.
593 (target_environment): Use lookup_variable_in_set() to get the
594 correct export rules for a target-specific variable.
595 (create_new_variable_set): Create a new variable set, and just
596 return it without installing it anywhere.
597 (push_new_variable_scope): Reimplement in terms of
598 create_new_variable_set.
600 * read.c (record_target_var): Like record_files, but instead of
601 files create a target-specific variable value for each of the
602 listed targets. Invoked from read_makefile() when the target line
603 turns out to be a target-specific variable assignment.
605 1998-04-19 Paul D. Smith <psmith@gnu.org>
607 * read.c (read_makefile): Rewrite the entire target parsing
608 section to implement target-specific variables. In particular, we
609 cannot expand the entire line as soon as it's read in, since we
610 may want to evaluate parts of it with different variable contexts
611 active. Instead, start expanding from the beginning until we find
612 the `:' (or `::'), then determine what kind of line this is and
613 continue appropriately.
615 * read.c (get_next_mword): New function to parse a makefile line
616 by "words", considering an entire variable or function as one
617 word. Return the type read in, along with its starting position
619 (enum make_word_type): The types of words that are recognized by
622 * variable.h (struct variable): Add a flag to specify a per-target
625 * expand.c: Make variable_buffer global. We need this during the
626 new parsing of the makefile.
627 (variable_expand_string): New function. Like variable_expand(),
628 but start at a specific point in the buffer, not the beginning.
629 (variable_expand): Rewrite to simply call variable_expand_string().
631 1998-04-13 Paul D. Smith <psmith@gnu.org>
633 * remake.c (update_goal_chain): Allow the rebuilding makefiles
634 step to use parallel jobs. Not sure why this was disabled:
635 hopefully we won't find out :-/.
637 1998-04-11 Paul D. Smith <psmith@gnu.org>
639 * main.c (main): Set the CURDIR makefile variable.
640 * make.texinfo (Recursion): Document it.
642 1998-03-17 Paul D. Smith <psmith@gnu.org>
644 * misc.c (makefile_fatal): If FILE is nil, invoke plain fatal().
645 * variable.c (try_variable_definition): Use new feature.
647 1998-03-10 Paul D. Smith <psmith@gnu.org>
649 * main.c (main): Don't pass included, rebuilt makefiles to
650 re-exec'd makes with -o. Reopens a possible loop, but it caused
653 1998-03-02 Paul D. Smith <psmith@gnu.org>
655 * variable.c (try_variable_definition): Implement ?=.
656 * make.texinfo (Setting): Document it.
658 1998-02-28 Eli Zaretskii <eliz@is.elta.co.il>
660 * job.c (start_job_command): Reset execute_by_shell after an empty
661 command, like ":", has been seen.
663 Tue Oct 07 15:00:00 1997 Phil Brooks <phillip_brooks@hp.com>
665 * make.h: [WINDOWS32] make case sensitivity configurable
666 * dir.c: [WINDOWS32] make case sensitivity configurable
667 * README.W32: Document case sensitivity
668 * config.ami: Share case warping code with Windows
670 Mon Oct 6 18:48:45 CDT 1997 Rob Tulloh <rob_tulloh@dev.tivoli.com>
672 * w32/subproc/sub_proc.c: Added support for MKS toolkit shell
673 (turn on HAVE_MKS_SHELL).
674 * read.c: [WINDOWS32] Fixed a problem with multiple target rules
675 reported by Gilbert Catipon (gcatipon@tibco.com). If multiple
676 path tokens in a rule did not have drive letters, make would
677 incorrectly concatenate the 2 tokens together.
678 * main.c/variable.c: [WINDOWS32] changed SHELL detection code to
679 follow what MSDOS did. In addition to watching for SHELL variable
680 updates, make's main will attempt to default the value of SHELL
681 before and after makefiles are parsed.
682 * job.c/job.h: [WINDOWS32] The latest changes made to enable use
683 of the GNUWIN32 shell from make could cause make to fail due to a
684 concurrency condition between parent and child processes. Make
685 now creates a batch file per job instead of trying to reuse the
686 same singleton batch file.
687 * job.c/job.h/function.c/config.h.W32: [WINDOWS32] Renamed macro
688 from HAVE_CYGNUS_GNUWIN32_TOOLS to BATCH_MODE_ONLY_SHELL. Reworked
689 logic to reduce complexity. WINDOWS32 now uses the unixy_shell
690 variable to detect Bourne-shell compatible environments. There is
691 also a batch_mode_shell variable that determines whether not
692 command lines should be executed via script files. A WINDOWS32
693 system with no sh.exe installed would have unixy_shell set to
694 FALSE and batch_mode_shell set to TRUE. If you have a unixy shell
695 that does not behave well when invoking things via 'sh -c xxx',
696 you may want to turn on BATCH_MODE_ONLY_SHELL and see if things
698 * NMakefile: Added /D DEBUG to debug build flags so that unhandled
699 exceptions could be debugged.
701 Mon Oct 6 00:04:25 1997 Rob Tulloh <rob_tulloh@dev.tivoli.com>
703 * main.c: [WINDOWS32] The function define_variable() does not
704 handle NULL. Test before calling it to set Path.
705 * main.c: [WINDOWS32] Search Path again after makefiles have been
706 parsed to detect sh.exe.
707 * job.c: [WINDOWS32] Added support for Cygnus GNU WIN32 tools.
708 To use, turn on HAVE_CYGNUS_GNUWIN32_TOOLS in config.h.W32.
709 * config.h.W32: Added HAVE_CYGNUS_GNUWIN32_TOOLS macro.
711 Sun Oct 5 22:43:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
713 * glob/glob.c (glob_in_dir): [VMS] Globbing shouldn't be
715 * job.c (child_execute_job): [VMS] Use a VMS .com file if the
716 command contains a newline (e.g. from a define/enddef block).
717 * vmsify.c (vmsify): Return relative pathnames wherever possible.
718 * vmsify.c (vmsify): An input string like "../.." returns "[--]".
720 Wed Oct 1 15:45:09 1997 Rob Tulloh <rob_tulloh@tivoli.com>
722 * NMakefile: Changed nmake to $(MAKE).
723 * subproc.bat: Take the make command name from the command
724 line. If no command name was given, default to nmake.
725 * job.c: [WINDOWS32/MSDOS] Fix memory stomp: temporary file names
726 are now always created in heap memory.
727 * w32/subproc/sub_proc.c: New implementation of make_command_line()
728 which is more compatible with different Bourne shell implementations.
729 Deleted the now obsolete fix_command_line() function.
730 * main.c: [WINDOWS32] Any arbitrary spelling of Path can be
731 detected. Make will ensure that the special spelling `Path' is
732 inserted into the environment when the path variable is propagated
733 within itself and to make's children.
734 * main.c: [WINDOWS32] Detection of sh.exe was occurring too
735 soon. The 2nd check for the existence of sh.exe must come after
736 the call to read_all_makefiles().
738 Fri Sep 26 01:14:18 1997 <zinser@axp602.gsi.de>
740 * makefile.com: [VMS] Fixed definition of sys.
741 * readme.vms: Comments on what's changed lately.
743 Fri Sep 26 01:14:18 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
745 * read.c (read_all_makefiles): Allow make to find files named
746 "MAKEFILE" with no extension on VMS.
747 * file.c (lookup_file): Lowercase filenames on VMS.
749 1997-09-29 Paul D. Smith <psmith@baynetworks.com>
751 * read.c (read_makefile): Reworked target detection again; the old
752 version had an obscure quirk.
754 Fri Sep 19 09:20:49 1997 Paul D. Smith <psmith@baynetworks.com>
756 * Version 3.76.1 released.
758 * Makefile.am: Add loadavg files to clean rules.
760 * configure.in (AC_OUTPUT): Remove stamp-config; no longer needed.
761 * Makefile.ami (distclean): Ditto.
762 * SMakefile (distclean): Ditto.
764 * main.c (main): Arg count should be int, not char! Major braino.
766 Tue Sep 16 10:18:22 1997 Paul D. Smith <psmith@baynetworks.com>
768 * Version 3.76 released.
770 Tue Sep 2 10:07:39 1997 Paul D. Smith <psmith@baynetworks.com>
772 * function.c (expand_function): When processing $(shell...)
773 translate a CRLF (\r\n) sequence as well as a newline (\n) to a
774 space. Also remove an ending \r\n sequence.
775 * make.texinfo (Shell Function): Document it.
777 Fri Aug 29 12:59:06 1997 Rob Tulloh <rob_tulloh@tivoli.com>
779 * w32/pathstuff.c (convert_Path_to_windows32): Fix problem where
780 paths which contain single character entries like `.' are not
783 * README.W32: Document path handling issues on Windows systems.
785 Fri Aug 29 02:01:27 1997 Paul D. Smith <psmith@baynetworks.com>
789 Thu Aug 28 19:39:06 1997 Rob Tulloh <rob_tulloh@tivoli.com>
791 * job.c (exec_command): [WINDOWS32] If exec_command() is invoked
792 from main() to re-exec make, the call to execvp() would
793 incorrectly return control to parent shell before the exec'ed
794 command could run to completion. I believe this is a feature of
795 the way that execvp() is implemented on top of WINDOWS32 APIs. To
796 alleviate the problem, use the supplied process launch function in
797 the sub_proc library and suspend the parent process until the
798 child process has run. When the child exits, exit the parent make
799 with the exit code of the child make.
801 Thu Aug 28 17:04:47 1997 Paul D. Smith <psmith@baynetworks.com>
803 * Makefile.DOS.template (distdir): Fix a line that got wrapped in
806 * Makefile.am (loadavg): Give the necessary cmdline options when
809 * configure.in: Check for pstat_getdynamic for getloadvg on HP.
811 * job.c (start_job_command): [VMS,_AMIGA] Don't perform empty
812 command optimization on these systems; it doesn't make sense.
814 Wed Aug 27 17:09:32 1997 Paul D. Smith <psmith@baynetworks.com>
818 Tue Aug 26 11:59:15 1997 Paul D. Smith <psmith@baynetworks.com>
820 * main.c (print_version): Add '97 to copyright years.
822 * read.c (do_define): Check the length of the array before looking
823 at a particular offset.
825 * job.c (construct_command_argv_internal): Examine the last byte
826 of the previous arg, not the byte after that.
828 Sat Aug 23 1997 Eli Zaretskii <eliz@is.elta.co.il>
830 * Makefile.DOS.template: New file (converted to Makefile.DOS in
833 * configure.bat: Rewrite to use Makefile.DOS instead of editing
834 Makefile.in. Add support for building from outside of the source
835 directory. Fail if the environment block is too small.
837 * configh.dos: Use <sys/config.h>.
839 * README.DOS: Update instructions.
841 Fri Aug 22 1997 Eli Zaretskii <eliz@is.elta.co.il>
843 * job.c (start_job_command): [__MSDOS__] Don't test for "/bin/sh"
844 literally, use value of unixy_shell instead.
846 * filedef.h (NEW_MTIME): Use 1 less than maximum possible value if
849 Sat Aug 16 00:56:15 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
851 * vmsify.c (vmsify, case 11): After translating `..' elements, set
852 nstate to N_OPEN if there are still more elements to process.
853 (vmsify, case 2): After translating `foo/bar' up to the slash,
854 set nstate to N_OPEN, not N_DOT.
856 Fri Aug 8 15:18:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
858 * dir.c (vmsstat_dir): Leave name unmodified on exit.
859 * make.h (PATH_SEPARATOR_CHAR): Set to comma for VMS.
860 * vpath.c: Fix comments to refer to path separator, not colon.
861 (selective_vpath_search): Avoid Unixy slash handling for VMS.
863 Thu Aug 7 22:24:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
865 * ar.c: [VMS] Don't declare ar_member_touch.
866 Delete VMS version of ar_member_date.
867 Enable non-VMS versions of ar_member_date and ar_member_date_1 for
869 * arscan.c (VMS_get_member_info): New function.
870 (ar_scan): Provide version for VMS systems.
871 (ar_name_equal): Simply compare name and mem on VMS systems.
872 Don't define ar_member_pos or ar_member_touch on VMS systems.
874 * config.h-vms (pid_t, uid_t): Don't define.
876 * remake.c: Delete declaration of vms_stat.
877 (name_mtime): Don't call vms_stat.
878 (f_mtime): [VMS] Funky time value manipulation no longer necessary.
880 * file.c (print_file): [VMS] Use ctime, not cvt_time.
882 * make.h: [VMS] Don't define POSIX.
884 * makefile.com (filelist): Include ar and arscan.
885 Also include them in the link commands.
886 Don't define NO_ARCHIVES in cc command.
888 * makefile.vms (ARCHIVES, ARCHIVES_SRC): Uncomment.
889 (defines): Delete NO_ARCHIVES from list.
891 * remake.c (f_mtime): Only check to see if intermediate file is
892 out of date if it also exists (i.e., mtime != (time_t) -1).
894 * vmsdir.h (u_long, u_short): Skip typedefs if using DEC C.
896 Fri Jun 20 23:02:07 1997 Rob Tulloh <rob_tulloh@tivoli.com>
898 * w32/subproc/sub_proc.c: Get W32 sub_proc to handle shebang
899 (#!/bin/sh) in script files correctly.
900 Fixed a couple of memory leaks.
901 Fixed search order in find_file() (w32/subproc/sub_proc.c) so that
902 files with extensions are preferred over files without extensions.
903 Added search for files with .cmd extension too.
904 * w32/subproc/misc.c (arr2envblk): Fixed memory leak.
906 Mon Aug 18 09:41:08 1997 Paul D. Smith <psmith@baynetworks.com>
910 Fri Aug 15 13:50:54 1997 Paul D. Smith <psmith@baynetworks.com>
912 * read.c (do_define): Remember to count the newline after the endef.
914 Thu Aug 14 23:14:37 1997 Paul D. Smith <psmith@baynetworks.com>
916 * many: Rewrote builds to use Automake 1.2.
919 * maintMakefile: Contains maintainer-only make snippets.
920 * GNUmakefile: This now only runs the initial auto* tools.
921 * COPYING,texinfo.tex,mkinstalldirs,install-sh: Removed (obtained
922 automatically by automake).
923 * compatMakefile: Removed (not needed anymore).
924 * README,build.sh.in: Removed (built from templates).
925 * config.h.in,Makefile.in: Removed (built by tools).
927 Wed Aug 13 02:22:08 1997 Paul D. Smith <psmith@baynetworks.com>
929 * make.texinfo: Updates for DOS/Windows information (Eli Zaretskii)
930 * README,README.DOS: Ditto.
932 * remake.c (update_file_1,f_mtime): Fix GPATH handling.
933 * vpath.c (gpath_search): Ditto.
935 * file.c (rename_file): New function: rehash, but also rename to
937 * filedef.h: Declare it.
939 * variable.c (merge_variable_set_lists): Remove free() of variable
940 set; since various files can share variable sets we don't want to
943 Tue Aug 12 10:51:54 1997 Paul D. Smith <psmith@baynetworks.com>
945 * configure.in: Require autoconf 2.12
947 * make.texinfo: Replace all "cd subdir; $(MAKE)" examples with a
948 more stylistically correct "cd subdir && $(MAKE)".
950 * main.c: Global variable `clock_skew_detected' defined.
951 (main): Print final warning if it's set.
952 * make.h: Declare it.
953 * remake.c (f_mtime): Test and set it.
955 * job.c (start_job_command): Add special optimizations for
956 "do-nothing" rules, containing just the shell no-op ":". This is
957 useful for timestamp files and can make a real difference if you
958 have a lot of them (requested by Fergus Henderson <fjh@cs.mu.oz.au>).
960 * configure.in,Makefile.in: Rewrote to use the new autoconf
961 program_transform_name macro.
963 * function.c (function_strip): Strip newlines as well as spaces
966 Fri Jun 6 23:41:04 1997 Rob Tulloh <rob_tulloh@tivoli.com>
968 * remake.c (f_mtime): Datestamps on FAT-based files are rounded to
969 even seconds when stored, so if the date check fails on WINDOWS32
970 systems, see if this "off-by-one" error is the problem.
972 * General: If your TZ environment variable is not set correctly
973 then all your timestamps will be off by hours. So, set it!
975 Mon Apr 7 02:06:22 1997 Paul D. Smith <psmith@baynetworks.com>
979 * compatMakefile (objs): Define & use the $(GLOB) variable so
980 that it's removed correctly from build.sh.in when it's built.
982 * configure.in: On Solaris we can use the kstat_*() functions to
983 get load averages without needing special permissions. Add a
984 check for -lkstat to see if we have it.
986 * getloadavg.c (getloadavg): Use HAVE_LIBKSTAT instead of SUN5 as
987 the test to enable kstat_open(), etc. processing.
989 Fri Apr 4 20:21:18 1997 Eli Zaretskii <eliz@is.elta.co.il>
991 * <lots>: Fixes to work in the DJGPP DOS environment.
993 Mon Mar 31 02:42:52 1997 Paul D. Smith <psmith@baynetworks.com>
995 * function.c (expand_function): Added new function $(wordlist).
997 * make.texinfo (Filename Functions): Document $(wordlist) function.
999 * vpath.c (build_vpath_lists): Construct the GPATH variable
1000 information in the same manner we used to construct VPATH.
1001 (gpath_search): New function to search GPATH.
1003 * make.h: Declare the new function.
1005 * remake.c (update_file_1): Call it, and keep VPATH if it's found.
1007 * make.texinfo (Search Algorithm): Document GPATH variable.
1009 Sun Mar 30 20:57:16 1997 Paul D. Smith <psmith@baynetworks.com>
1011 * main.c (handle_non_switch_argument): Defined the MAKECMDGOALS
1012 variable to contain the user options passed in on the cmd line.
1014 * make.texinfo (Goals): Document MAKECMDGOALS variable.
1016 * remake.c (f_mtime): Print a warning if we detect a clock skew
1017 error, rather than failing.
1019 * main.c (main): If we rebuild any makefiles and need to re-exec,
1020 add "-o<mkfile>" options for each makefile rebuilt to avoid
1023 Fri Mar 28 15:26:05 1997 Paul D. Smith <psmith@baynetworks.com>
1025 * job.c (construct_command_argv_internal): Track whether the last
1026 arg in the cmd string was empty or not (Roland).
1027 (construct_command_argv_internal): If the shell line is empty,
1028 don't do anything (Roland).
1030 * glob/glob.h,glob/glob.c,glob/fnmatch.c,glob/fnmatch.h: Install
1031 the latest changes from the GLIBC version of glob (Ulrich Drepper).
1033 * getloadavg.c,make-stds.texi: New version (Roland).
1035 * (ALL): Changed WIN32 to W32 or WINDOWS32 (RMS).
1037 Mon Mar 24 15:33:34 1997 Rob Tulloh <rob_tulloh@tivoli.com>
1039 * README.W32: Describe preliminary FAT support.
1041 * build_w32.bat: Use a variable for the final exe name.
1043 * dir.c (find_directory): W32: Find the filesystem type.
1044 (dir_contents_file_exists_p): W32: for FAT filesystems, always
1045 rehash since FAT doesn't change directory mtime on change.
1047 * main.c (handle_runtime_exceptions): W32: Add an
1048 UnhandledExceptionFilter so that when make bombs due to ^C or a
1049 bug, it won't cause a GUI requestor to pop up unless debug is
1053 Mon Mar 24 00:57:34 1997 Paul D. Smith <psmith@baynetworks.com>
1055 * configure.in, config.h.in, config.ami, config.h-vms, config.h.w32:
1056 Check for memmove() function.
1058 * make.h (bcopy): If memmove() available, define bcopy() to use it.
1059 Otherwise just use bcopy(). Don't use memcpy(); it's not guaranteed
1060 to handle overlapping moves.
1062 * read.c (read_makefile): Fix some uninitialized memory reads
1063 (reported by Purify).
1065 * job.c (construct_command_argv_internal): Use bcopy() not
1066 strcpy(); strcpy() isn't guaranteed to handle overlapping moves.
1068 * Makefile.in: Change install-info option ``--infodir'' to
1069 ``--info-dir'' for use with new texinfo.
1071 * function.c (expand_function): $(basename) and $(suffix) should
1072 only search for suffixes as far back as the last directory (e.g.,
1073 only the final filename in the path).
1075 Sun Mar 23 00:13:05 1997 Paul D. Smith <psmith@baynetworks.com>
1077 * make.texinfo: Add @dircategory/@direntry information.
1078 (Top): Remove previous reference to (dir) (from RMS).
1079 (Static Usage): Add "all:" rule to example.
1080 (Automatic Dependencies): fix .d file creation example.
1082 * Install VPATH+ patch:
1084 * filedef.h (struct file): Add in hname field to store the hashed
1085 filename, and a flag to remember if we're using the vpath filename
1086 or not. Renamed a few functions for more clarity.
1088 * file.c (lookup_file,enter_file,file_hash_enter): Store filenames
1089 in the hash table based on their "hash name". We can change this
1090 while keeping the original target in "name".
1091 (rehash_file): Renamed from "rename_file" to be more accurate.
1092 Changes the hash name, but not the target name.
1094 * remake.c (update_file_1): Modify -d output for more detailed
1095 VPATH info. If we don't need to rebuild, use the VPATH name.
1096 (f_mtime): Don't search for vpath if we're ignoring it. Call
1097 renamed function rehash_file. Call name_mtime instead of
1098 file_mtime, to avoid infinite recursion since the file wasn't
1101 * implicit.c (pattern_search): if we find an implicit file in
1102 VPATH, save the original name not the VPATH name.
1104 * make.texinfo (Directory Search): Add a section on the new VPATH
1107 Sun Dec 1 18:36:04 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1109 * dir.c (file_exists_p, file_impossible, file_impossible_p): If
1110 dirname is empty replace it by the name of the root directory.
1111 Note that this doesn't work (yet) for W32, Amiga, or VMS.
1113 Tue Oct 08 13:57:03 1996 Rob Tulloh <tulloh@tivoli.com>
1115 * main.c (main): W32 bug fix for PATH vars.
1117 Tue Sep 17 1996 Paul Eggert <eggert@twinsun.com>
1119 * filedef.h (NEW_MTIME): Don't assume that time_t is a signed
1122 * make.h: (CHAR_BIT, INTEGER_TYPE_SIGNED, INTEGER_TYPE_MAXIMUM,
1123 INTEGER_TYPE_MINIMUM): New macros.
1125 Tue Aug 27 01:06:34 1996 Roland McGrath <roland@baalperazim.frob.com>
1127 * Version 3.75 released.
1129 * main.c (print_version): Print out bug-reporting address.
1131 Mon Aug 26 19:55:47 1996 Roland McGrath <roland@baalperazim.frob.com>
1133 * main.c (print_data_base): Don't declare ctime; headers do it for us
1136 Sun Jul 28 15:37:09 1996 Rob Tulloh (tulloh@tivoli.com)
1138 * w32/pathstuff.c: Turned convert_vpath_to_w32() into a
1139 real function. This was done so that VPATH could contain
1140 white space separated pathnames. Please note that directory
1141 paths (in VPATH/vpath context) containing white space are not
1142 supported (just as they are not under Unix). See README.W32
1145 * w32/include/pathstuff.h: Added prototype for the new
1146 function convert_vpath_to_w32. Deleted macro for same.
1148 * README.W32: Added some notes about why I chose not to try
1149 and support pathnames which contain white space and some
1150 workaround suggestions.
1152 Thu Jul 25 19:53:31 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1154 * GNUmakefile (mkdep-nolib): Use -MM option unconditionally.
1158 * main.c (define_makeflags): Back up P to point at null terminator
1159 when killing final space and dash before setting MFLAGS.
1161 From Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>:
1162 * dir.c [__MSDOS__] [DJGPP > 1]: Include <libc/dosio.h> and defin
1163 `__opendir_flags' initialized to 0.
1164 [__MSDOS__] (dosify) [DJGPP > 1]: Return name unchanged if _USE_LFN.
1165 (find_directory) [__MSDOS__ && DJGPP > 1]: If _USE_LGN, set
1166 __opendir_flags to __OPENDIR_PRESERVE_CASE.
1168 * vmsfunctions.c (vms_stat): `sys$dassgn (DevChan);' added by kkaempf.
1170 * GNUmakefile (w32files): Add NMakefile.
1172 * NMakefile (LDFLAGS_debug): Value fixed by tulloh.
1174 Sat Jul 20 12:32:10 1996 Klaus Kämpf (kkaempf@progis.de)
1176 * remake.c (f_mtime) [VMS]: Add missing `if' conditional for future
1178 * config.h-vms, makefile.vms, readme.vms, vmsify.c: Update address.
1180 Sat Jul 20 05:29:43 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1182 * configure.in: Require autoconf 2.10 or later.
1184 Fri Jul 19 16:57:27 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1188 * GNUmakefile (w32files): New variable.
1189 (distfiles): Add it.
1190 * w32: Updated by Rob Tulloh.
1192 * makefile.vms (LOADLIBES): Fix typo.
1194 Sun Jul 14 12:59:27 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1196 * job.c (construct_command_argv_internal): Fix up #else, #endifs.
1198 * configh.dos: Define HAVE_DIRENT_H instead of DIRENT.
1200 * remake.c (f_mtime): Don't compare MTIME to NOW if MTIME == -1.
1204 * main.c (main): Exit with status 2 when update_goal_chain returns 2.
1206 Sat Jun 22 14:56:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1208 * configure.in: Don't check for _sys_siglist.
1209 * make.h [HAVE__SYS_SIGLIST]: Don't test this; just punt if there is
1210 no strsignal or sys_siglist.
1212 * read.c (conditional_line): Strip ws in `ifeq (a , b)' so it is the
1213 same as `ifeq (a, b)'.
1215 * job.c (reap_children): Don't call die if handling_fatal_signal.
1217 * file.c (file_hash_enter): Allow renaming :: to : when latter is
1218 non-target, or : to :: when former is non-target.
1220 * job.c (start_job_command): Call block_sigs.
1221 (block_sigs): New function, broken out of start_job_command.
1222 (reap_children): Block fatal signals around removing dead child from
1223 chain and adjusting job_slots_used.
1224 * job.h: Declare block_sigs.
1226 * remote-stub.c (remote_setup, remote_cleanup): New (empty) functions.
1227 * main.c (main): Call remote_setup.
1228 (die): Call remote_cleanup.
1230 * job.c (reap_children): Quiescent value of shell_function_pid is
1233 * main.c (print_version): Add 96 to copyright years.
1235 Sat Jun 15 20:30:01 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1237 * read.c (find_char_unquote): Avoid calling strlen on every call
1238 just to throw away the value most of the time.
1240 Sun Jun 2 12:24:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1242 * main.c (decode_env_switches): Prepend '-' to ARGV[1] if it contains
1243 no '=', regardless of ARGC.
1244 (define_makeflags): Elide leading '-' from MAKEFLAGS value if first
1245 word is short option, regardless of WORDS.
1247 Wed May 22 17:24:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1249 * makefile.vms: Set LOADLIBES.
1250 * makefile.com (link_using_library): Fix typo.
1252 Wed May 15 17:37:26 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1254 * dir.c (print_dir_data_base): Use %ld dev and ino and cast them to
1257 Wed May 15 10:14:14 CDT 1996 Rob Tulloh <tulloh@tivoli.com>
1259 * dir.c: W32 does not support inode. For now, fully qualified
1260 pathname along with st_mtime will be keys for files.
1261 Fixed problem where vpath can be confused when files
1262 are added to a directory after the directory has already been
1263 read in. The code now attempts to reread the directory if it
1264 discovers that the datestamp on the directory has changed since
1265 it was cached by make. This problem only seems to occur on W32
1266 right now so it is lumped under port #ifdef WINDOWS32.
1268 * function.c: W32: call subproc library (CreateProcess()) instead of
1271 * job.c: W32: Added the code to do fork/exec/waitpid style processing
1272 on W32 systems via calls to subproc library.
1274 * main.c: W32: Several things added here. First, there is code
1275 for dealing with PATH and SHELL defaults. Make tries to figure
1276 out if the user has %PATH% set in the environment and sets it to
1277 %Path% if it is not set already. Make also looks to see if sh.exe
1278 is anywhere to be found. Code path through job.c will change
1279 based on existence of a working Bourne shell. The checking for
1280 default shell is done twice: once before makefiles are read in
1281 and again after. Fall back to MSDOS style execution mode if no sh.exe
1282 is found. Also added some debug support that allows user to pause make
1283 with -D switch and attach a debugger. This is especially useful for
1284 debugging recursive calls to make where problems appear only in the
1287 * make.h: W32: A few macros and header files for W32 support.
1289 * misc.c: W32: Added a function end_of_token_w32() to assist
1290 in parsing code in read.c.
1292 * read.c: W32: Fixes similar to MSDOS which allow colon to
1293 appear in filenames. Use of colon in filenames would otherwise
1296 * remake.c: W32: Added include of io.h to eliminate compiler
1297 warnings. Added some code to default LIBDIR if it is not set
1300 * variable.c: W32: Added support for detecting Path/PATH
1301 and converting them to semicolon separated lists for make's
1302 internal use. New function sync_Path_environment()
1303 which is called in job.c and function.c before creating a new
1304 process. Caller must set Path in environment since we don't
1305 have fork() to do this for us.
1307 * vpath.c: W32: Added detection for filenames containing
1308 forward or backward slashes.
1310 * NMakefile: W32: Visual C compatible makefile for use with nmake.
1311 Use this to build GNU make the first time on Windows NT or Windows 95.
1313 * README.W32: W32: Contains some helpful notes.
1315 * build_w32.bat: W32: If you don't like nmake, use this the first
1316 time you build GNU make on Windows NT or Windows 95.
1318 * config.h.W32: W32 version of config.h
1320 * subproc.bat: W32: A bat file used to build the
1321 subproc library from the top-level NMakefile. Needed because
1322 WIndows 95 (nmake) doesn't allow you to cd in a make rule.
1324 * w32/include/dirent.h
1325 * w32/compat/dirent.c: W32: opendir, readdir, closedir, etc.
1327 * w32/include/pathstuff.h: W32: used by files needed functions
1328 defined in pathstuff.c (prototypes).
1330 * w32/include/sub_proc.h: W32: prototypes for subproc.lib functions.
1332 * w32/include/w32err.h: W32: prototypes for w32err.c.
1334 * w32/pathstuff.c: W32: File and Path/Path conversion functions.
1336 * w32/subproc/build.bat: W32: build script for subproc library
1337 if you don't wish to use nmake.
1339 * w32/subproc/NMakefile: W32: Visual C compatible makefile for use
1340 with nmake. Used to build subproc library.
1342 * w32/subproc/misc.c: W32: subproc library support code
1343 * w32/subproc/proc.h: W32: subproc library support code
1344 * w32/subproc/sub_proc.c: W32: subproc library source code
1345 * w32/subproc/w32err.c: W32: subproc library support code
1347 Mon May 13 14:37:42 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1351 * GNUmakefile (vmsfiles): Fix typo.
1353 * GNUmakefile (amigafiles): Add amiga.h.
1355 Sun May 12 19:19:43 1996 Aaron Digulla <digulla@fh-konstanz.de>
1357 * dir.c: New function: amigafy() to fold filenames
1358 Changes HASH() to HASHI() to fold filenames on Amiga.
1359 Stringcompares use strieq() instead of streq()
1360 The current directory on Amiga is "" instead of "."
1363 * amiga.c: New function wildcard_expansion(). Allows to use
1364 Amiga wildcards with $(wildcard )
1366 * amiga.h: New file. Prototypes for amiga.c
1368 * function.c: Use special function wildcard_expansion() for
1369 $(wildcard ) to allow Amiga wildcards
1370 The current directory on Amiga is "" instead of "."
1372 * job.c: No Pipes on Amiga, too
1373 (load_too_high) Neither on Amiga
1374 ENV variable on Amiga are in a special directory and are not
1375 passed as third argument to main().
1377 * job.h: No envp on Amiga
1379 * make.h: Added HASHI(). This is the same as HASH() but converts
1380 it's second parameter to lowercase on Amiga to fold filenames.
1382 * main.c: (main), variable.c Changed handling of ENV-vars. Make
1383 stores now the names of the variables only and reads their contents
1384 when they are accessed to reflect that these variables are really
1385 global (ie. they CAN change WHILE make runs !) This handling is
1386 made in lookup_variable()
1388 * Makefile.ami: renamed file.h to filedep.h
1389 Updated dependencies
1391 * read.c: "find_semicolon" is declared as static but never defined.
1392 No difference between Makefile and makefile on Amiga; added
1393 SMakefile to *default_makefiles[].
1394 (read_makefile) SAS/C want's two_colon and pattern_percent be set
1396 The current directory on Amiga is "" instead of "."
1397 Strange #endif moved.
1399 * README.Amiga: updated feature list
1401 * SMakefile: Updated dependencies
1403 * variable.c: Handling of ENV variable happens inside lookup_variable()
1405 Sat May 11 17:58:32 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1407 * variable.c (try_variable_definition): Count parens in lhs variable
1408 refs to avoid seeing =/:=/+= inside a ref.
1410 Thu May 9 13:54:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1412 * commands.c (fatal_error_signal) [SIGQUIT]: Make SIGQUIT check
1415 * main.c (main): Use unsigned for fread return.
1417 * read.c (parse_file_seq): Use `int' for char arg to avoid widening
1419 * dep.h: Fix prototype.
1421 * function.c (expand_function) [_AMIGA]: Fix some typos.
1422 (patsubst_expand): Make len vars unsigned.
1424 * GNUmakefile (globfiles): Add AmigaDOS support files.
1425 (distfiles): Add $(amigafiles).
1426 (amigafiles): New variable.
1428 Thu Nov 7 10:18:16 1995 Aaron Digulla <digulla@fh-konstanz.de>
1430 * Added Amiga support in commands.c, dir.c, function.c,
1431 job.c, main.c, make.h, read.c, remake.c
1432 * commands.c: Amiga has neither SIGHUP nor SIGQUIT
1433 * dir.c: Amiga has filenames with Upper- and Lowercase,
1434 but "FileName" is the same as "filename". Added strieq()
1435 which is use to compare filenames. This is like streq()
1436 on all other systems. Also there is no such thing as
1438 * function.c: On Amiga, the environment is not passed as envp,
1439 there are no pipes and Amiga can't fork. Use my own function
1440 to create a new child.
1441 * job.c: default_shell is "" (The system automatically chooses
1442 a shell for me). Have to use the same workaround as MSDOS for
1443 running batch commands. Added HAVE_SYS_PARAM_H. NOFILE isn't
1444 known on Amiga. Cloned code to run children from MSDOS. Own
1445 version of sh_chars[] and sh_cmds[]. No dup2() or dup() on Amiga.
1446 * main.c: Force stack to 20000 bytes. Read environment from ENV:
1447 device. On Amiga, exec_command() does return, so I exit()
1449 * make.h: Added strieq() to compare filenames.
1450 * read.c: Amiga needs special extension to have passwd. Only
1451 one include-dir. "Makefile" and "makefile" are the same.
1452 Added "SMakefile". Added special code to handle device names (xxx:)
1454 * remake.c: Only one lib-dir. Amiga link-libs are named "%s.lib"
1455 instead of "lib%s.a".
1456 * main.c, rule.c, variable.c: Avoid floats at all costs.
1457 * vpath.c: Get rid of as many alloca()s as possible.
1459 Thu May 9 13:20:43 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1461 * read.c (read_makefile): Grok `sinclude' as alias for `-include'.
1463 Wed Mar 20 09:52:27 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1465 * GNUmakefile (vmsfiles): New variable.
1466 (distfiles): Include $(vmsfiles).
1468 Tue Mar 19 20:21:34 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1470 Merged VMS port from Klaus Kaempf <kkaempf@didymus.rmi.de>.
1471 * make.h (PARAMS): New macro.
1472 * config.h-vms: New file.
1473 * makefile.com: New file.
1474 * makefile.vms: New file.
1475 * readme.vms: New file.
1476 * vmsdir.h: New file.
1477 * vmsfunctions.c: New file.
1478 * vmsify.c: New file.
1479 * file.h: Renamed to filedef.h to avoid conflict with VMS system hdr.
1480 * ar.c: Added prototypes and changes for VMS.
1481 * commands.c: Likewise.
1482 * commands.h: Likewise.
1483 * default.c: Likewise.
1486 * expand.c: Likewise.
1488 * function.c: Likewise.
1489 * implicit.c: Likewise.
1496 * remake.c: Likewise.
1497 * remote-stub.c: Likewise.
1500 * variable.c: Likewise.
1501 * variable.h: Likewise.
1502 * vpath.c: Likewise.
1503 * compatMakefile (srcs): Rename file.h to filedef.h.
1505 Sat Aug 19 23:11:00 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
1507 * remake.c (check_dep): For a secondary file, try implicit and
1508 default rules if appropriate.
1510 Wed Aug 2 04:29:42 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
1512 * remake.c (check_dep): If an intermediate file exists,
1513 do consider its actual date.
1515 Sun Jul 30 00:49:53 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
1517 * file.h (struct file): New field `secondary'.
1518 * file.c (snap_deps): Check for .INTERMEDIATE and .SECONDARY.
1519 (remove_intermediates): Don't delete .SECONDARY files.
1521 Sat Mar 2 16:26:52 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1523 * compatMakefile (srcs): Add getopt.h; prepend $(srcdir)/ to getopt*.
1525 Fri Mar 1 12:04:47 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1529 * remake.c (f_mtime): Move future modtime check before FILE is
1530 clobbered by :: loop.
1532 * dir.c: Use canonical code from autoconf manual for dirent include.
1533 [_D_NAMLEN]: Redefine NAMLEN using this.
1534 (dir_contents_file_exists_p): Use NAMLEN macro.
1535 (read_dirstream) [_DIRENT_HAVE_D_NAMLEN]: Only set d_namlen #if this.
1537 * compatMakefile (objs): Add missing backslash.
1539 Wed Feb 28 03:56:20 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
1541 * default.c (default_terminal_rules): Remove + prefix from RCS cmds.
1542 (default_variables): Put + prefix in $(CHECKOUT,v) value instead.
1544 * remake.c (f_mtime): Check for future timestamps; give error and mark
1545 file as "failed to update".
1547 Fri Jan 12 18:09:36 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1549 * job.c: Don't declare unblock_sigs; job.h already does.
1551 Sat Jan 6 16:24:44 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1553 * acconfig.h (HAVE_SYSCONF_OPEN_MAX): #undef removed.
1555 * job.c (NGROUPS_MAX): Don't try to define this macro.
1557 Fri Dec 22 18:44:44 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1559 * compatMakefile (GETOPT, GETOPT_SRC, GLOB): Variables removed.
1560 (objs, srcs): Include their values here instead of references.
1562 Thu Dec 14 06:21:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1566 * job.c (reap_children): Call unblock_sigs after start_job_command.
1568 Thu Dec 14 07:22:03 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
1570 * dir.c (dir_setup_glob): Don't use lstat; glob never calls it anyway.
1571 Avoid & before function names to silence bogus sunos4 compiler.
1573 * configure.in: Remove check for `sysconf (_SC_OPEN_MAX)'.
1575 Tue Dec 12 00:48:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1579 * dir.c (read_dirstream): Fix braino: fill in the buffer when not
1582 Mon Dec 11 22:26:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1584 * misc.c (collapse_continuations): Fix skipping of trailing \s so
1585 it can never dereference before the beginning of the array.
1587 * read.c (find_semicolon): Function removed.
1588 (read_makefile): Don't use find_semicolon or remove_comments for
1589 rule lines. Use find_char_unquote directly and handle quoted comments
1592 * default.c: Remove all [M_XENIX] code.
1594 * dir.c [HAVE_D_NAMLEN]: Define this for __GNU_LIBRARY__ > 1.
1595 (D_NAMLEN): Macro removed.
1596 (FAKE_DIR_ENTRY): New macro.
1597 (dir_contents_file_exists_p): Test HAVE_D_NAMLEN instead of using
1599 (read_dirstream): Return a struct dirent * for new glob interface.
1600 (init_dir): Function removed.
1601 (dir_setup_glob): New function.
1602 * main.c (main): Don't call init_dir.
1603 * read.c (multi_glob): Call dir_setup_glob on our glob_t and use
1604 GLOB_ALTDIRFUNC flag.
1606 * misc.c (safe_stat): Function removed.
1607 * read.c, commands.c, remake.c, vpath.c: Use plain stat instead of
1610 Sat Nov 25 20:35:18 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1612 * job.c [HAVE_UNION_WAIT]: Include sys/wait.h.
1614 * main.c (log_working_directory): Made global.
1615 Print entering msg only once.
1616 * make.h (log_working_directory): Declare it.
1617 * misc.c (message): Take new arg PREFIX. Print "make: " only if
1618 nonzero. Call log_working_directory.
1619 * remake.c: Pass new arg in `message' calls.
1620 * job.c (start_job_command): Pass new arg to `message'; fix
1621 inverted test in that call.
1623 Tue Nov 21 19:01:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1625 * job.c (start_job_command): Use `message' to print the command,
1626 and call it with null if the command is silent.
1627 * remake.c (touch_file): Use message instead of printf.
1629 Tue Oct 10 14:59:30 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1631 * main.c (enter_command_line_file): Barf if NAME is "".
1633 Sat Sep 9 06:33:20 1995 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
1635 * commands.c (delete_target): Ignore unlink failure if it is ENOENT.
1637 Thu Aug 17 15:08:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1639 * configure.in: Don't check for getdtablesize.
1640 * job.c (getdtablesize): Remove decls and macros.
1642 Thu Aug 10 19:10:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1644 * main.c (define_makeflags): Omit command line variable
1645 definitions from MFLAGS value.
1647 * arscan.c (ar_scan) [AIAMAG]: Check for zero MEMBER_OFFSET,
1648 indicating a valid, but empty, archive.
1650 Mon Aug 7 15:40:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1652 * dir.c (file_impossible_p): Correctly reset FILENAME to name
1653 within directory before hash search.
1655 * job.c (child_error): Do nothing if IGNORED under -s.
1657 * job.c (exec_command): Correctly use ARGV[0] for script name when
1658 running shell directly.
1660 Tue Aug 1 14:39:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1662 * job.c (child_execute_job): Close STDIN_FD and STDOUT_FD after
1663 dup'ing from them. Don't try to close all excess descriptors;
1664 getdtablesize might return a huge value. Any open descriptors in
1665 the parent should have FD_CLOEXEC set.
1666 (start_job_command): Set FD_CLOEXEC flag on BAD_STDIN descriptor.
1668 Tue Jun 20 03:47:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1670 * read.c (read_all_makefiles): Properly append default makefiles
1671 to the end of the `read_makefiles' chain.
1673 Fri May 19 16:36:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1675 * Version 3.74 released.
1677 Wed May 10 17:43:34 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1681 Tue May 9 17:15:23 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1683 * compatMakefile ($(infodir)/make.info): Make sure $$dir is set in
1686 Wed May 3 15:56:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1688 * file.c (print_file): Grok update_status of 1 for -q.
1690 Thu Apr 27 12:39:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1694 Wed Apr 26 17:15:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1696 * file.c (remove_intermediates): Fix inverted test to bail under
1697 -n for signal case. Bail under -q or -t.
1698 Skip files with update_status==-1.
1700 * job.c (job_next_command): Skip empty lines.
1701 (new_job): Don't test the return of job_next_command.
1702 Just let start_waiting_job handle the case of empty commands.
1704 Wed Apr 19 03:25:54 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1706 * function.c [__MSDOS__]: Include <fcntl.h>. From DJ Delorie.
1710 Sat Apr 8 14:53:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1712 * remake.c (notice_finished_file): Set FILE->update_status to zero
1715 Wed Apr 5 00:20:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1717 * Version 3.73 released.
1719 Tue Mar 28 13:25:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1721 * main.c (main): Fixed braino in assert.
1725 Mon Mar 27 05:29:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1727 * main.c: Avoid string in assert expression. Some systems are broken.
1729 Fri Mar 24 00:32:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1731 * main.c (main): Handle 1 and 2 returns from update_goal_chain
1732 makefile run properly.
1736 * main.c (handle_non_switch_argument): New function, broken out of
1738 (decode_switches): Set optind to 0 to reinitialize getopt, not to 1.
1739 When getopt_long returns EOF, break the loop and handle remaining args
1740 with a simple second loop.
1742 * remake.c (remake_file): Set update_status to 2 instead of 1 for
1743 no rule to make. Mention parent (dependent) in error message.
1744 (update_file_1): Handle FILE->update_status == 2 in -d printout.
1745 * job.c (start_job_command, reap_children): Set update_status to 2
1746 instead of 1 for failed commands.
1748 Tue Mar 21 16:23:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1750 * job.c (search_path): Function removed (was already #if 0'd out).
1751 * configure.in: Remove AC_TYPE_GETGROUPS; nothing needs it any more.
1753 Fri Mar 17 15:57:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1755 * configure.bat: Write @CPPFLAGS@ translation.
1757 Mon Mar 13 00:45:59 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1759 * read.c (parse_file_seq): Rearranged `l(a b)' -> `l(a) l(b)' loop
1760 to not skip the elt immediately preceding `l(...'.
1762 Fri Mar 10 13:56:49 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1766 * read.c (find_char_unquote): Make second arg a string of stop
1767 chars instead of a single stop char. Stop when any char in the
1768 string is hit. All callers changed.
1769 (find_semicolon): Pass stop chars "#;" to one find_char_unquote call,
1770 instead of using two calls. If the match is not a ; but a #,
1772 * misc.c: Changed find_char_unquote callers here too.
1776 * read.c (read_makefile, parse_file_seq): Fix typo __MS_DOS__ ->
1779 * GNUmakefile (globfiles): Add glob/configure.bat.
1780 (distfiles): Add configh.dos, configure.bat.
1782 Wed Mar 8 13:10:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1784 Fixes for MS-DOS from DJ Delorie.
1785 * read.c (read_makefile, parse_file_seq) [__MS_DOS__]: Don't see :
1786 as separator in "C:\...".
1787 * configh.dos (STDC_HEADERS): Define only if undefined.
1788 (HAVE_SYS_PARAM_H): Don't define this.
1789 (HAVE_STRERROR): Define this.
1790 * job.c (construct_command_argv_internal) [__MSDOS__]: Fix typos.
1794 * main.c (decode_switches): Reset optind to 1 instead of 0.
1796 Tue Mar 7 17:31:06 1995 Roland McGrath <roland@geech.gnu.ai.mit.edu>
1798 * main.c (decode_switches): If non-option arg is "-", ignore it.
1800 Mon Mar 6 23:57:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1804 Wed Feb 22 21:26:36 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1808 Tue Feb 21 22:10:43 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1810 * main.c (main): Pass missing arg to tmpnam.
1812 * configure.in: Check for strsignal.
1813 * job.c (child_error): Use strsignal.
1814 * main.c (main): Don't call signame_init #ifdef HAVE_STRSIGNAL.
1816 * misc.c (strerror): Fix swapped args in sprintf.
1818 Mon Feb 13 11:50:08 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1820 * configure.in (CFLAGS, LDFLAGS): Don't set these variables.
1822 Fri Feb 10 18:44:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1824 * main.c (print_version): Add 95 to copyright years.
1828 * job.c (start_job_command): Remember to call notice_finished_file
1829 under -n when not recursing. To do this, consolidate that code
1830 under the empty command case and goto there for the -n case.
1832 Tue Feb 7 13:36:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1834 * make.h [! STDC_HEADERS]: Don't declare qsort. Sun headers
1837 Mon Feb 6 17:37:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1839 * read.c (read_makefile): For bogus line starting with tab, ignore
1840 it if blank after removing comments.
1842 * main.c: Cast results of `alloca' to `char *'.
1843 * expand.c: Likewise.
1845 Sun Feb 5 18:35:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1849 * configure.in: Check for mktemp.
1850 * main.c (main) [! HAVE_MKTEMP]: Use tmpnam instead of mktemp.
1852 * configure.in (make_cv_sysconf_open_max): New check for `sysconf
1854 * acconfig.h: Added #undef HAVE_SYSCONF_OPEN_MAX.
1855 * job.c [HAVE_SYSCONF_OPEN_MAX] (getdtablesize): Define as macro
1858 Fri Jan 27 04:42:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1860 * remake.c (update_file_1): When !MUST_MAKE, don't set
1861 FILE->update_status to zero before calling notice_finished_file.
1862 (notice_finished_file): Touch only when FILE->update_status is zero.
1863 (remake_file): Set FILE->update_status to zero after not calling
1864 execute_file_command and deciding to touch instead.
1866 Thu Jan 26 01:29:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1868 * main.c (debug_signal_handler): New function; toggles debug_flag.
1869 (main): Handle SIGUSR1 with that.
1871 Mon Jan 16 15:46:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1873 * compatMakefile (realclean): Remove Info files.
1875 Sun Jan 15 08:23:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1879 * job.c (start_job_command): Save and restore environ around vfork
1881 (search_path): Function #if 0'd out.
1882 (exec_command): Use execvp instead of search_path.
1884 * expand.c (variable_expand): Rewrote computed variable name and
1885 substitution reference handling to be simpler. First expand the
1886 entire text between the parens if it contains any $s, then examine
1887 the result of that for subtitution references and do no further
1888 expansion while parsing them.
1890 * job.c (construct_command_argv_internal): Handle " quoting too,
1891 when no backslash, $ or ` characters appear inside the quotes.
1893 * configure.in (union wait check): If WEXITSTATUS and WTERMSIG are
1894 defined, just use int.
1896 Tue Jan 10 06:27:27 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1898 * default.c (default_variables) [__hpux]: Remove special
1899 definition of ARFLAGS. Existence of the `f' flag is not
1900 consistent across HPUX versions; and one might be using GNU ar
1903 * compatMakefile (clean): Don't remove Info files.
1905 * compatMakefile (check): Remove gratuitous target declaration.
1907 Sat Jan 7 11:38:23 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1909 * compatMakefile (ETAGS, CTAGS): Don't use -t.
1911 * arscan.c (ar_name_equal) [cray]: Subtract 1 like [__hpux].
1913 * main.c (decode_switches): For --help, print usage to stdout.
1915 Mon Dec 5 12:42:18 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1919 * remake.c (update_file_1): Do set_command_state (FILE,
1920 cs_not_started) only if old state was deps_running.
1922 Mon Nov 28 14:24:03 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1924 * job.c (start_waiting_job): Use set_command_state.
1926 * build.template (CPPFLAGS): New variable.
1927 (prefix, exec_prefix): Set from @...@.
1928 (compilation loop): Pass $CPPFLAGS to compiler.
1930 * GNUmakefile (build.sh.in): Make it executable.
1932 * GNUmakefile (globfiles): Add configure.in, configure.
1936 * configure.in (AC_OUTPUT): Don't write glob/Makefile.
1938 * configure.in (AC_CHECK_SYMBOL): Use AC_DEFINE_UNQUOTED.
1940 * configure.in: Don't check for ranlib.
1942 Tue Nov 22 22:42:40 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1944 * remake.c (notice_finished_file): Only mark also_make's as
1945 updated if really ran cmds.
1947 Tue Nov 15 06:32:46 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1949 * configure.in: Put dnls before random whitespace.
1951 Sun Nov 13 05:02:25 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1953 * compatMakefile (CPPFLAGS): New variable, set from @CPPFLAGS@.
1954 (RANLIB): Variable removed.
1955 (prefix, exec_prefix): Set these from @...@.
1956 (.c.o): Use $(CPPFLAGS).
1957 (glob/libglob.a): Don't pass down variables to sub-make.
1958 glob/Makefile should be configured properly by configure.
1959 (distclean): Remove config.log and config.cache (autoconf stuff).
1961 Mon Nov 7 13:58:06 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1963 * acconfig.h: Add #undef HAVE_UNION_WAIT.
1964 * configure.in: Converted to Autoconf v2.
1965 * dir.c: Test HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H instead
1966 of DIRENT, SYSDIR, NDIR.
1967 * build.sh.in (prefix, exec_prefix): Set these from @...@.
1968 (CPPFLAGS): New variable, set from @CPPFLAGS@.
1969 (compiling loop): Pass $CPPFLAGS before $CFLAGS.
1970 * install.sh: File renamed to install-sh.
1972 * main.c (define_makeflags): When no flags, set WORDS to zero.
1974 Sun Nov 6 18:34:01 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1978 * main.c (define_makeflags): Terminate properly when FLAGSTRING is
1981 Fri Nov 4 16:02:51 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1985 Tue Nov 1 01:18:10 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1989 * job.c (start_job_command): When ARGV is nil, only set
1990 update_state and call notice_finished_file if job_next_command
1993 * job.c (start_job_command): Call notice_finished_file for empty
1996 Thu Oct 27 02:02:45 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1998 * file.c (snap_deps): Set COMMANDS_SILENT for .SILENT, not
2001 Wed Oct 26 02:14:10 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2005 Tue Oct 25 22:49:24 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2007 * file.c (snap_deps): Set command_flags bits in all :: entries.
2009 Mon Oct 24 18:47:50 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2011 * make.h (posix_pedantic): Declare it.
2012 * main.c (main): Move checks .IGNORE, .SILENT, .POSIX to
2014 * file.c (snap_deps): Check .IGNORE, .SILENT, .POSIX here instead
2015 of in main. If .IGNORE has deps, OR COMMANDS_NOERROR into their
2016 command_flags and don't set -i. Likewise .SILENT.
2017 * job.c (start_job_command): In FLAGS initialization, OR in
2018 CHILD->file->command_flags.
2019 * file.h (struct file): New member `command_flags'.
2021 Sun Oct 16 01:01:51 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2023 * main.c (switches): Bump flag values for --no-print-directory and
2024 --warn-undefined-variables, so neither is 1 (which indicates a
2025 nonoption argument).
2027 Sat Oct 15 23:39:48 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2029 * main.c (main): Add missing code in .IGNORE test.
2031 Mon Oct 10 04:09:03 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2033 * variable.c (define_automatic_variables): Define +D and +F.
2035 Sat Oct 1 04:07:48 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2037 * main.c (main): Define hidden automatic variable with command
2038 vars, and MAKEOVERRIDES to a reference to that.
2039 (define_makeflags): If posix_pedantic, write a reference to that
2042 Thu Sep 29 00:14:26 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2044 * main.c (posix_pedantic): New variable.
2045 (main): Set posix_pedantic if .POSIX is a target.
2046 Fix .IGNORE and .SILENT checks to require is_target.
2048 * commands.c (set_file_variables): Define new automatic variable
2049 $+, like $^ but before calling uniquize_deps.
2051 * job.c (reap_children): Call delete_child_targets for non-signal
2052 error if .DELETE_ON_ERROR is a target.
2054 Tue Sep 27 01:57:14 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2058 Mon Sep 26 18:16:55 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2060 * job.c (reap_children): Don't change C->file->command_state when
2061 dying. Test it only after calling start_job_command for a new
2062 command line. When no more cmds, just set C->file->update_status.
2063 (start_job_command): When the last line is empty or under -n, set
2064 C->file->update_status.
2065 (start_waiting_job): Grok cs_not_started after start_job_command
2067 (new_job): Set C->file->update_status when there are no cmds.
2068 (job_next_command): When out of lines, don't set
2069 CHILD->file->update_status or CHILD->file->command_state.
2071 * main.c (quote_as_word): Renamed from shell_quote. Take new arg;
2072 if nonzero, also double $s.
2073 (main): Define MAKEOVERRIDES from command_variables here.
2074 (define_makeflags): Don't use command_variables here; instead write a
2075 reference $(MAKEOVERRIDES) in MAKEFLAGS. Make vars recursive.
2077 * dir.c [__MSDOS__]: Fixed typo.
2079 * vpath.c (selective_vpath_search): Reset EXISTS when stat fails.
2081 Sat Sep 10 03:01:35 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2083 * remake.c: Include <assert.h> and use assert instead of printfs
2086 * main.c (decode_switches): Loop until optind hits ARGC, not just
2087 until getopt_long returns EOF. Initialize C to zero before loop;
2088 in loop if C is EOF, set optarg from ARGV[optind++], else call
2090 (decode_env_switches): Use variable_expand instead of
2091 allocated_variable_expand. Allocate a fresh buffer to copy split
2092 words into; scan characters by hand to break words and
2094 (shell_quote): New function.
2095 (define_makeflags): Allocate doubled space for switch args, and command
2096 variable names and values; use shell_quote to quote those things.
2098 Fri Sep 9 01:37:47 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2102 * acconfig.h: Add HAVE_SYS_SIGLIST and HAVE__SYS_SIGLIST.
2104 * main.c (decode_switches): The non-option return from getopt is
2106 (command_variables): New type and variable.
2107 (decode_switches, decode_env_switches): After making a variable
2108 definition, record the struct variable pointer in the
2109 command_variables chain.
2110 (define_makeflags): If ALL, write variable definitions for
2113 * main.c (other_args): Variable removed.
2114 (goals, lastgoal): New static variables (moved from auto in main).
2115 (main): Don't process OTHER_ARGS at all.
2116 Don't set variable MAKEOVERRIDES at all; define MAKE to just
2118 (init_switches): Prepend a - {return in order} instead of a +
2120 (decode_switches): Don't set OTHER_ARGS at all.
2121 Grok '\0' return from getopt_long as non-option argument; try
2122 variable definition and (if !ENV) enter goal targets here.
2123 (decode_env_switches): Use allocated_variable_expand to store value.
2124 Use find_next_token to simplify word-splitting loop. Don't
2125 prepend a dash to uninterpreted value. Instead, if split into
2126 only one word, try variable definition and failing that prepend a
2127 dash to the word and pass it to decode_switches as a single arg.
2129 Wed Sep 7 03:02:46 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2131 * remake.c (notice_finished_file): Only recheck modtimes if
2132 FILE->command_state was cs_running on entry (meaning the commands
2134 (update_file_1): Whenever we set FILE->update_status, call
2135 notice_finished_file instead of just set_command_state.
2136 * job.c (start_job_command): Whenever we set
2137 CHILD->file->update_status, call notice_finished_file instead of
2138 just set_command_state.
2140 Tue Sep 6 19:13:54 1994 Roland McGrath <roland@geech.gnu.ai.mit.edu>
2142 * default.c: Add missing ".
2144 * job.c: Changed all assignments of command_state members to calls
2145 to set_command_state.
2146 * remake.c: Likewise.
2147 * file.c (set_command_state): New function.
2148 * file.h: Declare set_command_state.
2150 * main.c (init_switches): Put a + first in options.
2152 Mon Jul 25 18:07:46 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2154 Merge MSDOS/GO32 port from DJ Delorie <dj@ctron.com>.
2155 * vpath.c: Changed all uses of ':' to PATH_SEPARATOR_CHAR.
2156 * main.c (directory_before_chdir): New variable, moved out of main
2158 (main) [__MSDOS__]: Look for \ or : to delimit last component of
2159 PROGRAM. Don't frob ARGV[0] before setting MAKE_COMMAND variable.
2160 (die): Change back to `directory_before_chdir' before dying.
2161 * make.h (PATH_SEPARATOR_CHAR): New macro; differing defns for
2162 [__MSDOS__] and not.
2163 * job.c [__MSDOS__]: Include <process.h>.
2164 [__MSDOS__] (dos_pid, dos_status, dos_bname, dos_bename,
2165 dos_batch_file): New variables.
2166 (reap_children) [__MSDOS__]: Don't call wait; just examine those vars.
2167 (unblock_sigs) [__MSDOS__]: Do nothing.
2168 (start_job_command) [__MSDOS__]: Use spawnvpe instead of vfork & exec.
2169 (load_too_high) [__MSDOS__]: Always return true.
2170 (search_path) [__MSDOS__]: Check for : or / in FILE to punt.
2171 Use PATH_SEPARATOR_CHAR instead of ':'.
2172 (construct_command_argv_internal) [__MSDOS__]: Wholly different
2173 values for sh_chars and sh_cmds. Wholly new code to handle shell
2175 * function.c (expand_function: `shell') [__MSDOS__]: Wholly new
2177 * dir.c [__MSDOS__] (dosify): New function.
2178 (dir_contents_file_exists_p) [__MSDOS__]: Call it on FILENAME and
2179 process the result instead of FILENAME itself.
2180 (file_impossible_p) [__MSDOS__]: Likewise.
2181 * default.c [__MSDOS__]: Define GCC_IS_NATIVE.
2182 (default_suffix_rules) [__MSDOS__]: Use `y_tab.c' instead of `y.tab.c'.
2183 (default_variables) [GCC_IS_NATIVE]: Set CC and CXX to `gcc', YACC to
2184 `bison -y', and LEX to `flex'.
2185 * configure.bat, configh.dos: New files.
2186 * commands.c (fatal_error_signal) [__MSDOS__]: Just remove
2187 intermediates and exit.
2189 * commands.c (set_file_variables): Add parens in length
2190 computation in .SUFFIXES dep loop to quiet compiler warning. From
2193 * read.c (read_makefile): Free FILENAME if we allocated it. From
2196 Mon Jul 4 17:47:08 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2198 * misc.c (safe_stat): New function, EINTR-safe wrapper around stat.
2199 * vpath.c (selective_vpath_search): Use safe_stat in place of stat.
2200 * read.c (construct_include_path): Use safe_stat in place of stat.
2201 * job.c (search_path): Use safe_stat in place of stat.
2202 * dir.c (find_directory): Use safe_stat in place of stat.
2203 * commands.c (delete_target): Use safe_stat in place of stat.
2204 * arscan.c (ar_member_touch) [EINTR]: Do EINTR looping around fstat.
2205 * remake.c (name_mtime): Use safe_stat in place of stat.
2206 (touch_file) [EINTR]: Do EINTR looping around fstat.
2208 Fri Jun 24 05:40:24 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2210 * read.c (read_makefile): Check for a shell command first, and
2211 then strip leading tabs before further checking if it's not a
2214 * make.h [__arm]: Undefine POSIX.
2215 [!__GNU_LIBRARY__ && !POSIX && !_POSIX_VERSION]: Don't declare system
2216 functions that return int.
2218 * job.c (construct_command_argv_internal): After swallowing a
2219 backslash-newline combination, if INSTRING is set goto string_char
2220 (new label) for normal INSTRING handling code.
2222 Sat Jun 4 01:11:20 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2224 * configure.in: Don't check for sys_siglist and _sys_siglist with
2225 AC_HAVE_FUNCS. Instead use two AC_COMPILE_CHECKs.
2227 Mon May 23 18:20:38 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2229 * Version 3.71.1 released.
2231 * make.h [!__GNU_LIBRARY__ && !POSIX]: Also test #ifndef
2232 _POSIX_VERSION for these declarations.
2234 * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Remove bogus #ifndefs
2235 around #undefs of HAVE_SETREUID and HAVE_SETREGID.
2237 Sat May 21 16:26:38 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2239 * Version 3.71 released.
2241 * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Don't test [HAVE_SETUID]
2242 and [HAVE_SETGID]. Every system has those, and configure doesn't
2245 * make.h [_POSIX_VERSION]: Don't #define POSIX #ifdef ultrix.
2247 * compatMakefile (loadavg): Depend on and use loadavg.c instead of
2249 (loadavg.c): Link or copy it from getloadavg.c.
2250 (distclean): Remove loadavg.c.
2252 Mon May 16 22:59:04 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2256 * misc.c [GETLOADAVG_PRIVILEGED] [! POSIX]: Undefine HAVE_SETEUID
2259 * default.c (default_terminal_rules): In SCCS rules, put
2260 $(SCCS_OUTPUT_OPTION) before $<. On some systems -G is grokked
2261 only before the file name.
2262 * configure.in (SCCS_GET_MINUS_G check): Put -G flag before file name.
2264 Tue May 10 16:27:38 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2266 * job.c (construct_command_argv_internal): Swallow
2267 backslash-newline combinations inside '' strings too.
2269 Thu May 5 04:15:10 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2271 * read.c (do_define): Call collapse_continuations on each line
2274 Mon Apr 25 19:32:02 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2276 * job.c (construct_command_argv_internal): Notice newline inside
2277 '' string when RESTP is non-null.
2279 Fri Apr 22 17:33:30 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2283 * remake.c (update_goal_chain): Reset FILE to G->file after the
2284 double-colon loop so it is never null for following code.
2286 * read.c (read_makefile): Fix `override define' parsing to skip
2287 whitespace after `define' properly.
2289 * compatMakefile (srcdir): Define as @srcdir@; don't reference
2291 (glob/Makefile): New target.
2293 Thu Apr 21 16:16:55 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2297 * misc.c (remove_comments): Use find_char_unquote.
2298 * make.h (find_char_unquote): Declare it.
2299 * read.c (find_char_unquote): New function, generalized from
2301 (find_percent, find_semicolon, parse_file_seq): Use that.
2303 Wed Apr 20 18:42:39 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2305 * implicit.c (pattern_search): Always allocate new storage for
2306 FILE->stem. It is not safe to store STEM's address because it
2307 might be auto storage.
2309 * configure.in: Check for seteuid and setegid.
2310 * misc.c [HAVE_SETEUID]: Declare seteuid.
2311 [HAVE_SETEGID]: Declare setegid.
2312 (make_access, user_access) [HAVE_SETEUID]: Use seteuid.
2313 [HAVE_SETEGID]: Use setegid.
2315 * remake.c (update_goal_chain): Set STATUS to FILE->update_status,
2316 to preserve whether it's 2 for error or 1 for -q trigger. When
2317 STATUS gets nonzero and -q is set, always stop immediately.
2318 * main.c (main, decode_switches): Die with 2 for errors.
2319 (main): Accept 2 return from update_goal_chain and die with that.
2320 * misc.c (fatal, makefile_fatal): Die with 2; 1 is reserved for -q
2322 * job.c (reap_children): Die with 2 for error.
2323 (start_job_command): Set update_status to 2 for error. Set it to
2324 1 when we would run a command and question_flag is set.
2326 * read.c (read_makefile): Don't mark makefiles as precious. Just
2327 like other targets, they can be left inconsistent and in need of
2328 remaking by aborted commands.
2330 * read.c (read_makefile): Write no error msg for -include file.
2332 Tue Apr 5 05:22:19 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2334 * commands.c (fatal_error_signal): Don't unblock signals.
2336 * file.h (struct file): Change member `double_colon' from flag to
2338 * read.c (record_files): Set double_colon pointer instead of flag.
2339 * main.c (main): When disqualifying makefiles for updating, use
2340 double_colon pointer to find all entries for a file.
2341 * file.c (enter_file): If there is already a double-colon entry
2342 for the file, set NEW->double_colon to that pointer.
2343 (file_hash_enter): Use FILE->double_colon to find all entries to
2345 * remake.c (update_goal_chain): Do inner loop on double-colon entries.
2346 (update_file): Use FILE->double_colon pointer to find all entries.
2347 (f_mtime): Likewise.
2348 (notice_finished_file): Propagate mtime change to all entries.
2350 * variable.c (try_variable_definition): Return after abort.
2352 Fri Apr 1 18:44:15 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2354 * read.c (read_makefile): Remove unused variable.
2355 (parse_file_seq): When removing an elt that is just `)', properly
2356 fix up the previous elt's next pointer.
2358 Mon Mar 28 18:31:49 1994 Roland McGrath (roland@mole.gnu.ai.mit.edu)
2360 * configure.in: Do AC_SET_MAKE.
2361 * GNUmakefile (Makefile.in): Edit MAKE assignment into @SET_MAKE@.
2363 Fri Mar 4 00:02:32 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2365 * function.c (subst_expand): If BY_WORD or SUFFIX_ONLY is set and
2366 the search string is the empty string, find a match at the end of
2367 each word (using end_of_token in place of sindex).
2369 * misc.c (end_of_token): Don't treat backslashes specially; you
2370 can no longer escape blanks with backslashes in export, unexport,
2371 and vpath. This was never documented anyway.
2373 Thu Mar 3 23:53:46 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2375 * read.c (read_makefile): Variable name for `define' is not just
2376 first token; use whole rest of line and strip trailing blanks.
2378 Wed Feb 16 16:03:45 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2382 * read.c (read_makefile): Add -d msg stating args.
2384 * read.c (read_makefile): Use isspace to skip over leading
2385 whitespace, and explicitly avoid skipping over tabs. Don't want
2386 to skip just spaces though; formfeeds et al should be skipped.
2388 * default.c (default_variables) [__hpux]: Add f in ARFLAGS.
2390 * arscan.c (ar_name_equal) [__hpux]: Subtract 2 instead of 1 from
2391 sizeof ar_name for max length to compare.
2393 * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Undefine HAVE_SETREUID
2394 #ifdef HAVE_SETUID; likewise HAVE_SETREGID and HAVE_SETGID.
2396 * main.c (main): Call user_access after setting `program', in case
2397 it needs to use it in an error message.
2399 * read.c (read_makefile): Ignore an empty line starting with a tab.
2401 Thu Feb 10 21:45:31 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2403 * configure.in (AC_SYS_SIGLIST_DECLARED): Use this instead of
2404 AC_COMPILE_CHECK that is now its contents.
2406 Fri Feb 4 16:28:54 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2408 * make.h: #undef strerror after #include <string.h>.
2409 [! ANSI_STRING]: Declare strerror.
2411 Thu Feb 3 02:21:22 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2413 * misc.c (strerror): #undef any macro before function definition.
2415 Mon Jan 31 19:07:23 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2417 * variable.c (try_variable_definition): Calculate BEG before loop
2418 to strip blanks by decrementing END. Don't decr END to before BEG.
2420 * read.c (read_makefile): Skip over leading space characters, but
2421 not tabs, after removing continuations and comments (it used to
2424 Tue Jan 25 16:45:05 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2426 * variable.c (define_automatic_variables): In $(@D) et al, use
2427 patsubst to remove trailing slash.
2429 * commands.c (delete_target): New function, broken out of
2430 delete_child_targets. Check for archive members and give special msg.
2431 (delete_child_targets): Use delete_target.
2433 Mon Jan 17 17:03:22 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2435 * default.c (default_suffix_rules): Use $(TEXI2DVI_FLAGS) in
2436 texi2dvi rules. Use $(MAKEINFO_FLAGS) in makeinfo rules.
2438 Tue Jan 11 19:29:55 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2440 * GNUmakefile (tarfiles): Omit make-doc.
2441 (make-$(version).tar): Include make.info*.
2443 Fri Jan 7 16:27:00 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2445 * compatMakefile (configure, config.h.in): Comment out rules.
2447 Thu Jan 6 18:08:08 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2449 * compatMakefile (binprefix, manprefix): New variables.
2450 (instname): Variable removed.
2451 (install): Use $({bin,man}prefix)make in place of $(instname).
2452 File targets likewised renamed.
2454 Mon Jan 3 17:50:25 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2456 * Version 3.70 released.
2458 Thu Dec 23 14:46:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2462 * read.c (parse_file_seq): Inside multi-word archive ref
2463 translation loop, check NEW1==0 at end and break out of the loop.
2465 * GNUmakefile (make-$(version).tar): Distribute install.sh.
2466 * install.sh: New file.
2468 * configure.in (SCCS_GET_MINUS_G check): Put redirection for admin
2469 cmds outside subshell parens, to avoid "command not found" msgs
2472 Wed Dec 22 17:00:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2474 * configure.in (SCCS_GET_MINUS_G check): Put -G flag last in get cmd.
2475 Redirect output & error from get to /dev/null.
2476 Fix reversed sense of test.
2478 Fri Dec 17 15:31:36 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2480 * configure.in (SCCS_GET_MINUS_G check): Use parens instead of
2481 braces inside if condition command; some shells lose.
2483 Thu Dec 16 15:10:23 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2487 * arscan.c [M_UNIX]: Move #undef M_XENIX for PORTAR stuff.
2488 (PORTAR) [M_XENIX]: Define to 0 instead of 1.
2490 * main.c (define_makeflags): Only export MAKEFLAGS if !ALL.
2492 Wed Dec 15 17:47:48 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2494 * main.c (main): Cast result of pointer arith to unsigned int
2495 before passing to define_variable for envars. Matters when
2496 sizeof(unsigned)!=sizeof(ptrdiff_t).
2498 Tue Dec 14 14:21:16 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2500 * configure.in: Add new check for SCCS_GET_MINUS_G.
2501 * config.h.in: Add #undef SCCS_GET_MINUS_G.
2502 * default.c (default_terminal_rules): Use `$(SCCS_OUTPUT_OPTION)' in
2503 place of `-G $@' in SCCS commands.
2504 (default_variables) [SCCS_GET_MINUS_G]: Define SCCS_OUTPUT_OPTION
2507 * configure.in (AC_OUTPUT): Put touch stamp-config in second arg
2508 (so it goes in config.status), rather than afterward.
2510 * ar.c (ar_member_date): Don't call enter_file on the archive file
2511 if it doesn't exist (by file_exists_p).
2513 * compatMakefile ($(infodir)/make.info): Replace `$$d/foo.info'
2514 with `$$dir/make.info' in install-info invocation (oops).
2516 * vpath.c (construct_vpath_list): Only set LASTPATH set PATH when
2517 we do not unlink and free PATH.
2519 * file.c (print_file_data_base): Fix inverted calculation for
2520 average files per hash bucket.
2522 * read.c (readline): When we see a NUL, give only a warning and
2523 synthesize a newline to terminate the building line (used to
2524 fatal). Move fgets call into the loop condition, and after the
2525 loop test ferror (used to test !feof in the loop).
2527 Fri Dec 3 16:40:31 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2529 * configure.in: Check for strerror in AC_HAVE_FUNCS.
2531 Thu Dec 2 15:37:50 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2533 Differentiate different flavors of missing makefile error msgs,
2534 removing gratuitous `fopen: ' and giving caller for included makefiles.
2535 * misc.c [! HAVE_STRERROR]: Define our own strerror here.
2536 (perror_with_name, pfatal_with_name): Use strerror instead of
2537 replicating its functionality.
2538 * read.c (read_makefile): Return int instead of void.
2539 (read_all_makefiles, read_makefile): Change callers to notice zero
2540 return and give error msg.
2542 Thu Nov 11 11:47:36 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2546 * default.c: Put `-G $@' before $< in SCCS cmds.
2548 Wed Nov 10 06:06:14 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2550 * read.c (read_makefile): After trying a variable defn, notice if
2551 the line begins with a tab, and diagnose an error.
2553 Sun Nov 7 08:07:37 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2557 Wed Nov 3 06:54:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2561 * implicit.c (try_implicit_rule): Look for a normal rule before an
2564 Fri Oct 29 16:45:28 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2566 * function.c (expand_function: `sort'): Double NWORDS when it
2567 overflows, instead of adding five.
2569 * compatMakefile (clean): Remove loadavg.
2571 Wed Oct 27 17:58:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2575 * file.h (NEW_MTIME): Define new macro.
2576 * main.c (main): Set time of NEW_FILES to NEW_MTIME, not to
2577 current time returned from system. Removed variable NOW.
2578 * remake.c (notice_finished_file): Use NEW_MTIME in place of
2579 current time here too.
2581 Tue Oct 26 19:45:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2585 * remake.c (update_file_1): Don't clear MUST_MAKE when FILE has no
2586 cmds and !DEPS_CHANGED unless also !NOEXIST.
2588 Mon Oct 25 15:25:21 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2590 * read.c (parse_file_seq): When converting multi-word archive
2591 refs, ignore a word beginning with a '('.
2593 Fri Oct 22 02:53:38 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2595 * configure.in: Check for sys/timeb.h.
2596 * make.h [HAVE_SYS_TIMEB_H]: Test this before including it.
2598 Thu Oct 21 16:48:17 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2602 * rule.c (convert_suffix_rule): New local TARGPERCENT. Set it to
2603 TARGNAME+1 for "(%.o)", to TARGNAME for "%.?". Use it in place of
2604 TARGNAME to initialize PERCENTS[0].
2606 Mon Oct 18 06:49:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2608 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
2609 Remove AC_USG; it is no longer used.
2611 * file.c (print_file): New function, broken out of
2612 print_file_data_base.
2613 (print_file_data_base): Call it.
2614 * rule.c (print_rule): New function, broken out of
2615 print_rule_data_base.
2616 (print_rule_data_base): Call it.
2618 Thu Oct 14 14:54:03 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2620 * default.c (install_default_suffix_rules): New function, broken
2621 out of install_default_implicit_rules.
2622 (install_default_implicit_rules): Move suffix rule code there.
2623 * make.h: Declare install_default_suffix_rules.
2624 * main.c (main): Call install_default_suffix_rules before reading
2625 makefiles. Move convert_to_pattern call before
2626 install_default_implicit_rules.
2628 * job.h (struct child): Make `pid' member type `pid_t' instead of
2631 * compatMakefile (RANLIB): New variable, set by configure.
2632 (glob/libglob.a): Pass RANLIB value down to submake.
2634 Fixes for SCO 3.2 "devsys 4.2" from pss@tfn.com (Peter Salvitti).
2635 * make.h: Include <sys/timeb.h> before <time.h> for SCO lossage.
2636 * job.c [! getdtablesize] [! HAVE_GETDTABLESIZE]: If NOFILE is not
2637 defined but NOFILES_MAX is, define it to be that.
2639 Mon Oct 11 19:47:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2641 * GNUmakefile (make-$(version).tar): Depend on acconfig.h, so it
2644 Sun Oct 3 15:15:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2646 * default.c (default_terminal_rules): Add `-G $@' to SCCS get cmds.
2648 Tue Sep 28 14:18:20 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2650 * job.c (construct_command_argv_internal): Add ^ to SH_CHARS; it
2651 is another symbol for | in some shells.
2652 * main.c (main): Add it to CMD_DEFS quoting list as well.
2654 Mon Sep 20 18:05:24 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2656 * job.c (construct_command_argv_internal): Remove '=' from
2657 SH_CHARS. Only punt on '=' if it is unquoted in a word before the
2658 first word without an unquoted '='.
2660 * main.c (define_makeflags): Set v_export for MAKEFLAGS.
2662 Fri Sep 17 00:37:18 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2664 * remake.c (update_file_1): Use .DEFAULT cmds for phony targets.
2666 * make.h [_AIX && _POSIX_SOURCE]: Define POSIX.
2668 * commands.c (delete_child_targets): Don't delete phony files.
2670 * job.c (start_job_command): Set COMMANDS_RECURSE in FLAGS if we
2671 see a `+' at the beginning of the command line.
2673 Thu Sep 9 17:57:14 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2677 Wed Sep 8 20:14:21 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2679 * main.c (define_makeflags): Define MAKEFLAGS with o_file, not o_env.
2681 Mon Aug 30 12:31:58 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2683 * expand.c (variable_expand): Fatal on an unterminated reference.
2685 Thu Aug 19 16:27:53 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2689 * variable.c (define_automatic_variables): Define new o_default
2690 variable `MAKE_VERSION' from version_string and remote_description.
2692 * make.h (version_string, remote_description): Declare these here.
2693 * main.c: Don't declare version_string.
2694 (print_version): Don't declare remote_description.
2696 Wed Aug 18 15:01:24 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2698 * read.c (read_makefile): Free space pointed to by CONDITIONALS
2699 before restoring the old pointer.
2701 Mon Aug 16 17:33:36 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2703 * compatMakefile ($(objs)): Depend on config.h.
2705 * GNUmakefile (build.sh.in): Depend on compatMakefile.
2707 * configure.in: Touch stamp-config after AC_OUTPUT.
2709 Fri Aug 13 16:04:22 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2713 Thu Aug 12 17:18:57 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2715 * make.h: Include <config.h> instead of "config.h".
2717 Wed Aug 11 02:35:25 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2719 * main.c (main): Make all variables interned from ENVP be v_export.
2720 * variable.c (try_variable_definition): In v_default case, don't
2721 check for an o_file variable that `getenv' finds.
2723 * job.c (reap_children): New local variable ANY_LOCAL; set it
2724 while setting ANY_REMOTE. If !ANY_LOCAL, don't wait for local kids.
2726 * main.c (main): Don't call decode_env_switches on MFLAGS. DOC THIS.
2728 * function.c (expand_function): #if 0 out freeing of ENVP since it
2731 Mon Aug 9 17:37:20 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2735 * remote-stub.c (remote_status): Set errno to ECHILD before return.
2736 * job.c (reap_children): Scan the chain for remote children and
2737 never call remote_status if there are none.
2739 * function.c (expand_function: `shell'): #if 0 out calling
2740 target_environment; just set ENVP to environ instead.
2742 * job.c (reap_children): Check for negative return from
2743 remote_status and fatal for it.
2744 When blocking local child wait returns 0, then try a blocking call
2747 Tue Aug 3 00:19:00 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2749 * compatMakefile (clean): Delete make.info* and make.dvi here.
2750 (distclean): Not here.
2752 * dep.h (RM_*): Use #defines instead of enum to avoid lossage from
2753 compilers that don't like enum values used as ints.
2755 Mon Aug 2 16:46:34 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2757 * compatMakefile (loadavg): Add $(LOADLIBES).
2759 Sun Aug 1 16:01:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2763 * compatMakefile (loadavg, check-loadavg): New targets.
2764 (check): Depend on check-loadavg.
2766 * compatMakefile (glob/libglob.a): Depend on config.h.
2768 * misc.c (log_access): Write to stderr instead of stdout.
2770 Fri Jul 30 00:07:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2774 Thu Jul 29 23:26:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2776 * configure.in (SYS_SIGLIST_DECLARED): In test program include
2777 <unistd.h> #ifdef HAVE_UNISTD_H.
2779 * compatMakefile (.PHONY): Put after `all' et al.
2781 * configure.in: Add AC_IRIX_SUN.
2783 Wed Jul 28 17:41:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2787 Mon Jul 26 14:36:49 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2791 Sun Jul 25 22:09:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2795 * compatMakefile ($(infodir)/make.info): Don't use $(instname).
2796 Run install-info script if present.
2798 Fri Jul 23 16:03:50 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2800 * make.h [STAT_MACROS_BROKEN]: Test this instead of [uts].
2802 * configure.in: Add AC_STAT_MACROS_BROKEN.
2804 Wed Jul 14 18:48:11 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2808 * read.c (read_makefile): Recognize directive `-include', like
2809 `include' but sets RM_DONTCARE flag.
2811 * variable.c (target_environment): If FILE is nil, use
2812 current_variable_set_list in place of FILE->variables.
2813 * function.c (expand_function: `shell'): Get an environment for
2814 the child from target_environment instead of using environ.
2816 * dep.h: Declare read_all_makefiles here.
2817 (RM_*): Define new enum constants.
2818 * read.c (read_makefile): Second arg is FLAGS instead of TYPE.
2819 Treat it as a bit mask containing RM_*.
2820 (read_all_makefiles): For default makefiles, set D->changed to
2821 RM_DONTCARE instead of 1.
2822 * main.c: Don't declare read_all_makefiles here.
2823 (main): Check `changed' member of read_makefiles elts for RM_*
2824 flags instead of specific integer values.
2826 Mon Jul 12 22:42:17 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2828 * make.h [sequent && i386]: #undef POSIX. From trost@cse.ogi.edu.
2830 Thu Jul 8 19:51:23 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2832 * vpath.c (construct_vpath_list): If ELEM is zero 0, free PATTERN
2834 (build_vpath_lists): Empty `vpaths' around construct_vpath_list
2835 call for $(VPATH). Expand $(strip $(VPATH)), not just $(VPATH).
2837 * rule.c (convert_suffix_rule): Use alloca instead of xmalloc for
2838 PERCENTS, whose storage is not consumed by create_pattern_rule.
2840 * make.h [__mips && _SYSTYPE_SVR3]: #undef POSIX.
2842 Wed Jun 30 18:11:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2846 * rule.c (max_pattern_targets): New variable.
2847 (count_implicit_rule_limits): Compute its value.
2848 * rule.h: Declare it.
2849 * implicit.c (pattern_search): Make TRYRULES max_target_patterns
2850 times bigger. Move adding new TRYRULES elt inside the inner
2851 targets loop, so each matching target gets its own elt in MATCHES
2852 and CHECKED_LASTSLASH.
2854 * file.c (remove_intermediates): If SIG!=0 say `intermediate file'
2855 instead of just `file' in error msg.
2857 Fri Jun 25 14:55:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2859 * job.c (construct_command_argv): Turn off
2860 --warn-undefined-variables around expansion of SHELL and IFS.
2861 * read.c (tilde_expand): Likewise for HOME.
2862 (read_all_makefiles): Likewise for MAKEFILES.
2863 * vpath.c (build_vpath_lists): Likewise for VPATH.
2865 * main.c (warn_undefined_variables_flag): New flag variable.
2866 (switches): Add --warn-undefined-variables.
2867 * make.h (warn_undefined_variables_flag): Declare it.
2868 * expand.c (warn_undefined): New function.
2869 (reference_variable): Call it if the variable is undefined.
2870 (variable_expand): In substitution ref, call warn_undefined if the
2871 variable is undefined.
2873 * default.c (default_pattern_rules): Add `%.c: %.w %.ch' and
2874 `%.tex: %.w %.ch' rules.
2875 (default_suffix_rules: .w.c, .w.tex): Pass three args: $< - $@.
2876 (default_suffixes): Add `.ch'.
2878 Mon Jun 21 17:55:39 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2880 * default.c (default_suffixes): Replace `.cweb' with `.w'.
2881 (default_suffix_rules): Rename `.cweb.c' and `.cweb.tex' to `.w.c'
2884 Fri Jun 11 14:42:09 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2886 * compatMakefile ($(bindir)/$(instname)): Add missing backslash.
2888 Thu Jun 10 18:14:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2892 * read.c (multi_glob): Don't free OLD and OLD->name in the
2893 FOUND!=0 fork. Use new block-local variable F instead of
2896 * ar.c (glob_pattern_p): New function, snarfed from glob/glob.c.
2897 (ar_glob): Call it; return nil immediately if MEMBER_PATTERN
2898 contains no metacharacters.
2900 Wed Jun 9 16:25:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2902 * ar.c (ar_glob{_match,_alphacompare}): New function.
2904 * dep.h [! NO_ARCHIVES]: Declare it.
2905 * read.c (multi_glob) [! NO_ARCHIVES]: Use it on archive member elts.
2907 * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
2908 multi_glob (which doesn't take a 3rd arg).
2909 * rule.c (install_pattern_rule): Likewise.
2910 * default.c (set_default_suffixes): Here too.
2911 * function.c (string_glob): Don't pass gratuitous arg to multi_glob.
2913 * read.c (parse_file_seq) [! NO_ARCHIVES]: Add post-processing
2914 loop to translate archive refs "lib(a b)" into "lib(a) lib(b)".
2916 Mon Jun 7 19:26:51 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2918 * compatMakefile (installdirs): Actually pass directory names.
2919 ($(bindir)/$(instname)): Test chgrp&&chmod exit status with `if';
2920 if it fails, echo a warning msg, but don't make the rule fail.
2922 * read.c (tilde_expand): New function, broken out of tilde_expand.
2923 (multi_glob): Call it.
2924 (construct_include_path): Expand ~ in directory names.
2925 * dep.h: Declare tilde_expand.
2926 * main.c (enter_command_line_file): Expand ~ at the start of NAME.
2927 (main): Expand ~ in -C args.
2928 * read.c (read_makefile): Expand ~ in FILENAME unless TYPE==2.
2930 Fri Jun 4 13:34:47 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2932 * main.c (decode_env_switches): Use xmalloc instead of alloca for ARGS.
2934 * main.c (main): Put result of alloca in temporary variable with
2935 simple assignment, to make SGI compiler happy.
2937 Thu Jun 3 20:15:46 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2941 * main.c (main): Before re-execing, remove intermediate files, and
2942 print the data base under -p. Sexier debugging message.
2944 * implicit.c (pattern_search): Allocate an extra copy of the name
2945 of a winning intermediate file when putting it in FOUND_FILES.
2947 Wed Jun 2 16:38:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2949 * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
2950 multi_glob (which doesn't take a 3rd arg).
2952 * dir.c (dir_contents_file_exists_p): When reading dirents, ignore
2953 chars within D_NAMLEN that are NULs.
2955 * main.c (decode_switches): Don't savestring ARGV[0] to put it
2957 For string switch, don't savestring `optarg'.
2958 (main): Don't free elts of makefiles->list that are "-".
2959 Use alloca'd rather than savestring'd storage for elts of
2960 makefiles->list that are temporary file names.
2961 * read.c (read_all_makefiles): Don't free *MAKEFILES.
2962 * file.c (enter_file): Don't strip `./'s.
2963 * main.c (enter_command_line_file): New function.
2964 (main): Use it in place of enter_file for command-line goals from
2965 other_files, and for old_files and new_files.
2967 Mon May 31 18:41:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2971 * compatMakefile (.SUFFIXES): Add .info.
2972 ($(infodir)/$(instname).info): Find make.info* in cwd if there,
2973 else in $srcdir. Use basename to remove dir name from installed name.
2975 Thu May 27 17:35:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2977 * implicit.c (pattern_search): When interning FOUND_FILES, try
2978 lookup_file first; if found, free the storage for our copy of the name.
2980 Wed May 26 14:31:20 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2984 * main.c (decode_switches): In usage msg, write `--switch=ARG' or
2985 `--switch[=OPTARG]' rather than `--switch ARG' or `--switch [ARG]'.
2987 Mon May 24 16:17:31 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2989 * rule.c (convert_suffix_rule): New function.
2990 (convert_to_pattern): Use it instead of doing all the work here
2992 For target suffix `.a', generate both the archive magic rule and
2995 * compatMakefile (distclean): Remove stamp-config.
2997 Sat May 22 16:15:18 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3001 * file.c (remove_intermediates): Don't write extra space after `rm'.
3003 * main.c (struct command_switch.type): Remove `usage_and_exit'.
3004 (print_usage_flag): New variable.
3005 (switches: --help): Make type `flag', to set print_usage_flag.
3006 (init_switches): Remove `usage_and_exit' case.
3007 (decode_switches): Likewise.
3008 (decode_switches): Print usage if print_usage_flag is set.
3009 When printing usage, die with status of BAD.
3010 (main): Die with 0 if print_version_flag.
3012 Fri May 21 16:09:28 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3016 Wed May 19 21:30:44 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3018 * compatMakefile (installdirs): New target.
3019 (install): Depend on it.
3021 Sun May 16 20:15:07 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3025 Fri May 14 16:40:09 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3027 * vpath.c (construct_vpath_list): In removal loop for DIRPATH==0,
3028 set LASTPATH to PATH, not NEXT.
3030 * dir.c (read_dirstream): Break out of loop after incrementing
3031 DS->buckets such that it reaches DIRFILE_BUCKETS; avoid trying to
3032 dereference DS->contents->files[DIRFILE_BUCKETS].
3034 * read.c (read_makefile): Clear no_targets after reading a
3035 targetful rule line.
3037 * main.c (main): If print_version_flag is set, exit after printing
3039 (switches): Change --version docstring to say it exits.
3041 * make.h [butterfly]: #undef POSIX.
3043 Wed May 12 15:20:21 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3047 * arscan.c (ar_scan) [! AIAMAG]: Don't declare LONG_NAME.
3048 [AIAMAG]: Pass TRUNCATE flag arg to (*FUNCTION), always zero.
3050 * function.c (handle_function): Use fatal instead of
3051 makefile_fatal when reading_filename is nil.
3053 * configure.in: Add AC_GETGROUPS_T.
3054 * job.c (search_path): Use GETGROUPS_T in place of gid_t.
3056 Sun May 9 15:41:25 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3060 Fri May 7 18:34:56 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3062 * function.c (handle_function): Fatal for unmatched paren.
3064 Thu May 6 16:13:41 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3068 * commands.c (handling_fatal_signal): New variable.
3069 (fatal_error_signal): Set it.
3070 * job.c (reap_children): Avoid nonreentrant operations if that is set.
3071 * make.h: Declare handling_fatal_signal.
3073 * expand.c (reference_variable): New function, snippet of code
3074 broken out of simple-reference case of variable_expand.
3075 (variable_expand): Use it for simple refs.
3076 (variable_expand): When checking for a computed variable name,
3077 notice a colon that comes before the final CLOSEPAREN. Expand
3078 only up to the colon, and then replace the pending text with a
3079 copy containing the expanded name and fall through to subst ref
3081 (variable_expand): Don't bother expanding the name if a colon
3082 appears before the first $.
3083 (expand_argument): Use alloca instead of savestring.
3084 (variable_expand): For subst ref, expand both sides of = before
3085 passing to [pat]subst_expand. Use find_percent instead of lindex
3086 to check the lhs for a %.
3088 Wed May 5 14:45:52 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3092 Mon May 3 17:00:32 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3094 * arscan.c (ar_name_equal) [AIAMAG]: Abort if TRUNCATED is nonzero.
3096 * read.c (read_makefile): Pass extra arg of 1 to parse_file_seq,
3099 Thu Apr 29 19:47:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3103 * arscan.c (ar_scan): New local flag var LONG_NAME. Set it when
3104 we read the member name in any of the fashions that allow it to be
3105 arbitrarily long. Pass its negation to FUNCTION.
3106 (describe_member): Take TRUNCATED from ar_scan and print it.
3107 (ar_name_equal): Take new arg TRUNCATED; if nonzero, compare only
3108 the first sizeof (struct ar_hdr.ar_name) chars.
3109 (ar_member_pos): Take TRUNCATED from ar_scan, pass to ar_name_equal.
3110 * ar.c (ar_member_date_1): Likewise.
3112 Wed Apr 28 21:18:22 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3114 * job.c (reap_children): Before calling start_job_command to start
3115 the next command line, reset C->remote by calling start_remote_job_p.
3117 Mon Apr 26 15:56:15 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3119 * arscan.c (ar_scan): New local var NAMEMAP.
3120 In loop, rename NAME to NAMEBUF; new var NAME is a pointer; new
3121 flag IS_NAMEMAP. When extracting the member name, always put a
3122 null at its end first. If the name is "//" or "/ARFILENAMES", set
3123 IS_NAMEMAP. If we have already read in NAMEMAP, and NAME looks
3124 like " /N", get full name from NAMEMAP+N.
3125 Else if NAME looks like "#1/N", read N chars from the
3126 elt data to be the full name. At end of loop, if IS_NAMEMAP, read
3127 the elt's data into alloca'd NAMEMAP.
3128 (ar_name_equal): #if 0 truncating code.
3130 * make.h: Don't declare vfork at all. It returns int anyway,
3131 unless <unistd.h> declared it; and we conflicted with some systems.
3133 * main.c (define_makeflags): If FLAGSTRING[1] is '-', define
3134 MAKEFLAGS to all of FLAGSTRING, not &FLAGSTRING[1]. Don't want to
3135 define it to something like "-no-print-directory".
3136 Use %g format instead of %f for floating-valued things.
3138 Thu Apr 22 18:40:58 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3140 * GNUmakefile (Makefile.in): Use a substitution ref on nolib-deps
3141 to change remote-%.dep to remote-stub.dep.
3143 Wed Apr 21 15:17:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3147 Fri Apr 16 14:22:22 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3149 * compatMakefile (install): Remove - prefix from chgrp+chmod.
3153 Thu Apr 15 18:24:07 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3155 * acconfig.h: New file; contains "#undef SCCS_GET" for autoheader.
3156 * configure.in: If /usr/sccs/get exists, define SCCS_GET to that,
3158 * default.c (default_variables): Set GET to macro SCCS_GET.
3160 * read.c (parse_file_seq): Take extra arg STRIP; strip `./' only
3161 if nonzero. I hope this is the last time this argument is added
3163 (read_makefile): Pass it 1 when parsing include file names.
3164 Pass it 1 when parsing target file names.
3165 Pass it 1 when parsing static pattern target pattern names.
3166 * rule.c (install_pattern_rule): Pass it 1 when parsing rule deps.
3167 * default.c (set_default_suffixes): Pass it 1 when parsing
3169 * function.c (string_glob): Pass it 0 here.
3171 Wed Apr 14 11:32:05 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3173 * misc.c (log_access): New function.
3174 ({init,user,make,child}_access): Call it.
3175 (child_access): Abort if !access_inited.
3177 * main.c (switches: --no-print-directory): Use 1 instead of -1 for
3178 single-letter option.
3179 (init_switches, decode_switches, define_makeflags): An option with
3180 no single-letter version is no longer indicated by a value of -1;
3181 instead a value that is !isalnum.
3182 (init_switches): Don't put such switches into the string, only
3183 into the long_option table.
3185 * make.h [!NSIG] [!_NSIG]: #define NSIG 32.
3187 * job.c [HAVE_WAITPID]: Remove #undef HAVE_UNION_WAIT. AIX's
3188 bsdcc defined WIF* to use union wait.
3190 * main.c (struct command_switch): Change member `c' to type int.
3191 (switches): Make const.
3192 (decode_switches): Use `const struct command_switch *'.
3193 (define_makeflags): Likewise.
3195 * default.c (default_suffix_rules): Add `-o $@' to makeinfo rules.
3197 Mon Apr 12 12:30:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3201 * configure.in (AC_HAVE_HEADERS): Check for string.h and memory.h.
3202 Removed AC_MEMORY_H.
3203 * make.h [USG, NeXT]: Don't test these.
3204 [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
3205 [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
3206 [! ANSI_STRING]: Put decls of bcopy et al here.
3207 [sparc]: Don't test this for alloca.h; HAVE_ALLOCA_H is sufficient.
3208 [HAVE_SIGSETMASK]: Test this rather than USG.
3209 [__GNU_LIBRARY__ || POSIX]: Don't #include <unistd.h> again.
3210 * main.c (main): Handle SIGCHLD if defined, and SIGCLD if defined.
3211 It doesn't hurt to do both if they are both defined, and testing
3213 * dir.c: Rationalize directory header conditionals.
3214 * arscan.c [HAVE_FCNTL_H]: Test this rather than USG || POSIX.
3216 * default.c (default_suffixes): Add `.txinfo'.
3217 (default_suffix_rules): Add `.txinfo.info' and `.txinfo.dvi' rules.
3219 * variable.c (try_variable_definition): Replace RECURSIVE flag
3220 with enum FLAVOR, which can be simple, recursive, or append.
3221 Recognize += as append flavor. Set new variable VALUE in a switch
3222 on FLAVOR. For append flavor, prepend the variable's old value.
3223 If the variable was previously defined recursive, set FLAVOR to
3224 recursive; if it was defined simple, expand the new value before
3225 appending it to the old value. Pass RECURSIVE flag to
3226 define_variable iff FLAVOR == recursive.
3228 * variable.c (try_variable_definition): Use alloca and bcopy for
3229 NAME, instead of savestring. Might as well use stack storage
3230 since we free it immediately anyway.
3232 Thu Apr 8 18:04:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3234 * job.c (start_waiting_jobs): Move decl of JOB outside of loop.
3236 * main.c (define_makeflags): Rename `struct flag' member `switch'
3237 to `cs', which is not a reserved word.
3239 Wed Apr 7 15:30:51 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3241 * job.c (new_job): Call start_waiting_jobs first thing.
3242 (start_waiting_job): Changed return type from void to int.
3243 Return 0 when putting the child on the waiting_jobs chain.
3244 (start_waiting_jobs): Don't check load and job_slots here.
3245 Always take a job off the chain and call start_waiting_job on it;
3246 give up and return when start_waiting_job returns zero.
3248 * main.c (define_makeflags: struct flag): Change member `char c' to
3249 `struct command_switch *switch'.
3250 (ADD_FLAG): Set that to CS instead of CS->c.
3251 If CS->c is -1, increment FLAGSLEN for the long name.
3252 When writing out FLAGS, handle FLAGS->switch->c == -1 and write
3253 the long name instead.
3255 * compatMakefile (stamp-config): New target of old config.h rule.
3256 Touch stamp-config after running config.status.
3257 (config.h): Just depend on stamp-config, and have empty commands.
3259 Mon Apr 5 20:14:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3261 * job.c [HAVE_WAITPID]: #undef HAVE_UNION_WAIT.
3263 * configure.in (AC_HAVE_FUNCS): Check for psignal.
3265 Fri Apr 2 17:15:46 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3267 * main.c (long_option_aliases): Remove "new"; it is already an
3268 unambiguous prefix of "new-file".
3270 Sun Mar 28 16:57:17 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3274 Wed Mar 24 14:26:19 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3276 * vpath.c (selective_vpath_search): When adding the
3277 name-within-directory at the end of NAME, and we don't add a
3278 slash, don't copy FILENAME in one char too far into NAME.
3280 * variable.c (define_automatic_variables): Find default_shell's
3281 length with strlen, not numerology.
3283 Wed Mar 17 20:02:27 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3285 * main.c (define_makeflags): Add the elts of a string option in
3286 reverse order, so they come out right when reversed again.
3288 Fri Mar 12 15:38:45 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3290 * compatMakefile (make.info): Use `-o make.info'.
3292 Thu Mar 11 14:13:00 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3294 * compatMakefile (REMOTE): Set to @REMOTE@; change comments to
3296 (objs): Replace remote.o with remote-$(REMOTE).o.
3297 (srcs): Replace remote.c with remote-$(REMOTE).c.
3298 (remote.o): Rule removed.
3300 * configure.in (REMOTE): Subst this in Makefile et al; default "stub".
3301 Use AC_WITH to grok --with-customs arg to set REMOTE=cstms.
3302 * GNUmakefile (build.sh.in): Filter out remote-% from objs list.
3303 * build.template (REMOTE): New var; set to @REMOTE@.
3304 (objs): Add remote-${REMOTE}.o.
3306 Wed Mar 10 15:12:24 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3310 * implicit.c (pattern_search): Fix "dependent"->"dependency" in
3311 "Rejecting impossible" -d msg.
3313 * file.c (file_hash_enter): New local vars {OLD,NEW}BUCKET. Store
3314 mod'd values there; never mod {OLD,NEW}HASH.
3316 Mon Mar 8 13:32:48 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3318 * remake.c [eta10]: Include <fcntl.h> instead of <sys/file.h>.
3320 * compatMakefile (VPATH): Set this to @srcdir@.
3321 (srcdir): Set this to $(VPATH).
3323 * main.c (main): New local var DIRECTORY_BEFORE_CHDIR. Save in it
3324 a copy of CURRENT_DIRECTORY after the first getcwd. Use it
3325 instead of CURRENT_DIRECTORY when chdir'ing back before re-execing.
3327 * remake.c (notice_finished_file): Pass missing SEARCH arg to f_mtime.
3329 * read.c (read_makefile): Remove extraneous arg to parse_file_seq.
3331 Mon Feb 22 14:19:38 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3333 * compatMakefile ($(infodir)/$(instname).info): Use , instead of /
3334 as the sed delimiter char.
3336 Sun Feb 21 14:11:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3340 * rule.h (struct rule): Removed `subdir' member.
3341 * rule.c (new_pattern_rule): No need to clear it.
3342 (count_implicit_rule_limits): Set the `changed' flag in each dep
3343 that refers to a nonexistent directory. No longer set rule-global
3344 `subdir' flag with that information.
3345 (print_rule_data_base): Don't record info on `subdir' flags.
3347 * implicit.c (pattern_search): Check the DEP->changed flag rather
3348 than the (now gone) RULE->subdir flag. Also test CHECK_LASTSLASH;
3349 if it is set, the file might exist even though the DEP->changed
3352 * rule.c (count_implicit_rule_limits): Pass "", not ".", as file
3353 name arg to dir_file_exists_p to check for existence of directory.
3355 * implicit.c (pattern_search): Inside dep-finding loop, set
3356 CHECK_LASTSLASH from the value recorded in CHECKED_LASTSLASH[I],
3357 rather than computing it anew.
3359 * commands.c (set_file_variables): Must alloca space for PERCENT
3360 and copy it, to avoid leaving the trailing `)' in the value.
3362 * misc.c (remove_comments): Fixed backslash-checking loop
3363 condition to allow it to look at the first char on the line.
3364 P2 >= LINE, not P2 > LINE.
3366 * compatMakefile ($(bindir)/$(instname)): Before moving $@.new to
3367 $@, rm $@.old and mv $@ to $@.old.
3369 * variable.c (try_variable_definition): Take new args FILENAME and
3370 LINENO. Fatal if the variable name is empty.
3371 * read.c (read_makefile): Change callers.
3372 * main.c (main): Likewise.
3374 * compatMakefile (group): Define to @KMEM_GROUP@, autoconf magic
3375 that configure will replace with the group owning /dev/kmem.
3377 Mon Feb 8 14:26:43 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3379 * vpath.c (vpath_search): Take second arg MTIME_PTR, pass thru to
3380 selective_vpath_search.
3381 (selective_vpath_search): Take second arg MTIME_PTR.
3382 If the dir cache thinks a file exists, stat it to make sure, and
3383 put the modtime in *MTIME_PTR.
3384 * remake.c (library_search): Take second arg MTIME_PTR.
3385 When we find a match, record its mtime there.
3386 Pass MTIME_PTR through to vpath_search to do same.
3387 (f_mtime): Pass &MTIME as new 2nd arg to {vpath,library}_search;
3388 store it in FILE->last_mtime if set nonzero.
3389 * implicit.c (pattern_search): Pass nil 2nd arg to vpath_search.
3391 * compatMakefile (remote.o): Prepend `$(srcdir)/' to `remote-*.c',
3392 so globbing looks somewhere it will find things.
3394 * compatMakefile ($(infodir)/$(instname).info): Install `make.info*'
3395 not `$(srcdir)/make.info*'; no need to use basename.
3397 Fri Feb 5 12:52:43 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3401 * compatMakefile (install): Add missing ;\s.
3403 Make -, @, and + prefixes on a pre-expanded command line affect
3404 all lines in the expansion, not just the first.
3405 * commands.h (struct commands): Replace `lines_recurse' member
3407 (COMMANDS_{RECURSE,SILENT,NOERROR}): New macros, bits to set in
3409 * commands.c (chop_commands): Set `lines_flags' instead of
3410 `lines_recurse'. Record not only + but also @ and - prefixes.
3411 * remake.c (notice_finished_file): Check the COMMANDS_RECURSE bit
3412 in FILE->cmds->lines_flags, rather than FILE->cmds->lines_recurse.
3413 * job.c (start_job_command): Replaced RECURSIVE and NOPRINT local
3414 var with FLAGS; initialize it to the appropriate `lines_flags' byte.
3415 Set CHILD->noerror if the COMMANDS_NOERROR bit is set in FLAGS.
3416 Set the COMMANDS_SILENT bit in FLAGS for a @ prefix.
3418 * remake.c (update_goal_chain): Set G->file to its prev after
3419 checking for G being finished, since that check needs to examine
3422 * configure.in (union wait check) [HAVE_WAITPID]: Try using
3423 waitpid with a `union wait' STATUS arg. If waitpid and union wait
3424 don't work together, we should not use union wait.
3428 * remake.c (update_goal_chain): When G->file->updated, move
3429 G->file to its prev. We aren't finished until G->file is nil.
3431 Thu Feb 4 12:53:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3433 * main.c (starting_directory): New global variable.
3434 (main): Set it to cwd after doing -Cs.
3435 (log_working_directory): Use it, rather than computing each time.
3436 * make.h: Declare it.
3438 * compatMakefile (SHELL): Define to /bin/sh for losing Unix makes.
3440 * main.c (decode_env_switches): Allocate (1 + LEN + 1) words for
3441 ARGV, rather than LEN words plus one byte.
3443 Wed Feb 3 18:13:52 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3445 * compatMakefile ($(bindir)/$(instname)): Put - before
3446 install_setgid command line, so its failure won't be an error.
3447 (infodir): New variable.
3448 (install): Depend on $(infodir)/$(instname).info.
3449 ($(infodir)/$(instname).info): New target.
3451 * read.c (read_makefile): If FILENAMES is nil when we see a line
3452 starting with a tab, don't treat it as a command. Just fall
3453 through, rather than giving an error.
3455 * read.c (read_makefile): If the NO_TARGETS flag is set when we see a
3456 command line, don't clear it before continuing. We want
3457 subsequent command lines to be ignored as well.
3459 * job.c (new_job): Before expanding each command line, collapse
3460 backslash-newline combinations that are inside var or fn references.
3462 Mon Feb 1 16:00:13 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3464 * compatMakefile (exec_prefix): Default to $(prefix), not /usr/local.
3466 * compatMakefile (make.info): Pass -I$(srcdir) to makeinfo.
3468 * job.c [POSIX] (unblock_sigs): Made global.
3469 [!POSIX] (unblock_sigs): Move defns to job.h.
3470 * job.h [POSIX] (unblock_sigs): Declare.
3472 Sun Jan 31 19:11:05 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3474 * read.c (read_makefile): In vpath parsing, after finding the
3475 pattern token, take entire rest of line as the search path, not
3476 just the next token.
3478 * compatMakefile (remote.o): Depend on remote-*.c.
3480 Thu Jan 28 16:40:29 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3482 * commands.c (set_file_variables): Don't define any F or D versions.
3483 * variable.c (define_automatic_variables): Define them here as
3484 recursively-expanded variables that use the dir and notdir funcs.
3486 * variable.c (target_environment): In v_default case, don't export
3487 o_default or o_automatic variables.
3489 * configure.in (union wait check): Remove ` and ' inside C code;
3490 they confuse the shell script.
3492 Mon Jan 25 13:10:42 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3496 * vpath.c (construct_vpath_list): When skipping further processing
3497 of an elt that is ".", don't also skip the code that pushes P past
3500 * compatMakefile (distclean): Don't remove make-*.
3502 * configure.in (HAVE_UNION_WAIT): Try to use WEXITSTATUS if it's
3503 defined. If one cannot use WEXITSTATUS with a `union wait'
3504 argument, we don't want to believe the system has `union wait' at all.
3506 * remake.c (update_file): Do nothing to print "up to date" msgs.
3507 (update_goal_chain): Do it here instead.
3508 Use the `changed' flag of each goal's `struct dep' to keep track
3509 of whether files_remade (now commands_started) changed around a
3510 call to update_file for that goal.
3511 When a goal is finished, and its file's update_status is zero (i.e.,
3512 success or nothing done), test the `changed' flag and give an "up
3513 to date" msg iff it is clear.
3514 * make.h (files_remade): Renamed to commands_started.
3515 * remake.c: Changed defn.
3516 (update_goal_chain): Changed uses.
3517 * job.c (start_job_command): Increment commands_started here.
3518 (reap_children): Not here.
3520 * remake.c (update_goal_chain): Don't do anything with files'
3521 `prev' members. update_file now completely handles this.
3523 * variable.c (target_environment): Don't expand recursive
3524 variables if they came from the environment.
3526 * main.c (define_makeflags): For flags with omitted optional args,
3527 store {"", 0} with ADD_FLAG. When constructing FLAGSTRING, a flag
3528 so stored cannot have more flags appended to the same word.
3530 Fri Jan 22 14:46:16 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3532 * variable.c (print_variable_set): In vars/bucket calculation,
3533 don't spuriously multiply by 100.
3537 * job.c [!HAVE_UNION_WAIT] (WTERMSIG, WCOREDUMP, WEXITSTATUS):
3538 Don't define if already defined.
3540 * remake.c (update_file): Don't keep track of the command_state before
3541 calling update_file_1. Remove local variable COMMANDS_FINISHED,
3542 and don't test it to decide to print the "is up to date" msg.
3543 Testing for files_remade having changed should always be sufficient.
3544 The old method lost when we are called in the goal chain run on a
3545 makefile, because the makefile's command_state is already
3546 `cs_finished' from the makefile chain run.
3548 * misc.c [HAVE_SETRE[GU]ID]: Test these to decl setre[gu]id.
3550 * configure.in: Rewrote wait checking.
3551 Use AC_HAVE_HEADERS to check for <sys/wait.h>.
3552 Use AC_HAVE_FUNCS to check for waitpid and wait3.
3553 Use a compile check to test just for `union wait'.
3554 * job.c: Rewrote conditionals accordingly.
3555 [HAVE_WAITPID]: Test this only to define WAIT_NOHANG.
3556 [HAVE_WAIT3]: Likewise.
3557 [HAVE_UNION_WAIT]: Test this to define WAIT_T and W*.
3559 * configure.in: Set CFLAGS and LDFLAGS before all checks.
3561 * dir.c: Add static forward decls of {open,read}_dirstream.
3563 Thu Jan 21 17:18:00 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3567 * job.c [NGROUPS_MAX && NGROUPS_MAX==0]: #undef NGROUPS_MAX.
3569 * compatMakefile (CFLAGS, LDFLAGS): Set to @CFLAGS@/@LDFLAGS@.
3570 * build.template (CFLAGS, LDFLAGS): Same here.
3571 * configure.in: AC_SUBST(CFLAGS) and LDFLAGS.
3572 Set them to -g if not defined in the environment.
3574 * remake.c (library_search): Use LIBNAME consistently, setting it
3575 only once, to be the passed name sans `-l'.
3576 Pass new var FILE to be modified by vpath_search.
3578 Mon Jan 18 14:53:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3582 * job.c (start_waiting_jobs): Return when job_slots_used is equal to
3585 * configure.in: Add AC_CONST for the sake of getopt.
3587 * read.c (read_makefile): Continue after parsing `override'
3588 directive, rather than falling through to lossage.
3589 Check for EOL or blank after "override define".
3591 * compatMakefile (.c.o, remote.o): Put $(CFLAGS) after other switches.
3593 Fri Jan 15 12:52:52 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3597 * main.c (define_makeflags): After writing everything into
3598 FLAGSTRING, only back up two chars if [-1] is a dash, meaning we
3599 just wrote " -". Always terminate the string at *P.
3601 * remake.c (library_search): When constructing names in std dirs,
3602 use &(*LIB)[2] for the stem, not LIBNAME (which points at the
3603 buffer we are writing into!).
3605 Thu Jan 14 13:50:06 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3607 * read.c (read_makefile): Set IN_IGNORED_DEFINE for "override
3608 define" when IGNORING is true.
3610 * compatMakefile (distclean): Remove config.status and build.sh.
3612 Wed Jan 13 16:01:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3616 * misc.c (xmalloc, xrealloc): Cast result of malloc/realloc to
3619 * arscan.c (ar_scan) [AIAMAG]: Cast read arg to (char *).
3621 * variable.c (define_automatic_variables): Override SHELL value for
3622 origin o_env_override as well as o_env.
3624 * GNUmakefile (build.sh.in): Don't replace %globobjs%. Instead,
3625 add the names of the glob objects (w/subdir) to %objs%.
3626 * build.template (globobjs): Removed.
3627 Take basename of $objs before linking.
3629 Tue Jan 12 12:31:06 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3633 * configure.in (AC_OUTPUT): Also edit build.sh.
3634 * build.template: New file.
3635 * GNUmakefile (build.sh.in): New rule to create it from build.template.
3636 (make-$(version).tar.Z): Depend on build.sh.in.
3638 * main.c (die): Call print_data_base if -p.
3639 (main): Don't call it here.
3641 * compatMakefile (defines): Add @DEFS@. configure should turn this
3642 into -DHAVE_CONFIG_H.
3644 Mon Jan 11 14:39:23 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3648 * misc.c (init_access): Surround with #ifdef GETLOADAVG_PRIVILEGED.
3649 ({make,user,child}_access) [! GETLOADAVG_PRIVILEGED]: Make no-op.
3650 * compatMakefile (install_setgid): New var, set by configure.
3651 (install): Install setgid $(group) only if $(install_setgid) is true.
3653 Fri Jan 8 15:31:55 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3655 * job.c (load_too_high): If getloadavg fails with errno==0, give a
3656 message saying that load limits are not supported.
3658 * vpath.c (construct_vpath_list): Rewrote path deletion code to
3659 not try to use PATH's next link after freeing PATH.
3661 * main.c (define_makeflags): Rewritten; now handles string-valued
3662 option, and has no arbitrary limits.
3663 (switches): Set `toenv' flag for -I and -v.
3665 * main.c (decode_env_switches): Cast return value of alloca to char *.
3667 * misc.c (child_access) [HAVE_SETREUID, HAVE_SETREGID]: Use
3668 setre[gu]id in place of set[gu]id.
3670 Wed Jan 6 15:06:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3672 * main.c (main): Define MAKEOVERRIDES, MAKE, and MAKE_COMMAND with
3675 * make.h [POSIX]: Don't test this to use ANSI_STRING.
3676 Testing STDC_HEADERS should be sufficient.
3678 * job.h: Declare start_waiting_jobs.
3680 * read.c (read_makefile): Add missing parens in if stmt that find
3681 conditional directives.
3683 * main.c (main): Declare init_dir.
3684 * implicit.c (pattern_search): Always use two % specs in a
3685 DEBUGP2, and always pass two non-nil args.
3686 Cast field width args to int.
3687 Add missing parens in !RULE->subdir if stmt.
3688 * function.c (expand_function, patsubst_expand): Add parens around
3689 assignments inside `while' stmts.
3690 * commands.c (print_commands): Cast field width args to int.
3692 * read.c (do_define): Cast return value of alloca to (char *).
3694 * main.c (init_switches): New function, broken out of decode_switches.
3695 (decode_switches): Take new arg ENV. If set, ignore non-option
3696 args; print no error msgs; ignore options with clear `env' flags.
3697 (decode_env_switches): Rewritten to chop envar value into words
3698 and pass them to decode_switches.
3699 (switches): Set `env' flag for -I and -v.
3701 * dir.c (init_dir): Cast free to __glob_closedir_hook's type.
3703 Tue Jan 5 14:52:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3707 * job.c [HAVE_SYS_WAIT || !USG]: Don't #include <sys/time.h> and
3708 <sys/resource.h>. <sys/time.h> interacts badly with <time.h>, and
3709 we don't need these anyway.
3711 * configure.in (AC_HAVE_FUNCS): Check for setre[gu]id.
3712 * misc.c ({user,make}_access): Test #ifndef HAVE_SETRE[GU]ID, not
3713 #ifdef POSIX || USG. SunOS 4.1 is supposedly POSIX.1 compliant,
3714 but its set[gu]id functions aren't; its setre[gu]id functions work.
3716 * misc.c ({user,make,child}_access): Give name of caller in error msgs.
3718 * job.c (load_too_high): Say "cannot enforce load limit" in error msg.
3720 * configure.in: Call AC_PROG_CC.
3721 * compatMakefile (CC): Define to @CC@ (autoconf magic).
3723 * compatMakefile: Add .NOEXPORT magic target.
3725 Mon Jan 4 17:00:03 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3727 * main.c (print_version): Updated copyright to include 93.
3729 Thu Dec 31 12:26:15 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3731 * make.h [_AIX]: Don't declare alloca.
3733 Tue Dec 29 13:45:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3737 * compatMakefile (objs): Add signame.o.
3738 (srcs): Add signame.[ch].
3740 * compatMakefile (srcs): Add config.h.in.
3741 (remote.o): Add -I. before -I$(srcdir).
3743 Mon Dec 28 15:51:26 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3747 * read.c (readline): Fatal when LEN==0, indicating a line starting
3749 (readline): Take new arg LINENO, for use in error msg.
3750 (read_makefile, do_define): Pass it.
3752 * compatMakefile (glob/libglob.a): Pass -DHAVE_CONFIG_H in CPPFLAGS.
3753 (.c.o): Add -I. before -I$(srcdir).
3755 Wed Dec 23 12:12:04 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3757 * read.c (read_makefile): Accept and ignore a rule with no targets.
3759 * compatMakefile (ALLOCA_SRC): New variable.
3760 (srcs): Include its value.
3762 * read.c (struct conditional): Renamed member `max_ignoring' to
3763 `allocated'; added new member `seen_else'.
3764 (conditional_line): Initialize seen_else flag when starting an `if...';
3765 set it when we see an `else'; fatal if set when we see `else'.
3766 (read_makefile): Fatal "missing `endif'" if there are any pending
3767 conditionals, not just if we are still ignoring.
3769 Tue Dec 22 15:36:28 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3771 * compatMakefile (manext): Set to 1, not l.
3772 ($(mandir)/$(instname).$(manext)): Use $(srcdir) for make.man in cmds.
3774 * file.c (file_hash_enter): Don't call uniquize_deps here.
3775 * read.c (record_files): Likewise.
3776 * implicit.c (pattern_search): Likewise.
3777 * commands.c (set_file_variables): Call it only here.
3779 * default.c (default_variables) [__convex__]: FC=fc.
3781 * variable.c (target_environment): Expand the values of recursively
3782 expanded variables when putting them into the environment.
3783 * expand.c (recursively_expand): Made global.
3784 * make.h (recursively_expand): Declare it.
3786 * remake.c (check_dep): Set FILE->command_state to cs_deps_running
3787 when a dep's command_state is cs_running or cs_deps_running.
3789 * read.c (read_makefile): Changed error msg for spurious cmds to
3790 not say "first target".
3792 Sun Dec 20 17:56:09 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
3794 * configure.in: Do AC_CONFIG_HEADER right after AC_INIT.
3795 * make.h (HAVE_CONFIG_H): #include "config.h", then #define this.
3796 * compatMakefile (config.h, configure, config.h.in): New rules.
3797 (defines): Removed @DEFS@.
3799 Thu Dec 17 16:11:40 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3801 * compatMakefile (realclean): Just depend on distclean; no cmds.
3802 (distclean): Do what realclean did before; also remove Makefile and
3803 config.h; don't remove configure.
3804 (info, dvi): New targets; depend on make.{info,dvi}.
3805 (doc): Removed target.
3806 (MAKEINFO, TEXI2DVI): New vars.
3807 (make.info, make.dvi): Use them instead of explicit cmds.
3809 Wed Dec 16 16:25:24 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3811 * configure.in: Added fcntl.h to AC_HAVE_HEADERS. getloadavg cares.
3813 Wed Dec 9 15:21:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3815 * main.c (long_option_aliases): Add --new-file alias for -W.
3817 * default.c (default_variables): Change all C++ to CXX and C++FLAGS
3820 * read.c (do_define): Expand the variable name before using it.
3822 * main.c (main): Define variable "MAKE_COMMAND" to argv[0];
3823 define "MAKE=$(MAKE_COMMAND) $(MAKEOVERRIDES)" always.
3825 * remake.c (library_search): Search for libNAME.a in cwd; look in
3826 vpath before looking in standard dirs, not after.
3827 Changed order of std dirs to: /lib, /usr/lib, ${prefix}/lib.
3829 Mon Nov 23 14:57:34 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3831 * default.c (default_pattern_rules, default_terminal_rules): Added
3832 brackets around initializers.
3834 * variable.c (try_variable_definition): Don't check for LINE[0]=='\t'.
3835 (try_variable_definition): Expand the name before defining the var.
3837 * job.c (init_siglist): Removed function.
3838 Removed decl of `sys_siglist'.
3839 * make.h [! HAVE_SYS_SIGLIST]: #include "signame.h".
3840 [HAVE_SYS_SIGLIST && !SYS_SIGLIST_DECLARED]: Declare sys_siglist
3841 only under these conditions.
3842 * main.c (main): Don't declare init_siglist.
3843 (main) [! HAVE_SYS_SIGLIST]: Call signame_init instead of init_siglist.
3845 Wed Nov 18 14:52:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3847 * read.c (record_files): Don't try to append to FIRSTDEPS if it's
3848 nil; instead just set it to MOREDEPS.
3850 Mon Nov 16 17:49:17 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3852 * vpath.c (construct_vpath_list): Initialize P to DIRPATH before
3853 loop that sets MAXELEM.
3855 Fri Nov 13 18:23:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3859 Thu Nov 12 15:45:31 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3861 * job.c (start_job_command): Under -n, increment files_remade after
3862 processing (i.e., printing) all command lines.
3864 Tue Nov 10 15:33:53 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3866 * read.c (record_files): Append new deps if this rule has no
3867 commands; prepend them to existing deps if this rule has no commands.
3869 * dir.c (open_dirstream): Return nil if DIR->contents->files is nil.
3871 * read.c (parse_file_seq): Removed last arg STRIP. Always strip `./'s.
3872 (read_makefile): Changed callers.
3873 * function.c (string_glob): Likewise.
3874 * rule.c (install_pattern_rule): Likewise.
3876 Mon Nov 9 17:50:16 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3878 * remake.c (files_remade): Made global.
3879 (notice_finished_file): Don't increment files_remade here; this
3880 function gets called in many situations where no remaking was in
3882 * job.c (reap_children): Do it here instead, when we know that
3883 actual commands have been run for the file.
3884 * make.h (files_remade): Declare it.
3886 Thu Nov 5 18:26:10 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3888 * vpath.c (construct_vpath_list): Allow blanks as well as colons to
3889 separate elts in the search path.
3891 * read.c (read_makefile): Don't fatal on extra tokens in `vpath'.
3892 The search path can contain spaces now.
3894 Tue Nov 3 20:44:32 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3896 * compatMakefile (check): New target; no-op.
3898 * file.c (file_hash_enter): Mod OLDHASH by FILE_BUCKETS after
3899 testing for OLDHASH==0 but before using the value.
3900 (rename_file): Don't mod OLDHASH by FILE_BUCKETS before passing it
3903 * file.c (rename_file): Notice when OLDFILE->cmds came from
3904 default.c, and don't try to print ->filename in that case.
3906 Sun Oct 25 01:48:23 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3908 * remake.c (update_file): Don't process F->also_make here.
3909 (notice_finished_file): Don't process FILE->also_make if no attempt
3910 to update FILE was actually made.
3911 Fixed to call f_mtime directly to refresh their modtimes.
3913 Sat Oct 24 22:08:59 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3915 * read.c (find_percent): Don't increment P again after skipping
3918 * expand.c (variable_expand): In call to patsubst_expand, don't
3919 find `%'s ourselves; let that function do it.
3921 * read.c (read_makefile: record_waiting_files): Don't call
3922 record_files if FILENAMES is nil.
3923 (read_makefile): All alternatives in the parsing, except for rule
3924 lines, fall through to the end of the loop. At the end of the
3925 loop, do record_waiting_files so we notice later spurious cmds.
3927 Fri Oct 23 15:57:37 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3929 * variable.c (define_automatic_variables): Free old value of SHELL
3930 before replacing it.
3932 Thu Oct 15 18:57:56 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3934 * compatMakefile (.c.o): Add -I$(srcdir)/glob to flags.
3936 * dir.c (open_dirstream): Cast return value to __ptr_t.
3938 * default.c (default_variables: "GET") [_IBMR2]: Use USG defn.
3940 * make.h (MAXPATHLEN): Moved out of #ifndef POSIX.
3941 (GET_PATH_MAX): Moved from #ifdef POSIX to #ifdef PATH_MAX #else.
3942 Define as (get_path_max ()).
3943 [! PATH_MAX] (NEED_GET_PATH_MAX): Define.
3944 [! PATH_MAX] (get_path_max): Declare fn.
3945 * misc.c [NEED_GET_PATH_MAX] (get_path_max): New function.
3947 Mon Oct 12 13:34:45 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3951 * job.c (sys_siglist): Only declare #ifndef SYS_SIGLIST_DECLARED.
3952 * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
3953 SYS_SIGLIST_DECLARED.
3955 * dir.c (file_impossible): When initializing DIR->contents, set
3956 DIR->contents->dirstream to nil.
3958 * compatMakefile (GLOB): Define new variable.
3959 (objs): Use it, rather than glob/libglob.a explicitly.
3961 * read.c (parse_file_seq): When stripping "./", handle cases like
3962 ".///foo" and "./////".
3963 * file.c (lookup_file, enter_file): Likewise.
3965 Sun Oct 11 17:00:35 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3967 * dir.c (struct dirstream, {open,read}_dirstream): New
3968 data type and functions to read a directory sequentially.
3969 (init_dir): New function to hook it into glob.
3970 * main.c (main): Call init_dir.
3972 * compatMakefile (objs): Added glob/libglob.a.
3973 * configure.in: Remove code to test for glob.
3975 Fri Oct 9 12:08:30 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3977 * read.c (record_files): Generalized test for NAME pointing
3978 somewhere into F->name.
3980 * variable.c (define_variable_in_set): Free old value when replacing.
3982 * read.c (do_define): Free the linebuffer before returning.
3983 (record_files): When clearing .SUFFIXES deps, free their data.
3984 (multi_glob): Free OLD and its data when replacing it with results
3987 * commands.c (set_file_variables): Use alloca in place of xmalloc
3988 for temp space for $^, $?, et al.
3990 * dir.c (struct directory): New member `contents' replaces `files'
3992 (struct directory_contents): New type.
3993 (directories_contents): New hash table.
3994 (dir_struct_file_exists_p): Take a struct directory_contents.
3995 (dir_file_exists_p): Pass it the `contents' member of the dir found.
3996 (dir_struct_file_exists_p): Renamed to dir_contents_file_exists_p;
3997 made static. Return 0 if DIR is nil (meaning it couldn't be stat'd).
3998 (dir_file_exists_p, find_directory): Change all callers.
3999 (file_impossible): Use DIR->contents, initializing it if nil.
4000 (print_dir_data_base): Use DIR->contents, and print out device and
4001 inode numbers with each directory.
4003 * Changes for performance win from John Gilmore <gnu@cygnus.com>:
4004 * dir.c (DIRECTORY_BUCKETS): Increase to 199.
4005 (DIRFILE_BUCKETS): Decrease to 107.
4006 (find_directory): Allocate and zero a multiple of
4007 sizeof (struct dirfile *), not of sizeof (struct dirfile).
4008 (dir_struct_file_exists_p): New function, nearly all code from
4010 (dir_file_exists_p): Just call find_directory+dir_struct_file_exists_p.
4011 * vpath.c (selective_vpath_search): Remove redundant
4012 dir_file_exists_p call.
4014 * configure.in: Comment out glob check; always use our code.
4016 Fri Oct 2 19:41:20 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4018 * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
4019 HAVE_SYS_SIGLIST; after doing #define sys_siglist _sys_siglist, we
4022 Wed Sep 30 19:21:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4024 * main.c (main): Don't do -w automatically if -s.
4026 Tue Sep 29 21:07:55 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4028 * main.c (printed_version): Move variable inside print_version.
4029 (print_version): Return immediately if printed_version is set.
4030 (die): Don't test printed_version here.
4031 (decode_switches): Under -v, do print_version before giving usage.
4032 (DESCRIPTION_COLUMN): New macro.
4033 (decode_switches): Use it when printing the usage message.
4034 Leave at least two spaces between options and their descriptions.
4036 Fri Sep 25 13:12:42 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4040 Wed Sep 16 16:15:22 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4042 * read.c (read_makefile): Save errno value from trying to open
4043 FILENAME, and restore it before erring; otherwise we get the errno
4044 value from the last elt of the search path.
4046 Tue Sep 15 15:12:47 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4048 * main.c (long_option_aliases): Add --stop for -S.
4050 * read.c (word1eq): Do strncmp before dereferencing someplace that
4051 may be out in space.
4053 Wed Sep 9 15:50:41 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4055 * remake.c (notice_finished_file): If all the command lines were
4056 recursive, don't do the touching.
4058 * job.c (start_job_command): Don't check for + here.
4059 * commands.c (chop_commands): Do it here instead.
4061 * default.c (default_terminal_rules): Prepend + to cmds for RCS.
4063 Wed Sep 2 17:53:08 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4065 * compatMakefile (objs): Include $(ALLOCA).
4067 * make.h [CRAY]: Move #define signal bsdsignal to before #includes.
4069 Thu Aug 27 17:45:43 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
4071 * read.c (default_include_directories): Add INCLUDEDIR first.
4072 * compatMakefile (includedir): Define.
4073 (defines): Add -D for INCLUDEDIR="$(includedir)".
4075 * read.c (read_makefile): Grok multiple files in `include';
4078 * remake.c (library_search): New function.
4079 (library_file_mtime): Remove function.
4080 (f_mtime): Use library_search instead of library_file_mtime.
4081 * compatMakefile (libdir): Define.
4082 (defines): Add -D for LIBDIR="$(libdir)".
4083 * make.texinfo (Libraries/Search): Document change.
4085 * file.c (rename_file): Fix file_hash_enter call with missing arg.
4087 Wed Aug 26 17:10:46 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4091 * main.c (main): Set command_state to cs_finished for temp files
4092 made for stdin makefiles.
4094 * main.c (decode_switches): Don't tell getopt to return non-option
4096 Ignore an argument of `-'.
4098 Thu Aug 20 13:36:04 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4100 * job.c (start_job_command): If (touch_flag && !RECURSIVE), ignore
4101 the command line and go to the next.
4102 (notice_finished_file): Under -t, touch FILE.
4103 * remake.c (remake_file): Don't touch it here.
4105 Wed Aug 19 16:06:09 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4107 * function.c (pattern_matches): Use temporary for strlen (WORD)
4108 instead of two function calls.
4110 * compatMakefile (LOAD_AVG): Remove variable and comments.
4112 Tue Aug 18 14:58:58 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4114 * make.texinfo (Running): Node renamed to `make Invocation'.
4116 Fri Aug 14 12:27:10 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4118 * arscan.c (ar_name_equal): Don't compare [MAX-3..MAX] if
4121 Thu Aug 13 17:50:09 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4125 * main.c: Don't #include <time.h>; make.h already does.
4127 Mon Aug 10 17:03:01 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4129 * implicit.c (pattern_search): Fixed copying of suffix when building
4132 * function.c (expand_function: `shell'): Make sure BUFFER is
4133 null-terminated before replacing newlines.
4135 * compatMakefile (mandir): Use man$(manext), not always manl.
4137 Sun Aug 2 01:42:50 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4139 * rule.c (new_pattern_rule): Not static.
4140 * rule.h: Declare it.
4142 * file.c (file_hash_enter): New function, most code from rename_file.
4143 (rename_file): Call it.
4144 * file.h (file_hash_enter): Declare it.
4148 Thu Jul 30 15:40:48 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4150 * main.c (decode_switches): Handle usage_and_exit when building
4151 long options vector.
4153 * default.c (default_terminal_rules): Make RCS rules use $(CHECKOUT,v).
4154 (default_variables): Define CHECKOUT,v (hairy).
4156 * make.h [!HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
4157 sys_siglist to _sys_siglist.
4159 Sun Jul 26 16:56:32 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4161 * NEWS: Add header and tail copyright info like Emacs NEWS.
4163 * make.h [ANSI_STRING]: Don't #define index, rindex, bcmp, bzero,
4164 bcopy if already #define'd.
4165 [STDC_HEADERS] (qsort, abort, exit): Declare here.
4166 [! __GNU_LIBRARY__ && !POSIX]: Not here.
4168 * make.h [_AIX]: #pragma alloca first thing.
4170 * job.c (start_waiting_job): Set the command_state to cs_running
4171 when we queue a job on waiting_jobs.
4173 Fri Jul 24 02:16:28 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4175 * variable.c (define_automatic_variables): Use "" instead of nil
4178 Thu Jul 23 22:31:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4182 * main.c (struct command_switch.type): Add alternative usage_and_exit.
4183 (command_switches): Add -h/--help.
4185 Thu Jul 16 14:27:50 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4187 * GNUmakefile (make-$(version).tar.Z): Include NEWS, not CHANGES.
4188 * README.template: Mention NEWS.
4189 * CHANGES: Renamed to NEWS.
4191 * main.c [! STDC_HEADERS] [sun]: Don't declare exit.
4193 Tue Jul 14 18:48:41 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4195 * main.c (main): Set -o files' command_states to cs_finished.
4197 * rule.c (count_implicit_rule_limits): Decrement num_pattern_rules
4198 when tossing a rule.
4200 * main.c (main): Use alloca only in simple local var assignment,
4201 for braindead SGI compiler.
4203 * rule.c (print_rule_data_base): Barf if num_pattern_rules is
4204 inconsistent with the number computed when listing them.
4206 Mon Jul 13 17:51:53 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4208 * commands.c (set_file_variables): For $? and $^ elts that are archive
4209 member refs, use member name only.
4211 Fri Jul 10 00:05:04 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4213 * variable.h (struct variable.export): Add new alternative v_ifset.
4214 * variable.c (target_environment): Check for it.
4215 (define_automatic_variables): Set it for MAKEFILES.
4217 Thu Jul 9 21:24:28 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4219 * compatMakefile (objs): Remove getloadavg.o; $(extras) gets it.
4220 (remote.o): Use $(srcdir)/remote.c, not $remote.c<.
4221 (distclean, mostlyclean): New targets.
4223 Tue Jul 7 19:12:49 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4227 * compatMakefile (config.status): Remove rule.
4229 * job.c (start_waiting_job): Free C after using C->file, not before.
4231 Sat Jul 4 20:51:49 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4233 * commands.c, job.c, main.c, make.h, remote-cstms.c: Use #ifdef
4234 HAVE_* instead of #ifndef *_MISSING.
4235 * configure.in: Use AC_HAVE_FUNCS instead of AC_MISSING_FUNCS (gone).
4237 Thu Jul 2 18:47:52 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4239 * main.c (main): makelevel>0 or -C implies -w.
4241 Tue Jun 30 20:50:17 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4243 * file.c, job.c, function.c: Don't #include <errno.h>.
4244 make.h: Do it here instead.
4245 * arscan.c (ar_member_touch): Don't declare errno.
4247 Thu Jun 25 17:06:55 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4249 * GNUmakefile (make-$(version).tar.Z): Depend on INSTALL, configure.in.
4251 * remake.c (update_file): If commands or deps are running after
4252 update_file_1 returns, break out of the :: rule (->prev) loop and
4255 * job.c (job_next_command): New function; code from start_job.
4256 (start_job_command): Renamed from start_job. Call job_next_command
4257 and recurse for empty command lines and -n.
4258 (start_waiting_job): Call start_job_command, not start_job.
4259 (new_job): Call job_next_command to prime the child structure, and
4260 then call start_waiting_job.
4261 (reap_children): Use job_next_command and start_job_command.
4262 (start_waiting_job): Call start_remote_job_p here, and store its
4263 result in C->remote. If zero, check the load average and
4264 maybe put C on waiting_jobs.
4265 (start_job_command): Test CHILD->remote rather than calling
4266 start_remote_job_p. Don't do load avg checking at all here.
4268 * main.c (main): Don't handle SIGILL, SIGIOT, SIGEMT, SIGBUS,
4269 SIGSEGV, SIGFPE or SIGTRAP.
4271 * compatMakefile (glob/libglob.a): Don't pass srcdir to sub-make.
4272 configure will set it in glob/Makefile.
4274 Wed Jun 24 19:40:34 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4276 * dir.c [DIRENT] (direct): Don't define to dirent.
4277 [! DIRENT] (direct): Define to dirent.
4278 (dir_file_exists_p): Use struct dirent instead of struct direct.
4280 * make.h (getcwd): No space between macro and ( for args!
4282 * job.c (start_job): Don't put the job on waiting_jobs if
4285 * make.texinfo (Missing): Shortened title.
4287 Tue Jun 23 18:42:21 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4289 * file.c (remove_intermediates): Print "rm" commands under -n.
4291 Mon Jun 22 16:20:02 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4295 Fri Jun 19 16:20:26 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4297 * arscan.c [M_UNIX]: #undef M_XENIX.
4299 Wed Jun 17 17:59:28 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4301 * default.c (default_terminal_rules): Put @ prefix on RCS cmds.
4303 Tue Jun 16 19:24:17 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4305 * compatMakefile (getloadavg.o): Removed special rule.
4306 (CFLAGS): Don't include $(defines).
4307 (.c.o): Define suffix rule.
4308 (glob/libglob.a): Pass CPPFLAGS=$(defines) to submake.
4309 (GETOPT_SRC, srcs, tagsrcs): Prefix files with $(srcdir)/.
4311 * arscan.c (ar_name_equal): Moved local vars inside #if'd block.
4313 * make.h (max): Removed.
4314 * expand.c (variable_buffer_output): Don't use it.
4316 * compatMakefile (INSTALL): Define.
4317 (Makefile): New rule to make from Makefile.in.
4320 (getloadavg.o, remote.o): Use autoconf $foo< hack.
4322 * commands.c (fatal_error_signal): Removed return.
4324 Mon Jun 15 17:42:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4328 * make.texinfo (Summary): New node.
4329 (Special Targets): Mention .EXPORT_ALL_VARIABLES here.
4331 * variable.c (max): Moved to make.h.
4333 * compatMakefile (objs, srcs): Added ar & arscan.
4335 * job.c (start_waiting_job): New function, 2nd half of new_job.
4337 (start_waiting_jobs): New function.
4338 * remake.c (update_goal_chain): Call start_waiting_jobs at the top
4340 * compatMakefile (objs, srcs): Removed load, added getloadavg.
4342 Fri Jun 12 19:33:16 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4344 * job.c (load_too_high): New function. Uses getloadavg.
4345 (waiting_jobs): New variable.
4346 (start_job): Don't call wait_to_start_job. Instead, if
4347 load_too_high returns nonzero, add the child to the
4348 `waiting_jobs' chain and return without starting the job.
4350 Thu Jun 11 00:05:28 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4352 * expand.c (variable_buffer_output): Made global again.
4353 * variable.h: And declare it.
4355 * arscan.c (PORTAR): Define for all systems if PORT5AR is not defined.
4356 (AR_NAMELEN, AR_TRAILING_SLASH): Removed.
4357 (ar_scan): Don't use it. Don't #ifdef AR_TRAILING_SLASH; just look
4358 for a slash in the archive at run time.
4359 (ar_name_equal): Rewrote .o hacking to not use AR_NAMELEN, and to
4360 cope with trailing-slash and non-trailing-slash archives.
4362 * main.c (main) [! SETVBUF_REVERSED]: Test this instead of USGr3 et al.
4363 [SETVBUF_REVERSED]: Always allocate a buffer ourselves.
4365 * load.c (load_average) [sgi]: Use sysmp call.
4367 * compatMakefile (INSTALL_DATA, INSTALL_PROGRAM): Define.
4368 ($(bindir)/$(instname), $(mandir)/make.$(manext)): Use them.
4370 * make.h [HAVE_VFORK_H]: #include <vfork.h>.
4371 (vfork, VFORK_NAME): Don't define.
4372 * job.c (start_job): Use "vfork" in place of VFORK_NAME.
4374 * make.h [HAVE_LIMITS_H, HAVE_SYS_PARAM_H]: If #define'd, #include
4375 the each file. Rearranged PATH_MAX hacking.
4376 * job.c: Rearranged NGROUPS_MAX hacking.
4378 * remake.c (fstat, time): Don't declare.
4380 * compatMakefile (defines): Value is @DEFS@.
4381 (LOADLIBES): Value is @LIBS@.
4382 (extras): Value is @LIBOBJS@.
4383 (ARCHIVES, ARCHIVES_SRC, ALLOCASRC): Removed.
4384 * arscan.c, ar.c: Surround body with #ifndef NO_ARCHIVES.
4386 * misc.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl get*id.
4388 * make.h [GETCWD_MISSING]: Test instead of !USG && !POSIX et al.
4389 (getcwd): Just declare if present. If not, declare as a macro
4390 using getwd, and declare getwd.
4391 [PATH_MAX] (GET_PATH_MAX): #define to PATH_MAX.
4392 * main.c (main, log_working_directory): Use getcwd instead of getwd.
4394 * main.c (main) [SETLINEBUF_MISSING]: Test this instead of USG.
4396 * make.h (SIGHANDLER, SIGNAL): Removed.
4397 (RETSIGTYPE): Define if not #define'd.
4398 * main.c (main): Use signal in place of SIGNAL.
4400 * main.c [SYS_SIGLIST_MISSING]: Test instead of USG.
4402 * job.c (search_path) [GETGROUPS_MISSING]: Test instead of USG.
4403 [HAVE_UNISTD_H]: Test instead of POSIX to not decl getgroups.
4405 * main.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl chdir.
4406 [! STDC_HEADERS]: Test instead of !POSIX to decl exit & atof.
4408 * job.c (child_handler), commands.c (fatal_error_signal): Return
4409 RETSIGTYPE instead of int.
4410 * main.c (main): Declare fatal_error_signal and child_handler here
4411 to return RETSIGTYPE; removed top-level decl of former.
4413 * commands.c (fatal_error_signal), job.c (unblock_sigs, start_job),
4414 main.c [SIGSETMASK_MISSING]: Test this instead of USG.
4416 Wed Jun 10 22:06:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4418 * job.c [HAVE_WAITPID]: Test this instead of USG.
4419 [! HAVE_UNISTD_H]: Test this instead of !POSIX to declare misc fns.
4420 (GID_T): Don't #define.
4421 (search_path): Use gid_t instead of GID_T.
4422 [GETDTABLESIZE_MISSING, SYS_SIGLIST_MISSING, DUP2_MISSING]: Test
4423 these individually instead of USG for all.
4424 * make.h (ctime): Don't declare. #include time.h instead.
4425 [HAVE_UNISTD_H]: #include <unistd.h> and #define POSIX #ifdef
4427 * dir.c [__GNU_LIBRARY__] (D_NAMLEN): Define to use d_namlen member.
4428 * make.h [NEED_MEMORY_H]: Only include memory.h #ifdef this.
4430 * arscan.c: Removed #ifdef mess about string.h et al.
4431 Just #include make.h instead.
4432 * make.h (fstat, atol): Declare.
4434 * commands.c (fatal_error_signal): Don't use sigmask to check for
4435 propagated signals; use ||s instead.
4436 (PROPAGATED_SIGNAL_MASK): Removed.
4437 (fatal_error_signal) [POSIX]: Use sigprocmask in place of sigsetmask.
4439 * variable.c (variable_buffer, variable_buffer_length,
4440 initialize_variable_output, variable_output): Moved to expand.c;
4442 (struct output_state, save_variable_output,
4443 restore_variable_output): Removed.
4444 * expand.c (initialize_variable_output): Put a NUL at the beginning
4445 of the new buffer after allocating it.
4446 (allocated_variable_expand_for_file): Don't use
4447 {save,restore}_variable_output. Do it by hand instead, keeping
4448 state on the stack instead of malloc'ing it.
4449 (allocated_variable_expand): Removed.
4450 * variable.h (allocated_variable_expand): Define here as macro.
4451 (variable_buffer_output, initialize_variable_output,
4452 save_variable_output, restore_variable_output): Removed decls.
4454 * read.c (conditional_line): For an if cmd, if any elt of the
4455 conditionals stack is ignoring, just push a new level that ignores
4456 and return 1; don't evaluate the condition.
4458 Thu Jun 4 21:01:20 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4460 * main.c (main): Put #ifdef's around frobbing SIGSYS and SIGBUS.
4462 * job.c (getdtablesize): Don't declare or #define if already #define'd.
4464 Wed Jun 3 23:42:36 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4466 * file.c (snap_deps): If `.EXPORT_ALL_VARIABLES' is a target, set
4467 export_all_variables.
4468 * make.texinfo (Variables/Recursion): Document .EXPORT_ALL_VARIABLES.
4470 Tue Jun 2 21:08:35 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4474 * commands.c (set_file_variables): Calculate length for ^D and ?D
4475 individually, making sure to give them at least enough space for "./".
4477 * make.h [CRAY]: #define signal to bsdsignal.
4479 * default.c (default_variables) [CRAY]: Define PC, SEGLDR,
4480 CF77PPFLAGS, CF77PP, CFT, CF, and FC.
4482 * arscan.c (AR_HDR_SIZE): Define to sizeof (struct ar_hdr), if it
4483 wasn't defined by <ar.h>.
4485 Thu May 28 00:56:53 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4489 Tue May 26 01:26:30 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4491 * rule.c (new_pattern_rule): Initialize LASTRULE to nil, not
4494 Mon May 25 19:02:15 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4496 * main.c (decode_switches): Initialize all the long_option elt members.
4498 Thu May 21 16:34:24 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
4500 * make.texinfo (Text Functions): Correct filter-out description.
4502 Tue May 19 20:50:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4504 * compatMakefile (realclean): Don't remove backup files.
4506 * main.c (decode_switches): Allocate ARGC+1 elts in `other_args'.
4508 Sun May 17 16:38:48 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
4512 Thu May 14 16:42:33 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
4514 * job.c (reap_children): Don't die if wait returns EINTR.
4516 Wed May 13 18:28:25 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4518 * job.c (reap_children): Always run the next command for a
4519 successful target. If we are going to die, we don't want to leave
4520 the target partially made.
4522 Tue May 12 00:39:19 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
4524 * job.c (construct_command_argv_internal): After loop, if we only
4525 have one word, check it for being a shell command.
4527 * main.c (decode_switches): Allocate ARGC slots in other_args to
4528 begin with, so we never need to worry about growing it.
4529 If we get a non-option arg and POSIXLY_CORRECT is in the
4530 environment, break out of the loop. After the loop, add all remaining
4531 args to other_args list.
4533 * main.c (decode_switches): For positive_int and floating switches
4534 when optarg is nil, use next arg if it looks right (start with a
4535 digit, or maybe decimal point for floating).
4537 * variable.c (define_automatic_variables): Always set SHELL to
4538 default if it comes from the environment. Set its export bit.
4539 * make.texinfo (Environment): Document change.
4541 Mon May 11 00:32:46 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
4545 * compatMakefile (tags, TAGS): Use vars for cmds.
4546 (ETAGS, CTAGS): Define.
4548 * main.c (decode_switches): If a switches elt has a nil long_name,
4549 make the long option name elt be "".
4550 Fixed loop to not ignore all the options.
4552 * make.texinfo (Option Summary): Added long options.
4554 * main.c (switches): Changed -m's description to "-b".
4555 (decode_switches): When printing the usage message, don't print
4556 switches whose descriptions start with -.
4557 When constructing the list of names for switch -C, search the
4558 switches vector for switches whose descriptions are "-C".
4560 * main.c (switches): Call -S --no-keep-going, not --dont-keep-going.
4561 Call -I --include-dir, not --include-path.
4562 (long_option_aliases): Added --new == -W, --assume-new == -W,
4563 --assume-old == -o, --max-load == -l, --dry-run == -n, --recon == -n,
4566 * main.c (switches): Removed bogus "silent" elt.
4567 (long_option_aliases): Define new var.
4568 (decode_switches): Add long_option_aliases onto the end of the long
4569 options vector created for getopt_long.
4570 Look through long_option_aliases for extra names to list
4573 Sat May 9 00:21:05 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4575 * main.c (log_working_directory): Fixed to properly not print the
4576 leaving message when we haven't printed the entering message.
4578 Fri May 8 21:55:35 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4580 * main.c (struct command_switch): Added elts `long_name',
4581 `description', and `argdesc'.
4582 (switches): Added initializers for new members.
4583 (decode_switches): Rewritten to use getopt_long.
4584 * compatMakefile (GETOPT, GETOPT_SRC): Define.
4585 (objs, srcs): Include them.
4587 * job.c (child_died): Renamed to dead_children; made static.
4588 (child_handler): Increment dead_children instead of setting child_died.
4589 (reap_children): Decrement dead_children instead of clearing
4590 child_died. The point of all this is to avoid printing "waiting
4591 for unfinished jobs" when we don't actually need to block.
4592 This happened when multiple SIGCHLDs before reap_children was called.
4594 * job.c (reap_children): If ERR is set, so we don't call start_job
4595 on the child being reaped, instead set its command_state to
4597 (reap_children, child_handler, new_job): I added several
4598 debugging printf's while fixing this. I left them in if (debug_flag)
4599 because they may be useful for debugging this stuff again.
4601 Wed May 6 22:02:37 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
4603 * read.c (read_makefile): v_export is not 1.
4605 Mon May 4 17:27:37 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4609 * variable.c (export_all_variables): New variable.
4610 (target_environment): Export variables whose `export' member is
4611 v_default if export_all_variables is set and their names are benign.
4612 * variable.h: Declare export_all_variables.
4613 * read.c (read_makefile): If export or unexport is given with no
4614 args, set or clear export_all_variables, respectively.
4616 * variable.c (target_environment): Exclude MAKELEVEL in the loop,
4617 so it isn't duplicated when we add it at the end.
4619 Sun May 3 17:44:48 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4623 * variable.h (struct variable): Added new member `export'.
4624 * variable.c (define_variable_in_set): Initialize it to v_default.
4625 (target_environment): Don't check for .NOEXPORT.
4626 Export variables whose `export' member is v_default and that would
4627 have been exported under .NOEXPORT, and variables whose `export'
4629 (try_variable_definition): Return the variable defined.
4630 * variable.h (try_variable_definition): Changed decl.
4631 * read.c (read_makefile): Recognize `export' and `unexport' directives.
4633 Fri May 1 11:39:38 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
4635 * main.c (main) [POSIX]: Reversed args to sigaddset.
4637 Thu Apr 30 17:33:32 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4639 * job.c [POSIX || !USG] (unblock_sigs): New fn.
4640 (start_job): Block signals before forking.
4641 (new_job): Unblock signals after putting the new child on the chain.
4642 * main.c (main) [POSIX]: Use sigset_t fatal_signal_set instead of
4643 int fatal_signal_mask.
4645 * load.c [sgi] (LDAV_CVT): Define.
4647 Wed Apr 29 17:15:59 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
4651 * load.c (load_average) [sgi]: Clear the high bit of the address
4652 from the symbol table before looking it up in kmem.
4654 * misc.c (fatal, makefile_fatal): Put *** in fatal error messages.
4655 (remake_file): No longer needed in message here.
4657 * main.c (die): Call reap_children with BLOCK==1.
4659 Tue Apr 28 20:44:35 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
4661 * rule.c (freerule): Don't set LASTRULE->next if LASTRULE is nil.
4663 Sun Apr 26 15:09:51 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
4665 * rule.c (count_implicit_rule_limits): Initialize LASTRULE to nil,
4666 not to head of chain. Extract next ptr before we might do
4667 freerule, and use that for next iteration.
4668 (freerule): Still do next ptr frobbing if LASTRULE is nil.
4670 Tue Apr 21 03:16:29 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4672 * job.c (child_error): Removed extra %s from error msg format.
4676 * job.c (reap_children): Don't start later commands in a sequence
4679 * job.c (new_job): Always call reap_children with BLOCK==0 first thing.
4681 * job.c (reap_children): New function; work that used to be done in
4683 (child_died): New global var.
4684 (child_handler): Now just sets child_died.
4685 (wait_for_children): Removed.
4686 (unknown_children_possible, block_signals, unblock_signals,
4687 push_signals_blocked_p, pop_signals_blocked_p): Removed.
4688 (child_execute_job): Removed call to unblock_signals.
4689 (new_job): Removed calls to push_signals_blocked_p and
4690 pop_signals_blocked_p.
4691 * job.h: Declare reap_children, not wait_for_children.
4692 * commands.c (fatal_error_signal), job.c (new_job),
4693 load.c [LDAV_BASED] (wait_to_start_job), main.c (die),
4694 remake.c (update_goal_chain), function.c (expand_function: `shell'):
4695 Changed wait_for_children calls to reap_children.
4696 Some needed to be loops to wait for all children to die.
4697 * commands.c (fatal_error_signal), main.c (main,
4698 log_working_directory), function.c (expand_function): Removed calls
4699 to push_signals_blocked_p and pop_signals_blocked_p.
4700 * job.h: Removed decls.
4702 * job.h: Added copyright notice.
4704 Wed Apr 15 02:02:40 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4706 * job.c (child_error): No *** for ignored error.
4708 Tue Apr 14 18:31:21 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4710 * implicit.c (DEBUGP2): Use do ... while (0) instead of if ... else to
4711 avoid compiler warnings.
4713 * read.c (parse_file_seq): Don't remove ./ when it is followed by a
4716 Mon Apr 13 21:56:15 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4718 * make.h (DEBUGPR): Use do ... while (0) instead of if ... else to
4719 avoid compiler warnings.
4721 * remake.c (notice_finished_file): Run file_mtime on the also_make
4722 files, so vpath_search can happen.
4724 * GNUmakefile (tests): Use perl test suite from csa@sw.stratus.com.
4725 (alpha-files): Include test suite tar file.
4727 Fri Apr 3 00:50:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4731 Wed Apr 1 05:31:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4733 * remake.c (update_file, update_file_1): Do check_renamed on elts
4734 of dep chains when traversing them. Something unrelated might have
4735 renamed one of the files the dep chain points to.
4737 * file.c (rename_file): If FILE has been renamed, follow its
4738 `renamed' ptr, so we get to the final real FILE. Using the renamed
4739 ones loses because they are not in the hash table, so the removal
4740 code loops infinitely.
4742 * read.c (read_all_makefiles): Clobber null terminator into
4743 MAKEFILES expansion, so string passed to read_makefile is properly
4746 Mon Mar 30 20:18:02 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4748 * commands.c (set_file_variables): $* for archive member with
4749 explicit cmds is stem of member, not of whole `lib(member)'.
4751 Thu Mar 26 15:24:38 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
4755 Tue Mar 24 05:20:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4757 * rule.c (new_pattern_rule): Rules are identical only if all their
4758 targets match (regardless of order).
4760 Wed Mar 11 13:49:54 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4762 * remake.c (remake_file): Changed error "no way to make" to "no
4763 rule to make". Fiat Hugh.
4765 * make.texinfo (Last Resort): Describe %:: rules and new .DEFAULT
4768 * remake.c (update_file_1): Only use .DEFAULT cmds if FILE is not a
4771 Tue Mar 10 18:13:13 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
4773 * remote-stub.c, remote-cstms.c (start_remote_job): Take new arg,
4774 environment to pass to child.
4775 * job.c (start_job): Pass it.
4777 Mon Mar 9 19:00:11 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4779 * file.c (enter_file): Also strip ./s here, to get command-line
4782 * remote-cstms.c: Add comment telling people to leave me alone.
4784 * compatMakefile (manpage install): Remove target before copying.
4786 Tue Mar 3 18:43:21 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4788 * make.texinfo (Missing): Renamed to "Incompatibilities and ...".
4789 Added paragraph describing $? incompatibility with Unix and POSIX.2.
4791 Sun Mar 1 15:50:54 1992 Roland McGrath (roland@nutrimat.gnu.ai.mit.edu)
4793 * function.c (expand_function: `shell'): Don't declare fork or pipe.
4794 Use vfork instead of fork.
4796 Tue Feb 25 22:05:32 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
4798 * make.texinfo (Chained Rules): Clarify .PRECIOUS to save
4801 * load.c [sun] (LDAV_CVT): Define to divide by FSCALE.
4803 Sun Feb 16 02:05:16 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
4807 Sat Feb 15 17:12:20 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
4809 * compatMakefile (makeinfo): Use emacs batch-texinfo-format fn.
4811 Fri Feb 14 00:11:55 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
4813 * read.c (read_makefile): Correctly handle define & endef in ifdefs.
4815 * read.c (record_files): Pass arg for %s in error msg.
4817 * main.c (main) [__IBMR2, POSIX]: Use correct (a la USGr3) setvbuf
4820 Wed Feb 12 12:07:39 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
4822 * make.texinfo (Libraries/Search): Say it does /usr/local/lib too.
4824 Sun Feb 9 23:06:24 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4826 * read.c (read_makefile): Check for extraneous `endef' when ignoring.
4828 Thu Feb 6 16:15:48 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4832 Tue Feb 4 20:04:46 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4834 * job.c (construct_command_argv_internal): Correctly ignore
4835 whitespace after backslash-NL.
4837 Fri Jan 31 18:30:05 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4839 * compatMakefile: Ignore errors from chgrp and chmod when installing.
4841 Wed Jan 29 18:13:30 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
4843 * main.c (main): When setting MAKELEVEL in the env to re-exec,
4844 allocate space so as not to clobber past the end of the old string.
4846 * make.h [HAVE_ALLOCA_H]: Include <alloca.h>
4847 * compatMakefile (defines): Document HAVE_ALLOCA_H.
4849 Mon Jan 20 13:40:05 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
4851 * make.h [VFORK_MISSING]: Use fork instead.
4852 * compatMakefile (defines): Document same.
4854 * job.c (construct_command_argv_internal): Don't create an empty
4855 arg if backslash-NL is at beginning of word.
4857 Sun Jan 19 16:26:53 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
4859 * main.c [DGUX]: Call setvbuf as for USGr3.
4861 * job.c (construct_command_argv_internal): Notice correctly that
4862 backslash-NL is the end of the arg (because it is replaced with a
4865 Thu Jan 16 18:42:38 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
4867 * job.c (construct_command_argv_internal): If SHELL is nil, set it
4868 to default_shell before proceeding.
4870 * make.h [sgi]: No alloca.h, after all.
4872 Wed Jan 15 12:30:04 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
4874 * read.c (multi_glob): Cons up the chain of the results of glob
4875 from back to front, so it comes out in forward order.
4877 * job.c (construct_command_argv_internal): Don't eat char following
4880 Mon Jan 13 19:16:56 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
4884 * default.c (default_variables) [ultrix]: GET=get, like USG.
4886 * job.c (construct_command_argv_internal): Remove tabs following
4887 backslash-NL combos in the input line, so they don't show up when
4888 that line is printed.
4890 * read.c (read_makefile): Don't collapse_continuations the line on
4891 input; do it on the copy we do remove_comments on.
4892 For rule lines, collapse_continuations the line after chopping
4893 ";cmds" off the end, so we don't eat conts in the cmds.
4894 Give error for ";cmds" with no rule.
4895 * job.c (construct_command_argv_internal): Eat backslash-NL combos
4896 when constructing the line to recurse on for slow, too.
4898 Sat Jan 11 02:20:27 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
4900 * file.c (enter_file): Don't strip leading `./'s.
4901 * read.c (parse_file_seq): Take new arg STRIP; if nonzero, do it here.
4902 * default.c (set_default_suffixes), function.c (string_glob),
4903 read.c (read_makefile), rule.c (install_pattern_rule): Change callers.
4905 * default.c (default_variables) [_IBMR2]: FC=xlf
4907 * job.c (construct_command_argv_internal): Turn backslash-NL and
4908 following whitespace into a single space, rather than just eating
4911 * make.texinfo (Copying): @include gpl.texinfo, rather than
4912 duplicating its contents.
4914 Fri Nov 8 20:06:03 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4916 * job.c (construct_command_argv_internal): Make sure not to bother
4917 processing an empty line.
4921 * job.c (construct_command_argv_internal): Always recurse for slow;
4922 simple case didn't handle finding newlines.
4924 Tue Nov 5 18:51:10 1991 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
4926 * job.c (construct_command_argv_internal): Set RESTP properly when
4927 slow; don't \ify past a newline.
4929 Fri Nov 1 19:34:28 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4931 * make.h [sgi]: #include <alloca.h>.
4935 See ChangeLog.1 for earlier changes.