1 2002-04-21 Paul D. Smith <psmith@gnu.org>
3 Modified to use latest autoconf (2.53), automake (1.6.1), and
4 gettext (0.11.1). We're using gettext's new "external" support,
5 to avoid including libintl source with GNU make.
7 * README.cvs: New file. Explain how to build GNU make from CVS.
9 * getloadavg.c (main): Include make.h in the "TEST" program to
12 * Makefile.am: Remove special rules for loadavg. Replace them
13 with Automake capabilities for building extra programs.
15 * signame.c: This file does nothing if the system provide
16 strsignal(). If not, it implements strsignal(). If the system
17 doesn't define sys_siglist, then we make our own; otherwise we use
21 * main.c (main): No need to invoke signame_init(). Update copyright.
25 * gettext.h: Get a simplified copy from the gettext package.
27 * i18n/*.po: Moved to po/.
30 * config/*: Created. Contains package configuration helper files.
31 * config.guess, config.sub: Moved to config directory.
33 * configure.in (AC_CONFIG_FILES): Add po/Makefile.in, config/Makefile.
34 Rework to use new-style autoconf features. Use the "external"
35 mode for gettext. Make the build.sh config file conditional on
36 whether build.sh.in exists, to avoid autoconf errors.
37 * acinclude.m4: Removed almost all macros as being obsolete.
38 Rewrote remaining macros to use AC_DEFINE.
39 * acconfig.h: Removed.
41 * Makefile.am (EXTRA_DIST): Add config/config.rpath. Use a
42 conditional to handle customs support. Remove special handling
45 2002-04-20 Paul D. Smith <psmith@gnu.org>
47 * function.c (func_call): Don't mark the argument variables $1,
48 etc. as recursive. They've already been fully expanded so
49 there's no need to do it again, and doing so strips escaped $'s.
50 Reported by Sebastian Glita <glseba@yahoo.com>.
52 * remake.c (notice_finished_file): Walk through double-colon
53 entries via the prev field, not the next field!
54 Reported by Greg McGary <greg@mcgary.org>.
56 * main.c (main): If the user specifies -q and asks for a specific
57 target which is a makefile, we got an assert. In that case it
58 turns out we should continue normally instead.
60 * i18n/de.po, i18n/fr.po: Installed an updated translation.
62 * i18n/he.po: Installed a new translation.
64 2002-01-07 Paul D. Smith <psmith@gnu.org>
66 * i18n/es.po, i18n/ru.po: Installed an updated translation.
68 2001-12-04 Paul D. Smith <psmith@gnu.org>
70 * i18n/ja.po: Installed an updated translation.
72 2001-09-04 Paul D. Smith <psmith@gnu.org>
74 * i18n/da.po: Installed an updated translation.
76 2001-08-03 Paul D. Smith <psmith@gnu.org>
78 * i18n/fr.po: Installed an updated translation.
79 Resolves Debian bug #106720.
81 2001-06-13 Paul D. Smith <psmith@gnu.org>
83 * i18n/da.po, configure.in (ALL_LINGUAS): Installed a new
86 2001-06-11 Paul D. Smith <psmith@gnu.org>
88 * i18n/ko.po: Installed a new translation.
90 2001-05-06 Paul D. Smith <psmith@gnu.org>
92 Modify the EINTR handling.
94 * job.c (new_job): Reorganize the jobserver algorithm. Reorder
95 the way in which we manage the file descriptor/signal handler race
96 trap to be more efficient.
98 2001-05-06 Paul Eggert <eggert@twinsun.com>
100 Restart almost all system calls that are interrupted, instead
101 of worrying about EINTR. The lone exception is the read() for
104 * configure.in (HAVE_SA_RESTART): New macro.
105 (MAKE_JOBSERVER): Define to 1 only if HAVE_SA_RESTART.
106 * main.c (main): Use SA_RESTART instead of the old,
107 nonstandard SA_INTERRUPT.
109 * configure.in (AC_CHECK_FUNCS): Add bsd_signal.
110 * main.c (bsd_signal): New function or macro,
111 if the implementation doesn't supply it.
112 (The bsd_signal function will be in POSIX 1003.1-200x.)
114 (main, FATAL_SIG): Use bsd_signal instead of signal or HANDLESIG.
116 * make.h (EINTR_SET): Remove.
117 (SA_RESTART): New macro.
119 * arscan.c (ar_member_touch): Don't worry about EINTR.
120 * function.c (func_shell): Likewise.
121 * job.c (reap_children, free_child, new_job): Likewise.
122 * main.c (main): Likewise.
123 * remake.c (touch_file, name_mtime): Likewise.
125 * arscan.c (ar_member_touch): Fix bug uncovered by EINTR removal;
126 if fstat failed with errno!=EINTR, the error was ignored.
128 * job.c (set_child_handler_action_flags): New function.
129 (new_job): Use it to temporarily clear the SIGCHLD action flags
130 while reading the token.
132 2001-05-02 Paul D. Smith <psmith@gnu.org>
134 * job.c (start_job_command): Don't add define/endef per-line flags
135 to the top-level flags setting.
137 2001-04-03 Paul D. Smith <psmith@gnu.org>
139 * arscan.c (VMS_get_member_info,ar_scan) [VMS]: VMS sets the low
140 bit on error, so check for odd return values, not non-0 return
142 (VMS_get_member_info): Calculate the timezone differences correctly.
143 Reported by John Fowler <jfowler@nyx.net>.
146 2001-03-14 Paul D. Smith <psmith@gnu.org>
148 * variable.c (lookup_variable) [VMS]: Null-terminate the variable
149 value before invoking define_variable().
150 Reported by John Fowler <jfowler@nyx.net>.
152 2001-02-07 Paul D. Smith <psmith@gnu.org>
154 * read.c (record_target_var): If we reset the variable due to a
155 command-line variable setting overriding it, turn off the "append"
158 2001-01-17 Paul D. Smith <psmith@gnu.org>
160 * variable.c (lookup_variable) [VMS]: When getting values from the
161 environment, allocate enough space for the _value_ plus escapes,
162 not enough space for the name plus escapes :-/.
163 Reported by John Fowler <jfowler@nyx.net>.
165 * remake.c (f_mtime): Removed the "***" prefix from the mod time
166 warnings that make generates, so it doesn't look like an error.
167 Reported by Karl Berry <karl@gnu.org>.
170 Fix for PR/2020: Rework appended target-specific variables. I'm
171 fairly confident this algorithm is finally correct.
173 * expand.c (allocated_variable_append): Rewrite. Instead of
174 expanding each appended variable then adding all the expanded
175 strings together, we append all the unexpanded values going up
176 through the variable set contexts, then expand the final result.
177 This behaves just like non-target-specific appended variable
178 values, while the old way didn't in various corner cases.
179 (variable_append): New function: recursively append the unexpanded
180 value of a variable, walking from the outermost variable scope to
182 * variable.c (lookup_variable): Remove the code that looked up the
183 variable set list if the found variable was "append". We don't
185 (lookup_variable_in_set): Make this non-static so we can use it
187 (try_variable_definition): Use lookup_variable_in_set() rather
188 than faking out current_variable_set_list by hand (cleanup).
189 * variable.h: Add a prototype for the now non-static
190 lookup_variable_in_set().
192 2000-11-17 Paul D. Smith <psmith@gnu.org>
194 * remake.c (f_mtime) [WINDOWS32]: On various advice, I changed the
195 WINDOWS32 port to assume timestamps can be up to 3 seconds away
196 before throwing a fit.
198 2000-11-17 Paul D. Smith <psmith@gnu.org>
200 * read.c (readline): CRLF calculations had a hole, if you hit the
201 buffer grow scenario just right. Reworked the algorithm to avoid
202 the need for len or lastlen at all. Problem description with
203 sample code chages provided by Chris Faylor <cgf@redhat.com>.
205 2000-10-24 Paul D. Smith <psmith@gnu.org>
207 * gettext.c (SWAP): Declare this with the prototype, otherwise
208 some systems don't work (non-32-bit? Reported for Cray T3E).
209 Reported by Thorstein Thorsteinsson <thor@signe.teokem.lu.se>.
211 2000-10-05 Paul D. Smith <psmith@gnu.org>
213 * acinclude.m4 (AM_LC_MESSAGES): Remove undefined macro
214 AM_LC_MESSAGES; it doesn't seem to do anything anyway??
216 * i18n/gl.po, configure.in (ALL_LINGUAS): New Galician translation.
218 2000-09-22 Paul D. Smith <psmith@gnu.org>
220 * gettext.c: Don't #define _GETTEXT_H here; we only include some
221 parts of the real gettext.h here, and we expect to really include
222 the real gettext.h later. If we keep this #define, it's ignored.
224 2000-09-21 Paul D. Smith <psmith@gnu.org>
226 * main.c (log_working_directory): Rework the text to use complete
227 sentences, to make life simpler for the translators.
229 2000-08-29 Paul D. Smith <psmith@gnu.org>
231 * file.c (remove_intermediates): Print a debug message before we
232 remove intermediate files, so the user (if she uses -d) knows
235 2000-08-21 Paul D. Smith <psmith@gnu.org>
237 * variable.c (try_variable_definition): Change how we handle
238 target-specific append variable defns: instead of just setting the
239 value, expand it as an append _but_ only within the current
240 target's context. Otherwise we lose all but the last value if the
241 variable is appended more than once within the current target
242 context. Fixes PR/1831.
244 2000-08-16 Paul D. Smith <psmith@gnu.org>
246 * function.c (func_shell): Nul-terminate the buffer before
247 printing an exec error message (just in case it's not!).
248 Fixes PR/1860, reported by Joey Hess <joey@valinux.com>.
250 2000-07-25 Paul D. Smith <psmith@gnu.org>
252 * job.c (construct_command_argv_internal): Add "~" to the list of
253 sh_chars[] which disallow optimizing out the shell call.
255 2000-07-23 Paul Eggert <eggert@twinsun.com>
257 * NEWS, make.texinfo: Document .LOW_RESOLUTION_TIME, which
258 supersedes --disable-nsec-timestamps.
259 * make.texinfo: Consistently use "time stamp" instead of "timestamp".
260 * README: Remove --disable-nsec-timestamps.
262 * filedef.h (struct file.low_resolution_time): New member.
263 * file.c (snap_deps): Add support for .LOW_RESOLUTION_TIME.
264 * remake.c (update_file_1):
265 Avoid spurious rebuilds due to low resolution time stamps,
266 generalizing the earlier code that applied only to archive members.
267 (f_mtime): Archive members always have low resolution time stamps.
269 * configure.in: Remove --disable-nsec-timestamps, as this has
270 been superseded by .LOW_RESOLUTION_TIME.
272 2000-07-23 Paul Eggert <eggert@twinsun.com>
274 * configure.in (enable_nsec_timestamps): Renamed from
275 make_cv_nsec_timestamps, since enable/disable options
278 2000-07-23 Bruno Haible <haible@clisp.cons.org>
279 and Paul Eggert <eggert@twinsun.com>
281 * file.c (file_timestamp_now):
282 Use preprocessor-time check for FILE_TIMESTAMP_HI_RES
283 so that clock_gettime is not linked unless needed.
285 * filedef.h (FILE_TIMESTAMP_HI_RES):
286 Remove definition; "configure" now does this.
288 * configure.in (jm_AC_TYPE_UINTMAX_T): Move up,
289 to before high resolution file timestamp check,
290 since that check now uses uintmax_t.
291 (FILE_TIMESTAMP_HI_RES): Define to nonzero if the code should use
292 high resolution file timestamps.
293 (HAVE_CLOCK_GETTIME): Do not define if !FILE_TIMESTAMP_HI_RES,
294 so that we don't link in clock_gettime unnecessarily.
296 2000-07-17 Paul D. Smith <psmith@gnu.org>
298 * i18n/ja.po: New version of the translation file.
300 2000-07-07 Paul D. Smith <psmith@gnu.org>
302 * remake.c (f_mtime): If NO_FLOAT is defined, don't bother with
303 the offset calculation.
304 (name_mtime): Replace EINTR test with EINTR_SET macro.
306 2000-07-07 Paul Eggert <eggert@twinsun.com>
310 * remake.c (update_file_1):
311 Avoid spurious rebuilds of archive members due to their
312 timestamp resolution being only one second.
313 (f_mtime): Avoid spurious warnings of timestamps in the future due to
314 the clock's resolution being lower than file timestamps'.
315 When warning about future timestamps, report only the discrepancy,
316 not the absolute value of the timestamp and the current time.
318 * file.c (file_timestamp_now): New arg RESOLUTION.
319 * filedef.h (file_timestamp_now): Likewise.
320 (FILE_TIMESTAMP_NS): Now returns int. All uses changed.
322 2000-07-05 Paul D. Smith <psmith@gnu.org>
324 * variable.c (lookup_variable) [VMS]: Remove vestigial references
325 to listp. Fixes PR/1793.
327 2000-06-26 Paul Eggert <eggert@twinsun.com>
329 * Makefile.am (MAINTAINERCLEANFILES): New macro, with stamp-pot in it.
331 * dir.c (vms_hash): Ensure ctype macro args are nonnegative.
333 * remake.c (f_mtime): Remove unused var memtime.
335 2000-06-25 Martin Buchholz <martin@xemacs.org>
337 * make.texinfo, NEWS, TODO.private: Minor spelling corrections.
338 Ran spell-check on make.texinfo.
340 2000-06-23 Paul D. Smith <psmith@gnu.org>
342 * main.c (main): Replace EXIT_SUCCESS, EXIT_FAILURE, and
343 EXIT_TROUBLE with MAKE_SUCCESS, MAKE_FAILURE, and MAKE_TROUBLE.
344 * make.h: Define these macros.
346 * Version 3.79.1 released.
348 * configure.in: Add a new option, --disable-nsec-timestamps, to
349 avoid using sub-second timestamps on systems that support it. It
350 can lead to problems, e.g. if your makefile relies on "cp -p".
351 * README.template: Document the issue with "cp -p".
353 * config.guess, config.sub: Updated.
355 2000-06-22 Paul D. Smith <psmith@gnu.org>
357 * job.c (start_job_command): Increment commands_started before the
358 special check for ":" (empty command) to avoid spurious "is up to
359 date" messages. Also move the test for question_flag after we
360 expand arguments, and only stop if the expansion provided an
361 actual command to run, not just whitespace. This fixes PR/1780.
363 2000-06-21 Paul D. Smith <psmith@gnu.org>
365 * read.c (read_makefile): If we find a semicolon in the target
366 definition, remember where it was. If the line turns out to be a
367 target-specific variable, add back the semicolon and everything
368 after it. Fixes PR/1709.
370 2000-06-19 Paul D. Smith <psmith@gnu.org>
372 * config.h-vms.template: #define uintmax_t for this system.
373 * config.ami.template: Ditto.
374 * config.h.W32.template: Ditto.
376 * configure.in: We don't use select(2) anymore, so don't bother
379 * acinclude.m4: Ditto.
381 * file.c (all_secondary): New static global; if 1 it means
382 .SECONDARY with no prerequisites was seen in the makefile.
383 (snap_deps): Set it appropriately.
384 (remove_intermediates): Check it.
385 (num_intermediates): Remove this global, it's not used anywhere.
386 (considered): Move this to remake.c and make it static.
388 * NEWS: Document the change to .SECONDARY.
389 * make.texinfo (Special Targets): Document the change to .SECONDARY.
391 * implicit.c (pattern_search): Remove the increment of
392 num_intermediates; it's not used.
393 * filedef.h: Remove num_intermediates and considered.
395 * function.c (handle_function): If the last argument was empty, we
396 were pretending it didn't exist rather than providing an empty
397 value. Keep looking until we're past the end, not just at the end.
399 * implicit.c (pattern_search): Multi-target implicit rules weren't
400 expanding the "also made" targets correctly if the pattern didn't
401 contain a slash but the target did; in that case the directory
402 part wasn't being added back to the stem on the "also made"
403 targets. Reported by Seth M LaForge <sethml@newtonlabs.com>, with
406 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
408 * Makefile.DOS.template (DESTDIR, bindir, datadir, libdir)
409 (infodir, mandir, includedir): Support installation under a
412 * remake.c (f_mtime): Fix the spelling of __MSDOS__.
414 * configh.DOS.template (HAVE_FDOPEN, HAVE_MKSTEMP): Define.
416 2000-06-14 Paul D. Smith <psmith@gnu.org>
418 * acinclude.m4 (pds_WITH_GETTEXT): rewrite fp_WITH_GETTEXT and
419 rename it to avoid confusion. This version is very specific: it
420 won't accept any gettext that isn't GNU. If the user doesn't
421 explicitly ask for the included gettext, we look to see if the
422 system gettext is GNU (testing both the actual libintl library,
423 and the libintl.h header file). Only if the system gettext is
424 really GNU gettext will we allow it to be used.
425 (pds_CHECK_SYSTEM_GETTEXT): A helper function.
427 2000-06-13 Paul D. Smith <psmith@gnu.org>
429 * gettext.h: If we have libintl.h, use that instead of any of the
430 contents of gettext.h. We won't check for libintl.h unless we're
431 using the system gettext.
433 * function.c (func_word): Clarify error message.
435 2000-06-10 Paul Eggert <eggert@twinsun.com>
437 Support nanosecond resolution on hosts with 64-bit time_t and
438 uintmax_t (e.g. 64-bit Sparc Solaris), by splitting
439 FILE_TIMESTAMP into a 30-bit part for nanoseconds, with the
440 rest for seconds, if FILE_TIMESTAMP is at least 64 bits wide.
442 * make.h: Always define FILE_TIMESTAMP to be uintmax_t, for
445 * filedef.h (FILE_TIMESTAMP_HI_RES, FILE_TIMESTAMP_LO_BITS)
446 (UNKNOWN_MTIME, NONEXISTENT_MTIME, OLD_MTIME)
447 (ORDINARY_MTIME_MIN, ORDINARY_MTIME_MAX): New macros.
448 (FILE_TIMESTAMP_STAT_MODTIME): Now takes fname arg. All uses changed.
449 (FILE_TIMESTAMP_DIV, FILE_TIMESTAMP_MOD)
450 (FILE_TIMESTAMP_FROM_S_AND_NS): Remove.
451 (FILE_TIMESTAMP_S, FILE_TIMESTAMP_NS): Use shifts instead of
452 multiplication and division. Offset the timestamps by
454 (file_timestamp_cons): New decl.
455 (NEW_MTIME): Now just the maximal timestamp value, as we no longer use
456 -1 to refer to nonexistent files.
458 * file.c (snap_deps, print_file): Use NONEXISTENT_MTIME,
459 UNKNOWN_MTIME, and OLD_MTIME instead of magic constants.
460 * filedef.h (file_mtime_1): Likewise.
461 * main.c (main): Likewise.
462 * remake.c (update_file_1, notice_finished_file, check_dep)
463 (f_mtime, name_mtime, library_search): Likewise.
464 * vpath.c (selective_vpath_search): Likewise.
466 * remake.c (f_mtime): Do not assume that (time_t) -1 equals
467 NONEXISTENT_MTIME. When futzing with time stamps, adjust by
468 multiples of 2**30, not 10**9. Do not calculate timestamp
469 adjustments on DOS unless they are needed.
471 * commands.c (delete_target): Do not assume that
472 FILE_TIMESTAMP_S yields -1 for a nonexistent file, as that is
473 no longer true with the new representation.
475 * file.c (file_timestamp_cons): New function, replacing
476 FILE_TIMESTAMP_FROM_S_AND_NS. All uses changed.
477 (file_timestamp_now): Use FILE_TIMESTAMP_HI_RES instead of 1 <
478 FILE_TIMESTAMPS_PER_S to determine whether we're using hi-res
480 (print_file): Print OLD_MTIME values as "very old" instead of
483 2000-05-31 Paul Eggert <eggert@twinsun.com>
485 * remake.c (name_mtime): Check for stat failures. Retry if EINTR.
487 2000-05-24 Paul D. Smith <psmith@gnu.org>
489 * main.c (decode_switches): The "positive_int" switch uses atoi()
490 which succeeds for any input, and doesn't notice if extra,
491 non-digit text is after the number. This causes make to mis-parse
492 command lines like "make -j 5foo" as "make -j5" (ignoring "foo"
493 completely) instead of "make -j0 5foo" (where "5foo" is a
494 target). Fix this by checking the value by hand. We could use
495 strtol() if we were sure of having it; this is the only
496 questionable use of atoi() I found so we'll just stick with that.
499 * i18n/ja.po, i18n/nl.po, i18n/pt_BR.po: New translation files.
500 * configure.in (ALL_LINGUAS): Added pt_BR.
502 2000-05-22 Paul Eggert <eggert@twinsun.com>
504 * remake.c (f_mtime): Fix bug when handling future odd
505 timestamps in the WINDOWS32 case. Do not bother initializing
506 static var to zero. Simplify code that works around WINDOWS32
507 and __MSDOS__ time skew brain damage.
509 2000-05-22 Paul Eggert <eggert@twinsun.com>
511 * job.c: Don't include time.h, as make.h already does this.
513 2000-05-22 Paul Eggert <eggert@twinsun.com>
515 * configure.in (AC_CHECK_HEADERS): Add sys/time.h.
516 (AC_HEADER_TIME): Add.
517 (clock_gettime): Prefer -lrt to -lposix4, for Solaris 7.
518 (gettimeofday): Add check for standard version of gettimeofday.
519 This merges changes written by Paul D. Smith.
521 * file.c (file_timestamp_now): Use gettimeofday if available
522 and if clock_gettime does not work. Don't bother with
523 high-resolution clocks if file timestamps have only one-second
526 * make.h <sys/time.h>: Include, conditionally on the usual
527 TIME_WITH_SYS_TIME and HAVE_SYS_TIME_H macros. This is needed
530 2000-05-20 Paul D. Smith <psmith@gnu.org>
532 * read.c (read_makefile): We weren't keeping makefile names around
533 unless there was a rule defined in them; but now we need to keep
534 them for variables as well. Forget trying to be fancy: just keep
535 every makefile name we successfully open.
537 * remote-cstms.c (start_remote_job_p): Change DB_EXTRA (?) to DB_JOBS.
539 2000-05-17 Paul Eggert <eggert@twinsun.com>
541 * commands.c (chop_commands): Ensure ctype macro args are nonnegative.
542 * expand.c (variable_expand_string): Likewise.
543 * function.c (subst_expand, lookup_function, msdos_openpipe):
545 * job.c (vms_redirect, start_job_command, new_job, child_execute_job,
546 construct_command_argv_internal, construct_command_argv): Likewise.
547 * main.c (decode_env_switches, quote_for_env): Likewise.
548 * misc.c (collapse_continuations, end_of_token, end_of_token_w32,
549 next_token): Likewise.
550 * read.c (read_makefile, do_define, conditional_line,
551 find_char_unquote,get_next_mword): Likewise.
552 * variable.c (try_variable_definition): Likewise.
553 * vpath.c (construct_vpath_list): Likewise.
554 * w32/pathstuff.c (convert_vpath_to_windows32): Likewise.
556 2000-05-10 Eli Zaretskii <eliz@is.elta.co.il>
558 * main.c (main) [__MSDOS__]: Add SIGFPE to signals we block when
559 running child programs, to prevent Make from dying on Windows 9X
560 when the child triggers an FP exception.
562 2000-05-08 Paul D. Smith <psmith@gnu.org>
564 * dir.c (find_directory) [WINDOWS32]: If we strip a trailing "\"
565 from the directory name, remember to add it back. The argument
566 might really be inside a longer string (e.g. %Path%) and if you
567 don't restore the "\" it'll be truncated permanently. Fixes PR/1722.
568 Reported by <steven@surfcast.com>
570 2000-05-02 Paul D. Smith <psmith@gnu.org>
572 * job.c (construct_command_argv_internal) [WINDOWS32]: Added "rd"
573 and "rmdir" to the list of command.com commands.
574 Reported by Elod Horvath <Elod_Horvath@lnotes5.bankofny.com>
576 2000-04-24 Paul D. Smith <psmith@gnu.org>
578 * i18n/ja.po: New translation file from the Japanese language team.
580 2000-04-18 Paul D. Smith <psmith@gnu.org>
582 * remake.c (f_mtime): If ar_member_date() returns -1 (the member
583 doesn't exist), then return (FILE_TIMESTAMP)-1 rather than
584 returning the timestamp calculated from the value -1. Fixes PR/1696.
585 Reported by Gilles Bourhis <Gilles.Bourhis@univ-rennes1.fr>.
587 2000-04-17 Paul D. Smith <psmith@gnu.org>
589 * config.h.W32.template: Add LOCALEDIR macro resolving to "".
590 * w32/subproc/sub_proc.c (process_begin): Remove reference to
591 debug_flag; change it to a DB() call. Fixes PR/1700.
592 Reported by Jim Smith <jwksmith@attglobal.net>
594 2000-04-17 Bruno Haible <haible@clisp.cons.org>
596 * arscan.c [BeOS]: Add replacement for nonexistent <ar.h> from GNU
599 2000-04-11 Paul D. Smith <psmith@gnu.org>
601 * function.c (expand_builtin_function): If no arguments were
602 provided, just quit early rather than changing each function to
604 (function_table[]): Change the min # of arguments to 0 for all
605 those functions for which it makes sense (currently everything
606 that used to take a minimum of 1 argument, except $(call ...)).
609 2000-04-09 Eli Zaretskii <eliz@is.elta.co.il>
611 * README.DOS: Add instructions to install a binary distro.
612 Mention latest versions of Windows.
614 2000-04-07 Eli Zaretskii <eliz@is.elta.co.il>
616 * main.c (main): Rename TMP_TEMPLATE into DEFAULT_TMPDIR, and use
617 it for the directory of the temporary file. If P_tmpdir is
618 defined, use it in preference to "/tmp/". Try $TMPDIR, $TEMP, and
619 $TMP in the environment before defaulting to DEFAULT_TMPDIR.
620 (print_version): Add year 2000 to the Copyright line.
622 2000-04-04 Paul D. Smith <psmith@gnu.org>
624 * Version 3.79 released.
626 * make.texinfo: Update documentation with new features for 3.79.
628 * function.c (func_wordlist): Don't re-order arguments to
631 2000-04-03 Paul D. Smith <psmith@gnu.org>
633 * remake.c (f_mtime): Archive member timestamps are stored as
634 time_t, without nanoseconds. But, f_mtime() wants to return
635 nanosecond info on those systems that support it. So, convert the
636 return value of ar_member_date() into a FILE_TIMESTAMP, using 0 as
639 2000-03-28 Paul D. Smith <psmith@gnu.org>
641 * Version 3.78.92 released.
643 * build.template: Updates for gettext support; some bugs fixed.
645 2000-03-27 Paul D. Smith <psmith@gnu.org>
647 * config.guess, config.sub: Updated from config CVS archive at
648 :pserver:anoncvs@subversions.gnu.org:/home/cvs as of today.
650 * read.c (record_files): Check if expanding a static pattern
651 rule's prerequisite pattern leaves an empty string as the
652 prerequisite, and issue an error if so. Fixes PR/1670.
653 (read_makefile): Store the starting linenumber for a rule in
655 (record_waiting_files): Use the TGTS_STARTED value for the file
656 location passed to record_file() instead of the current
657 linenumber, so error messages list the line where the target was
658 defined instead of the line after the end of the rule definition.
660 * remake.c (start_updating, finish_updating, is_updating): Fix
661 PR/1671; circular dependencies in double-colon rules are not
662 diagnosed. These macros set the updating flag in the root
663 double-colon file instead of the current one, if it's part of a
664 double-colon list. This solution provided by Tim Magill
665 <magill@gate.net>; I just changed the macro names :).
666 (update_file_1): Call them.
667 (check_dep): Call them.
669 The change to not automatically evaluate the $(call ...)
670 function's arguments breaks recursive use of call. Although using
671 $(if ...) and $(foreach ...) in $(call ...) macros is important,
672 the error conditions generated are simply to obscure for me to
673 feel comfortable with. If a method is devised to get both
674 working, we'll revisit. For now, remove this change.
676 * function.c (function_table): Turn on the expand bit for func_call.
677 (func_call): Don't expand arguments for builtin functions; that
678 will have already been done.
680 2000-03-26 Paul D. Smith <psmith@gnu.org>
682 * file.c (remove_intermediates): Never remove targets explicitly
683 requested on the command-line by checking the cmd_target flag.
686 2000-03-23 Paul Eggert <eggert@twinsun.com>
688 * filedef.h (FILE_TIMESTAMP_STAT_MODTIME): Use st_mtime instead of
689 st_mtim.tv_sec; the latter doesn't work on Unixware.
691 2000-03-18 Paul D. Smith <psmith@gnu.org>
693 * file.c (file_hash_enter): If we're trying to change a file into
694 itself, just return. We used to assert this wasn't true, but
695 someone came up with a weird case involving archives. After
696 playing with it for a while I decided it was OK to ignore it.
698 * default.c: Define COFLAGS to empty to avoid spurious warnings.
700 * filedef.h: Change #if ST_MTIM_NSEC to #ifdef; this is a macro
701 containing the name of the nsec field, not true/false.
703 Reported by Marco Franzen <Marco.Franzen@Thyron.com>.
705 2000-03-08 Tim Magill <magill@gate.net>
707 * remake.c (update_file): Return the exit status of the pruned
708 file when pruning, not just 0. Fixes PR/1634.
710 2000-02-24 Paul D. Smith <psmith@gnu.org>
712 * configure.in: Close a minor potential security hole; if you're
713 reading makefiles from stdin (who does that?) you could run into a
714 race condition with the temp file using mktemp() or tmpnam(). Add
715 a check for mkstemp() and fdopen().
716 * main.c (open_tmpfile): New function to open a temporary file.
717 If we have mkstemp() (and fdopen()), use that. If not use
718 mktemp() or tmpnam(). If we have fdopen(), use open() to open the
719 file O_CREAT|O_EXCL. If not, fall back to normal fopen() (insecure).
721 * job.c (child_execute_job) [VMS]: Call it.
723 * variable.c (lookup_variable): If we find a variable which is
724 being expanded, then note it but keep looking through the rest of
725 the set list to see if we can find one that isn't. If we do,
726 return that. If we don't, return the original. Fix for PR/1610.
728 While implementing this I realized that it also solves PR/1380 in
729 a much more elegant way. I don't know what I was smoking before.
730 So, remove the hackage surrounding the original fix for that (see
731 below). Change this function back to lookup_variable and remove
732 the extra setlist argument.
733 * variable.h (recursively_expand_setlist): Remove the macro,
734 rename the prototype, and remove the extra setlist argument.
735 (lookup_variable): Ditto.
736 * expand.c (recursively_expand): Rename and remove the extra
738 (reference_variable): Use lookup_variable() again.
739 (allocated_variable_append): Remove the extra setlist argument.
741 2000-02-21 Paul D. Smith <psmith@gnu.org>
743 * README.template: A few updates.
745 * i18n/de.po: New version from the German translation team.
747 2000-02-09 Paul D. Smith <psmith@gnu.org>
749 * Version 3.78.91 released.
751 2000-02-07 Paul D. Smith <psmith@gnu.org>
753 * read.c (read_makefile): Reset *p2 to ':', not *colonp. If any
754 filenames contained backslashes the resulting output (without
755 backslashes) will be shorter, so setting *colonp doesn't change
756 the right character. Fix for PR/1586.
758 For += target-specific variables we need to remember which
759 variable set we found the variable in, so we can start looking
760 from there in the next iteration (otherwise we might see it again
761 in recursively_expand and fail!). This is turning into a hack; if
762 it gets any worse we'll have to rethink this entire algorithm...
763 implementing expansion of these references separately from the
764 "normal" expansion, say, instead of using the same codepath.
765 Actually, it's already "worse enough" :-/.
768 * variable.h (recursively_expand_setlist): Rename
769 recursively_expand to add a struct variable_set_list argument, and
770 make a macro for recursively_expand.
771 (lookup_variable_setlist): Rename lookup_variable to add a struct
772 variable_set_list argument, and make a macro for lookup_variable.
774 * expand.c (recursively_expand_setlist): Take an extra struct
775 variable_set_list argument and pass it to allocated_variable_append().
776 (reference_variable): Use lookup_variable_setlist() and pass the
777 returned variable_set_list to recursively_expand_setlist.
778 (allocated_variable_append): Take an extra setlist argument and
779 use this as the starting place when searching for the appended
780 expansion. If it's null, use current_variable_set_list as before.
782 * variable.c (lookup_variable_setlist): If the LISTP argument is
783 not nil, set it to the list containing the variable we found.
785 2000-02-04 Paul D. Smith <psmith@gnu.org>
787 * variable.c (print_variable): Write out filename/linenumber
788 information for the variable definition if present.
789 (define_variable_in_set): Store filename information if provided.
790 (define_variable, define_variable_for_file): Removed.
791 (try_variable_definition): Use define_variable_loc() to keep
792 variable definition location information.
793 * read.c (read_makefile): Keep variable definition location info.
795 (record_target_var): Ditto.
796 * variable.h (define_variable_in_set): New fileinfo argument.
797 (define_variable, define_variable_loc, define_variable_for_file):
802 * filedef.h (struct file): Rename patvar to pat_variables and make
803 it just a variable_set_list; we need our own copy of the pattern
804 variable's variable set list here to avoid overwriting the global
806 * variable.c (initialize_file_variables): Move the instantiation
807 of the pat_variables pointer here. Only do the search after we're
808 done reading the makefiles so we don't search too early. If
809 there's a pat_variables value, set up the variables next ptr.
810 * expand.c (variable_expand_for_file): Remove the setup of the
811 pat_variables info; it's done earlier now to ensure the parent's
812 pattern variables are set up correctly as well.
814 2000-02-03 Paul D. Smith <psmith@gnu.org>
816 * job.c (sh_chars_dos) [WINDOWS32]: Add "&" as a shell
817 metacharacter for the W32 DOS shell.
818 Reported by Warren Jones <wjones@tc.fluke.com>.
820 2000-02-02 Paul D. Smith <psmith@gnu.org>
822 Fixes for the OpenVMS port from Hartmut Becker <becker@rto.dec.com>
824 * config.h-vms [VMS]: Define LOCALEDIR to something; needed for
825 the expansion of bindtextdomain() even though it's a no-op.
826 * vmsfunctions.c (strcmpi): Remove duplicate definition of strcmpi().
827 (readdir): Use DB() instead of testing debug_flag.
828 * dir.c (file_impossible) [VMS]: Search "p" not "name".
829 * job.c [VMS]: Switch from debug_flag to the new DB macro. Add
830 some i18n _() macros (even though VMS doesn't yet support it).
832 * function.c (patsubst_expand): Change "len" to not be unsigned to
833 avoid type mismatches.
835 * main.c (main): Declare signame_init() if we're going to call it.
837 2000-01-29 Eli Zaretskii <eliz@is.elta.co.il>
839 * Makefile.DOS.template: Track changes in Makefile.in
840 (install-recursive, uninstall-recursive): Add missing targets.
842 (install-binPROGRAMS, uninstall-binPROGRAMS): Use $(DESTDIR).
844 * default.c (default_variables) [__MSDOS__]: Define CXX to gpp.
846 2000-01-27 Paul D. Smith <psmith@gnu.org>
848 * gettext.c: Some warning cleanups, and a fix for systems which
849 don't define HAVE_ALLOCA (the workaround code was included
852 2000-01-26 Paul D. Smith <psmith@gnu.org>
854 * Version 3.78.90 released.
856 2000-01-25 Paul D. Smith <psmith@gnu.org>
858 Change gettext support to use the simplified version in libit 0.7.
860 * getopt.c, make.h: Use gettext.h instead of libintl.h.
861 * ABOUT-NLS, gettext.h, gettext.c: New files from libit 0.7.
862 Modified to remove some static declarations which aren't defined.
863 * acconfig.h: Use new gettext #defines.
864 * acinclude.m4: Add fp_WITH_GETTEXT; remove AM_GNU_GETTEXT.
865 * configure.in: Call fp_WITH_GETTEXT instead.
866 * Makefile.am: New gettext stuff. Also force inclusion of glob
867 files for systems which have LIBC glob.
869 * i18n/Makefile.am, i18n/.cvsignore: New dir for translation files.
870 * i18n/de.po, i18n/es.po, i18n/fr.po, i18n/ko.po, i18n/nl.po:
871 * i18n/pl.po, i18n/ru.po: Import translations already done for
872 earlier versions of GNU make. Thanks for that work!!
874 * po/Makefile.in.in, po/POTFILES.in: Removed.
876 2000-01-23 Paul D. Smith <psmith@gnu.org>
878 * main.c (decode_debug_flags): If debug_flag is set, enable all
880 (debug_flag): Resurrect this flag variable.
881 (switches): Make -d give the old behavior of turning on all
882 debugging. Change --debug alone to emit basic debugging and take
883 optional arguments to expand debugging.
884 * NEWS: Document the new debugging options.
886 * remake.c (no_rule_error): Remove this function. This tries to
887 fix a real problem--see the description with the introduction of
888 this function below. However, the cure is worse than the disease
889 and this approach won't work.
890 (remake_file): Put the code from no_rule_error back here.
891 (update_file_1): Remove call to no_rule_error.
893 * filedef.h (struct file): Remove mfile_status field.
895 2000-01-22 Paul D. Smith <psmith@gnu.org>
897 Integrate GNU gettext support.
899 * configure.in: Add AM_GNU_GETTEXT.
900 * Makefile.am: Add options for setting LOCALEDIR, -Iintl, etc.
901 * acinclude.m4: Add gettext autoconf macros.
902 * acconfig.h: Add new gettext #defines.
903 * make.h: Include libintl.h. Make sure _() and N_() macros are
904 declared. Make gettext() an empty macro is NLS is disabled.
905 * main.c (struct command_switch switches[]): Can't initialize
906 static data with _() (gettext calls), so use N_() there then use
907 gettext() directly when printing the strings.
908 * remake.c (no_rule_error): The string constants can't be static
909 when initializing _() macros.
910 * file.c (print_file): Reformat a few strings to work better for
912 * po/POTFILES.in, po/Makefile.in.in: New files. Take
913 Makefile.in.in from the latest GNU tar distribution, as that
914 version works better than the one that comes with gettext.
915 * NEWS: Mention i18n ability.
917 2000-01-21 Paul D. Smith <psmith@gnu.org>
919 Installed patches for the VMS port.
920 Patches provided by: Hartmut Becker <Hartmut.Becker@compaq.com>
922 * readme.vms, arscan.c, config.h-vms, default.c, dir.c, file.c:
923 * implicit.c, job.c, make.h, makefile.com, makefile.vms, rule.c:
924 * variable.c, vmsdir.h, vmsfunctions.c, vmsify.c, glob/glob.c:
925 * glob/glob.h: Installed patches. See readme.vms for details.
927 2000-01-14 Andreas Schwab <schwab@suse.de>
929 * dir.c (read_dirstream): Initialize d_type if it exists.
931 2000-01-11 Paul D. Smith <psmith@gnu.org>
933 Resolve PR/xxxx: don't automatically evaluate the $(call ...)
934 function's arguments. While we're here, clean up argument passing
935 protocol to always use simple nul-terminated strings, instead of
936 sometimes using offset pointers to mark the end of arguments.
937 This change also fixes PR/1517.
938 Reported by Damien GIBOU <damien.gibou@st.com>.
940 * function.c (struct function_table_entry): Remove the negative
941 required_args hack; put in explicit min and max # of arguments.
942 (function_table): Add in the max value. Turn off the expand bit
944 (expand_builtin_function): Test against minimum_args instead of
945 the obsolete required_args.
946 (handle_function): Rewrite this. We don't try to be fancy and
947 pass one style of arguments to expanded functions and another
948 style to non-expanded functions: pass pointers to nul-terminated
949 strings to all functions.
950 (func_call): Rewrite this. If we are invoking a builtin function
951 and it's supposed to have its arguments expanded, do that (since
952 it's not done by handle_function for $(call ...) anymore). For
953 non-builtins, just add the variables as before but mark them as
954 recursive so they'll be expanded later, as needed.
955 (func_if): All arguments are vanilla nul-terminated strings:
956 remove trickery with "argv[1]-1".
957 (func_foreach): Ditto.
959 * expand.c (expand_argument): If the second arg is NULL, expand
960 the entire first argument.
962 * job.c (new_job): Zero the child struct. This change was just
963 made to keep some heap checking software happy, not because there
964 was an actual bug (the important memory was being cleared properly).
966 1999-12-15 Paul D. Smith <psmith@gnu.org>
968 * variable.c (print_variable): Print the variable with += if the
971 * implicit.c (pattern_search): Remove the extra check of the
972 implicit flag added on 8/24/1998. This causes problems and the
973 reason for the change was better resolved by the change made to
974 check_deps() on 1998-08-26. This fixes PR/1423.
976 1999-12-08 Paul D. Smith <psmith@gnu.org>
978 * dir.c (dir_setup_glob): On 64 bit ReliantUNIX (5.44 and above)
979 in LFS mode, stat() is actually a macro for stat64(). Assignment
980 doesn't work in that case. So, stat is a macro, make a local
981 wrapper function to invoke it.
982 (local_stat): Wrapper function, if needed.
983 Reported by Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>.
985 1999-12-02 Paul D. Smith <psmith@gnu.org>
987 * remake.c (update_file): Move the considered test outside the
988 double-colon loop, _but_ make sure we test the double_colon target
989 not the "current" target. If we stop early because one
990 double-colon target is running, mark all the rest considered and
991 try to start their prerequisites (so they're marked considered).
992 Fix for PR/1476 suggested by Tim Magill <tim.magill@telops.gte.com>.
994 1999-11-22 Rob Tulloh <rob_tulloh@dev.tivoli.com>
996 * function.c (windows32_openpipe, func_shell): Correct Windows32
997 problem where $(shell nosuchfile) would incorrectly exit make. The
998 fix is to print the error and let make continue.
999 Reported by David Masterson <David.Masterson@kla-tencor.com>.
1001 * w32/subproc/misc.c (arr2envblk): Memory leak fix.
1003 1999-11-21 Paul D. Smith <psmith@gnu.org>
1005 Rework GNU make debugging to provide different levels of output.
1008 * debug.h: New file. Define various debugging levels and macros.
1009 * function.c, implicit.c, job.c, main.c, misc.c, read.c, remake.c
1010 * remote-cstms.c, vmsfunctions.c: Replace all code depending on
1011 debug_flag with invocations of debugging macros.
1012 * make.h: Remove debug_flag and DEBUGPR, add db_level.
1014 1999-11-18 Paul Eggert <eggert@twinsun.com>
1016 * acinclude.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a problem
1017 with the QNX 4.25 shell, which doesn't propagate exit status of
1018 failed commands inside shell assignments.
1020 1999-11-17 Paul D. Smith <psmith@gnu.org>
1022 * function.c (func_if): Find the end of the arg list by testing
1023 the next item for NULL; any other test is not correct.
1024 Reported by Graham Reed <grahamr@algorithmics.com> (PR/1429).
1026 Fix += when used in a target-specific variable context.
1028 * variable.h: New bitfield APPEND set if we have a +=
1029 target-specific variable.
1031 * variable.c (try_variable_definition): Add an argument to specify
1032 if we're trying a target-specific variable. If we are and it's an
1033 append style, don't append it, record it as normal recursive, but
1034 set the APPEND flag so it'll be expanded later.
1035 * main.c (handle_non_switch_argument): Use new
1036 try_variable_definition() signature.
1037 * read.c (read_makefile,record_target_var): Ditto.
1039 * expand.c (allocated_variable_append): New function: like
1040 allocated_variable_expand(), but we expand the same variable name
1041 in the context of the ``next'' variable set, then we append this
1043 (recursively_expand): Invoke it, if the APPEND bit is set.
1045 1999-11-10 Paul D. Smith <psmith@gnu.org>
1047 * file.c (snap_deps): If the .NOTPARALLEL target is defined, turn
1048 off parallel builds for this make only (still allow submakes to be
1050 * main.c: New variable, ``not_parallel''.
1051 * make.h: Add an extern for it.
1052 * job.c (new_job): Test NOT_PARALLEL as well as JOB_SLOTS.
1053 * NEWS: Add info on .NOTPARALLEL.
1054 * make.texinfo (Special Targets): Document it.
1056 * configure.in (GLOBDIR): Set to "glob" if we need to build the
1058 * Makefile.am (SUBDIRS): Use the GLOBDIR variable instead of
1059 "glob" so we don't try to build glob if we don't need to (if we
1060 have GLIBC glob). Reported by Lars Hecking <lhecking@nmrc.ucc.ie>.
1062 * main.c (main): Don't put "***" in the clock skew warning
1063 message. Reported by karl@gnu.org.
1065 * make.h: Remove unneeded signal setup.
1067 * signame.c: Remove extraneous #includes; some versions of Ultrix
1068 don't protect against multiple inclusions and it causes compile
1069 errors. Reported by Simon Burge <simonb@thistledown.com.au>.
1071 1999-10-15 Paul D. Smith <psmith@gnu.org>
1073 * main.c (quote_for_env): Rename from quote_as_word().
1075 * make.h, *.c: Prefer strchr() and strrchr() in the code
1076 rather than index() and rindex(). Define strchr/strrchr in terms
1077 of index/rindex if the former aren't supported.
1079 * default.c (CHECKOUT,v): Replace the fancy, complicated
1080 patsubst/filter expression with a simple $(if ...) expression.
1082 * main.c (print_usage): Add the bug reporting mailing address to
1083 the --help output, as per the GNU coding standards.
1084 Reported by Paul Eggert <eggert@twinsun.com>.
1086 * README.customs: Installed information on running Customs-ized
1087 GNU make and setuid root, collected by Ted Stern <stern@tera.com>.
1089 * read.c (read_all_makefiles): PR/1394: Mark the end of the next
1090 token in the MAKEFILES value string _before_ we dup it.
1092 1999-10-13 Paul D. Smith <psmith@gnu.org>
1094 * configure.in (make_cv_sys_gnu_glob): We used to add the -Iglob
1095 flag to CPPFLAGS, but that loses if the user specifies his own
1096 CPPFLAGS; this one gets added _after_ his and if he happens to
1097 have an old or broken glob.h--boom. Instead, put it in GLOBINC
1100 * Makefile.am (INCLUDES): Add @GLOBINC@ to the INCLUDES macro;
1101 these things get on the compile line well before the user's
1104 1999-10-12 Paul D. Smith <psmith@gnu.org>
1106 * remake.c (notice_finished_file): If we get here and -n is set,
1107 see if all the command lines are marked recursive. If so, then we
1108 ran every command there is, so check the mtime on this file just
1109 like we would normally. If not, we assume the command we didn't
1110 run would updates the target and set mtime of the target to "very new".
1112 * job.c (start_job_command): Update lines_flags in the file's cmds
1113 structure with any per-line tokens we found (`@', `-', `+').
1115 1999-10-08 Paul D. Smith <psmith@gnu.org>
1117 * variable.c (initialize_file_variables): Always recurse to
1118 initialize the parent's file variables: the parent might not have
1119 any rules to run so it might not have been initialized before
1120 this--we need this to set up the chain properly for
1121 target-specific variables.
1123 1999-09-29 Paul Eggert <eggert@twinsun.com>
1125 * main.c (quote_as_word): Always quote for decode_env_switches
1126 instead of for the shell, so that arguments with strange
1127 characters are are passed to submakes correctly. Remove
1128 double_dollars arg; we always double dollars now. All callers
1130 (decode_env_switches): Don't run off the end of an environment
1131 variable whose contents ends in a unescaped backslash.
1133 1999-09-23 Paul D. Smith <psmith@gnu.org>
1135 * commands.c, function.c, job.c, read.c: Cast arguments to
1136 ctype.h functions/macros to _unsigned_ char for portability.
1138 * remake.c, function.c: Compiler warning fixes: the second
1139 argument to find_next_token() should be an _unsigned_ int*.
1140 Reported by Han-Wen Nienhuys <hanwen@cs.uu.nl>.
1142 1999-09-23 Paul D. Smith <psmith@gnu.org>
1144 * Version 3.78.1 released.
1146 * make.texinfo: Update version/date stamp.
1148 * main.c (main): Argh. For some reason we were closing _all_ the
1149 jobserver pipes before we re-exec'd due to changed makefiles.
1150 This means that any re-exec got a "jobserver unavailable" error :-/.
1151 I can't believe we didn't notice this before.
1153 1999-09-22 Paul D. Smith <psmith@gnu.org>
1155 * Version 3.78 released.
1157 * main.c (main): Only fail on multiple --jobserver-fds options if
1158 they aren't all the same. Some makefiles use things like
1159 $(MAKE) $(MFLAGS) which will cause multiple, identical copies of
1160 --jobserver-fds to show up.
1162 1999-09-16 Paul D. Smith <psmith@gnu.org>
1164 * main.c (define_makeflags): Zero out FLAGSTRING to avoid
1165 uninitialized memory reads when checking *p != '-' in the loop.
1167 1999-09-15 Paul D. Smith <psmith@gnu.org>
1169 * Version 3.77.97 released.
1171 * configure.in (MAKE_HOST): AC_SUBST this so it will go into the
1173 * Makefile.am (check-local): Print a success banner if the check
1175 (check-regression): A bit of fine-tuning.
1177 1999-09-15 Eli Zaretskii <eliz@is.elta.co.il>
1179 * README.DOS.template: Document requirements for the test suite.
1180 * Makefile.DOS.template: Updates to allow the test suite to run
1183 * main.c (main): Handle it if argv[0] isn't an absolute path.
1185 1999-09-13 Paul D. Smith <psmith@gnu.org>
1187 * Version 3.77.96 released.
1189 * Makefile.am (loadavg): Use CPPFLAGS, etc. to make sure we get
1190 all the right #defines to compile.
1191 (check-regression): Look for the regression test suite in the make
1192 package itself. If we're building remotely, use symlinks to make
1194 (dist-hook): Put the test suite into the tar file.
1196 * configure.in: Look for perl for the test suite.
1198 1999-09-10 Paul Eggert <eggert@twinsun.com>
1200 * acinclude.m4 (AC_SYS_LARGEFILE_FLAGS): If on HP-UX 10.20 or
1201 later, and using GCC, define __STDC_EXT__; this works around a
1204 1999-09-08 Paul D. Smith <psmith@gnu.org>
1206 * main.c (print_version): Ugh. GLIBC's configure tries to check
1207 make version strings and is too aggressive with their matching
1208 expressions. I've struck a deal with them to leave the version
1209 output as-is for 3.78, and they'll change their configure checks
1210 so that I can change this back in the future.
1212 1999-09-07 Eli Zaretskii <eliz@is.elta.co.il>
1214 * job.c (construct_command_argv_internal) [__MSDOS__]: Add "echo"
1215 and "unset" to the list of builtin shell commands.
1217 * configh.DOS.template (MAKE_HOST): Define to "i386-pc-msdosdjgpp"
1218 which is the canonical name of the DJGPP host.
1220 1999-09-05 Paul D. Smith <psmith@gnu.org>
1222 * Version 3.77.95 released.
1224 * make.texinfo (Make Errors): Document some new jobserver error
1227 1999-09-04 Eli Zaretskii <eliz@is.elta.co.il>
1229 * make.texinfo (Make Errors): Document the hint about 8 spaces
1231 (Call Function, Quick Reference): Use @code{$(1)}, not @var.
1233 * main.c (main) [__MSDOS__]: Say "on this platform" instead of "on
1234 MS-DOS", since the MSDOS version could run on Windows.
1236 1999-09-03 Paul D. Smith <psmith@gnu.org>
1238 * remake.c (notice_finished_file): Always set mtime_before_update
1239 if it's not been set, not just if we ran some rules. Otherwise we
1240 may have a situation where a target's prerequisite was rebuilt but
1241 not changed, so this target's rules weren't run, then
1242 update_goal_chain() sees mtime_before_update != last_mtime and
1243 thinks that the top-level target changed when it really didn't.
1244 This can cause an infinite loop when remaking makefiles.
1245 (update_goal_chain): If we get back to the top and we don't know
1246 what the goal's last_mtime was, find it now. We need to know so
1247 we can compare it to mtime_before_update later (this is only
1248 crucial when remaking makefiles--should we only do it then?)
1250 1999-09-02 Paul D. Smith <psmith@gnu.org>
1252 * read.c (read_makefile): If "override" appears as the first
1253 prerequisite, look further to ensure this is really a
1254 target-specific variable definition, and not just some
1255 prerequisite named "override".
1257 1999-09-01 Paul D. Smith <psmith@gnu.org>
1259 * function.c (IS_PATHSEP) [WINDOWS32]: Allow backslash separators
1261 * read.c (record_files) [WINDOWS32]: Allow backslash separators
1263 * implicit.c (pattern_search) [WINDOWS32]: Allow backslash
1264 separators for W32 platforms.
1266 * configure.in (MAKE_HOST): Define it to be the canonical build
1267 host info, now that we need AC_CANONICAL_HOST anyway (for large
1269 * version.c (make_host): Define a variable to MAKE_HOST so we're
1270 sure to get it from the local config.h.
1271 * main.c (print_version): Use it in the version information.
1272 * config.ami.template: Add MAKE_HOST.
1273 * configh.dos.template: Ditto.
1274 * config.h.W32.template: Ditto.
1275 * config.h-vms.template: Ditto.
1277 * main.c (main): Close the jobserver file descriptors if we need
1278 to re-exec ourselves.
1279 Also print more reasonable error if users force -jN for submakes.
1280 This may be common for a while until people use the jobserver
1281 feature. If it happens, we ignore the existing jobserver stuff
1282 and use whatever they specified on the commandline.
1283 (define_makeflags): Fixed a long-standing bug: if a long name
1284 only option comes immediately after a single letter option with no
1285 argument, then the option string is constructed incorrectly. For
1286 example, with -w and --jobserver-fds you get "-w-jobserver-fds..."
1287 instead of "-w --jobserver-fds..."; add in an extra " -".
1289 * make.texinfo (Phony Targets): Add another example of using
1290 .PHONY with subdirectories/recursive make.
1292 1999-08-30 Paul D. Smith <psmith@gnu.org>
1294 * README.W32.template: Renamed from README.W32 so it's
1295 autogenerated during the dist. A few minor modifications.
1297 * configure.in: Check for kstat_open before AC_FUNC_GETLOADAVG
1298 since the latter needs to know whether the former exists to give
1301 1999-08-26 Rob Tulloh <rob_tulloh@dev.tivoli.com>
1303 * NMakefile [WINDOWS32]: Now more robust. If you change a file
1304 under w32/subproc, the make.exe will be relinked. Also added some
1305 tests to make sure erase commands won't fail when executed in a
1306 pristine build environment.
1308 * w32/subproc/sub_proc.c [WINDOWS32]: Added support for
1309 HAVE_CYGWIN_SHELL. If you are using the Cygwin B20.1 release, it
1310 is now possible to have have native support for this shell without
1311 having to rely on klutzy BATCH_MODE_ONLY_SHELL.
1313 * config.h.W32 [WINDOWS32]: Added HAVE_CYGWIN_SHELL macro which
1314 users can define if they want to build make to use this shell.
1316 * README.W32 [WINDOWS32]: Added informaton about
1317 HAVE_CYGWIN_SHELL. Cleaned up text a bit to make it more current.
1319 1999-08-26 Paul Eggert <eggert@twinsun.com>
1321 Support large files in AIX, HP-UX, and IRIX.
1323 * acinclude.m4 (AC_LFS): Remove. Superseded by AC_SYS_LARGEFILE.
1324 (AC_SYS_LARGEFILE_FLAGS, AC_SYS_LARGEFILE_SPACE_APPEND,
1325 AC_SYS_LARGEFILE_MACRO_VALUE, AC_SYS_LARGEFILE): New macros.
1326 (jm_AC_TYPE_UINTMAX_T): Check for busted compilers that can't
1327 shift or divide unsigned long long.
1328 (AM_PROG_CC_STDC): New macro; a temporary workaround of a bug in
1331 * configure.in (AC_CANONICAL_HOST): Add; required by new
1333 (AC_SYS_LARGEFILE): Renamed from AC_LFS.
1334 (AM_PROG_CC_STDC): Add.
1336 * config.guess, config.sub: New files, needed for AC_CANONICAL_HOST.
1338 1999-08-25 Paul Eggert <eggert@twinsun.com>
1340 * make.h (CHAR_MAX): New macro.
1341 * main.c (struct command_switch): c is now int,
1342 so that it can store values greater than CHAR_MAX.
1343 (switches): Replace small numbers N with CHAR_MAX+N-1,
1344 to avoid problems with non-ASCII character sets.
1345 (short_option): New macro.
1346 (init_switches, print_usage, define_makeflags): Use it instead of
1349 1999-08-25 Paul D. Smith <psmith@gnu.org>
1351 * Version 3.77.94 released.
1353 * main.c (main) [__MSDOS__]: If the user uses -j, warn that it's
1354 not supported and reset it.
1356 * make.h (ISDIGIT): Obtained this from the textutils distribution.
1357 * main.c (decode_switches): Use it.
1358 * function.c (is_numeric): Use it.
1360 * main.c (struct command_switch): Store the switch char in an
1361 unsigned char to shut up GCC about using it with ctype.h macros.
1362 Besides, it _is_ always unsigned.
1364 1999-08-24 Paul D. Smith <psmith@gnu.org>
1366 * make.texinfo: Change "dependency" to "prerequisite" and
1367 "dependencies" to "prerequisites". Various other cleanups related
1368 to the terminology change.
1369 * file.c: Change debugging and error messages to use
1370 "prerequisite" instead of "dependency".
1371 * implicit.c: Ditto.
1373 * NEWS: Document it.
1375 1999-08-23 Paul D. Smith <psmith@gnu.org>
1377 * remake.c (update_file): Move the considered check into the
1378 double-colon rule loop, so we consider double-colon rules
1379 individually (otherwise after the first is pruned, the rest won't
1382 * README.template: Minor changes.
1384 Remove the debugging features of the jobserver, so it no longer
1385 writes distinct tokens to the pipe. Thus, we don't need to store
1386 the token we get. A side effect of this is to remove a potential
1387 "unavailable token" situation: make-1 invokes make-2 with its
1388 special token and make-3 with a normal token; make-2 completes.
1389 Now we're waiting for make-3 but using 2 tokens; our special token
1390 is idle. In the new version we don't have special tokens per se,
1391 we merely decide if we already have a child or not. If we don't,
1392 we don't need a token. If we do, we have to get one to run the
1393 next child. Similar for putting tokens back: if we're cleaning up
1394 the last child, we don't put a token back. Otherwise, we do.
1396 * main.c: Add a new, internal flag --jobserver-fds instead of
1397 overloading the meaning of -j. Remove job_slots_str and add the
1398 stringlist jobserver_fds.
1399 (struct command_switch): We don't need the int_string type.
1400 (switches[]): Add a new option for --jobserver-fds and remove
1401 conditions around -j. Make the description for the former 0 so it
1402 doesn't print during "make --help".
1403 (main): Rework jobserver parsing. If we got --jobserver-fds
1404 make sure it's valid. We only get one and job_slots must be 0.
1405 If we're the toplevel make (-jN without --jobserver-fds) create
1406 the pipe and write generic tokens.
1407 Create the stringlist struct for the submakes.
1408 Clean up the stringlist where necessary.
1409 (init_switches): Remove int_string handling.
1410 (print_usage): Don't print internal flags (description ptr is 0).
1411 (decode_switches): Remove int_string handling.
1412 (define_makeflags): Remove int_string handling.
1414 * job.c: Remove my_job_token flag and all references to the
1415 child->job_token field.
1416 (free_job_token): Remove this and merge it into free_child().
1417 (reap_children): Rework the "reaped a child" logic slightly.
1418 Don't call defunct free_job_token anymore. Always call
1419 free_child, even if we're dying.
1420 (free_child): If we're not freeing the only child, put a token
1421 back in the pipe. Then, if we're dying, don't bother to free.
1422 (new_job): If we are using the jobserver, loop checking to see if
1423 a) there are no children or b) we get a token from the pipe.
1425 * job.h (struct child): Remove the job_token field.
1427 1999-08-20 Paul D. Smith <psmith@gnu.org>
1429 * variable.c (try_variable_definition): Allocate for variable
1430 expansion in f_append with a simple variable: if we're looking at
1431 target-specific variables we don't want to trash the buffer.
1432 Noticed by Reiner Beninga <Reiner.Beninga@mchp.siemens.de>.
1434 1999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
1436 * main.c (main) [__MSDOS__]: Mirror any backslashes in argv[0], to
1437 avoid problems in shell commands that use backslashes as escape
1440 1999-08-16 Paul D. Smith <psmith@gnu.org>
1442 * Version 3.77.93 released.
1444 1999-08-13 Paul D. Smith <psmith@gnu.org
1446 * function.c (func_if): New function $(if ...) based on the
1447 original by Han-Wen but reworked quite a bit.
1448 (function_table): Add it.
1449 * NEWS: Introduce it.
1450 * make.texinfo (If Function): Document it.
1452 * job.c (free_job_token): Check for EINTR when writing tokens to
1455 1999-08-12 Paul D. Smith <psmith@gnu.org>
1457 Another jobserver algorithm change. We conveniently forgot that
1458 the blocking bit is shared by all users of the pipe, it's not a
1459 per-process setting. Since we have many make processes all
1460 sharing the pipe we can't use the blocking bit as a signal handler
1461 flag. Instead, we'll dup the pipe's read FD and have the SIGCHLD
1462 handler close the dup'd FD. This will cause the read() to fail
1463 with EBADF the next time we invoke it, so we know we need to reap
1464 children. We then re-dup and reap.
1466 * main.c (main): Define the job_rfd variable to hold the dup'd FD.
1467 Actually dup the read side of the pipe. Don't bother setting the
1468 blocking bit on the file descriptor.
1469 * make.h: Declare the job_rfd variable.
1470 * job.c (child_handler): If the dup'd jobserver pipe is open,
1471 close it and assign -1 to job_rfd to notify the main program that
1473 (start_job_command): Close the dup'd FD before exec'ing children.
1474 Since we open and close this thing so often it doesn't seem
1475 worth it to use the close-on-exec bit.
1476 (new_job): Remove code for testing/setting the blocking bit.
1477 Instead of EAGAIN, test for EBADF. If the dup'd FD has been
1478 closed, re-dup it before we reap children.
1480 * function.c (func_shell): Be a little more accurate about the
1481 length of the error string to allocate.
1483 * expand.c (variable_expand_for_file): If there's no filenm info
1484 (say, from a builtin command) then reset reading_file to 0.
1486 1999-08-09 Paul D. Smith <psmith@gnu.org>
1488 * maintMakefile: Use g in sed (s///g) to replace >1 variable per
1491 * Makefile.DOS.template [__MSDOS__]: Fix mostlyclean-aminfo to
1492 remove the right files.
1494 1999-08-01 Eli Zaretskii <eliz@is.elta.co.il>
1496 * function.c (msdos_openpipe) [__MSDOS__]: *Really* return a FILE
1499 1999-08-01 Paul D. Smith <psmith@gnu.org>
1501 New jobserver algorithm to avoid a possible hole where we could
1502 miss SIGCHLDs and get into a deadlock. The original algorithm was
1503 suggested by Roland McGrath with a nice refinement by Paul Eggert.
1504 Many thanks as well to Tim Magill and Howard Chu, who also
1505 provided many viable ideas and critiques. We all had a fun week
1506 dreaming up interesting ways to use and abuse UNIX syscalls :).
1508 Previously we could miss a SIGCHLD if it happened after we reaped
1509 the children but before we re-entered the blocking read. If this
1510 happened to all makes and/or all children, make would never wake
1513 We avoid this by having the SIGCHLD handler reset the blocking bit
1514 on the jobserver pipe read FD (normally read does block in this
1515 algorithm). Now if the handler is called between the time we reap
1516 and the time we read(), and there are no tokens available, the
1517 read will merely return with EAGAIN instead of blocking.
1519 * main.c (main): Set the blocking bit explicitly here.
1520 * job.c (child_handler): If we have a jobserver pipe, set the
1521 non-blocking bit for it.
1522 (start_waiting_job): Move the token stuff back to new_job; if we
1523 do it here then we're not controlling the number of remote jobs
1525 (new_job): Move the check for job slots to _after_ we've created a
1526 child structure. If the read returns without getting a token, set
1527 the blocking bit then try to reap_children.
1529 * make.h (EINTR_SET): Define to test errno if EINTR is available,
1530 or 0 otherwise. Just some code cleanup.
1531 * arscan.c (ar_member_touch): Use it.
1532 * function.c (func_shell): Use it.
1533 * job.c (reap_children): Use it.
1534 * remake.c (touch_file): Use it.
1536 1999-07-28 Paul D. Smith <psmith@gnu.org>
1538 * make.h: Define _() and N_() macros as passthrough to initiate
1540 * <all>: Add _()/N_() around translatable strings.
1542 1999-07-27 Paul D. Smith <psmith@gnu.org>
1544 * read.c: Make sure make.h comes before other headers.
1546 1999-07-26 Paul D. Smith <psmith@gnu.org>
1548 * make.texinfo (Quick Reference): Update with the new features.
1550 1999-07-25 Eli Zaretskii <eliz@is.elta.co.il>
1552 * remake.c [__MSDOS__]: Don't include variables.h, it's already
1555 * function.c (msdos_openpipe) [__MSDOS__]: Return FILE ptr.
1556 (func_shell) [__MSDOS__]: Fix the argument list.
1558 * Makefile.DOS.template: Update from Makefile.in.
1560 * README.DOS.template: Configure command fixed.
1562 * configh.dos.template: Update to provide definitions for
1563 uintmax_t, fd_set_size_t, and HAVE_SELECT.
1565 1999-07-24 Paul D. Smith <psmith@gnu.org>
1567 * Version 3.77.91 released.
1569 * configure.in: Changes to the boostrapping code: if build.sh.in
1570 doesn't exist configure spits an error and generates an empty
1571 build.sh file which causes make to be confused.
1572 * maintMakefile: Don't build README early.
1574 1999-07-23 Paul D. Smith <psmith@gnu.org>
1576 * job.c (my_job_token): This variable controls whether we've
1577 handed our personal token to a subprocess or not. Note we could
1578 probably infer this from the value of job_slots_used, but it's
1579 clearer to just keep it separately. Job_slots_used isn't really
1580 relevant when running the job server.
1581 (free_job_token): New function: free a job token. If we don't
1582 have one, no-op. If we have the personal token, reclaim it. If
1583 we have another token, write it back to the pipe.
1584 (reap_children): Call free_job_token.
1585 (free_child): Call free_job_token.
1586 (start_job_command): Remove duplicate test for '+' in the command.
1587 If we don't appear to be running a recursive make, close the
1588 jobserver filedescriptors.
1589 (start_waiting_job): If our personal token is available, use that
1590 instead of going to the server pipe.
1591 (*): Add the token value to many debugging statements, and print
1592 the child target name in addition to the ptr hex value.
1593 Change the default "no token" value from '\0' to '-' so it looks
1594 better in the output.
1596 * main.c (main): Install the child_handler with sigaction()
1597 instead of signal() if we have it. On SysV systems, signal() uses
1598 SysV semantics which are a pain. But sigaction() always does what
1600 (main): If we got job server FDs from the environment, test them
1601 to see if they're open. If not, the parent make closed them
1602 because it didn't think we were a submake. Print a warning and
1603 suggestion to use "+" on the submake invocation, and hard-set to
1604 -j1 for this instance of make.
1605 (main): Change the algorithm for assigning slots to be more
1606 robust. Previously make checked to see if it thought a subprocess
1607 was a submake and if so, didn't give it a token. Since make's
1608 don't consume tokens we could spawn many of makes fighting for a
1609 small number of tokens. Plus this is unreliable because submakes
1610 might not be recognized by the parent (see above) then all the
1611 tokens could be used up by unrecognized makes, and no one could
1612 run. Now every make consumes a token from its parent. However,
1613 the make can also use this token to spawn a child. If the make
1614 wants more than one, it goes to the jobserver pipe. Thus there
1615 will never be more than N makes running for -jN, and N*2 processes
1616 (N makes and their N children). Every make can always run at
1617 least one job, and we'll never deadlock. (Note the closing of the
1618 pipe for non-submakes also solves this, but this is still a better
1619 algorithm.) So! Only put N-1 tokens into the pipe, since the
1620 topmost make keeps one for itself.
1622 * configure.in: Find sigaction. Disable job server support unless
1623 the system provides it, in addition to either waitpid() or
1626 1999-07-22 Rob Tulloh <rob_tulloh@dev.tivoli.com>
1628 * arscan.c (ar_member_touch) [WINDOWS32]: The ar_date field is a
1629 string on Windows, not a timestamp.
1631 1999-07-21 Paul D. Smith <psmith@gnu.org>
1633 * Version 3.77.90 released.
1635 * Makefile.am (AUTOMAKE_OPTIONS): Require automake 1.4.
1637 * function.c: Rearrange so we don't need to predeclare the
1638 function_table array; K&R C compilers don't like that.
1640 * acinclude.m4 (AC_FUNC_SELECT): Ouch; this requires an ANSI C
1641 compiler! Change to work with K&R compilers as well.
1643 * configure.in (AC_OUTPUT): Put build.sh back. I don't know how I
1644 thought it would work this way :-/. We'll have to think of
1646 * Makefile.am: Remove rule to create build.sh.
1648 * default.c (default_suffix_rules): Rearrange the default command
1649 lines to conform to POSIX rules (put the filename argument $<
1650 _after_ the OUTPUT_OPTION, not before it).
1652 * various: Changed !strncmp() calls to strneq() macros.
1654 * misc.c (sindex): Make slightly more efficient.
1656 * dir.c (file_impossible): Change savestring(X,strlen(X)) to xstrdup().
1657 * implicit.c (pattern_search): Ditto.
1658 * main.c (enter_command_line_file): Ditto.
1660 * misc.c (copy_dep_chain): Ditto.
1661 * read.c (read_makefile): Ditto.
1662 (parse_file_seq): Ditto.
1663 (tilde_expand): Ditto.
1664 (multi_glob): Ditto.
1665 * rule.c (install_pattern_rule): Ditto.
1666 * variable.c (define_variable_in_set): Ditto.
1667 (define_automatic_variables): Ditto.
1668 * vpath.c (construct_vpath_list): Ditto.
1670 * misc.c (xrealloc): Some reallocs are non-standard: work around
1671 them in xrealloc by calling malloc if PTR is NULL.
1672 * main.c (main): Call xrealloc() directly instead of testing for
1675 * function.c (func_sort): Don't try to free NULL; some older,
1676 non-standard versions of free() don't like it.
1678 * configure.in (--enable-dmalloc): Install some support for using
1679 dmalloc (http://www.dmalloc.com/) with make. Use --enable-dmalloc
1680 with configure to enable it.
1682 * function.c (function_table_entry): Whoops! The function.c
1683 rewrite breaks backward compatibility: all text to a function is
1684 broken into arguments, and extras are ignored. So $(sort a,b,c)
1685 returns "a"! Etc. Ouch. Fix it by making a positive value in
1686 the REQUIRED_ARGS field mean exactly that many arguments to the
1687 function; any "extras" are considered part of the last argument as
1688 before. A negative value means at least that many, but may be
1689 more: in this case all text is broken on commas.
1690 (handle_function): Stop when we've seen REQUIRED_ARGS args, if >0.
1691 (expand_builtin_function): Compare number of args to the absolute
1692 value of REQUIRED_ARGS.
1694 1999-07-20 Paul D. Smith <psmith@gnu.org>
1696 * job.c (start_job_command): Ensure that the state of the target
1697 is cs_running. It might not be if we skipped all the lines due to
1700 * commands.c (execute_file_commands): If we discover that the
1701 command script is empty and succeed early, set cs_running so the
1702 modtime of the target is still rechecked.
1704 * rule.c (freerule): Free the dependency list for the rule.
1706 * implicit.c (pattern_search): When turning an intermediate file
1707 into a real target, keep the also_make list.
1708 Free the dep->name if we didn't use it during enter_file().
1710 1999-07-16 Paul D. Smith <psmith@gnu.org>
1712 * read.c (read_makefile): Don't allocate the commands buffer until
1713 we're sure we found a makefile and won't return early (mem leak).
1715 * job.c (start_job_command): Broken #ifdef test: look for F_SETFD,
1716 not FD_SETFD. Close-on-exec isn't getting set on the bad_stdin
1717 file descriptor and it's leaking :-/.
1718 * getloadavg.c (getloadavg): Ditto.
1720 1999-07-15 Paul D. Smith <psmith@gnu.org>
1722 * read.c (read_makefile): Fix some potential memory stomps parsing
1723 `define' directives where no variable name is given.
1725 * function.c (func_call): Rename from func_apply. Various code
1726 cleanup and tightening.
1727 (function_table): Add "call" as a valid builtin function.
1729 * make.texinfo (Call Function): Document it.
1731 * NEWS: Announce it.
1733 1999-07-09 Eli Zaretskii <eliz@is.elta.co.il>
1735 * variable.c (try_variable_definition) [__MSDOS__, WINDOWS32]:
1736 Treat "override SHELL=" the same as just "SHELL=".
1738 1999-07-09 Paul D. Smith <psmith@gnu.org>
1740 * job.c (start_waiting_job): Don't get a second job token if we
1741 already have one; if we're waiting on the load to go down
1742 start_waiting_job() might get called twice on the same file.
1744 * filedef.h (struct file): Add new field, mtime_before_update.
1745 When notice_finished_file runs it assigns the cached last_mtime to
1747 * remake.c (update_goal_chain): Notice that a file wasn't updated
1748 by asking if it changed (g->changed) and comparing the current
1749 cached time (last_mtime) with the previous one, stored in
1750 mtime_before_update. The previous check ("did last_mtime changed
1751 during the run of update_file?") fails for parallel builds because
1752 last_mtime is set during reap_children, before update_file is run.
1753 This causes update_goal_chain to always return -1 (nothing
1754 rebuilt) when running parallel (-jN). This is OK during "normal"
1755 builds since our caller (main) treats these cases identically in
1756 that case, but if when rebuilding makefiles the difference is very
1757 important, as it controls whether we re-exec or not.
1758 * file.c (file_hash_enter): Copy the mtime_before_update field.
1759 (snap_deps): Initialize mtime_before_update to -1.
1760 * main.c (main): Initialize mtime_before_update on old (-o) and
1763 1999-07-08 Paul D. Smith <psmith@gnu.org>
1765 * main.c (switches): Define a new switch -R (or
1766 --no-builtin-variables). This option disables the defining of all
1767 the GNU make builtin variables.
1768 (main): If -R was given, force -r as well.
1769 * default.c (define_default_variables): Test the new flag.
1770 * make.h: Declare global flag.
1771 * make.texinfo (Options Summary): Document the new option.
1772 (Implicit Variables): Ditto.
1774 1999-07-06 Paul D. Smith <psmith@gnu.org>
1776 * make.texinfo (Options Summary): Correct examples in
1777 --print-data-base option summary (problem reported by David Morse
1778 <morse@nichimen.com>).
1780 * arscan.c: Add support for archives in Windows (VC++). Frank
1781 Libbrecht <frankl@abzx.belgium.hp.com> provided info on how to do
1783 * NMakefile.template (CFLAGS_any): Remove NO_ARCHIVES from the
1785 * build_w32.bat: Ditto.
1787 * remake.c (no_rule_error): Fix -include/sinclude so it doesn't
1788 give errors if you try to -include the same file twice.
1789 (updating_makefiles): New variable: we need to know this info in
1790 no_rule_error() so we know whether to print an error or not.
1791 (update_file_1): Unconditionally call no_rule_error(), don't try
1792 to play games with the dontcare flag.
1794 1999-06-14 Paul D. Smith <psmith@gnu.org>
1796 * make.texinfo (Remaking Makefiles): Add a description of how to
1797 prevent implicit rule searches for makefiles.
1799 * make.1: Remove statement that make continues processing when -v
1802 1999-06-14 Paul D. Smith <psmith@gnu.org>
1804 * read.c (read_makefile): Cast -1 arguments to
1805 variable_expand_string() to long. Alexandre Sauve
1806 <Alexandre.SAUVE@ifp.fr> reports that without casts, this breaks
1807 on a NEC SUPER-UX SX-4 system (and it's wrong without a cast
1808 anyway). Of course, (a) I'd really love to start using function
1809 prototypes, and (b) there's a whole slew of issues related to int
1810 vs. long and signed vs. unsigned in the length handling of
1811 variable buffers, etc. Gross. Needs a complete mucking-out.
1812 * expand.c (variable_expand): Ditto.
1814 * acinclude.m4 (AC_FUNC_SELECT): Slight enhancement for AIX 3.2 by
1815 Lars Hecking <lhecking@nmrc.ucc.ie>.
1817 * read.c (get_next_mword): Allow colons to be escaped in target
1818 names: fix for regression failure.
1820 1999-04-26 Paul D. Smith <psmith@gnu.org>
1822 * main.c (main): Reset read_makefiles to empty after processing so
1823 we get the right error message.
1825 1999-04-25 Paul D. Smith <psmith@gnu.org>
1827 * make.texinfo: Updates to @dircategory and @direntry suggested by
1828 Karl Berry <karl@cs.umb.edu>.
1830 1999-04-23 Eli Zaretskii <eliz@is.elta.co.il>
1832 * job.c (start_job_command) [__MSDOS__]: Call unblock_sigs before
1833 turning off dos_command_running, so child's signals produce the
1836 * commands.c (fatal_error_signal) [__MSDOS__]: Use EXIT_FAILURE
1839 1999-04-18 Eli Zaretskii <eliz@is.elta.co.il>
1841 * configh.dos.template: Update to recognize that version 2.02 of
1842 DJGPP contains sys_siglist stuff.
1844 1999-04-14 Paul D. Smith <psmith@gnu.org>
1846 * make.texinfo (Options/Recursion): Document the job server.
1849 1999-04-13 Paul D. Smith <psmith@gnu.org>
1851 Implement a new "job server" feature; the implementation was
1852 suggested by Howard Chu <hyc@highlandsun.com>.
1854 * configure.in (job-server): New disable option for job server
1855 support--it's enabled by default. If it works well this will go
1858 * NEWS: Summarize the new feature.
1860 * acconfig.h: New definition MAKE_JOBSERVER if job server support
1862 * config.h-vms.template: Undef MAKE_JOBSERVER for this port.
1863 * config.h.W32.template: Ditto.
1864 * config.ami.template: Ditto.
1866 * main.c (struct command_switch): Add a new type: int_string.
1867 (switches[]) Use int_string for -j if MAKE_JOBSERVER.
1868 (init_switches): Initialize the new int_string switch type.
1869 (print_usage): New function, extracted from decode_switches().
1870 (decode_switches): Call it. Decode the new int_string switch type.
1871 (define_makeflags): Add new int_string switch data to MAKEFLAGS.
1872 (job_fds[]) Array to contain the pipe file descriptors.
1873 (main): Parse the job_slots_str option results. If necessary,
1874 create the pipe and seed it with tokens. Set the non-blocking bit
1875 for the read fd. Enable the signal handler for SIGCHLD even if we
1876 have a non-hanging wait; it's needed to interrupt the select() in
1877 job.c:start_waiting_job().
1879 * make.h: Declare job_fds[].
1881 * job.h (struct child): Add job_token field to store the token for
1884 * job.c (reap_children): When a child is fully reaped, release the
1885 token back into the pipe.
1886 (free_child): If the child to be freed still has a token, put it
1888 (new_job): Initialize the job_token member.
1889 (start_waiting_job): For local jobs, if we're using the pipe, get
1890 a token before we check the load, etc. We do this by performing a
1891 non-blocking read in a loop. If the read fails, no token is
1892 available. Do a select on the fd to wait for a token. We need to
1893 re-enable the signal handler for SIGCHLD even if we have a
1894 non-hanging waitpid() or wait3(), so that the signal will
1895 interrupt the select() and we can wake up to reap children.
1896 (child_handler): Re-enable the signal handler. The count is still
1897 kept although it's not needed or used unless you don't have
1898 waitpid() or wait3().
1900 1999-04-10 Paul D. Smith <psmith@gnu.org>
1902 * main.c (main): Reset the considered bit on all the makefiles if
1903 something failed to update; we need to examine them again if they
1904 appear as normal targets in order to get the proper error message.
1906 1999-04-09 Paul D. Smith <psmith@gnu.org>
1908 Performance enhancement from Tim Magill <tim.magill@telops.gte.com>.
1910 * remake.c (update_file): If you have large numbers of
1911 dependencies and you run in parallel, make can spend considerable
1912 time each pass through the graph looking at branches it has
1913 already seen. Since we only reap_children() when starting a pass,
1914 not in the middle, if a branch has been seen already in that pass
1915 nothing interesting can happen until the next pass. So, we toggle
1916 a bit saying whether we've seen this target in this pass or not.
1917 (update_goal_chain): Initially set the global considered toggle to
1918 1, since all targets initialize their boolean to 0. At the end of
1919 each pass, toggle the global considered variable.
1920 * filedef.h (struct file): Per-file considered toggle bit.
1921 * file.c: New global toggle variable considered.
1923 1999-04-05 Paul D. Smith <psmith@gnu.org>
1925 * arscan.c (ar_scan): Added support for ARFZMAG (compressed
1926 archives?) for Digital UNIX C++. Information provided by
1927 Patrick E. Krogel <pekrogel@mtu.edu>.
1928 (ar_member_touch): Ditto.
1930 1999-04-03 Paul D. Smith <psmith@gnu.org>
1932 * remake.c (f_mtime): If: a) we found a file and b) we didn't
1933 create it and c) it's not marked as an implicit target and d) it
1934 is marked as an intermediate target, then it was so marked due to
1935 an .INTERMEDIATE special target, but it already existed in the
1936 directory. In this case, unset the intermediate flag so we won't
1937 delete it when make is done. It feels like it would be cleaner to
1938 put this check in update_file_1() but I worry it'll get missed...
1940 1999-04-01 Paul D. Smith <psmith@gnu.org>
1942 * job.c (construct_command_argv_internal): Use bcopy() to copy
1943 overlapping strings, rather than strcpy(). ISO C says the latter
1944 is undefined. Found this in a bug report from 1996! Ouch!
1946 1999-03-31 Paul D. Smith <psmith@gnu.org>
1948 * read.c (readline): Ignore carriage returns at the end of the
1949 line, to allow Windows-y CRLF line terminators.
1951 1999-03-30 Paul D. Smith <psmith@gnu.org>
1953 * configure.in: Don't put build.sh here, since build.sh.in doesn't
1954 exist initially. This cause autoreconf and automake to fail when
1955 run on a clean CVS checkout. Instead, we create build.sh in the
1956 Makefile (see below).
1958 * Makefile.am: Remove BUILT_SOURCES; this is no longer relevant.
1959 Put those files directly into EXTRA_DIST so they're distributed.
1960 Create a local build rule to create build.sh.
1961 Create a local maintainer-clean rule to delete all the funky
1964 * maintMakefile: Makefile.in depends on README, since automake
1965 fails if it doesn't exist. Also don't remove glob/Makefile.in
1966 here, as it causes problems.
1968 1999-03-26 Paul D. Smith <psmith@gnu.org>
1970 * configure.in: Substitute GLOBLIB if we need the link the
1971 glob/libglob.a library.
1972 * Makefile.am (make_LDADD): Use the subst variable GLOBLIB so we
1973 don't link the local libglob.a at all if we don't need it.
1974 * build.template: Don't compile glob/*.o unless we want globlib.
1975 * maintMakefile (build.sh.in): Substitute the glob/*.o files
1978 1999-03-25 Paul D. Smith <psmith@gnu.org>
1980 * make.texinfo: Various typos and additions, pointed out by James
1981 G. Sack <jsack@dornfeld.com>.
1983 1999-03-22 Paul D. Smith <psmith@gnu.org>
1985 * make.texinfo (Functions): Add a new section documenting the new
1986 $(error ...) and $(warning ...) functions. Also updated copyright
1988 * NEWS: Updated for the new functions.
1989 * function.c (func_error): Implement the new $(error ...) and
1990 $(warning ...) functions.
1991 (function_table): Insert new functions into the table.
1992 (func_firstword): Don't call find_next_token() with argv[0]
1993 itself, since that function modifies the pointer.
1994 * function.c: Cleanups and slight changes to the new method of
1997 1999-03-20 Han-Wen Nienhuys <hanwen@cs.uu.nl>
1999 * function.c: Rewrite to use one C function per make function,
2000 instead of a huge switch statement. Also allows some cleanup of
2001 multi-architecture issues, and a cleaner API which makes things
2002 like func_apply() simple.
2004 * function.c (func_apply): Initial implementation. Expand either
2005 a builtin function or a make variable in the context of some
2006 arguments, provided as $1, $2, ... $N.
2008 1999-03-19 Eli Zaretskii <eliz@is.elta.co.il>
2009 1999-03-19 Rob Tulloh <rob_tulloh@dev.tivoli.com>
2011 * job.c (construct_command_argv_internal): Don't treat _all_
2012 backslashes as escapes, only those which really escape a special
2013 character. This allows most normal "\" directory separators to be
2016 1999-03-05 Paul D. Smith <psmith@gnu.org>
2018 * configure.in: Check for a system strdup().
2019 * misc.c (xstrdup): Created. Suggestion by Han-Wen Nienhuys
2021 * make.h: Prototype xstrdup().
2022 * remake.c (library_search): Use it.
2023 * main.c (main): Use it.
2024 (find_and_set_default_shell): Use it.
2025 * job.c (construct_command_argv_internal): Use it.
2026 * dir.c (find_directory): Use it.
2028 * Makefile.am, configure.in: Use AC_SUBST_FILE to insert the
2029 maintMakefile instead of "include", to avoid automake 1.4
2032 1999-03-04 Paul D. Smith <psmith@gnu.org>
2034 * amiga.c, amiga.h, ar.c, arscan.c, commands.c, commands.h,
2035 * default.c, dep.h, dir.c, expand.c, file.c, filedef.h, function.c,
2036 * implicit.c, job.c, job.h, main.c, make.h, misc.c, read.c, remake.c
2037 * remote-cstms.c, remote-stub.c, rule.h, variable.c, variable.h,
2038 * vpath.c, Makefile.ami, NMakefile.template, build.template,
2039 * makefile.vms: Updated FSF address in the copyright notice.
2041 * variable.c (try_variable_definition): If we see a conditional
2042 variable and we decide to set it, re-type it as recursive so it
2043 will be expanded properly later.
2045 1999-02-22 Paul D. Smith <psmith@gnu.org>
2047 * NEWS: Mention new .LIBPATTERNS feature.
2049 * make.texinfo (Libraries/Search): Describe the use and
2050 ramifications of the new .LIBPATTERNS variable.
2052 * remake.c (library_search): Instead of searching only for the
2053 hardcoded expansion "libX.a" for a library reference "-lX", we
2054 obtain a list of patterns from the .LIBPATTERNS variable and
2055 search those in order.
2057 * default.c: Added a new default variable .LIBPATTERNS. The
2058 default for UNIX is "lib%.so lib%.a". Amiga and DOS values are
2061 * read.c: Remove bogus HAVE_GLOB_H references; always include
2064 1999-02-21 Paul D. Smith <psmith@gnu.org>
2066 * function.c (expand_function): Set value to 0 to avoid freeing it.
2067 * variable.c (pop_variable_scope): Free the value of the variable.
2068 (try_variable_definition): For simple variables, use
2069 allocated_variable_expand() to avoid stomping on the variable
2070 buffer when we still need it for other things.
2072 * arscan.c: Modified to support AIX 4.3 big archives. The changes
2073 are based on information provided by Phil Adams
2074 <padams@austin.ibm.com>.
2076 1999-02-19 Paul D. Smith <psmith@gnu.org>
2078 * configure.in: Check to see if the GNU glob library is already
2079 installed on the system. If so, _don't_ add -I./glob to the
2080 compile line. Using the system glob code with the local headers
2082 Rewrite SCCS macros to use more autoconf facilities.
2084 * Makefile.am: Move -Iglob out of INCLUDES; it'll get added to
2085 CPPFLAGS by configure now.
2086 Automake 1.4 introduced its own "include" feature which conflicts
2087 with the maintMakefile stuff. A hack that seems to work is add a
2088 space before the include :-/.
2090 * build.template: Move -Iglob out of the compile line; it'll get
2091 added to CPPFLAGS by configure now.
2093 1999-02-16 Glenn D. Wolf <Glenn_Wolf@email.sps.mot.com>
2095 * arscan.c (ar_scan) [VMS]: Initialized VMS_member_date before
2096 calling lbr$get_index since if the archive is empty,
2097 VMS_get_member_info won't get called at all, and any leftover date
2098 will be used. This bug shows up if any member of any archive is
2099 made, followed by a dependency check on a different, empty
2102 1998-12-13 Martin Zinser <zinser@decus.decus.de>
2104 * config.h-vms [VMS]: Set _POSIX_C_SOURCE. Redefine the getopt
2105 functions so we don't use the broken VMS versions.
2106 * makefile.com [VMS]: Allow debugging.
2107 * dir.c (dir_setup_glob) [VMS]: Don't extern stat() on VMS.
2109 1998-11-30 Paul D. Smith <psmith@gnu.org>
2111 * signame.c (init_sig): Check the sizes of signals being set up to
2112 avoid array overwrites (if the system headers have problems).
2114 1998-11-17 Paul D. Smith <psmith@gnu.org>
2116 * read.c (record_files): Clean up some indentation.
2118 1998-11-08 Han-Wen Nienhuys <hanwen@cs.uu.nl>
2120 * rule.c (print_rule_data_base): Fix arguments to fatal() call.
2122 1998-10-13 Paul D. Smith <psmith@gnu.org>
2124 * job.c (start_job_command): If the command list resolves to no
2125 chars at all (e.g.: "foo:;$(empty)") then command_ptr is NULL;
2128 1998-10-12 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2130 * rule.c (print_rule_data_base): Ignore num_pattern_rules if it is
2133 1998-10-09 Paul D. Smith <psmith@gnu.org>
2135 * read.c (read_makefile): Allow non-empty lines to expand to the
2136 empty string after variable, etc., expansion, and be ignored.
2138 1998-09-21 Paul D. Smith <psmith@gnu.org>
2140 * job.c (construct_command_argv_internal): Only add COMMAND.COM
2141 "@echo off" line for non-UNIXy shells.
2143 1998-09-09 Paul D. Smith <psmith@gnu.org>
2145 * w32/subproc/sub_proc.c: Add in missing HAVE_MKS_SHELL tests.
2147 1998-09-04 Paul D. Smith <psmith@gnu.org>
2149 * read.c (read_makefile): If we hit the "missing separator" error,
2150 check for the common case of 8 spaces instead of a TAB and give an
2151 extra comment to help people out.
2153 1998-08-29 Paul Eggert <eggert@twinsun.com>
2155 * configure.in (AC_STRUCT_ST_MTIM_NSEC):
2156 Renamed from AC_STRUCT_ST_MTIM.
2158 * acinclude.m4 (AC_STRUCT_ST_MTIM_NSEC): Likewise.
2159 Port to UnixWare 2.1.2 and pedantic Solaris 2.6.
2161 * acconfig.h (ST_MTIM_NSEC):
2162 Renamed from HAVE_ST_MTIM, with a new meaning.
2164 * filedef.h (FILE_TIMESTAMP_FROM_S_AND_NS):
2165 Use new ST_MTIM_NSEC macro.
2167 1998-08-26 Paul D. Smith <psmith@gnu.org>
2169 * remake.c (check_dep): For any intermediate file, not just
2170 secondary ones, try implicit and default rules if no explicit
2171 rules are given. I'm not sure why this was restricted to
2172 secondary rules in the first place.
2174 1998-08-24 Paul D. Smith <psmith@gnu.org>
2176 * make.texinfo (Special Targets): Update documentation for
2177 .INTERMEDIATE: if used with no dependencies, then it does nothing;
2178 old docs said it marked all targets as intermediate, which it
2179 didn't... and which would be silly :).
2181 * implicit.c (pattern_search): If we find a dependency in our
2182 internal tables, make sure it's not marked intermediate before
2183 accepting it as a found_file[].
2185 1998-08-20 Paul D. Smith <psmith@gnu.org>
2187 * ar.c (ar_glob): Use existing alpha_compare() with qsort.
2188 (ar_glob_alphacompare): Remove it.
2190 Modify Paul Eggert's patch so we don't abandon older systems:
2192 * configure.in: Warn the user if neither waitpid() nor wait3() is
2195 * job.c (WAIT_NOHANG): Don't syntax error on ancient hosts.
2196 (child_handler, dead_children): Define these if WAIT_NOHANG is not
2198 (reap_children): Only track the dead_children count if no
2199 WAIT_NOHANG. Otherwise, it's a boolean.
2201 * main.c (main): Add back signal handler if no WAIT_NOHANG is
2202 available; only use default signal handler if it is.
2204 1998-08-20 Paul Eggert <eggert@twinsun.com>
2206 Install a more robust signal handling mechanism for systems which
2209 * job.c (WAIT_NOHANG): Define to a syntax error if our host
2210 is truly ancient; this should never happen.
2211 (child_handler, dead_children): Remove.
2212 (reap_children): Don't try to keep separate track of how many
2213 dead children we have, as this is too bug-prone.
2214 Just ask the OS instead.
2215 (vmsHandleChildTerm): Fix typo in error message; don't mention
2218 * main.c (main): Make sure we're not ignoring SIGCHLD/SIGCLD;
2219 do this early, before we could possibly create a subprocess.
2220 Just use the default behavior; don't have our own handler.
2222 1998-08-18 Eli Zaretskii <eliz@is.elta.co.il>
2224 * read.c (read_makefile) [__MSDOS__, WINDOWS32]: Add code to
2225 recognize library archive members when dealing with drive spec
2226 mess. Discovery and initial fix by George Racz <gracz@mincom.com>.
2228 1998-08-18 Paul D. Smith <psmith@gnu.org>
2230 * configure.in: Check for stdlib.h explicitly (some hosts have it
2231 but don't have STDC_HEADERS).
2232 * make.h: Use HAVE_STDLIB_H. Clean up some #defines.
2233 * config.ami: Re-compute based on new config.h.in contents.
2234 * config.h-vms: Ditto.
2235 * config.h.W32: Ditto.
2236 * configh.dos: Ditto.
2238 * dir.c (find_directory) [WINDOWS32]: Windows stat() fails if
2239 directory names end with `\' so strip it.
2241 1998-08-17 Paul D. Smith <psmith@gnu.org>
2243 * make.texinfo: Added copyright year to the printed copy. Removed
2244 the price from the manual. Change the top-level reference to
2245 running make to be "Invoking make" instead of "make Invocation",
2246 to comply with GNU doc standards.
2248 * make.h (__format__, __printf__): Added support for these in
2249 __attribute__ macro.
2250 (message, error, fatal): Use ... prototype form under __STDC__.
2251 Add __format__ attributes for printf-style functions.
2253 * configure.in (AC_FUNC_VPRINTF): Check for vprintf()/_doprnt().
2255 * misc.c (message, error, fatal): Add preprocessor stuff to enable
2256 creation of variable-argument functions with appropriate
2257 prototypes, that works with ANSI, pre-ANSI, varargs.h, stdarg.h,
2258 v*printf(), _doprnt(), or none of the above. Culled from GNU
2259 fileutils and slightly modified.
2260 (makefile_error, makefile_error): Removed (merged into error() and
2261 fatal(), respectively).
2262 * amiga.c: Use them.
2264 * arscan.c: Use them.
2265 * commands.c: Use them.
2266 * expand.c: Use them.
2268 * function.c: Use them.
2273 * remake.c: Use them.
2274 * remote-cstms.c: Use them.
2276 * variable.c: Use them.
2278 * make.h (struct floc): New structure to store file location
2280 * commands.h (struct commands): Use it.
2281 * variable.c (try_variable_definition): Use it.
2282 * commands.c: Use it.
2283 * default.c: Use it.
2285 * function.c: Use it.
2290 1998-08-16 Paul Eggert <eggert@twinsun.com>
2292 * filedef.h (FILE_TIMESTAMP_PRINT_LEN_BOUND): Add 10, for nanoseconds.
2294 1998-08-16 Paul Eggert <eggert@twinsun.com>
2296 * filedef.h (FLOOR_LOG2_SECONDS_PER_YEAR): New macro.
2297 (FILE_TIMESTAMP_PRINT_LEN_BOUND): Tighten bound, and try to
2298 make it easier to understand.
2300 1998-08-14 Paul D. Smith <psmith@gnu.org>
2302 * read.c (read_makefile): We've already unquoted any colon chars
2303 by the time we're done reading the targets, so arrange for
2304 parse_file_seq() on the target list to not do so again.
2306 1998-08-05 Paul D. Smith <psmith@gnu.org>
2308 * configure.in: Added glob/configure.in data. We'll have the glob
2309 code include the regular make config.h, rather than creating its
2312 * getloadavg.c (main): Change return type to int.
2314 1998-08-01 Paul Eggert <eggert@twinsun.com>
2316 * job.c (reap_children): Ignore unknown children.
2318 1998-07-31 Paul D. Smith <psmith@gnu.org>
2320 * make.h, filedef.h, dep.h, rule.h, commands.h, remake.c:
2321 Add prototypes for functions. Some prototypes needed to be moved
2322 in order to get #include order reasonable.
2324 1998-07-30 Paul D. Smith <psmith@gnu.org>
2326 * make.h: Added MIN/MAX.
2327 * filedef.h: Use them; remove FILE_TIMESTAMP_MIN.
2329 1998-07-30 Paul Eggert <eggert@twinsun.com>
2331 Add support for sub-second timestamp resolution on hosts that
2332 support it (just Solaris 2.6, so far).
2334 * acconfig.h (HAVE_ST_MTIM, uintmax_t): New undefs.
2335 * acinclude.m4 (jm_AC_HEADER_INTTYPES_H, AC_STRUCT_ST_MTIM,
2336 jm_AC_TYPE_UINTMAX_T): New defuns.
2337 * commands.c (delete_target): Convert file timestamp to
2338 seconds before comparing to archive timestamp. Extract mod
2339 time from struct stat using FILE_TIMESTAMP_STAT_MODTIME.
2340 * configure.in (C_STRUCT_ST_MTIM, jm_AC_TYPE_UINTMAX_T): Add.
2341 (AC_CHECK_LIB, AC_CHECK_FUNCS): Add clock_gettime.
2342 * file.c (snap_deps): Use FILE_TIMESTAMP, not time_t.
2343 (file_timestamp_now, file_timestamp_sprintf): New functions.
2344 (print_file): Print file timestamps as FILE_TIMESTAMP, not
2346 * filedef.h: Include <inttypes.h> if available and if HAVE_ST_MTIM.
2347 (FILE_TIMESTAMP, FILE_TIMESTAMP_STAT_MODTIME, FILE_TIMESTAMP_MIN,
2348 FILE_TIMESTAMPS_PER_S, FILE_TIMESTAMP_FROM_S_AND_NS,
2349 FILE_TIMESTAMP_DIV, FILE_TIMESTAMP_MOD, FILE_TIMESTAMP_S,
2350 FILE_TIMESTAMP_NS, FILE_TIMESTAMP_PRINT_LEN_BOUND): New macros.
2351 (file_timestamp_now, file_timestamp_sprintf): New decls.
2352 (struct file.last_mtime, f_mtime, file_mtime_1, NEW_MTIME):
2353 time_t -> FILE_TIMESTAMP.
2354 * implicit.c (pattern_search): Likewise.
2355 * vpath.c (vpath_search, selective_vpath_search): Likewise.
2356 * main.c (main): Likewise.
2357 * remake.c (check_dep, name_mtime, library_search, f_mtime): Likewise.
2358 (f_mtime): Use file_timestamp_now instead of `time'.
2359 Print file timestamp with file_timestamp_sprintf.
2360 * vpath.c (selective_vpath_search): Extract file time stamp from
2361 struct stat with FILE_TIMESTAMP_STAT_MODTIME.
2363 1998-07-28 Paul D. Smith <psmith@gnu.org>
2365 * Version 3.77 released.
2367 * dosbuild.bat: Change to DOS CRLF line terminators.
2369 * make-stds.texi: Update from latest version.
2371 * make.texinfo (Options Summary): Clarify that the -r option
2372 affects only rules, not builtin variables.
2374 1998-07-27 Paul D. Smith <psmith@gnu.org>
2376 * make.h: Make __attribute__ resolve to empty for non-GCC _and_
2379 * misc.c (log_access): Print UID/GID's as unsigned long int for
2380 maximum portability.
2382 * job.c (reap_children): Print PIDs as long int for maximum
2385 1998-07-24 Eli Zaretskii <eliz@is.elta.co.il>
2387 * Makefile.DOS (*_INSTALL, *_UNINSTALL): Replace `true' with `:'.
2389 1998-07-25 Paul D. Smith <psmith@gnu.org>
2391 * Version 3.76.94 released.
2393 1998-07-23 Paul D. Smith <psmith@gnu.org>
2395 * config.h.W32.template: Make sure all the #defines of macros here
2396 have a value (e.g., use ``#define HAVE_STRING_H 1'' instead of
2397 just ``#define HAVE_STRING_H''. Keeps the preprocessor happy in
2400 * make.h: Remove __attribute__((format...)) stuff; using it with
2401 un-prototyped functions causes older GCC's to fail.
2403 * Version 3.76.93 released.
2405 1998-07-22 Paul D. Smith <psmith@gnu.org>
2407 * file.c (print_file_data_base): Fix average calculation.
2409 1998-07-20 Paul D. Smith <psmith@gnu.org>
2411 * main.c (die): Postpone the chdir() until after
2412 remove_intermediates() so that intermediate targets with relative
2413 pathnames are removed properly.
2415 1998-07-17 Paul D. Smith <psmith@gnu.org>
2417 * filedef.h (struct file): New flag: did we print an error or not?
2419 * remake.c (no_rule_error): New function to print error messages,
2420 extraced from remake_file().
2422 * remake.c (remake_file): Invoke the new error print function.
2423 (update_file_1): Invoke the error print function if we see that we
2424 already tried this target and it failed, but that an error wasn't
2425 printed for it. This can happen if a file is included with
2426 -include or sinclude and couldn't be built, then later is also
2427 the dependency of another target. Without this change, make just
2430 1998-07-16 Paul D. Smith <psmith@gnu.org>
2432 * make.texinfo: Removed "beta" version designator.
2433 Updated ISBN for the next printing.
2435 1998-07-13 Paul Eggert <eggert@twinsun.com>
2437 * acinclude.m4: New AC_LFS macro to determine if special compiler
2438 flags are needed to allow access to large files (e.g., Solaris 2.6).
2439 * configure.in: Invoke it.
2441 1998-07-08 Eli Zaretskii <eliz@is.elta.co.il>
2443 * Makefile.DOS: track changes in Makefile.in.
2445 1998-07-07 Paul D. Smith <psmith@gnu.org>
2447 * remote-cstms.c (start_remote_job): Move gethostbyaddr() to the
2448 top so host is initialized early enough.
2450 * acinclude.m4: New file. Need some special autoconf macros to
2451 check for network libraries (-lsocket, -lnsl, etc.) when
2452 configuring Customs.
2454 * configure.in (make_try_customs): Invoke new network libs macro.
2456 1998-07-06 Paul D. Smith <psmith@gnu.org>
2458 * Version 3.76.92 released.
2460 * README.customs: Added to the distribution.
2462 * configure.in (make_try_customs): Rewrite to require an installed
2463 Customs library, rather than looking at the build directory.
2465 * Makefile.am (man_MANS): Install make.1.
2466 * make.1: Renamed from make.man.
2468 * make.texinfo (Bugs): New mailing list address for GNU make bug
2471 1998-07-02 Paul D. Smith <psmith@gnu.org>
2473 * Version 3.76.91 released.
2475 * default.c: Added default rule for new-style RCS master file
2476 storage; ``% :: RCS/%''.
2477 Added default rules for DOS-style C++ files with suffix ".cpp".
2478 They use the new LINK.cpp and COMPILE.cpp macros, which are set by
2479 default to be equal to LINK.cc and COMPILE.cc.
2481 1998-06-19 Eli Zaretskii <eliz@is.elta.co.il>
2483 * job.c (start_job_command): Reset execute_by_shell after an empty
2484 command was skipped.
2486 1998-06-09 Paul D. Smith <psmith@gnu.org>
2488 * main.c (main): Keep track of the temporary filename created when
2489 reading a makefile from stdin (-f-) and attempt to remove it
2490 as soon as we know we're not going to re-exec. If we are, add it
2491 to the exec'd make's cmd line with "-o" so the exec'd make doesn't
2492 try to rebuild it. We still have a hole: if make re-execs then
2493 the temporary file will never be removed. To fix this we'd need
2494 a brand new option that meant "really delete this".
2495 * AUTHORS, getopt.c, getopt1.c, getopt.h, main.c (print_version):
2496 Updated mailing addresses.
2498 1998-06-08 Paul D. Smith <psmith@gnu.org>
2500 * main.c (main): Andreas Luik <luik@isa.de> points out that the
2501 check for makefile :: rules with commands but no dependencies
2502 causing a loop terminates incorrectly.
2504 * maintMakefile: Make a template for README.DOS to update version
2507 1998-05-30 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2509 * remake.c (update_file_1): Don't free the memory for the
2510 dependency structure when dropping a circular dependency.
2512 1998-05-30 Eli Zaretskii <eliz@is.elta.co.il>
2514 * dir.c (file_exists_p, file_impossible_p, file_impossible)
2515 [__MSDOS__, WINDOWS32]: Retain trailing slash in "d:/", and make
2516 dirname of "d:foo" be "d:".
2518 1998-05-26 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2520 * read.c (read_makefile): Avoid running past EOS when scanning
2521 file name after `include'.
2523 1998-05-26 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2525 * make.texinfo (Flavors): Correct description of conditional
2526 assignment, which is not equivalent to ifndef.
2527 (Setting): Likewise.
2529 1998-05-24 Paul D. Smith <psmith@gnu.org>
2531 * arscan.c (ar_name_equal): strncmp() might be implemented as a
2532 macro, so don't put preprocessor conditions inside the arguments
2535 1998-05-23 Eli Zaretskii <eliz@is.elta.co.il>
2537 * read.c (read_makefile) [__MSDOS__, WINDOWS32]: Skip colons in
2538 drive specs when parsing targets, target-specific variables and
2539 static pattern rules. A colon can only be part of drive spec if
2540 it is after the first letter in a token.
2542 1998-05-22 Eli Zaretskii <eliz@is.elta.co.il>
2544 * remake.c (f_mtime) [__MSDOS__]: Allow up to 3 sec of skew before
2545 yelling bloody murder.
2547 * dosbuild.bat: Use -DINCLUDEDIR= and -DLIBDIR= where appropriate.
2549 * read.c (parse_file_seq): Combine the special file-handling code
2550 for WINDOWS32 and __MSDOS__ into a single snippet.
2551 (get_next_mword) [__MSDOS__, WINDOWS32]: Allow a word to include a
2552 colon as part of a drive spec.
2554 * job.c (batch_mode_shell) [__MSDOS__]: Declare.
2556 1998-05-20 Paul D. Smith <psmith@gnu.org>
2558 * Version 3.76.90 released.
2560 1998-05-19 Paul D. Smith <psmith@gnu.org>
2562 * make.texinfo (Make Errors): Added a new appendix describing
2563 common errors make might generate and how to resolve them (or at
2564 least more information on what they mean).
2566 * maintMakefile (NMAKEFILES): Use the new automake 1.3 feature
2567 to create a dependency file to construct Makefile.DOS, SMakefile,
2569 (.dep_segment): Generate the dependency fragment file.
2571 1998-05-14 Paul D. Smith <psmith@gnu.org>
2573 * make.man: Minor changes.
2575 1998-05-13 Paul D. Smith <psmith@gnu.org>
2577 * function.c (pattern_matches,expand_function): Change variables
2578 and types named "word" to something else, to avoid compilation
2579 problems on Cray C90 Unicos.
2580 * variable.h: Modify the function prototype.
2582 1998-05-11 Rob Tulloh <rob_tulloh@tivoli.com>
2584 * job.c (construct_command_argv_internal) [WINDOWS32]: Turn off
2585 echo when using a batch file, and make sure the command ends in a
2588 1998-05-03 Paul D. Smith <psmith@gnu.org>
2590 * configure.in (make_try_customs): Add some customs flags if the
2591 user configures custom support.
2593 * job.c, remote-cstms.c: Merge in changes for custom library.
2595 * remote-stub.c: Add option to stub start_remote_job_p().
2597 1998-05-01 Paul D. Smith <psmith@gnu.org>
2599 * remake.c (f_mtime): Install VPATH+ handling for archives; use
2600 the hname field instead of the name field, and rehash when
2603 1998-04-30 Paul D. Smith <psmith@gnu.org>
2605 * rule.c (print_rule_data_base): Print out any pattern-specific
2606 variable values into the rules database.
2608 * variable.c (print_variable_set): Make this variable extern, to
2609 be called by print_rule_data_base() for pattern-specific variables.
2611 * make.texinfo (Pattern-specific): Document pattern-specific
2614 1998-04-29 Paul D. Smith <psmith@gnu.org>
2616 * expand.c (variable_expand_for_file): Make static; its only
2617 called internally. Look up this target in the list of
2618 pattern-specific variables and insert the variable set into the
2619 queue to be searched.
2621 * filedef.h (struct file): Add a new field to hold the
2622 previously-found pattern-specific variable reference. Add a new
2623 flag to remember whether we already searched for this file.
2625 * rule.h (struct pattern_var): New structure for storing
2626 pattern-specific variable values. Define new function prototypes.
2628 * rule.c: New variables pattern_vars and last_pattern_var for
2629 storage and handling of pattern-specific variable values.
2630 (create_pattern_var): Create a new pattern-specific variable value
2632 (lookup_pattern_var): Try to match a target to one of the
2633 pattern-specific variable values.
2635 1998-04-22 Paul D. Smith <psmith@gnu.org>
2637 * make.texinfo (Target-specific): Document target-specific
2640 1998-04-21 Paul D. Smith <psmith@gnu.org>
2642 * variable.c (define_variable_in_set): Made globally visible.
2643 (lookup_variable_in_set): New function: like lookup_variable but
2644 look only in a specific variable set.
2645 (target_environment): Use lookup_variable_in_set() to get the
2646 correct export rules for a target-specific variable.
2647 (create_new_variable_set): Create a new variable set, and just
2648 return it without installing it anywhere.
2649 (push_new_variable_scope): Reimplement in terms of
2650 create_new_variable_set.
2652 * read.c (record_target_var): Like record_files, but instead of
2653 files create a target-specific variable value for each of the
2654 listed targets. Invoked from read_makefile() when the target line
2655 turns out to be a target-specific variable assignment.
2657 1998-04-19 Paul D. Smith <psmith@gnu.org>
2659 * read.c (read_makefile): Rewrite the entire target parsing
2660 section to implement target-specific variables. In particular, we
2661 cannot expand the entire line as soon as it's read in, since we
2662 may want to evaluate parts of it with different variable contexts
2663 active. Instead, start expanding from the beginning until we find
2664 the `:' (or `::'), then determine what kind of line this is and
2665 continue appropriately.
2667 * read.c (get_next_mword): New function to parse a makefile line
2668 by "words", considering an entire variable or function as one
2669 word. Return the type read in, along with its starting position
2671 (enum make_word_type): The types of words that are recognized by
2674 * variable.h (struct variable): Add a flag to specify a per-target
2677 * expand.c: Make variable_buffer global. We need this during the
2678 new parsing of the makefile.
2679 (variable_expand_string): New function. Like variable_expand(),
2680 but start at a specific point in the buffer, not the beginning.
2681 (variable_expand): Rewrite to simply call variable_expand_string().
2683 1998-04-13 Paul D. Smith <psmith@gnu.org>
2685 * remake.c (update_goal_chain): Allow the rebuilding makefiles
2686 step to use parallel jobs. Not sure why this was disabled:
2687 hopefully we won't find out :-/.
2689 1998-04-11 Paul D. Smith <psmith@gnu.org>
2691 * main.c (main): Set the CURDIR makefile variable.
2692 * make.texinfo (Recursion): Document it.
2694 1998-03-17 Paul D. Smith <psmith@gnu.org>
2696 * misc.c (makefile_fatal): If FILE is nil, invoke plain fatal().
2697 * variable.c (try_variable_definition): Use new feature.
2699 1998-03-10 Paul D. Smith <psmith@gnu.org>
2701 * main.c (main): Don't pass included, rebuilt makefiles to
2702 re-exec'd makes with -o. Reopens a possible loop, but it caused
2705 1998-03-02 Paul D. Smith <psmith@gnu.org>
2707 * variable.c (try_variable_definition): Implement ?=.
2708 * make.texinfo (Setting): Document it.
2710 1998-02-28 Eli Zaretskii <eliz@is.elta.co.il>
2712 * job.c (start_job_command): Reset execute_by_shell after an empty
2713 command, like ":", has been seen.
2715 Tue Oct 07 15:00:00 1997 Phil Brooks <phillip_brooks@hp.com>
2717 * make.h [WINDOWS32]: make case sensitivity configurable
2718 * dir.c [WINDOWS32]: make case sensitivity configurable
2719 * README.W32: Document case sensitivity
2720 * config.ami: Share case warping code with Windows
2722 Mon Oct 6 18:48:45 CDT 1997 Rob Tulloh <rob_tulloh@dev.tivoli.com>
2724 * w32/subproc/sub_proc.c: Added support for MKS toolkit shell
2725 (turn on HAVE_MKS_SHELL).
2726 * read.c [WINDOWS32]: Fixed a problem with multiple target rules
2727 reported by Gilbert Catipon (gcatipon@tibco.com). If multiple
2728 path tokens in a rule did not have drive letters, make would
2729 incorrectly concatenate the 2 tokens together.
2730 * main.c/variable.c [WINDOWS32]: changed SHELL detection code to
2731 follow what MSDOS did. In addition to watching for SHELL variable
2732 updates, make's main will attempt to default the value of SHELL
2733 before and after makefiles are parsed.
2734 * job.c/job.h [WINDOWS32]: The latest changes made to enable use
2735 of the GNUWIN32 shell from make could cause make to fail due to a
2736 concurrency condition between parent and child processes. Make
2737 now creates a batch file per job instead of trying to reuse the
2738 same singleton batch file.
2739 * job.c/job.h/function.c/config.h.W32 [WINDOWS32]: Renamed macro
2740 from HAVE_CYGNUS_GNUWIN32_TOOLS to BATCH_MODE_ONLY_SHELL. Reworked
2741 logic to reduce complexity. WINDOWS32 now uses the unixy_shell
2742 variable to detect Bourne-shell compatible environments. There is
2743 also a batch_mode_shell variable that determines whether not
2744 command lines should be executed via script files. A WINDOWS32
2745 system with no sh.exe installed would have unixy_shell set to
2746 FALSE and batch_mode_shell set to TRUE. If you have a unixy shell
2747 that does not behave well when invoking things via 'sh -c xxx',
2748 you may want to turn on BATCH_MODE_ONLY_SHELL and see if things
2750 * NMakefile: Added /D DEBUG to debug build flags so that unhandled
2751 exceptions could be debugged.
2753 Mon Oct 6 00:04:25 1997 Rob Tulloh <rob_tulloh@dev.tivoli.com>
2755 * main.c [WINDOWS32]: The function define_variable() does not
2756 handle NULL. Test before calling it to set Path.
2757 * main.c [WINDOWS32]: Search Path again after makefiles have been
2758 parsed to detect sh.exe.
2759 * job.c [WINDOWS32]: Added support for Cygnus GNU WIN32 tools.
2760 To use, turn on HAVE_CYGNUS_GNUWIN32_TOOLS in config.h.W32.
2761 * config.h.W32: Added HAVE_CYGNUS_GNUWIN32_TOOLS macro.
2763 Sun Oct 5 22:43:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
2765 * glob/glob.c (glob_in_dir) [VMS]: Globbing shouldn't be
2767 * job.c (child_execute_job) [VMS]: Use a VMS .com file if the
2768 command contains a newline (e.g. from a define/enddef block).
2769 * vmsify.c (vmsify): Return relative pathnames wherever possible.
2770 * vmsify.c (vmsify): An input string like "../.." returns "[--]".
2772 Wed Oct 1 15:45:09 1997 Rob Tulloh <rob_tulloh@tivoli.com>
2774 * NMakefile: Changed nmake to $(MAKE).
2775 * subproc.bat: Take the make command name from the command
2776 line. If no command name was given, default to nmake.
2777 * job.c [MSDOS, WINDOWS32]: Fix memory stomp: temporary file names
2778 are now always created in heap memory.
2779 * w32/subproc/sub_proc.c: New implementation of make_command_line()
2780 which is more compatible with different Bourne shell implementations.
2781 Deleted the now obsolete fix_command_line() function.
2782 * main.c [WINDOWS32]: Any arbitrary spelling of Path can be
2783 detected. Make will ensure that the special spelling `Path' is
2784 inserted into the environment when the path variable is propagated
2785 within itself and to make's children.
2786 * main.c [WINDOWS32]: Detection of sh.exe was occurring too
2787 soon. The 2nd check for the existence of sh.exe must come after
2788 the call to read_all_makefiles().
2790 Fri Sep 26 01:14:18 1997 <zinser@axp602.gsi.de>
2792 * makefile.com [VMS]: Fixed definition of sys.
2793 * readme.vms: Comments on what's changed lately.
2795 Fri Sep 26 01:14:18 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
2797 * read.c (read_all_makefiles): Allow make to find files named
2798 "MAKEFILE" with no extension on VMS.
2799 * file.c (lookup_file): Lowercase filenames on VMS.
2801 1997-09-29 Paul D. Smith <psmith@baynetworks.com>
2803 * read.c (read_makefile): Reworked target detection again; the old
2804 version had an obscure quirk.
2806 Fri Sep 19 09:20:49 1997 Paul D. Smith <psmith@baynetworks.com>
2808 * Version 3.76.1 released.
2810 * Makefile.am: Add loadavg files to clean rules.
2812 * configure.in (AC_OUTPUT): Remove stamp-config; no longer needed.
2813 * Makefile.ami (distclean): Ditto.
2814 * SMakefile (distclean): Ditto.
2816 * main.c (main): Arg count should be int, not char! Major braino.
2818 Tue Sep 16 10:18:22 1997 Paul D. Smith <psmith@baynetworks.com>
2820 * Version 3.76 released.
2822 Tue Sep 2 10:07:39 1997 Paul D. Smith <psmith@baynetworks.com>
2824 * function.c (expand_function): When processing $(shell...)
2825 translate a CRLF (\r\n) sequence as well as a newline (\n) to a
2826 space. Also remove an ending \r\n sequence.
2827 * make.texinfo (Shell Function): Document it.
2829 Fri Aug 29 12:59:06 1997 Rob Tulloh <rob_tulloh@tivoli.com>
2831 * w32/pathstuff.c (convert_Path_to_windows32): Fix problem where
2832 paths which contain single character entries like `.' are not
2835 * README.W32: Document path handling issues on Windows systems.
2837 Fri Aug 29 02:01:27 1997 Paul D. Smith <psmith@baynetworks.com>
2841 Thu Aug 28 19:39:06 1997 Rob Tulloh <rob_tulloh@tivoli.com>
2843 * job.c (exec_command) [WINDOWS32]: If exec_command() is invoked
2844 from main() to re-exec make, the call to execvp() would
2845 incorrectly return control to parent shell before the exec'ed
2846 command could run to completion. I believe this is a feature of
2847 the way that execvp() is implemented on top of WINDOWS32 APIs. To
2848 alleviate the problem, use the supplied process launch function in
2849 the sub_proc library and suspend the parent process until the
2850 child process has run. When the child exits, exit the parent make
2851 with the exit code of the child make.
2853 Thu Aug 28 17:04:47 1997 Paul D. Smith <psmith@baynetworks.com>
2855 * Makefile.DOS.template (distdir): Fix a line that got wrapped in
2858 * Makefile.am (loadavg): Give the necessary cmdline options when
2861 * configure.in: Check for pstat_getdynamic for getloadvg on HP.
2863 * job.c (start_job_command) [VMS, _AMIGA]: Don't perform empty
2864 command optimization on these systems; it doesn't make sense.
2866 Wed Aug 27 17:09:32 1997 Paul D. Smith <psmith@baynetworks.com>
2870 Tue Aug 26 11:59:15 1997 Paul D. Smith <psmith@baynetworks.com>
2872 * main.c (print_version): Add '97 to copyright years.
2874 * read.c (do_define): Check the length of the array before looking
2875 at a particular offset.
2877 * job.c (construct_command_argv_internal): Examine the last byte
2878 of the previous arg, not the byte after that.
2880 Sat Aug 23 1997 Eli Zaretskii <eliz@is.elta.co.il>
2882 * Makefile.DOS.template: New file (converted to Makefile.DOS in
2885 * configure.bat: Rewrite to use Makefile.DOS instead of editing
2886 Makefile.in. Add support for building from outside of the source
2887 directory. Fail if the environment block is too small.
2889 * configh.dos: Use <sys/config.h>.
2891 * README.DOS: Update instructions.
2893 Fri Aug 22 1997 Eli Zaretskii <eliz@is.elta.co.il>
2895 * job.c (start_job_command) [__MSDOS__]: Don't test for "/bin/sh"
2896 literally, use value of unixy_shell instead.
2898 * filedef.h (NEW_MTIME): Use 1 less than maximum possible value if
2901 Sat Aug 16 00:56:15 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
2903 * vmsify.c (vmsify, case 11): After translating `..' elements, set
2904 nstate to N_OPEN if there are still more elements to process.
2905 (vmsify, case 2): After translating `foo/bar' up to the slash,
2906 set nstate to N_OPEN, not N_DOT.
2908 Fri Aug 8 15:18:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
2910 * dir.c (vmsstat_dir): Leave name unmodified on exit.
2911 * make.h (PATH_SEPARATOR_CHAR): Set to comma for VMS.
2912 * vpath.c: Fix comments to refer to path separator, not colon.
2913 (selective_vpath_search): Avoid Unixy slash handling for VMS.
2915 Thu Aug 7 22:24:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
2917 * ar.c [VMS]: Don't declare ar_member_touch.
2918 Delete VMS version of ar_member_date.
2919 Enable non-VMS versions of ar_member_date and ar_member_date_1 for
2921 * arscan.c (VMS_get_member_info): New function.
2922 (ar_scan): Provide version for VMS systems.
2923 (ar_name_equal): Simply compare name and mem on VMS systems.
2924 Don't define ar_member_pos or ar_member_touch on VMS systems.
2926 * config.h-vms (pid_t, uid_t): Don't define.
2928 * remake.c: Delete declaration of vms_stat.
2929 (name_mtime): Don't call vms_stat.
2930 (f_mtime) [VMS]: Funky time value manipulation no longer necessary.
2932 * file.c (print_file): [VMS] Use ctime, not cvt_time.
2934 * make.h [VMS]: Don't define POSIX.
2936 * makefile.com (filelist): Include ar and arscan.
2937 Also include them in the link commands.
2938 Don't define NO_ARCHIVES in cc command.
2940 * makefile.vms (ARCHIVES, ARCHIVES_SRC): Uncomment.
2941 (defines): Delete NO_ARCHIVES from list.
2943 * remake.c (f_mtime): Only check to see if intermediate file is
2944 out of date if it also exists (i.e., mtime != (time_t) -1).
2946 * vmsdir.h (u_long, u_short): Skip typedefs if using DEC C.
2948 Fri Jun 20 23:02:07 1997 Rob Tulloh <rob_tulloh@tivoli.com>
2950 * w32/subproc/sub_proc.c: Get W32 sub_proc to handle shebang
2951 (#!/bin/sh) in script files correctly.
2952 Fixed a couple of memory leaks.
2953 Fixed search order in find_file() (w32/subproc/sub_proc.c) so that
2954 files with extensions are preferred over files without extensions.
2955 Added search for files with .cmd extension too.
2956 * w32/subproc/misc.c (arr2envblk): Fixed memory leak.
2958 Mon Aug 18 09:41:08 1997 Paul D. Smith <psmith@baynetworks.com>
2962 Fri Aug 15 13:50:54 1997 Paul D. Smith <psmith@baynetworks.com>
2964 * read.c (do_define): Remember to count the newline after the endef.
2966 Thu Aug 14 23:14:37 1997 Paul D. Smith <psmith@baynetworks.com>
2968 * many: Rewrote builds to use Automake 1.2.
2970 * AUTHORS: New file.
2971 * maintMakefile: Contains maintainer-only make snippets.
2972 * GNUmakefile: This now only runs the initial auto* tools.
2973 * COPYING,texinfo.tex,mkinstalldirs,install-sh: Removed (obtained
2974 automatically by automake).
2975 * compatMakefile: Removed (not needed anymore).
2976 * README,build.sh.in: Removed (built from templates).
2977 * config.h.in,Makefile.in: Removed (built by tools).
2979 Wed Aug 13 02:22:08 1997 Paul D. Smith <psmith@baynetworks.com>
2981 * make.texinfo: Updates for DOS/Windows information (Eli Zaretskii)
2982 * README,README.DOS: Ditto.
2984 * remake.c (update_file_1,f_mtime): Fix GPATH handling.
2985 * vpath.c (gpath_search): Ditto.
2987 * file.c (rename_file): New function: rehash, but also rename to
2989 * filedef.h: Declare it.
2991 * variable.c (merge_variable_set_lists): Remove free() of variable
2992 set; since various files can share variable sets we don't want to
2995 Tue Aug 12 10:51:54 1997 Paul D. Smith <psmith@baynetworks.com>
2997 * configure.in: Require autoconf 2.12
2999 * make.texinfo: Replace all "cd subdir; $(MAKE)" examples with a
3000 more stylistically correct "cd subdir && $(MAKE)".
3002 * main.c: Global variable `clock_skew_detected' defined.
3003 (main): Print final warning if it's set.
3004 * make.h: Declare it.
3005 * remake.c (f_mtime): Test and set it.
3007 * job.c (start_job_command): Add special optimizations for
3008 "do-nothing" rules, containing just the shell no-op ":". This is
3009 useful for timestamp files and can make a real difference if you
3010 have a lot of them (requested by Fergus Henderson <fjh@cs.mu.oz.au>).
3012 * configure.in,Makefile.in: Rewrote to use the new autoconf
3013 program_transform_name macro.
3015 * function.c (function_strip): Strip newlines as well as spaces
3018 Fri Jun 6 23:41:04 1997 Rob Tulloh <rob_tulloh@tivoli.com>
3020 * remake.c (f_mtime): Datestamps on FAT-based files are rounded to
3021 even seconds when stored, so if the date check fails on WINDOWS32
3022 systems, see if this "off-by-one" error is the problem.
3024 * General: If your TZ environment variable is not set correctly
3025 then all your timestamps will be off by hours. So, set it!
3027 Mon Apr 7 02:06:22 1997 Paul D. Smith <psmith@baynetworks.com>
3031 * compatMakefile (objs): Define & use the $(GLOB) variable so
3032 that it's removed correctly from build.sh.in when it's built.
3034 * configure.in: On Solaris we can use the kstat_*() functions to
3035 get load averages without needing special permissions. Add a
3036 check for -lkstat to see if we have it.
3038 * getloadavg.c (getloadavg): Use HAVE_LIBKSTAT instead of SUN5 as
3039 the test to enable kstat_open(), etc. processing.
3041 Fri Apr 4 20:21:18 1997 Eli Zaretskii <eliz@is.elta.co.il>
3043 * <lots>: Fixes to work in the DJGPP DOS environment.
3045 Mon Mar 31 02:42:52 1997 Paul D. Smith <psmith@baynetworks.com>
3047 * function.c (expand_function): Added new function $(wordlist).
3049 * make.texinfo (Filename Functions): Document $(wordlist) function.
3051 * vpath.c (build_vpath_lists): Construct the GPATH variable
3052 information in the same manner we used to construct VPATH.
3053 (gpath_search): New function to search GPATH.
3055 * make.h: Declare the new function.
3057 * remake.c (update_file_1): Call it, and keep VPATH if it's found.
3059 * make.texinfo (Search Algorithm): Document GPATH variable.
3061 Sun Mar 30 20:57:16 1997 Paul D. Smith <psmith@baynetworks.com>
3063 * main.c (handle_non_switch_argument): Defined the MAKECMDGOALS
3064 variable to contain the user options passed in on the cmd line.
3066 * make.texinfo (Goals): Document MAKECMDGOALS variable.
3068 * remake.c (f_mtime): Print a warning if we detect a clock skew
3069 error, rather than failing.
3071 * main.c (main): If we rebuild any makefiles and need to re-exec,
3072 add "-o<mkfile>" options for each makefile rebuilt to avoid
3075 Fri Mar 28 15:26:05 1997 Paul D. Smith <psmith@baynetworks.com>
3077 * job.c (construct_command_argv_internal): Track whether the last
3078 arg in the cmd string was empty or not (Roland).
3079 (construct_command_argv_internal): If the shell line is empty,
3080 don't do anything (Roland).
3082 * glob/glob.h,glob/glob.c,glob/fnmatch.c,glob/fnmatch.h: Install
3083 the latest changes from the GLIBC version of glob (Ulrich Drepper).
3085 * getloadavg.c,make-stds.texi: New version (Roland).
3087 * (ALL): Changed WIN32 to W32 or WINDOWS32 (RMS).
3089 Mon Mar 24 15:33:34 1997 Rob Tulloh <rob_tulloh@tivoli.com>
3091 * README.W32: Describe preliminary FAT support.
3093 * build_w32.bat: Use a variable for the final exe name.
3095 * dir.c (find_directory): W32: Find the filesystem type.
3096 (dir_contents_file_exists_p): W32: for FAT filesystems, always
3097 rehash since FAT doesn't change directory mtime on change.
3099 * main.c (handle_runtime_exceptions): W32: Add an
3100 UnhandledExceptionFilter so that when make bombs due to ^C or a
3101 bug, it won't cause a GUI requestor to pop up unless debug is
3105 Mon Mar 24 00:57:34 1997 Paul D. Smith <psmith@baynetworks.com>
3107 * configure.in, config.h.in, config.ami, config.h-vms, config.h.w32:
3108 Check for memmove() function.
3110 * make.h (bcopy): If memmove() available, define bcopy() to use it.
3111 Otherwise just use bcopy(). Don't use memcpy(); it's not guaranteed
3112 to handle overlapping moves.
3114 * read.c (read_makefile): Fix some uninitialized memory reads
3115 (reported by Purify).
3117 * job.c (construct_command_argv_internal): Use bcopy() not
3118 strcpy(); strcpy() isn't guaranteed to handle overlapping moves.
3120 * Makefile.in: Change install-info option ``--infodir'' to
3121 ``--info-dir'' for use with new texinfo.
3123 * function.c (expand_function): $(basename) and $(suffix) should
3124 only search for suffixes as far back as the last directory (e.g.,
3125 only the final filename in the path).
3127 Sun Mar 23 00:13:05 1997 Paul D. Smith <psmith@baynetworks.com>
3129 * make.texinfo: Add @dircategory/@direntry information.
3130 (Top): Remove previous reference to (dir) (from RMS).
3131 (Static Usage): Add "all:" rule to example.
3132 (Automatic Dependencies): fix .d file creation example.
3134 * Install VPATH+ patch:
3136 * filedef.h (struct file): Add in hname field to store the hashed
3137 filename, and a flag to remember if we're using the vpath filename
3138 or not. Renamed a few functions for more clarity.
3140 * file.c (lookup_file,enter_file,file_hash_enter): Store filenames
3141 in the hash table based on their "hash name". We can change this
3142 while keeping the original target in "name".
3143 (rehash_file): Renamed from "rename_file" to be more accurate.
3144 Changes the hash name, but not the target name.
3146 * remake.c (update_file_1): Modify -d output for more detailed
3147 VPATH info. If we don't need to rebuild, use the VPATH name.
3148 (f_mtime): Don't search for vpath if we're ignoring it. Call
3149 renamed function rehash_file. Call name_mtime instead of
3150 file_mtime, to avoid infinite recursion since the file wasn't
3153 * implicit.c (pattern_search): if we find an implicit file in
3154 VPATH, save the original name not the VPATH name.
3156 * make.texinfo (Directory Search): Add a section on the new VPATH
3159 Sun Dec 1 18:36:04 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3161 * dir.c (file_exists_p, file_impossible, file_impossible_p): If
3162 dirname is empty replace it by the name of the root directory.
3163 Note that this doesn't work (yet) for W32, Amiga, or VMS.
3165 Tue Oct 08 13:57:03 1996 Rob Tulloh <tulloh@tivoli.com>
3167 * main.c (main): W32 bug fix for PATH vars.
3169 Tue Sep 17 1996 Paul Eggert <eggert@twinsun.com>
3171 * filedef.h (NEW_MTIME): Don't assume that time_t is a signed
3174 * make.h: (CHAR_BIT, INTEGER_TYPE_SIGNED, INTEGER_TYPE_MAXIMUM,
3175 INTEGER_TYPE_MINIMUM): New macros.
3177 Tue Aug 27 01:06:34 1996 Roland McGrath <roland@baalperazim.frob.com>
3179 * Version 3.75 released.
3181 * main.c (print_version): Print out bug-reporting address.
3183 Mon Aug 26 19:55:47 1996 Roland McGrath <roland@baalperazim.frob.com>
3185 * main.c (print_data_base): Don't declare ctime; headers do it for us
3188 Sun Jul 28 15:37:09 1996 Rob Tulloh (tulloh@tivoli.com)
3190 * w32/pathstuff.c: Turned convert_vpath_to_w32() into a
3191 real function. This was done so that VPATH could contain
3192 white space separated pathnames. Please note that directory
3193 paths (in VPATH/vpath context) containing white space are not
3194 supported (just as they are not under Unix). See README.W32
3197 * w32/include/pathstuff.h: Added prototype for the new
3198 function convert_vpath_to_w32. Deleted macro for same.
3200 * README.W32: Added some notes about why I chose not to try
3201 and support pathnames which contain white space and some
3202 workaround suggestions.
3204 Thu Jul 25 19:53:31 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3206 * GNUmakefile (mkdep-nolib): Use -MM option unconditionally.
3210 * main.c (define_makeflags): Back up P to point at null terminator
3211 when killing final space and dash before setting MFLAGS.
3213 From Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>:
3214 * dir.c [__MSDOS__ && DJGPP > 1]: Include <libc/dosio.h> and defin
3215 `__opendir_flags' initialized to 0.
3216 (dosify) [__MSDOS__ && DJGPP > 1]: Return name unchanged if _USE_LFN.
3217 (find_directory) [__MSDOS__ && DJGPP > 1]: If _USE_LGN, set
3218 __opendir_flags to __OPENDIR_PRESERVE_CASE.
3220 * vmsfunctions.c (vms_stat): `sys$dassgn (DevChan);' added by kkaempf.
3222 * GNUmakefile (w32files): Add NMakefile.
3224 * NMakefile (LDFLAGS_debug): Value fixed by tulloh.
3226 Sat Jul 20 12:32:10 1996 Klaus Kämpf (kkaempf@progis.de)
3228 * remake.c (f_mtime) [VMS]: Add missing `if' conditional for future
3230 * config.h-vms, makefile.vms, readme.vms, vmsify.c: Update address.
3232 Sat Jul 20 05:29:43 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3234 * configure.in: Require autoconf 2.10 or later.
3236 Fri Jul 19 16:57:27 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3240 * GNUmakefile (w32files): New variable.
3241 (distfiles): Add it.
3242 * w32: Updated by Rob Tulloh.
3244 * makefile.vms (LOADLIBES): Fix typo.
3246 Sun Jul 14 12:59:27 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3248 * job.c (construct_command_argv_internal): Fix up #else, #endifs.
3250 * configh.dos: Define HAVE_DIRENT_H instead of DIRENT.
3252 * remake.c (f_mtime): Don't compare MTIME to NOW if MTIME == -1.
3256 * main.c (main): Exit with status 2 when update_goal_chain returns 2.
3258 Sat Jun 22 14:56:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3260 * configure.in: Don't check for _sys_siglist.
3261 * make.h [HAVE__SYS_SIGLIST]: Don't test this; just punt if there is
3262 no strsignal or sys_siglist.
3264 * read.c (conditional_line): Strip ws in `ifeq (a , b)' so it is the
3265 same as `ifeq (a, b)'.
3267 * job.c (reap_children): Don't call die if handling_fatal_signal.
3269 * file.c (file_hash_enter): Allow renaming :: to : when latter is
3270 non-target, or : to :: when former is non-target.
3272 * job.c (start_job_command): Call block_sigs.
3273 (block_sigs): New function, broken out of start_job_command.
3274 (reap_children): Block fatal signals around removing dead child from
3275 chain and adjusting job_slots_used.
3276 * job.h: Declare block_sigs.
3278 * remote-stub.c (remote_setup, remote_cleanup): New (empty) functions.
3279 * main.c (main): Call remote_setup.
3280 (die): Call remote_cleanup.
3282 * job.c (reap_children): Quiescent value of shell_function_pid is
3285 * main.c (print_version): Add 96 to copyright years.
3287 Sat Jun 15 20:30:01 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3289 * read.c (find_char_unquote): Avoid calling strlen on every call
3290 just to throw away the value most of the time.
3292 Sun Jun 2 12:24:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3294 * main.c (decode_env_switches): Prepend '-' to ARGV[1] if it contains
3295 no '=', regardless of ARGC.
3296 (define_makeflags): Elide leading '-' from MAKEFLAGS value if first
3297 word is short option, regardless of WORDS.
3299 Wed May 22 17:24:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3301 * makefile.vms: Set LOADLIBES.
3302 * makefile.com (link_using_library): Fix typo.
3304 Wed May 15 17:37:26 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3306 * dir.c (print_dir_data_base): Use %ld dev and ino and cast them to
3309 Wed May 15 10:14:14 CDT 1996 Rob Tulloh <tulloh@tivoli.com>
3311 * dir.c: W32 does not support inode. For now, fully qualified
3312 pathname along with st_mtime will be keys for files.
3313 Fixed problem where vpath can be confused when files
3314 are added to a directory after the directory has already been
3315 read in. The code now attempts to reread the directory if it
3316 discovers that the datestamp on the directory has changed since
3317 it was cached by make. This problem only seems to occur on W32
3318 right now so it is lumped under port #ifdef WINDOWS32.
3320 * function.c: W32: call subproc library (CreateProcess()) instead of
3323 * job.c: W32: Added the code to do fork/exec/waitpid style processing
3324 on W32 systems via calls to subproc library.
3326 * main.c: W32: Several things added here. First, there is code
3327 for dealing with PATH and SHELL defaults. Make tries to figure
3328 out if the user has %PATH% set in the environment and sets it to
3329 %Path% if it is not set already. Make also looks to see if sh.exe
3330 is anywhere to be found. Code path through job.c will change
3331 based on existence of a working Bourne shell. The checking for
3332 default shell is done twice: once before makefiles are read in
3333 and again after. Fall back to MSDOS style execution mode if no sh.exe
3334 is found. Also added some debug support that allows user to pause make
3335 with -D switch and attach a debugger. This is especially useful for
3336 debugging recursive calls to make where problems appear only in the
3339 * make.h: W32: A few macros and header files for W32 support.
3341 * misc.c: W32: Added a function end_of_token_w32() to assist
3342 in parsing code in read.c.
3344 * read.c: W32: Fixes similar to MSDOS which allow colon to
3345 appear in filenames. Use of colon in filenames would otherwise
3348 * remake.c: W32: Added include of io.h to eliminate compiler
3349 warnings. Added some code to default LIBDIR if it is not set
3352 * variable.c: W32: Added support for detecting Path/PATH
3353 and converting them to semicolon separated lists for make's
3354 internal use. New function sync_Path_environment()
3355 which is called in job.c and function.c before creating a new
3356 process. Caller must set Path in environment since we don't
3357 have fork() to do this for us.
3359 * vpath.c: W32: Added detection for filenames containing
3360 forward or backward slashes.
3362 * NMakefile: W32: Visual C compatible makefile for use with nmake.
3363 Use this to build GNU make the first time on Windows NT or Windows 95.
3365 * README.W32: W32: Contains some helpful notes.
3367 * build_w32.bat: W32: If you don't like nmake, use this the first
3368 time you build GNU make on Windows NT or Windows 95.
3370 * config.h.W32: W32 version of config.h
3372 * subproc.bat: W32: A bat file used to build the
3373 subproc library from the top-level NMakefile. Needed because
3374 WIndows 95 (nmake) doesn't allow you to cd in a make rule.
3376 * w32/include/dirent.h
3377 * w32/compat/dirent.c: W32: opendir, readdir, closedir, etc.
3379 * w32/include/pathstuff.h: W32: used by files needed functions
3380 defined in pathstuff.c (prototypes).
3382 * w32/include/sub_proc.h: W32: prototypes for subproc.lib functions.
3384 * w32/include/w32err.h: W32: prototypes for w32err.c.
3386 * w32/pathstuff.c: W32: File and Path/Path conversion functions.
3388 * w32/subproc/build.bat: W32: build script for subproc library
3389 if you don't wish to use nmake.
3391 * w32/subproc/NMakefile: W32: Visual C compatible makefile for use
3392 with nmake. Used to build subproc library.
3394 * w32/subproc/misc.c: W32: subproc library support code
3395 * w32/subproc/proc.h: W32: subproc library support code
3396 * w32/subproc/sub_proc.c: W32: subproc library source code
3397 * w32/subproc/w32err.c: W32: subproc library support code
3399 Mon May 13 14:37:42 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3403 * GNUmakefile (vmsfiles): Fix typo.
3405 * GNUmakefile (amigafiles): Add amiga.h.
3407 Sun May 12 19:19:43 1996 Aaron Digulla <digulla@fh-konstanz.de>
3409 * dir.c: New function: amigafy() to fold filenames
3410 Changes HASH() to HASHI() to fold filenames on Amiga.
3411 Stringcompares use strieq() instead of streq()
3412 The current directory on Amiga is "" instead of "."
3415 * amiga.c: New function wildcard_expansion(). Allows to use
3416 Amiga wildcards with $(wildcard )
3418 * amiga.h: New file. Prototypes for amiga.c
3420 * function.c: Use special function wildcard_expansion() for
3421 $(wildcard ) to allow Amiga wildcards
3422 The current directory on Amiga is "" instead of "."
3424 * job.c: No Pipes on Amiga, too
3425 (load_too_high) Neither on Amiga
3426 ENV variable on Amiga are in a special directory and are not
3427 passed as third argument to main().
3429 * job.h: No envp on Amiga
3431 * make.h: Added HASHI(). This is the same as HASH() but converts
3432 it's second parameter to lowercase on Amiga to fold filenames.
3434 * main.c: (main), variable.c Changed handling of ENV-vars. Make
3435 stores now the names of the variables only and reads their contents
3436 when they are accessed to reflect that these variables are really
3437 global (ie. they CAN change WHILE make runs !) This handling is
3438 made in lookup_variable()
3440 * Makefile.ami: renamed file.h to filedep.h
3441 Updated dependencies
3443 * read.c: "find_semicolon" is declared as static but never defined.
3444 No difference between Makefile and makefile on Amiga; added
3445 SMakefile to *default_makefiles[].
3446 (read_makefile) SAS/C want's two_colon and pattern_percent be set
3448 The current directory on Amiga is "" instead of "."
3449 Strange #endif moved.
3451 * README.Amiga: updated feature list
3453 * SMakefile: Updated dependencies
3455 * variable.c: Handling of ENV variable happens inside lookup_variable()
3457 Sat May 11 17:58:32 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3459 * variable.c (try_variable_definition): Count parens in lhs variable
3460 refs to avoid seeing =/:=/+= inside a ref.
3462 Thu May 9 13:54:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3464 * commands.c (fatal_error_signal) [SIGQUIT]: Make SIGQUIT check
3467 * main.c (main): Use unsigned for fread return.
3469 * read.c (parse_file_seq): Use `int' for char arg to avoid widening
3471 * dep.h: Fix prototype.
3473 * function.c (expand_function) [_AMIGA]: Fix some typos.
3474 (patsubst_expand): Make len vars unsigned.
3476 * GNUmakefile (globfiles): Add AmigaDOS support files.
3477 (distfiles): Add $(amigafiles).
3478 (amigafiles): New variable.
3480 Thu Nov 7 10:18:16 1995 Aaron Digulla <digulla@fh-konstanz.de>
3482 * Added Amiga support in commands.c, dir.c, function.c,
3483 job.c, main.c, make.h, read.c, remake.c
3484 * commands.c: Amiga has neither SIGHUP nor SIGQUIT
3485 * dir.c: Amiga has filenames with Upper- and Lowercase,
3486 but "FileName" is the same as "filename". Added strieq()
3487 which is use to compare filenames. This is like streq()
3488 on all other systems. Also there is no such thing as
3490 * function.c: On Amiga, the environment is not passed as envp,
3491 there are no pipes and Amiga can't fork. Use my own function
3492 to create a new child.
3493 * job.c: default_shell is "" (The system automatically chooses
3494 a shell for me). Have to use the same workaround as MSDOS for
3495 running batch commands. Added HAVE_SYS_PARAM_H. NOFILE isn't
3496 known on Amiga. Cloned code to run children from MSDOS. Own
3497 version of sh_chars[] and sh_cmds[]. No dup2() or dup() on Amiga.
3498 * main.c: Force stack to 20000 bytes. Read environment from ENV:
3499 device. On Amiga, exec_command() does return, so I exit()
3501 * make.h: Added strieq() to compare filenames.
3502 * read.c: Amiga needs special extension to have passwd. Only
3503 one include-dir. "Makefile" and "makefile" are the same.
3504 Added "SMakefile". Added special code to handle device names (xxx:)
3506 * remake.c: Only one lib-dir. Amiga link-libs are named "%s.lib"
3507 instead of "lib%s.a".
3508 * main.c, rule.c, variable.c: Avoid floats at all costs.
3509 * vpath.c: Get rid of as many alloca()s as possible.
3511 Thu May 9 13:20:43 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3513 * read.c (read_makefile): Grok `sinclude' as alias for `-include'.
3515 Wed Mar 20 09:52:27 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
3517 * GNUmakefile (vmsfiles): New variable.
3518 (distfiles): Include $(vmsfiles).
3520 Tue Mar 19 20:21:34 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
3522 Merged VMS port from Klaus Kaempf <kkaempf@didymus.rmi.de>.
3523 * make.h (PARAMS): New macro.
3524 * config.h-vms: New file.
3525 * makefile.com: New file.
3526 * makefile.vms: New file.
3527 * readme.vms: New file.
3528 * vmsdir.h: New file.
3529 * vmsfunctions.c: New file.
3530 * vmsify.c: New file.
3531 * file.h: Renamed to filedef.h to avoid conflict with VMS system hdr.
3532 * ar.c: Added prototypes and changes for VMS.
3533 * commands.c: Likewise.
3534 * commands.h: Likewise.
3535 * default.c: Likewise.
3538 * expand.c: Likewise.
3540 * function.c: Likewise.
3541 * implicit.c: Likewise.
3548 * remake.c: Likewise.
3549 * remote-stub.c: Likewise.
3552 * variable.c: Likewise.
3553 * variable.h: Likewise.
3554 * vpath.c: Likewise.
3555 * compatMakefile (srcs): Rename file.h to filedef.h.
3557 Sat Aug 19 23:11:00 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
3559 * remake.c (check_dep): For a secondary file, try implicit and
3560 default rules if appropriate.
3562 Wed Aug 2 04:29:42 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
3564 * remake.c (check_dep): If an intermediate file exists,
3565 do consider its actual date.
3567 Sun Jul 30 00:49:53 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
3569 * file.h (struct file): New field `secondary'.
3570 * file.c (snap_deps): Check for .INTERMEDIATE and .SECONDARY.
3571 (remove_intermediates): Don't delete .SECONDARY files.
3573 Sat Mar 2 16:26:52 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
3575 * compatMakefile (srcs): Add getopt.h; prepend $(srcdir)/ to getopt*.
3577 Fri Mar 1 12:04:47 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
3581 * remake.c (f_mtime): Move future modtime check before FILE is
3582 clobbered by :: loop.
3584 * dir.c: Use canonical code from autoconf manual for dirent include.
3585 [_D_NAMLEN]: Redefine NAMLEN using this.
3586 (dir_contents_file_exists_p): Use NAMLEN macro.
3587 (read_dirstream) [_DIRENT_HAVE_D_NAMLEN]: Only set d_namlen #if this.
3589 * compatMakefile (objs): Add missing backslash.
3591 Wed Feb 28 03:56:20 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
3593 * default.c (default_terminal_rules): Remove + prefix from RCS cmds.
3594 (default_variables): Put + prefix in $(CHECKOUT,v) value instead.
3596 * remake.c (f_mtime): Check for future timestamps; give error and mark
3597 file as "failed to update".
3599 Fri Jan 12 18:09:36 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3601 * job.c: Don't declare unblock_sigs; job.h already does.
3603 Sat Jan 6 16:24:44 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3605 * acconfig.h (HAVE_SYSCONF_OPEN_MAX): #undef removed.
3607 * job.c (NGROUPS_MAX): Don't try to define this macro.
3609 Fri Dec 22 18:44:44 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3611 * compatMakefile (GETOPT, GETOPT_SRC, GLOB): Variables removed.
3612 (objs, srcs): Include their values here instead of references.
3614 Thu Dec 14 06:21:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3618 * job.c (reap_children): Call unblock_sigs after start_job_command.
3620 Thu Dec 14 07:22:03 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
3622 * dir.c (dir_setup_glob): Don't use lstat; glob never calls it anyway.
3623 Avoid & before function names to silence bogus sunos4 compiler.
3625 * configure.in: Remove check for `sysconf (_SC_OPEN_MAX)'.
3627 Tue Dec 12 00:48:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3631 * dir.c (read_dirstream): Fix braino: fill in the buffer when not
3634 Mon Dec 11 22:26:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3636 * misc.c (collapse_continuations): Fix skipping of trailing \s so
3637 it can never dereference before the beginning of the array.
3639 * read.c (find_semicolon): Function removed.
3640 (read_makefile): Don't use find_semicolon or remove_comments for
3641 rule lines. Use find_char_unquote directly and handle quoted comments
3644 * default.c: Remove all [M_XENIX] code.
3646 * dir.c [HAVE_D_NAMLEN]: Define this for __GNU_LIBRARY__ > 1.
3647 (D_NAMLEN): Macro removed.
3648 (FAKE_DIR_ENTRY): New macro.
3649 (dir_contents_file_exists_p): Test HAVE_D_NAMLEN instead of using
3651 (read_dirstream): Return a struct dirent * for new glob interface.
3652 (init_dir): Function removed.
3653 (dir_setup_glob): New function.
3654 * main.c (main): Don't call init_dir.
3655 * read.c (multi_glob): Call dir_setup_glob on our glob_t and use
3656 GLOB_ALTDIRFUNC flag.
3658 * misc.c (safe_stat): Function removed.
3659 * read.c, commands.c, remake.c, vpath.c: Use plain stat instead of
3662 Sat Nov 25 20:35:18 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3664 * job.c [HAVE_UNION_WAIT]: Include sys/wait.h.
3666 * main.c (log_working_directory): Made global.
3667 Print entering msg only once.
3668 * make.h (log_working_directory): Declare it.
3669 * misc.c (message): Take new arg PREFIX. Print "make: " only if
3670 nonzero. Call log_working_directory.
3671 * remake.c: Pass new arg in `message' calls.
3672 * job.c (start_job_command): Pass new arg to `message'; fix
3673 inverted test in that call.
3675 Tue Nov 21 19:01:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3677 * job.c (start_job_command): Use `message' to print the command,
3678 and call it with null if the command is silent.
3679 * remake.c (touch_file): Use message instead of printf.
3681 Tue Oct 10 14:59:30 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3683 * main.c (enter_command_line_file): Barf if NAME is "".
3685 Sat Sep 9 06:33:20 1995 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
3687 * commands.c (delete_target): Ignore unlink failure if it is ENOENT.
3689 Thu Aug 17 15:08:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3691 * configure.in: Don't check for getdtablesize.
3692 * job.c (getdtablesize): Remove decls and macros.
3694 Thu Aug 10 19:10:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3696 * main.c (define_makeflags): Omit command line variable
3697 definitions from MFLAGS value.
3699 * arscan.c (ar_scan) [AIAMAG]: Check for zero MEMBER_OFFSET,
3700 indicating a valid, but empty, archive.
3702 Mon Aug 7 15:40:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3704 * dir.c (file_impossible_p): Correctly reset FILENAME to name
3705 within directory before hash search.
3707 * job.c (child_error): Do nothing if IGNORED under -s.
3709 * job.c (exec_command): Correctly use ARGV[0] for script name when
3710 running shell directly.
3712 Tue Aug 1 14:39:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3714 * job.c (child_execute_job): Close STDIN_FD and STDOUT_FD after
3715 dup'ing from them. Don't try to close all excess descriptors;
3716 getdtablesize might return a huge value. Any open descriptors in
3717 the parent should have FD_CLOEXEC set.
3718 (start_job_command): Set FD_CLOEXEC flag on BAD_STDIN descriptor.
3720 Tue Jun 20 03:47:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3722 * read.c (read_all_makefiles): Properly append default makefiles
3723 to the end of the `read_makefiles' chain.
3725 Fri May 19 16:36:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3727 * Version 3.74 released.
3729 Wed May 10 17:43:34 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3733 Tue May 9 17:15:23 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3735 * compatMakefile ($(infodir)/make.info): Make sure $$dir is set in
3738 Wed May 3 15:56:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3740 * file.c (print_file): Grok update_status of 1 for -q.
3742 Thu Apr 27 12:39:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3746 Wed Apr 26 17:15:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3748 * file.c (remove_intermediates): Fix inverted test to bail under
3749 -n for signal case. Bail under -q or -t.
3750 Skip files with update_status==-1.
3752 * job.c (job_next_command): Skip empty lines.
3753 (new_job): Don't test the return of job_next_command.
3754 Just let start_waiting_job handle the case of empty commands.
3756 Wed Apr 19 03:25:54 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3758 * function.c [__MSDOS__]: Include <fcntl.h>. From DJ Delorie.
3762 Sat Apr 8 14:53:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3764 * remake.c (notice_finished_file): Set FILE->update_status to zero
3767 Wed Apr 5 00:20:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3769 * Version 3.73 released.
3771 Tue Mar 28 13:25:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3773 * main.c (main): Fixed braino in assert.
3777 Mon Mar 27 05:29:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3779 * main.c: Avoid string in assert expression. Some systems are broken.
3781 Fri Mar 24 00:32:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3783 * main.c (main): Handle 1 and 2 returns from update_goal_chain
3784 makefile run properly.
3788 * main.c (handle_non_switch_argument): New function, broken out of
3790 (decode_switches): Set optind to 0 to reinitialize getopt, not to 1.
3791 When getopt_long returns EOF, break the loop and handle remaining args
3792 with a simple second loop.
3794 * remake.c (remake_file): Set update_status to 2 instead of 1 for
3795 no rule to make. Mention parent (dependent) in error message.
3796 (update_file_1): Handle FILE->update_status == 2 in -d printout.
3797 * job.c (start_job_command, reap_children): Set update_status to 2
3798 instead of 1 for failed commands.
3800 Tue Mar 21 16:23:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3802 * job.c (search_path): Function removed (was already #if 0'd out).
3803 * configure.in: Remove AC_TYPE_GETGROUPS; nothing needs it any more.
3805 Fri Mar 17 15:57:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3807 * configure.bat: Write @CPPFLAGS@ translation.
3809 Mon Mar 13 00:45:59 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3811 * read.c (parse_file_seq): Rearranged `l(a b)' -> `l(a) l(b)' loop
3812 to not skip the elt immediately preceding `l(...'.
3814 Fri Mar 10 13:56:49 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3818 * read.c (find_char_unquote): Make second arg a string of stop
3819 chars instead of a single stop char. Stop when any char in the
3820 string is hit. All callers changed.
3821 (find_semicolon): Pass stop chars "#;" to one find_char_unquote call,
3822 instead of using two calls. If the match is not a ; but a #,
3824 * misc.c: Changed find_char_unquote callers here too.
3828 * read.c (read_makefile, parse_file_seq): Fix typo __MS_DOS__ ->
3831 * GNUmakefile (globfiles): Add glob/configure.bat.
3832 (distfiles): Add configh.dos, configure.bat.
3834 Wed Mar 8 13:10:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3836 Fixes for MS-DOS from DJ Delorie.
3837 * read.c (read_makefile, parse_file_seq) [__MS_DOS__]: Don't see :
3838 as separator in "C:\...".
3839 * configh.dos (STDC_HEADERS): Define only if undefined.
3840 (HAVE_SYS_PARAM_H): Don't define this.
3841 (HAVE_STRERROR): Define this.
3842 * job.c (construct_command_argv_internal) [__MSDOS__]: Fix typos.
3846 * main.c (decode_switches): Reset optind to 1 instead of 0.
3848 Tue Mar 7 17:31:06 1995 Roland McGrath <roland@geech.gnu.ai.mit.edu>
3850 * main.c (decode_switches): If non-option arg is "-", ignore it.
3852 Mon Mar 6 23:57:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3856 Wed Feb 22 21:26:36 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3860 Tue Feb 21 22:10:43 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3862 * main.c (main): Pass missing arg to tmpnam.
3864 * configure.in: Check for strsignal.
3865 * job.c (child_error): Use strsignal.
3866 * main.c (main): Don't call signame_init #ifdef HAVE_STRSIGNAL.
3868 * misc.c (strerror): Fix swapped args in sprintf.
3870 Mon Feb 13 11:50:08 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3872 * configure.in (CFLAGS, LDFLAGS): Don't set these variables.
3874 Fri Feb 10 18:44:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3876 * main.c (print_version): Add 95 to copyright years.
3880 * job.c (start_job_command): Remember to call notice_finished_file
3881 under -n when not recursing. To do this, consolidate that code
3882 under the empty command case and goto there for the -n case.
3884 Tue Feb 7 13:36:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3886 * make.h [! STDC_HEADERS]: Don't declare qsort. Sun headers
3889 Mon Feb 6 17:37:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3891 * read.c (read_makefile): For bogus line starting with tab, ignore
3892 it if blank after removing comments.
3894 * main.c: Cast results of `alloca' to `char *'.
3895 * expand.c: Likewise.
3897 Sun Feb 5 18:35:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3901 * configure.in: Check for mktemp.
3902 * main.c (main) [! HAVE_MKTEMP]: Use tmpnam instead of mktemp.
3904 * configure.in (make_cv_sysconf_open_max): New check for `sysconf
3906 * acconfig.h: Added #undef HAVE_SYSCONF_OPEN_MAX.
3907 * job.c [HAVE_SYSCONF_OPEN_MAX] (getdtablesize): Define as macro
3910 Fri Jan 27 04:42:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3912 * remake.c (update_file_1): When !MUST_MAKE, don't set
3913 FILE->update_status to zero before calling notice_finished_file.
3914 (notice_finished_file): Touch only when FILE->update_status is zero.
3915 (remake_file): Set FILE->update_status to zero after not calling
3916 execute_file_command and deciding to touch instead.
3918 Thu Jan 26 01:29:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3920 * main.c (debug_signal_handler): New function; toggles debug_flag.
3921 (main): Handle SIGUSR1 with that.
3923 Mon Jan 16 15:46:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3925 * compatMakefile (realclean): Remove Info files.
3927 Sun Jan 15 08:23:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3931 * job.c (start_job_command): Save and restore environ around vfork
3933 (search_path): Function #if 0'd out.
3934 (exec_command): Use execvp instead of search_path.
3936 * expand.c (variable_expand): Rewrote computed variable name and
3937 substitution reference handling to be simpler. First expand the
3938 entire text between the parens if it contains any $s, then examine
3939 the result of that for subtitution references and do no further
3940 expansion while parsing them.
3942 * job.c (construct_command_argv_internal): Handle " quoting too,
3943 when no backslash, $ or ` characters appear inside the quotes.
3945 * configure.in (union wait check): If WEXITSTATUS and WTERMSIG are
3946 defined, just use int.
3948 Tue Jan 10 06:27:27 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3950 * default.c (default_variables) [__hpux]: Remove special
3951 definition of ARFLAGS. Existence of the `f' flag is not
3952 consistent across HPUX versions; and one might be using GNU ar
3955 * compatMakefile (clean): Don't remove Info files.
3957 * compatMakefile (check): Remove gratuitous target declaration.
3959 Sat Jan 7 11:38:23 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3961 * compatMakefile (ETAGS, CTAGS): Don't use -t.
3963 * arscan.c (ar_name_equal) [cray]: Subtract 1 like [__hpux].
3965 * main.c (decode_switches): For --help, print usage to stdout.
3967 Mon Dec 5 12:42:18 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3971 * remake.c (update_file_1): Do set_command_state (FILE,
3972 cs_not_started) only if old state was deps_running.
3974 Mon Nov 28 14:24:03 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3976 * job.c (start_waiting_job): Use set_command_state.
3978 * build.template (CPPFLAGS): New variable.
3979 (prefix, exec_prefix): Set from @...@.
3980 (compilation loop): Pass $CPPFLAGS to compiler.
3982 * GNUmakefile (build.sh.in): Make it executable.
3984 * GNUmakefile (globfiles): Add configure.in, configure.
3988 * configure.in (AC_OUTPUT): Don't write glob/Makefile.
3990 * configure.in (AC_CHECK_SYMBOL): Use AC_DEFINE_UNQUOTED.
3992 * configure.in: Don't check for ranlib.
3994 Tue Nov 22 22:42:40 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3996 * remake.c (notice_finished_file): Only mark also_make's as
3997 updated if really ran cmds.
3999 Tue Nov 15 06:32:46 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4001 * configure.in: Put dnls before random whitespace.
4003 Sun Nov 13 05:02:25 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4005 * compatMakefile (CPPFLAGS): New variable, set from @CPPFLAGS@.
4006 (RANLIB): Variable removed.
4007 (prefix, exec_prefix): Set these from @...@.
4008 (.c.o): Use $(CPPFLAGS).
4009 (glob/libglob.a): Don't pass down variables to sub-make.
4010 glob/Makefile should be configured properly by configure.
4011 (distclean): Remove config.log and config.cache (autoconf stuff).
4013 Mon Nov 7 13:58:06 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4015 * acconfig.h: Add #undef HAVE_UNION_WAIT.
4016 * configure.in: Converted to Autoconf v2.
4017 * dir.c: Test HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H instead
4018 of DIRENT, SYSDIR, NDIR.
4019 * build.sh.in (prefix, exec_prefix): Set these from @...@.
4020 (CPPFLAGS): New variable, set from @CPPFLAGS@.
4021 (compiling loop): Pass $CPPFLAGS before $CFLAGS.
4022 * install.sh: File renamed to install-sh.
4024 * main.c (define_makeflags): When no flags, set WORDS to zero.
4026 Sun Nov 6 18:34:01 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4030 * main.c (define_makeflags): Terminate properly when FLAGSTRING is
4033 Fri Nov 4 16:02:51 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4037 Tue Nov 1 01:18:10 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4041 * job.c (start_job_command): When ARGV is nil, only set
4042 update_state and call notice_finished_file if job_next_command
4045 * job.c (start_job_command): Call notice_finished_file for empty
4048 Thu Oct 27 02:02:45 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4050 * file.c (snap_deps): Set COMMANDS_SILENT for .SILENT, not
4053 Wed Oct 26 02:14:10 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4057 Tue Oct 25 22:49:24 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4059 * file.c (snap_deps): Set command_flags bits in all :: entries.
4061 Mon Oct 24 18:47:50 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4063 * make.h (posix_pedantic): Declare it.
4064 * main.c (main): Move checks .IGNORE, .SILENT, .POSIX to
4066 * file.c (snap_deps): Check .IGNORE, .SILENT, .POSIX here instead
4067 of in main. If .IGNORE has deps, OR COMMANDS_NOERROR into their
4068 command_flags and don't set -i. Likewise .SILENT.
4069 * job.c (start_job_command): In FLAGS initialization, OR in
4070 CHILD->file->command_flags.
4071 * file.h (struct file): New member `command_flags'.
4073 Sun Oct 16 01:01:51 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4075 * main.c (switches): Bump flag values for --no-print-directory and
4076 --warn-undefined-variables, so neither is 1 (which indicates a
4077 nonoption argument).
4079 Sat Oct 15 23:39:48 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4081 * main.c (main): Add missing code in .IGNORE test.
4083 Mon Oct 10 04:09:03 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4085 * variable.c (define_automatic_variables): Define +D and +F.
4087 Sat Oct 1 04:07:48 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4089 * main.c (main): Define hidden automatic variable with command
4090 vars, and MAKEOVERRIDES to a reference to that.
4091 (define_makeflags): If posix_pedantic, write a reference to that
4094 Thu Sep 29 00:14:26 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4096 * main.c (posix_pedantic): New variable.
4097 (main): Set posix_pedantic if .POSIX is a target.
4098 Fix .IGNORE and .SILENT checks to require is_target.
4100 * commands.c (set_file_variables): Define new automatic variable
4101 $+, like $^ but before calling uniquize_deps.
4103 * job.c (reap_children): Call delete_child_targets for non-signal
4104 error if .DELETE_ON_ERROR is a target.
4106 Tue Sep 27 01:57:14 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4110 Mon Sep 26 18:16:55 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4112 * job.c (reap_children): Don't change C->file->command_state when
4113 dying. Test it only after calling start_job_command for a new
4114 command line. When no more cmds, just set C->file->update_status.
4115 (start_job_command): When the last line is empty or under -n, set
4116 C->file->update_status.
4117 (start_waiting_job): Grok cs_not_started after start_job_command
4119 (new_job): Set C->file->update_status when there are no cmds.
4120 (job_next_command): When out of lines, don't set
4121 CHILD->file->update_status or CHILD->file->command_state.
4123 * main.c (quote_as_word): Renamed from shell_quote. Take new arg;
4124 if nonzero, also double $s.
4125 (main): Define MAKEOVERRIDES from command_variables here.
4126 (define_makeflags): Don't use command_variables here; instead write a
4127 reference $(MAKEOVERRIDES) in MAKEFLAGS. Make vars recursive.
4129 * dir.c [__MSDOS__]: Fixed typo.
4131 * vpath.c (selective_vpath_search): Reset EXISTS when stat fails.
4133 Sat Sep 10 03:01:35 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4135 * remake.c: Include <assert.h> and use assert instead of printfs
4138 * main.c (decode_switches): Loop until optind hits ARGC, not just
4139 until getopt_long returns EOF. Initialize C to zero before loop;
4140 in loop if C is EOF, set optarg from ARGV[optind++], else call
4142 (decode_env_switches): Use variable_expand instead of
4143 allocated_variable_expand. Allocate a fresh buffer to copy split
4144 words into; scan characters by hand to break words and
4146 (shell_quote): New function.
4147 (define_makeflags): Allocate doubled space for switch args, and command
4148 variable names and values; use shell_quote to quote those things.
4150 Fri Sep 9 01:37:47 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4154 * acconfig.h: Add HAVE_SYS_SIGLIST and HAVE__SYS_SIGLIST.
4156 * main.c (decode_switches): The non-option return from getopt is
4158 (command_variables): New type and variable.
4159 (decode_switches, decode_env_switches): After making a variable
4160 definition, record the struct variable pointer in the
4161 command_variables chain.
4162 (define_makeflags): If ALL, write variable definitions for
4165 * main.c (other_args): Variable removed.
4166 (goals, lastgoal): New static variables (moved from auto in main).
4167 (main): Don't process OTHER_ARGS at all.
4168 Don't set variable MAKEOVERRIDES at all; define MAKE to just
4170 (init_switches): Prepend a - {return in order} instead of a +
4172 (decode_switches): Don't set OTHER_ARGS at all.
4173 Grok '\0' return from getopt_long as non-option argument; try
4174 variable definition and (if !ENV) enter goal targets here.
4175 (decode_env_switches): Use allocated_variable_expand to store value.
4176 Use find_next_token to simplify word-splitting loop. Don't
4177 prepend a dash to uninterpreted value. Instead, if split into
4178 only one word, try variable definition and failing that prepend a
4179 dash to the word and pass it to decode_switches as a single arg.
4181 Wed Sep 7 03:02:46 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4183 * remake.c (notice_finished_file): Only recheck modtimes if
4184 FILE->command_state was cs_running on entry (meaning the commands
4186 (update_file_1): Whenever we set FILE->update_status, call
4187 notice_finished_file instead of just set_command_state.
4188 * job.c (start_job_command): Whenever we set
4189 CHILD->file->update_status, call notice_finished_file instead of
4190 just set_command_state.
4192 Tue Sep 6 19:13:54 1994 Roland McGrath <roland@geech.gnu.ai.mit.edu>
4194 * default.c: Add missing ".
4196 * job.c: Changed all assignments of command_state members to calls
4197 to set_command_state.
4198 * remake.c: Likewise.
4199 * file.c (set_command_state): New function.
4200 * file.h: Declare set_command_state.
4202 * main.c (init_switches): Put a + first in options.
4204 Mon Jul 25 18:07:46 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4206 Merge MSDOS/GO32 port from DJ Delorie <dj@ctron.com>.
4207 * vpath.c: Changed all uses of ':' to PATH_SEPARATOR_CHAR.
4208 * main.c (directory_before_chdir): New variable, moved out of main
4210 (main) [__MSDOS__]: Look for \ or : to delimit last component of
4211 PROGRAM. Don't frob ARGV[0] before setting MAKE_COMMAND variable.
4212 (die): Change back to `directory_before_chdir' before dying.
4213 * make.h (PATH_SEPARATOR_CHAR): New macro; differing defns for
4214 [__MSDOS__] and not.
4215 * job.c [__MSDOS__]: Include <process.h>.
4216 [__MSDOS__] (dos_pid, dos_status, dos_bname, dos_bename,
4217 dos_batch_file): New variables.
4218 (reap_children) [__MSDOS__]: Don't call wait; just examine those vars.
4219 (unblock_sigs) [__MSDOS__]: Do nothing.
4220 (start_job_command) [__MSDOS__]: Use spawnvpe instead of vfork & exec.
4221 (load_too_high) [__MSDOS__]: Always return true.
4222 (search_path) [__MSDOS__]: Check for : or / in FILE to punt.
4223 Use PATH_SEPARATOR_CHAR instead of ':'.
4224 (construct_command_argv_internal) [__MSDOS__]: Wholly different
4225 values for sh_chars and sh_cmds. Wholly new code to handle shell
4227 * function.c (expand_function: `shell') [__MSDOS__]: Wholly new
4229 * dir.c [__MSDOS__] (dosify): New function.
4230 (dir_contents_file_exists_p) [__MSDOS__]: Call it on FILENAME and
4231 process the result instead of FILENAME itself.
4232 (file_impossible_p) [__MSDOS__]: Likewise.
4233 * default.c [__MSDOS__]: Define GCC_IS_NATIVE.
4234 (default_suffix_rules) [__MSDOS__]: Use `y_tab.c' instead of `y.tab.c'.
4235 (default_variables) [GCC_IS_NATIVE]: Set CC and CXX to `gcc', YACC to
4236 `bison -y', and LEX to `flex'.
4237 * configure.bat, configh.dos: New files.
4238 * commands.c (fatal_error_signal) [__MSDOS__]: Just remove
4239 intermediates and exit.
4241 * commands.c (set_file_variables): Add parens in length
4242 computation in .SUFFIXES dep loop to quiet compiler warning. From
4245 * read.c (read_makefile): Free FILENAME if we allocated it. From
4248 Mon Jul 4 17:47:08 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4250 * misc.c (safe_stat): New function, EINTR-safe wrapper around stat.
4251 * vpath.c (selective_vpath_search): Use safe_stat in place of stat.
4252 * read.c (construct_include_path): Use safe_stat in place of stat.
4253 * job.c (search_path): Use safe_stat in place of stat.
4254 * dir.c (find_directory): Use safe_stat in place of stat.
4255 * commands.c (delete_target): Use safe_stat in place of stat.
4256 * arscan.c (ar_member_touch) [EINTR]: Do EINTR looping around fstat.
4257 * remake.c (name_mtime): Use safe_stat in place of stat.
4258 (touch_file) [EINTR]: Do EINTR looping around fstat.
4260 Fri Jun 24 05:40:24 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4262 * read.c (read_makefile): Check for a shell command first, and
4263 then strip leading tabs before further checking if it's not a
4266 * make.h [__arm]: Undefine POSIX.
4267 [!__GNU_LIBRARY__ && !POSIX && !_POSIX_VERSION]: Don't declare system
4268 functions that return int.
4270 * job.c (construct_command_argv_internal): After swallowing a
4271 backslash-newline combination, if INSTRING is set goto string_char
4272 (new label) for normal INSTRING handling code.
4274 Sat Jun 4 01:11:20 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4276 * configure.in: Don't check for sys_siglist and _sys_siglist with
4277 AC_HAVE_FUNCS. Instead use two AC_COMPILE_CHECKs.
4279 Mon May 23 18:20:38 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4281 * Version 3.71.1 released.
4283 * make.h [!__GNU_LIBRARY__ && !POSIX]: Also test #ifndef
4284 _POSIX_VERSION for these declarations.
4286 * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Remove bogus #ifndefs
4287 around #undefs of HAVE_SETREUID and HAVE_SETREGID.
4289 Sat May 21 16:26:38 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4291 * Version 3.71 released.
4293 * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Don't test [HAVE_SETUID]
4294 and [HAVE_SETGID]. Every system has those, and configure doesn't
4297 * make.h [_POSIX_VERSION]: Don't #define POSIX #ifdef ultrix.
4299 * compatMakefile (loadavg): Depend on and use loadavg.c instead of
4301 (loadavg.c): Link or copy it from getloadavg.c.
4302 (distclean): Remove loadavg.c.
4304 Mon May 16 22:59:04 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4308 * misc.c [GETLOADAVG_PRIVILEGED] [! POSIX]: Undefine HAVE_SETEUID
4311 * default.c (default_terminal_rules): In SCCS rules, put
4312 $(SCCS_OUTPUT_OPTION) before $<. On some systems -G is grokked
4313 only before the file name.
4314 * configure.in (SCCS_GET_MINUS_G check): Put -G flag before file name.
4316 Tue May 10 16:27:38 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4318 * job.c (construct_command_argv_internal): Swallow
4319 backslash-newline combinations inside '' strings too.
4321 Thu May 5 04:15:10 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4323 * read.c (do_define): Call collapse_continuations on each line
4326 Mon Apr 25 19:32:02 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4328 * job.c (construct_command_argv_internal): Notice newline inside
4329 '' string when RESTP is non-null.
4331 Fri Apr 22 17:33:30 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4335 * remake.c (update_goal_chain): Reset FILE to G->file after the
4336 double-colon loop so it is never null for following code.
4338 * read.c (read_makefile): Fix `override define' parsing to skip
4339 whitespace after `define' properly.
4341 * compatMakefile (srcdir): Define as @srcdir@; don't reference
4343 (glob/Makefile): New target.
4345 Thu Apr 21 16:16:55 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4349 * misc.c (remove_comments): Use find_char_unquote.
4350 * make.h (find_char_unquote): Declare it.
4351 * read.c (find_char_unquote): New function, generalized from
4353 (find_percent, find_semicolon, parse_file_seq): Use that.
4355 Wed Apr 20 18:42:39 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4357 * implicit.c (pattern_search): Always allocate new storage for
4358 FILE->stem. It is not safe to store STEM's address because it
4359 might be auto storage.
4361 * configure.in: Check for seteuid and setegid.
4362 * misc.c [HAVE_SETEUID]: Declare seteuid.
4363 [HAVE_SETEGID]: Declare setegid.
4364 (make_access, user_access) [HAVE_SETEUID]: Use seteuid.
4365 [HAVE_SETEGID]: Use setegid.
4367 * remake.c (update_goal_chain): Set STATUS to FILE->update_status,
4368 to preserve whether it's 2 for error or 1 for -q trigger. When
4369 STATUS gets nonzero and -q is set, always stop immediately.
4370 * main.c (main, decode_switches): Die with 2 for errors.
4371 (main): Accept 2 return from update_goal_chain and die with that.
4372 * misc.c (fatal, makefile_fatal): Die with 2; 1 is reserved for -q
4374 * job.c (reap_children): Die with 2 for error.
4375 (start_job_command): Set update_status to 2 for error. Set it to
4376 1 when we would run a command and question_flag is set.
4378 * read.c (read_makefile): Don't mark makefiles as precious. Just
4379 like other targets, they can be left inconsistent and in need of
4380 remaking by aborted commands.
4382 * read.c (read_makefile): Write no error msg for -include file.
4384 Tue Apr 5 05:22:19 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4386 * commands.c (fatal_error_signal): Don't unblock signals.
4388 * file.h (struct file): Change member `double_colon' from flag to
4390 * read.c (record_files): Set double_colon pointer instead of flag.
4391 * main.c (main): When disqualifying makefiles for updating, use
4392 double_colon pointer to find all entries for a file.
4393 * file.c (enter_file): If there is already a double-colon entry
4394 for the file, set NEW->double_colon to that pointer.
4395 (file_hash_enter): Use FILE->double_colon to find all entries to
4397 * remake.c (update_goal_chain): Do inner loop on double-colon entries.
4398 (update_file): Use FILE->double_colon pointer to find all entries.
4399 (f_mtime): Likewise.
4400 (notice_finished_file): Propagate mtime change to all entries.
4402 * variable.c (try_variable_definition): Return after abort.
4404 Fri Apr 1 18:44:15 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4406 * read.c (read_makefile): Remove unused variable.
4407 (parse_file_seq): When removing an elt that is just `)', properly
4408 fix up the previous elt's next pointer.
4410 Mon Mar 28 18:31:49 1994 Roland McGrath (roland@mole.gnu.ai.mit.edu)
4412 * configure.in: Do AC_SET_MAKE.
4413 * GNUmakefile (Makefile.in): Edit MAKE assignment into @SET_MAKE@.
4415 Fri Mar 4 00:02:32 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4417 * function.c (subst_expand): If BY_WORD or SUFFIX_ONLY is set and
4418 the search string is the empty string, find a match at the end of
4419 each word (using end_of_token in place of sindex).
4421 * misc.c (end_of_token): Don't treat backslashes specially; you
4422 can no longer escape blanks with backslashes in export, unexport,
4423 and vpath. This was never documented anyway.
4425 Thu Mar 3 23:53:46 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4427 * read.c (read_makefile): Variable name for `define' is not just
4428 first token; use whole rest of line and strip trailing blanks.
4430 Wed Feb 16 16:03:45 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4434 * read.c (read_makefile): Add -d msg stating args.
4436 * read.c (read_makefile): Use isspace to skip over leading
4437 whitespace, and explicitly avoid skipping over tabs. Don't want
4438 to skip just spaces though; formfeeds et al should be skipped.
4440 * default.c (default_variables) [__hpux]: Add f in ARFLAGS.
4442 * arscan.c (ar_name_equal) [__hpux]: Subtract 2 instead of 1 from
4443 sizeof ar_name for max length to compare.
4445 * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Undefine HAVE_SETREUID
4446 #ifdef HAVE_SETUID; likewise HAVE_SETREGID and HAVE_SETGID.
4448 * main.c (main): Call user_access after setting `program', in case
4449 it needs to use it in an error message.
4451 * read.c (read_makefile): Ignore an empty line starting with a tab.
4453 Thu Feb 10 21:45:31 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4455 * configure.in (AC_SYS_SIGLIST_DECLARED): Use this instead of
4456 AC_COMPILE_CHECK that is now its contents.
4458 Fri Feb 4 16:28:54 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4460 * make.h: #undef strerror after #include <string.h>.
4461 [! ANSI_STRING]: Declare strerror.
4463 Thu Feb 3 02:21:22 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4465 * misc.c (strerror): #undef any macro before function definition.
4467 Mon Jan 31 19:07:23 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4469 * variable.c (try_variable_definition): Calculate BEG before loop
4470 to strip blanks by decrementing END. Don't decr END to before BEG.
4472 * read.c (read_makefile): Skip over leading space characters, but
4473 not tabs, after removing continuations and comments (it used to
4476 Tue Jan 25 16:45:05 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4478 * variable.c (define_automatic_variables): In $(@D) et al, use
4479 patsubst to remove trailing slash.
4481 * commands.c (delete_target): New function, broken out of
4482 delete_child_targets. Check for archive members and give special msg.
4483 (delete_child_targets): Use delete_target.
4485 Mon Jan 17 17:03:22 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4487 * default.c (default_suffix_rules): Use $(TEXI2DVI_FLAGS) in
4488 texi2dvi rules. Use $(MAKEINFO_FLAGS) in makeinfo rules.
4490 Tue Jan 11 19:29:55 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4492 * GNUmakefile (tarfiles): Omit make-doc.
4493 (make-$(version).tar): Include make.info*.
4495 Fri Jan 7 16:27:00 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4497 * compatMakefile (configure, config.h.in): Comment out rules.
4499 Thu Jan 6 18:08:08 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4501 * compatMakefile (binprefix, manprefix): New variables.
4502 (instname): Variable removed.
4503 (install): Use $({bin,man}prefix)make in place of $(instname).
4504 File targets likewised renamed.
4506 Mon Jan 3 17:50:25 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4508 * Version 3.70 released.
4510 Thu Dec 23 14:46:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4514 * read.c (parse_file_seq): Inside multi-word archive ref
4515 translation loop, check NEW1==0 at end and break out of the loop.
4517 * GNUmakefile (make-$(version).tar): Distribute install.sh.
4518 * install.sh: New file.
4520 * configure.in (SCCS_GET_MINUS_G check): Put redirection for admin
4521 cmds outside subshell parens, to avoid "command not found" msgs
4524 Wed Dec 22 17:00:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4526 * configure.in (SCCS_GET_MINUS_G check): Put -G flag last in get cmd.
4527 Redirect output & error from get to /dev/null.
4528 Fix reversed sense of test.
4530 Fri Dec 17 15:31:36 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4532 * configure.in (SCCS_GET_MINUS_G check): Use parens instead of
4533 braces inside if condition command; some shells lose.
4535 Thu Dec 16 15:10:23 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4539 * arscan.c [M_UNIX]: Move #undef M_XENIX for PORTAR stuff.
4540 (PORTAR) [M_XENIX]: Define to 0 instead of 1.
4542 * main.c (define_makeflags): Only export MAKEFLAGS if !ALL.
4544 Wed Dec 15 17:47:48 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4546 * main.c (main): Cast result of pointer arith to unsigned int
4547 before passing to define_variable for envars. Matters when
4548 sizeof(unsigned)!=sizeof(ptrdiff_t).
4550 Tue Dec 14 14:21:16 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4552 * configure.in: Add new check for SCCS_GET_MINUS_G.
4553 * config.h.in: Add #undef SCCS_GET_MINUS_G.
4554 * default.c (default_terminal_rules): Use `$(SCCS_OUTPUT_OPTION)' in
4555 place of `-G $@' in SCCS commands.
4556 (default_variables) [SCCS_GET_MINUS_G]: Define SCCS_OUTPUT_OPTION
4559 * configure.in (AC_OUTPUT): Put touch stamp-config in second arg
4560 (so it goes in config.status), rather than afterward.
4562 * ar.c (ar_member_date): Don't call enter_file on the archive file
4563 if it doesn't exist (by file_exists_p).
4565 * compatMakefile ($(infodir)/make.info): Replace `$$d/foo.info'
4566 with `$$dir/make.info' in install-info invocation (oops).
4568 * vpath.c (construct_vpath_list): Only set LASTPATH set PATH when
4569 we do not unlink and free PATH.
4571 * file.c (print_file_data_base): Fix inverted calculation for
4572 average files per hash bucket.
4574 * read.c (readline): When we see a NUL, give only a warning and
4575 synthesize a newline to terminate the building line (used to
4576 fatal). Move fgets call into the loop condition, and after the
4577 loop test ferror (used to test !feof in the loop).
4579 Fri Dec 3 16:40:31 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4581 * configure.in: Check for strerror in AC_HAVE_FUNCS.
4583 Thu Dec 2 15:37:50 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4585 Differentiate different flavors of missing makefile error msgs,
4586 removing gratuitous `fopen: ' and giving caller for included makefiles.
4587 * misc.c [! HAVE_STRERROR]: Define our own strerror here.
4588 (perror_with_name, pfatal_with_name): Use strerror instead of
4589 replicating its functionality.
4590 * read.c (read_makefile): Return int instead of void.
4591 (read_all_makefiles, read_makefile): Change callers to notice zero
4592 return and give error msg.
4594 Thu Nov 11 11:47:36 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4598 * default.c: Put `-G $@' before $< in SCCS cmds.
4600 Wed Nov 10 06:06:14 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4602 * read.c (read_makefile): After trying a variable defn, notice if
4603 the line begins with a tab, and diagnose an error.
4605 Sun Nov 7 08:07:37 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4609 Wed Nov 3 06:54:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4613 * implicit.c (try_implicit_rule): Look for a normal rule before an
4616 Fri Oct 29 16:45:28 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4618 * function.c (expand_function: `sort'): Double NWORDS when it
4619 overflows, instead of adding five.
4621 * compatMakefile (clean): Remove loadavg.
4623 Wed Oct 27 17:58:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4627 * file.h (NEW_MTIME): Define new macro.
4628 * main.c (main): Set time of NEW_FILES to NEW_MTIME, not to
4629 current time returned from system. Removed variable NOW.
4630 * remake.c (notice_finished_file): Use NEW_MTIME in place of
4631 current time here too.
4633 Tue Oct 26 19:45:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4637 * remake.c (update_file_1): Don't clear MUST_MAKE when FILE has no
4638 cmds and !DEPS_CHANGED unless also !NOEXIST.
4640 Mon Oct 25 15:25:21 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4642 * read.c (parse_file_seq): When converting multi-word archive
4643 refs, ignore a word beginning with a '('.
4645 Fri Oct 22 02:53:38 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4647 * configure.in: Check for sys/timeb.h.
4648 * make.h [HAVE_SYS_TIMEB_H]: Test this before including it.
4650 Thu Oct 21 16:48:17 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4654 * rule.c (convert_suffix_rule): New local TARGPERCENT. Set it to
4655 TARGNAME+1 for "(%.o)", to TARGNAME for "%.?". Use it in place of
4656 TARGNAME to initialize PERCENTS[0].
4658 Mon Oct 18 06:49:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4660 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
4661 Remove AC_USG; it is no longer used.
4663 * file.c (print_file): New function, broken out of
4664 print_file_data_base.
4665 (print_file_data_base): Call it.
4666 * rule.c (print_rule): New function, broken out of
4667 print_rule_data_base.
4668 (print_rule_data_base): Call it.
4670 Thu Oct 14 14:54:03 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4672 * default.c (install_default_suffix_rules): New function, broken
4673 out of install_default_implicit_rules.
4674 (install_default_implicit_rules): Move suffix rule code there.
4675 * make.h: Declare install_default_suffix_rules.
4676 * main.c (main): Call install_default_suffix_rules before reading
4677 makefiles. Move convert_to_pattern call before
4678 install_default_implicit_rules.
4680 * job.h (struct child): Make `pid' member type `pid_t' instead of
4683 * compatMakefile (RANLIB): New variable, set by configure.
4684 (glob/libglob.a): Pass RANLIB value down to submake.
4686 Fixes for SCO 3.2 "devsys 4.2" from pss@tfn.com (Peter Salvitti).
4687 * make.h: Include <sys/timeb.h> before <time.h> for SCO lossage.
4688 * job.c [! getdtablesize] [! HAVE_GETDTABLESIZE]: If NOFILE is not
4689 defined but NOFILES_MAX is, define it to be that.
4691 Mon Oct 11 19:47:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4693 * GNUmakefile (make-$(version).tar): Depend on acconfig.h, so it
4696 Sun Oct 3 15:15:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4698 * default.c (default_terminal_rules): Add `-G $@' to SCCS get cmds.
4700 Tue Sep 28 14:18:20 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4702 * job.c (construct_command_argv_internal): Add ^ to SH_CHARS; it
4703 is another symbol for | in some shells.
4704 * main.c (main): Add it to CMD_DEFS quoting list as well.
4706 Mon Sep 20 18:05:24 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4708 * job.c (construct_command_argv_internal): Remove '=' from
4709 SH_CHARS. Only punt on '=' if it is unquoted in a word before the
4710 first word without an unquoted '='.
4712 * main.c (define_makeflags): Set v_export for MAKEFLAGS.
4714 Fri Sep 17 00:37:18 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4716 * remake.c (update_file_1): Use .DEFAULT cmds for phony targets.
4718 * make.h [_AIX && _POSIX_SOURCE]: Define POSIX.
4720 * commands.c (delete_child_targets): Don't delete phony files.
4722 * job.c (start_job_command): Set COMMANDS_RECURSE in FLAGS if we
4723 see a `+' at the beginning of the command line.
4725 Thu Sep 9 17:57:14 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4729 Wed Sep 8 20:14:21 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4731 * main.c (define_makeflags): Define MAKEFLAGS with o_file, not o_env.
4733 Mon Aug 30 12:31:58 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4735 * expand.c (variable_expand): Fatal on an unterminated reference.
4737 Thu Aug 19 16:27:53 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4741 * variable.c (define_automatic_variables): Define new o_default
4742 variable `MAKE_VERSION' from version_string and remote_description.
4744 * make.h (version_string, remote_description): Declare these here.
4745 * main.c: Don't declare version_string.
4746 (print_version): Don't declare remote_description.
4748 Wed Aug 18 15:01:24 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4750 * read.c (read_makefile): Free space pointed to by CONDITIONALS
4751 before restoring the old pointer.
4753 Mon Aug 16 17:33:36 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4755 * compatMakefile ($(objs)): Depend on config.h.
4757 * GNUmakefile (build.sh.in): Depend on compatMakefile.
4759 * configure.in: Touch stamp-config after AC_OUTPUT.
4761 Fri Aug 13 16:04:22 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4765 Thu Aug 12 17:18:57 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4767 * make.h: Include <config.h> instead of "config.h".
4769 Wed Aug 11 02:35:25 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4771 * main.c (main): Make all variables interned from ENVP be v_export.
4772 * variable.c (try_variable_definition): In v_default case, don't
4773 check for an o_file variable that `getenv' finds.
4775 * job.c (reap_children): New local variable ANY_LOCAL; set it
4776 while setting ANY_REMOTE. If !ANY_LOCAL, don't wait for local kids.
4778 * main.c (main): Don't call decode_env_switches on MFLAGS. DOC THIS.
4780 * function.c (expand_function): #if 0 out freeing of ENVP since it
4783 Mon Aug 9 17:37:20 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4787 * remote-stub.c (remote_status): Set errno to ECHILD before return.
4788 * job.c (reap_children): Scan the chain for remote children and
4789 never call remote_status if there are none.
4791 * function.c (expand_function: `shell'): #if 0 out calling
4792 target_environment; just set ENVP to environ instead.
4794 * job.c (reap_children): Check for negative return from
4795 remote_status and fatal for it.
4796 When blocking local child wait returns 0, then try a blocking call
4799 Tue Aug 3 00:19:00 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4801 * compatMakefile (clean): Delete make.info* and make.dvi here.
4802 (distclean): Not here.
4804 * dep.h (RM_*): Use #defines instead of enum to avoid lossage from
4805 compilers that don't like enum values used as ints.
4807 Mon Aug 2 16:46:34 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4809 * compatMakefile (loadavg): Add $(LOADLIBES).
4811 Sun Aug 1 16:01:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4815 * compatMakefile (loadavg, check-loadavg): New targets.
4816 (check): Depend on check-loadavg.
4818 * compatMakefile (glob/libglob.a): Depend on config.h.
4820 * misc.c (log_access): Write to stderr instead of stdout.
4822 Fri Jul 30 00:07:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4826 Thu Jul 29 23:26:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4828 * configure.in (SYS_SIGLIST_DECLARED): In test program include
4829 <unistd.h> #ifdef HAVE_UNISTD_H.
4831 * compatMakefile (.PHONY): Put after `all' et al.
4833 * configure.in: Add AC_IRIX_SUN.
4835 Wed Jul 28 17:41:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4839 Mon Jul 26 14:36:49 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4843 Sun Jul 25 22:09:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4847 * compatMakefile ($(infodir)/make.info): Don't use $(instname).
4848 Run install-info script if present.
4850 Fri Jul 23 16:03:50 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4852 * make.h [STAT_MACROS_BROKEN]: Test this instead of [uts].
4854 * configure.in: Add AC_STAT_MACROS_BROKEN.
4856 Wed Jul 14 18:48:11 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4860 * read.c (read_makefile): Recognize directive `-include', like
4861 `include' but sets RM_DONTCARE flag.
4863 * variable.c (target_environment): If FILE is nil, use
4864 current_variable_set_list in place of FILE->variables.
4865 * function.c (expand_function: `shell'): Get an environment for
4866 the child from target_environment instead of using environ.
4868 * dep.h: Declare read_all_makefiles here.
4869 (RM_*): Define new enum constants.
4870 * read.c (read_makefile): Second arg is FLAGS instead of TYPE.
4871 Treat it as a bit mask containing RM_*.
4872 (read_all_makefiles): For default makefiles, set D->changed to
4873 RM_DONTCARE instead of 1.
4874 * main.c: Don't declare read_all_makefiles here.
4875 (main): Check `changed' member of read_makefiles elts for RM_*
4876 flags instead of specific integer values.
4878 Mon Jul 12 22:42:17 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4880 * make.h [sequent && i386]: #undef POSIX. From trost@cse.ogi.edu.
4882 Thu Jul 8 19:51:23 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4884 * vpath.c (construct_vpath_list): If ELEM is zero 0, free PATTERN
4886 (build_vpath_lists): Empty `vpaths' around construct_vpath_list
4887 call for $(VPATH). Expand $(strip $(VPATH)), not just $(VPATH).
4889 * rule.c (convert_suffix_rule): Use alloca instead of xmalloc for
4890 PERCENTS, whose storage is not consumed by create_pattern_rule.
4892 * make.h [__mips && _SYSTYPE_SVR3]: #undef POSIX.
4894 Wed Jun 30 18:11:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4898 * rule.c (max_pattern_targets): New variable.
4899 (count_implicit_rule_limits): Compute its value.
4900 * rule.h: Declare it.
4901 * implicit.c (pattern_search): Make TRYRULES max_target_patterns
4902 times bigger. Move adding new TRYRULES elt inside the inner
4903 targets loop, so each matching target gets its own elt in MATCHES
4904 and CHECKED_LASTSLASH.
4906 * file.c (remove_intermediates): If SIG!=0 say `intermediate file'
4907 instead of just `file' in error msg.
4909 Fri Jun 25 14:55:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4911 * job.c (construct_command_argv): Turn off
4912 --warn-undefined-variables around expansion of SHELL and IFS.
4913 * read.c (tilde_expand): Likewise for HOME.
4914 (read_all_makefiles): Likewise for MAKEFILES.
4915 * vpath.c (build_vpath_lists): Likewise for VPATH.
4917 * main.c (warn_undefined_variables_flag): New flag variable.
4918 (switches): Add --warn-undefined-variables.
4919 * make.h (warn_undefined_variables_flag): Declare it.
4920 * expand.c (warn_undefined): New function.
4921 (reference_variable): Call it if the variable is undefined.
4922 (variable_expand): In substitution ref, call warn_undefined if the
4923 variable is undefined.
4925 * default.c (default_pattern_rules): Add `%.c: %.w %.ch' and
4926 `%.tex: %.w %.ch' rules.
4927 (default_suffix_rules: .w.c, .w.tex): Pass three args: $< - $@.
4928 (default_suffixes): Add `.ch'.
4930 Mon Jun 21 17:55:39 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4932 * default.c (default_suffixes): Replace `.cweb' with `.w'.
4933 (default_suffix_rules): Rename `.cweb.c' and `.cweb.tex' to `.w.c'
4936 Fri Jun 11 14:42:09 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4938 * compatMakefile ($(bindir)/$(instname)): Add missing backslash.
4940 Thu Jun 10 18:14:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4944 * read.c (multi_glob): Don't free OLD and OLD->name in the
4945 FOUND!=0 fork. Use new block-local variable F instead of
4948 * ar.c (glob_pattern_p): New function, snarfed from glob/glob.c.
4949 (ar_glob): Call it; return nil immediately if MEMBER_PATTERN
4950 contains no metacharacters.
4952 Wed Jun 9 16:25:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4954 * ar.c (ar_glob{_match,_alphacompare}): New function.
4956 * dep.h [! NO_ARCHIVES]: Declare it.
4957 * read.c (multi_glob) [! NO_ARCHIVES]: Use it on archive member elts.
4959 * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
4960 multi_glob (which doesn't take a 3rd arg).
4961 * rule.c (install_pattern_rule): Likewise.
4962 * default.c (set_default_suffixes): Here too.
4963 * function.c (string_glob): Don't pass gratuitous arg to multi_glob.
4965 * read.c (parse_file_seq) [! NO_ARCHIVES]: Add post-processing
4966 loop to translate archive refs "lib(a b)" into "lib(a) lib(b)".
4968 Mon Jun 7 19:26:51 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4970 * compatMakefile (installdirs): Actually pass directory names.
4971 ($(bindir)/$(instname)): Test chgrp&&chmod exit status with `if';
4972 if it fails, echo a warning msg, but don't make the rule fail.
4974 * read.c (tilde_expand): New function, broken out of tilde_expand.
4975 (multi_glob): Call it.
4976 (construct_include_path): Expand ~ in directory names.
4977 * dep.h: Declare tilde_expand.
4978 * main.c (enter_command_line_file): Expand ~ at the start of NAME.
4979 (main): Expand ~ in -C args.
4980 * read.c (read_makefile): Expand ~ in FILENAME unless TYPE==2.
4982 Fri Jun 4 13:34:47 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4984 * main.c (decode_env_switches): Use xmalloc instead of alloca for ARGS.
4986 * main.c (main): Put result of alloca in temporary variable with
4987 simple assignment, to make SGI compiler happy.
4989 Thu Jun 3 20:15:46 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4993 * main.c (main): Before re-execing, remove intermediate files, and
4994 print the data base under -p. Sexier debugging message.
4996 * implicit.c (pattern_search): Allocate an extra copy of the name
4997 of a winning intermediate file when putting it in FOUND_FILES.
4999 Wed Jun 2 16:38:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5001 * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
5002 multi_glob (which doesn't take a 3rd arg).
5004 * dir.c (dir_contents_file_exists_p): When reading dirents, ignore
5005 chars within D_NAMLEN that are NULs.
5007 * main.c (decode_switches): Don't savestring ARGV[0] to put it
5009 For string switch, don't savestring `optarg'.
5010 (main): Don't free elts of makefiles->list that are "-".
5011 Use alloca'd rather than savestring'd storage for elts of
5012 makefiles->list that are temporary file names.
5013 * read.c (read_all_makefiles): Don't free *MAKEFILES.
5014 * file.c (enter_file): Don't strip `./'s.
5015 * main.c (enter_command_line_file): New function.
5016 (main): Use it in place of enter_file for command-line goals from
5017 other_files, and for old_files and new_files.
5019 Mon May 31 18:41:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5023 * compatMakefile (.SUFFIXES): Add .info.
5024 ($(infodir)/$(instname).info): Find make.info* in cwd if there,
5025 else in $srcdir. Use basename to remove dir name from installed name.
5027 Thu May 27 17:35:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5029 * implicit.c (pattern_search): When interning FOUND_FILES, try
5030 lookup_file first; if found, free the storage for our copy of the name.
5032 Wed May 26 14:31:20 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5036 * main.c (decode_switches): In usage msg, write `--switch=ARG' or
5037 `--switch[=OPTARG]' rather than `--switch ARG' or `--switch [ARG]'.
5039 Mon May 24 16:17:31 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5041 * rule.c (convert_suffix_rule): New function.
5042 (convert_to_pattern): Use it instead of doing all the work here
5044 For target suffix `.a', generate both the archive magic rule and
5047 * compatMakefile (distclean): Remove stamp-config.
5049 Sat May 22 16:15:18 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5053 * file.c (remove_intermediates): Don't write extra space after `rm'.
5055 * main.c (struct command_switch.type): Remove `usage_and_exit'.
5056 (print_usage_flag): New variable.
5057 (switches: --help): Make type `flag', to set print_usage_flag.
5058 (init_switches): Remove `usage_and_exit' case.
5059 (decode_switches): Likewise.
5060 (decode_switches): Print usage if print_usage_flag is set.
5061 When printing usage, die with status of BAD.
5062 (main): Die with 0 if print_version_flag.
5064 Fri May 21 16:09:28 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5068 Wed May 19 21:30:44 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5070 * compatMakefile (installdirs): New target.
5071 (install): Depend on it.
5073 Sun May 16 20:15:07 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5077 Fri May 14 16:40:09 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5079 * vpath.c (construct_vpath_list): In removal loop for DIRPATH==0,
5080 set LASTPATH to PATH, not NEXT.
5082 * dir.c (read_dirstream): Break out of loop after incrementing
5083 DS->buckets such that it reaches DIRFILE_BUCKETS; avoid trying to
5084 dereference DS->contents->files[DIRFILE_BUCKETS].
5086 * read.c (read_makefile): Clear no_targets after reading a
5087 targetful rule line.
5089 * main.c (main): If print_version_flag is set, exit after printing
5091 (switches): Change --version docstring to say it exits.
5093 * make.h [butterfly]: #undef POSIX.
5095 Wed May 12 15:20:21 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5099 * arscan.c (ar_scan) [! AIAMAG]: Don't declare LONG_NAME.
5100 [AIAMAG]: Pass TRUNCATE flag arg to (*FUNCTION), always zero.
5102 * function.c (handle_function): Use fatal instead of
5103 makefile_fatal when reading_filename is nil.
5105 * configure.in: Add AC_GETGROUPS_T.
5106 * job.c (search_path): Use GETGROUPS_T in place of gid_t.
5108 Sun May 9 15:41:25 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5112 Fri May 7 18:34:56 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5114 * function.c (handle_function): Fatal for unmatched paren.
5116 Thu May 6 16:13:41 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5120 * commands.c (handling_fatal_signal): New variable.
5121 (fatal_error_signal): Set it.
5122 * job.c (reap_children): Avoid nonreentrant operations if that is set.
5123 * make.h: Declare handling_fatal_signal.
5125 * expand.c (reference_variable): New function, snippet of code
5126 broken out of simple-reference case of variable_expand.
5127 (variable_expand): Use it for simple refs.
5128 (variable_expand): When checking for a computed variable name,
5129 notice a colon that comes before the final CLOSEPAREN. Expand
5130 only up to the colon, and then replace the pending text with a
5131 copy containing the expanded name and fall through to subst ref
5133 (variable_expand): Don't bother expanding the name if a colon
5134 appears before the first $.
5135 (expand_argument): Use alloca instead of savestring.
5136 (variable_expand): For subst ref, expand both sides of = before
5137 passing to [pat]subst_expand. Use find_percent instead of lindex
5138 to check the lhs for a %.
5140 Wed May 5 14:45:52 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5144 Mon May 3 17:00:32 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5146 * arscan.c (ar_name_equal) [AIAMAG]: Abort if TRUNCATED is nonzero.
5148 * read.c (read_makefile): Pass extra arg of 1 to parse_file_seq,
5151 Thu Apr 29 19:47:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5155 * arscan.c (ar_scan): New local flag var LONG_NAME. Set it when
5156 we read the member name in any of the fashions that allow it to be
5157 arbitrarily long. Pass its negation to FUNCTION.
5158 (describe_member): Take TRUNCATED from ar_scan and print it.
5159 (ar_name_equal): Take new arg TRUNCATED; if nonzero, compare only
5160 the first sizeof (struct ar_hdr.ar_name) chars.
5161 (ar_member_pos): Take TRUNCATED from ar_scan, pass to ar_name_equal.
5162 * ar.c (ar_member_date_1): Likewise.
5164 Wed Apr 28 21:18:22 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5166 * job.c (reap_children): Before calling start_job_command to start
5167 the next command line, reset C->remote by calling start_remote_job_p.
5169 Mon Apr 26 15:56:15 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5171 * arscan.c (ar_scan): New local var NAMEMAP.
5172 In loop, rename NAME to NAMEBUF; new var NAME is a pointer; new
5173 flag IS_NAMEMAP. When extracting the member name, always put a
5174 null at its end first. If the name is "//" or "/ARFILENAMES", set
5175 IS_NAMEMAP. If we have already read in NAMEMAP, and NAME looks
5176 like " /N", get full name from NAMEMAP+N.
5177 Else if NAME looks like "#1/N", read N chars from the
5178 elt data to be the full name. At end of loop, if IS_NAMEMAP, read
5179 the elt's data into alloca'd NAMEMAP.
5180 (ar_name_equal): #if 0 truncating code.
5182 * make.h: Don't declare vfork at all. It returns int anyway,
5183 unless <unistd.h> declared it; and we conflicted with some systems.
5185 * main.c (define_makeflags): If FLAGSTRING[1] is '-', define
5186 MAKEFLAGS to all of FLAGSTRING, not &FLAGSTRING[1]. Don't want to
5187 define it to something like "-no-print-directory".
5188 Use %g format instead of %f for floating-valued things.
5190 Thu Apr 22 18:40:58 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5192 * GNUmakefile (Makefile.in): Use a substitution ref on nolib-deps
5193 to change remote-%.dep to remote-stub.dep.
5195 Wed Apr 21 15:17:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5199 Fri Apr 16 14:22:22 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5201 * compatMakefile (install): Remove - prefix from chgrp+chmod.
5205 Thu Apr 15 18:24:07 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5207 * acconfig.h: New file; contains "#undef SCCS_GET" for autoheader.
5208 * configure.in: If /usr/sccs/get exists, define SCCS_GET to that,
5210 * default.c (default_variables): Set GET to macro SCCS_GET.
5212 * read.c (parse_file_seq): Take extra arg STRIP; strip `./' only
5213 if nonzero. I hope this is the last time this argument is added
5215 (read_makefile): Pass it 1 when parsing include file names.
5216 Pass it 1 when parsing target file names.
5217 Pass it 1 when parsing static pattern target pattern names.
5218 * rule.c (install_pattern_rule): Pass it 1 when parsing rule deps.
5219 * default.c (set_default_suffixes): Pass it 1 when parsing
5221 * function.c (string_glob): Pass it 0 here.
5223 Wed Apr 14 11:32:05 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5225 * misc.c (log_access): New function.
5226 ({init,user,make,child}_access): Call it.
5227 (child_access): Abort if !access_inited.
5229 * main.c (switches: --no-print-directory): Use 1 instead of -1 for
5230 single-letter option.
5231 (init_switches, decode_switches, define_makeflags): An option with
5232 no single-letter version is no longer indicated by a value of -1;
5233 instead a value that is !isalnum.
5234 (init_switches): Don't put such switches into the string, only
5235 into the long_option table.
5237 * make.h [!NSIG] [!_NSIG]: #define NSIG 32.
5239 * job.c [HAVE_WAITPID]: Remove #undef HAVE_UNION_WAIT. AIX's
5240 bsdcc defined WIF* to use union wait.
5242 * main.c (struct command_switch): Change member `c' to type int.
5243 (switches): Make const.
5244 (decode_switches): Use `const struct command_switch *'.
5245 (define_makeflags): Likewise.
5247 * default.c (default_suffix_rules): Add `-o $@' to makeinfo rules.
5249 Mon Apr 12 12:30:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5253 * configure.in (AC_HAVE_HEADERS): Check for string.h and memory.h.
5254 Removed AC_MEMORY_H.
5255 * make.h [USG, NeXT]: Don't test these.
5256 [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
5257 [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
5258 [! ANSI_STRING]: Put decls of bcopy et al here.
5259 [sparc]: Don't test this for alloca.h; HAVE_ALLOCA_H is sufficient.
5260 [HAVE_SIGSETMASK]: Test this rather than USG.
5261 [__GNU_LIBRARY__ || POSIX]: Don't #include <unistd.h> again.
5262 * main.c (main): Handle SIGCHLD if defined, and SIGCLD if defined.
5263 It doesn't hurt to do both if they are both defined, and testing
5265 * dir.c: Rationalize directory header conditionals.
5266 * arscan.c [HAVE_FCNTL_H]: Test this rather than USG || POSIX.
5268 * default.c (default_suffixes): Add `.txinfo'.
5269 (default_suffix_rules): Add `.txinfo.info' and `.txinfo.dvi' rules.
5271 * variable.c (try_variable_definition): Replace RECURSIVE flag
5272 with enum FLAVOR, which can be simple, recursive, or append.
5273 Recognize += as append flavor. Set new variable VALUE in a switch
5274 on FLAVOR. For append flavor, prepend the variable's old value.
5275 If the variable was previously defined recursive, set FLAVOR to
5276 recursive; if it was defined simple, expand the new value before
5277 appending it to the old value. Pass RECURSIVE flag to
5278 define_variable iff FLAVOR == recursive.
5280 * variable.c (try_variable_definition): Use alloca and bcopy for
5281 NAME, instead of savestring. Might as well use stack storage
5282 since we free it immediately anyway.
5284 Thu Apr 8 18:04:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5286 * job.c (start_waiting_jobs): Move decl of JOB outside of loop.
5288 * main.c (define_makeflags): Rename `struct flag' member `switch'
5289 to `cs', which is not a reserved word.
5291 Wed Apr 7 15:30:51 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5293 * job.c (new_job): Call start_waiting_jobs first thing.
5294 (start_waiting_job): Changed return type from void to int.
5295 Return 0 when putting the child on the waiting_jobs chain.
5296 (start_waiting_jobs): Don't check load and job_slots here.
5297 Always take a job off the chain and call start_waiting_job on it;
5298 give up and return when start_waiting_job returns zero.
5300 * main.c (define_makeflags: struct flag): Change member `char c' to
5301 `struct command_switch *switch'.
5302 (ADD_FLAG): Set that to CS instead of CS->c.
5303 If CS->c is -1, increment FLAGSLEN for the long name.
5304 When writing out FLAGS, handle FLAGS->switch->c == -1 and write
5305 the long name instead.
5307 * compatMakefile (stamp-config): New target of old config.h rule.
5308 Touch stamp-config after running config.status.
5309 (config.h): Just depend on stamp-config, and have empty commands.
5311 Mon Apr 5 20:14:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5313 * job.c [HAVE_WAITPID]: #undef HAVE_UNION_WAIT.
5315 * configure.in (AC_HAVE_FUNCS): Check for psignal.
5317 Fri Apr 2 17:15:46 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5319 * main.c (long_option_aliases): Remove "new"; it is already an
5320 unambiguous prefix of "new-file".
5322 Sun Mar 28 16:57:17 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5326 Wed Mar 24 14:26:19 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5328 * vpath.c (selective_vpath_search): When adding the
5329 name-within-directory at the end of NAME, and we don't add a
5330 slash, don't copy FILENAME in one char too far into NAME.
5332 * variable.c (define_automatic_variables): Find default_shell's
5333 length with strlen, not numerology.
5335 Wed Mar 17 20:02:27 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5337 * main.c (define_makeflags): Add the elts of a string option in
5338 reverse order, so they come out right when reversed again.
5340 Fri Mar 12 15:38:45 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5342 * compatMakefile (make.info): Use `-o make.info'.
5344 Thu Mar 11 14:13:00 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5346 * compatMakefile (REMOTE): Set to @REMOTE@; change comments to
5348 (objs): Replace remote.o with remote-$(REMOTE).o.
5349 (srcs): Replace remote.c with remote-$(REMOTE).c.
5350 (remote.o): Rule removed.
5352 * configure.in (REMOTE): Subst this in Makefile et al; default "stub".
5353 Use AC_WITH to grok --with-customs arg to set REMOTE=cstms.
5354 * GNUmakefile (build.sh.in): Filter out remote-% from objs list.
5355 * build.template (REMOTE): New var; set to @REMOTE@.
5356 (objs): Add remote-${REMOTE}.o.
5358 Wed Mar 10 15:12:24 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5362 * implicit.c (pattern_search): Fix "dependent"->"dependency" in
5363 "Rejecting impossible" -d msg.
5365 * file.c (file_hash_enter): New local vars {OLD,NEW}BUCKET. Store
5366 mod'd values there; never mod {OLD,NEW}HASH.
5368 Mon Mar 8 13:32:48 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5370 * remake.c [eta10]: Include <fcntl.h> instead of <sys/file.h>.
5372 * compatMakefile (VPATH): Set this to @srcdir@.
5373 (srcdir): Set this to $(VPATH).
5375 * main.c (main): New local var DIRECTORY_BEFORE_CHDIR. Save in it
5376 a copy of CURRENT_DIRECTORY after the first getcwd. Use it
5377 instead of CURRENT_DIRECTORY when chdir'ing back before re-execing.
5379 * remake.c (notice_finished_file): Pass missing SEARCH arg to f_mtime.
5381 * read.c (read_makefile): Remove extraneous arg to parse_file_seq.
5383 Mon Feb 22 14:19:38 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5385 * compatMakefile ($(infodir)/$(instname).info): Use , instead of /
5386 as the sed delimiter char.
5388 Sun Feb 21 14:11:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5392 * rule.h (struct rule): Removed `subdir' member.
5393 * rule.c (new_pattern_rule): No need to clear it.
5394 (count_implicit_rule_limits): Set the `changed' flag in each dep
5395 that refers to a nonexistent directory. No longer set rule-global
5396 `subdir' flag with that information.
5397 (print_rule_data_base): Don't record info on `subdir' flags.
5399 * implicit.c (pattern_search): Check the DEP->changed flag rather
5400 than the (now gone) RULE->subdir flag. Also test CHECK_LASTSLASH;
5401 if it is set, the file might exist even though the DEP->changed
5404 * rule.c (count_implicit_rule_limits): Pass "", not ".", as file
5405 name arg to dir_file_exists_p to check for existence of directory.
5407 * implicit.c (pattern_search): Inside dep-finding loop, set
5408 CHECK_LASTSLASH from the value recorded in CHECKED_LASTSLASH[I],
5409 rather than computing it anew.
5411 * commands.c (set_file_variables): Must alloca space for PERCENT
5412 and copy it, to avoid leaving the trailing `)' in the value.
5414 * misc.c (remove_comments): Fixed backslash-checking loop
5415 condition to allow it to look at the first char on the line.
5416 P2 >= LINE, not P2 > LINE.
5418 * compatMakefile ($(bindir)/$(instname)): Before moving $@.new to
5419 $@, rm $@.old and mv $@ to $@.old.
5421 * variable.c (try_variable_definition): Take new args FILENAME and
5422 LINENO. Fatal if the variable name is empty.
5423 * read.c (read_makefile): Change callers.
5424 * main.c (main): Likewise.
5426 * compatMakefile (group): Define to @KMEM_GROUP@, autoconf magic
5427 that configure will replace with the group owning /dev/kmem.
5429 Mon Feb 8 14:26:43 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5431 * vpath.c (vpath_search): Take second arg MTIME_PTR, pass thru to
5432 selective_vpath_search.
5433 (selective_vpath_search): Take second arg MTIME_PTR.
5434 If the dir cache thinks a file exists, stat it to make sure, and
5435 put the modtime in *MTIME_PTR.
5436 * remake.c (library_search): Take second arg MTIME_PTR.
5437 When we find a match, record its mtime there.
5438 Pass MTIME_PTR through to vpath_search to do same.
5439 (f_mtime): Pass &MTIME as new 2nd arg to {vpath,library}_search;
5440 store it in FILE->last_mtime if set nonzero.
5441 * implicit.c (pattern_search): Pass nil 2nd arg to vpath_search.
5443 * compatMakefile (remote.o): Prepend `$(srcdir)/' to `remote-*.c',
5444 so globbing looks somewhere it will find things.
5446 * compatMakefile ($(infodir)/$(instname).info): Install `make.info*'
5447 not `$(srcdir)/make.info*'; no need to use basename.
5449 Fri Feb 5 12:52:43 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5453 * compatMakefile (install): Add missing ;\s.
5455 Make -, @, and + prefixes on a pre-expanded command line affect
5456 all lines in the expansion, not just the first.
5457 * commands.h (struct commands): Replace `lines_recurse' member
5459 (COMMANDS_{RECURSE,SILENT,NOERROR}): New macros, bits to set in
5461 * commands.c (chop_commands): Set `lines_flags' instead of
5462 `lines_recurse'. Record not only + but also @ and - prefixes.
5463 * remake.c (notice_finished_file): Check the COMMANDS_RECURSE bit
5464 in FILE->cmds->lines_flags, rather than FILE->cmds->lines_recurse.
5465 * job.c (start_job_command): Replaced RECURSIVE and NOPRINT local
5466 var with FLAGS; initialize it to the appropriate `lines_flags' byte.
5467 Set CHILD->noerror if the COMMANDS_NOERROR bit is set in FLAGS.
5468 Set the COMMANDS_SILENT bit in FLAGS for a @ prefix.
5470 * remake.c (update_goal_chain): Set G->file to its prev after
5471 checking for G being finished, since that check needs to examine
5474 * configure.in (union wait check) [HAVE_WAITPID]: Try using
5475 waitpid with a `union wait' STATUS arg. If waitpid and union wait
5476 don't work together, we should not use union wait.
5480 * remake.c (update_goal_chain): When G->file->updated, move
5481 G->file to its prev. We aren't finished until G->file is nil.
5483 Thu Feb 4 12:53:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5485 * main.c (starting_directory): New global variable.
5486 (main): Set it to cwd after doing -Cs.
5487 (log_working_directory): Use it, rather than computing each time.
5488 * make.h: Declare it.
5490 * compatMakefile (SHELL): Define to /bin/sh for losing Unix makes.
5492 * main.c (decode_env_switches): Allocate (1 + LEN + 1) words for
5493 ARGV, rather than LEN words plus one byte.
5495 Wed Feb 3 18:13:52 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5497 * compatMakefile ($(bindir)/$(instname)): Put - before
5498 install_setgid command line, so its failure won't be an error.
5499 (infodir): New variable.
5500 (install): Depend on $(infodir)/$(instname).info.
5501 ($(infodir)/$(instname).info): New target.
5503 * read.c (read_makefile): If FILENAMES is nil when we see a line
5504 starting with a tab, don't treat it as a command. Just fall
5505 through, rather than giving an error.
5507 * read.c (read_makefile): If the NO_TARGETS flag is set when we see a
5508 command line, don't clear it before continuing. We want
5509 subsequent command lines to be ignored as well.
5511 * job.c (new_job): Before expanding each command line, collapse
5512 backslash-newline combinations that are inside var or fn references.
5514 Mon Feb 1 16:00:13 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5516 * compatMakefile (exec_prefix): Default to $(prefix), not /usr/local.
5518 * compatMakefile (make.info): Pass -I$(srcdir) to makeinfo.
5520 * job.c [POSIX] (unblock_sigs): Made global.
5521 [!POSIX] (unblock_sigs): Move defns to job.h.
5522 * job.h [POSIX] (unblock_sigs): Declare.
5524 Sun Jan 31 19:11:05 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5526 * read.c (read_makefile): In vpath parsing, after finding the
5527 pattern token, take entire rest of line as the search path, not
5528 just the next token.
5530 * compatMakefile (remote.o): Depend on remote-*.c.
5532 Thu Jan 28 16:40:29 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5534 * commands.c (set_file_variables): Don't define any F or D versions.
5535 * variable.c (define_automatic_variables): Define them here as
5536 recursively-expanded variables that use the dir and notdir funcs.
5538 * variable.c (target_environment): In v_default case, don't export
5539 o_default or o_automatic variables.
5541 * configure.in (union wait check): Remove ` and ' inside C code;
5542 they confuse the shell script.
5544 Mon Jan 25 13:10:42 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5548 * vpath.c (construct_vpath_list): When skipping further processing
5549 of an elt that is ".", don't also skip the code that pushes P past
5552 * compatMakefile (distclean): Don't remove make-*.
5554 * configure.in (HAVE_UNION_WAIT): Try to use WEXITSTATUS if it's
5555 defined. If one cannot use WEXITSTATUS with a `union wait'
5556 argument, we don't want to believe the system has `union wait' at all.
5558 * remake.c (update_file): Do nothing to print "up to date" msgs.
5559 (update_goal_chain): Do it here instead.
5560 Use the `changed' flag of each goal's `struct dep' to keep track
5561 of whether files_remade (now commands_started) changed around a
5562 call to update_file for that goal.
5563 When a goal is finished, and its file's update_status is zero (i.e.,
5564 success or nothing done), test the `changed' flag and give an "up
5565 to date" msg iff it is clear.
5566 * make.h (files_remade): Renamed to commands_started.
5567 * remake.c: Changed defn.
5568 (update_goal_chain): Changed uses.
5569 * job.c (start_job_command): Increment commands_started here.
5570 (reap_children): Not here.
5572 * remake.c (update_goal_chain): Don't do anything with files'
5573 `prev' members. update_file now completely handles this.
5575 * variable.c (target_environment): Don't expand recursive
5576 variables if they came from the environment.
5578 * main.c (define_makeflags): For flags with omitted optional args,
5579 store {"", 0} with ADD_FLAG. When constructing FLAGSTRING, a flag
5580 so stored cannot have more flags appended to the same word.
5582 Fri Jan 22 14:46:16 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5584 * variable.c (print_variable_set): In vars/bucket calculation,
5585 don't spuriously multiply by 100.
5589 * job.c [!HAVE_UNION_WAIT] (WTERMSIG, WCOREDUMP, WEXITSTATUS):
5590 Don't define if already defined.
5592 * remake.c (update_file): Don't keep track of the command_state before
5593 calling update_file_1. Remove local variable COMMANDS_FINISHED,
5594 and don't test it to decide to print the "is up to date" msg.
5595 Testing for files_remade having changed should always be sufficient.
5596 The old method lost when we are called in the goal chain run on a
5597 makefile, because the makefile's command_state is already
5598 `cs_finished' from the makefile chain run.
5600 * misc.c [HAVE_SETRE[GU]ID]: Test these to decl setre[gu]id.
5602 * configure.in: Rewrote wait checking.
5603 Use AC_HAVE_HEADERS to check for <sys/wait.h>.
5604 Use AC_HAVE_FUNCS to check for waitpid and wait3.
5605 Use a compile check to test just for `union wait'.
5606 * job.c: Rewrote conditionals accordingly.
5607 [HAVE_WAITPID]: Test this only to define WAIT_NOHANG.
5608 [HAVE_WAIT3]: Likewise.
5609 [HAVE_UNION_WAIT]: Test this to define WAIT_T and W*.
5611 * configure.in: Set CFLAGS and LDFLAGS before all checks.
5613 * dir.c: Add static forward decls of {open,read}_dirstream.
5615 Thu Jan 21 17:18:00 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5619 * job.c [NGROUPS_MAX && NGROUPS_MAX==0]: #undef NGROUPS_MAX.
5621 * compatMakefile (CFLAGS, LDFLAGS): Set to @CFLAGS@/@LDFLAGS@.
5622 * build.template (CFLAGS, LDFLAGS): Same here.
5623 * configure.in: AC_SUBST(CFLAGS) and LDFLAGS.
5624 Set them to -g if not defined in the environment.
5626 * remake.c (library_search): Use LIBNAME consistently, setting it
5627 only once, to be the passed name sans `-l'.
5628 Pass new var FILE to be modified by vpath_search.
5630 Mon Jan 18 14:53:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5634 * job.c (start_waiting_jobs): Return when job_slots_used is equal to
5637 * configure.in: Add AC_CONST for the sake of getopt.
5639 * read.c (read_makefile): Continue after parsing `override'
5640 directive, rather than falling through to lossage.
5641 Check for EOL or blank after "override define".
5643 * compatMakefile (.c.o, remote.o): Put $(CFLAGS) after other switches.
5645 Fri Jan 15 12:52:52 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5649 * main.c (define_makeflags): After writing everything into
5650 FLAGSTRING, only back up two chars if [-1] is a dash, meaning we
5651 just wrote " -". Always terminate the string at *P.
5653 * remake.c (library_search): When constructing names in std dirs,
5654 use &(*LIB)[2] for the stem, not LIBNAME (which points at the
5655 buffer we are writing into!).
5657 Thu Jan 14 13:50:06 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5659 * read.c (read_makefile): Set IN_IGNORED_DEFINE for "override
5660 define" when IGNORING is true.
5662 * compatMakefile (distclean): Remove config.status and build.sh.
5664 Wed Jan 13 16:01:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5668 * misc.c (xmalloc, xrealloc): Cast result of malloc/realloc to
5671 * arscan.c (ar_scan) [AIAMAG]: Cast read arg to (char *).
5673 * variable.c (define_automatic_variables): Override SHELL value for
5674 origin o_env_override as well as o_env.
5676 * GNUmakefile (build.sh.in): Don't replace %globobjs%. Instead,
5677 add the names of the glob objects (w/subdir) to %objs%.
5678 * build.template (globobjs): Removed.
5679 Take basename of $objs before linking.
5681 Tue Jan 12 12:31:06 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5685 * configure.in (AC_OUTPUT): Also edit build.sh.
5686 * build.template: New file.
5687 * GNUmakefile (build.sh.in): New rule to create it from build.template.
5688 (make-$(version).tar.Z): Depend on build.sh.in.
5690 * main.c (die): Call print_data_base if -p.
5691 (main): Don't call it here.
5693 * compatMakefile (defines): Add @DEFS@. configure should turn this
5694 into -DHAVE_CONFIG_H.
5696 Mon Jan 11 14:39:23 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5700 * misc.c (init_access): Surround with #ifdef GETLOADAVG_PRIVILEGED.
5701 ({make,user,child}_access) [! GETLOADAVG_PRIVILEGED]: Make no-op.
5702 * compatMakefile (install_setgid): New var, set by configure.
5703 (install): Install setgid $(group) only if $(install_setgid) is true.
5705 Fri Jan 8 15:31:55 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5707 * job.c (load_too_high): If getloadavg fails with errno==0, give a
5708 message saying that load limits are not supported.
5710 * vpath.c (construct_vpath_list): Rewrote path deletion code to
5711 not try to use PATH's next link after freeing PATH.
5713 * main.c (define_makeflags): Rewritten; now handles string-valued
5714 option, and has no arbitrary limits.
5715 (switches): Set `toenv' flag for -I and -v.
5717 * main.c (decode_env_switches): Cast return value of alloca to char *.
5719 * misc.c (child_access) [HAVE_SETREUID, HAVE_SETREGID]: Use
5720 setre[gu]id in place of set[gu]id.
5722 Wed Jan 6 15:06:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5724 * main.c (main): Define MAKEOVERRIDES, MAKE, and MAKE_COMMAND with
5727 * make.h [POSIX]: Don't test this to use ANSI_STRING.
5728 Testing STDC_HEADERS should be sufficient.
5730 * job.h: Declare start_waiting_jobs.
5732 * read.c (read_makefile): Add missing parens in if stmt that find
5733 conditional directives.
5735 * main.c (main): Declare init_dir.
5736 * implicit.c (pattern_search): Always use two % specs in a
5737 DEBUGP2, and always pass two non-nil args.
5738 Cast field width args to int.
5739 Add missing parens in !RULE->subdir if stmt.
5740 * function.c (expand_function, patsubst_expand): Add parens around
5741 assignments inside `while' stmts.
5742 * commands.c (print_commands): Cast field width args to int.
5744 * read.c (do_define): Cast return value of alloca to (char *).
5746 * main.c (init_switches): New function, broken out of decode_switches.
5747 (decode_switches): Take new arg ENV. If set, ignore non-option
5748 args; print no error msgs; ignore options with clear `env' flags.
5749 (decode_env_switches): Rewritten to chop envar value into words
5750 and pass them to decode_switches.
5751 (switches): Set `env' flag for -I and -v.
5753 * dir.c (init_dir): Cast free to __glob_closedir_hook's type.
5755 Tue Jan 5 14:52:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5759 * job.c [HAVE_SYS_WAIT || !USG]: Don't #include <sys/time.h> and
5760 <sys/resource.h>. <sys/time.h> interacts badly with <time.h>, and
5761 we don't need these anyway.
5763 * configure.in (AC_HAVE_FUNCS): Check for setre[gu]id.
5764 * misc.c ({user,make}_access): Test #ifndef HAVE_SETRE[GU]ID, not
5765 #ifdef POSIX || USG. SunOS 4.1 is supposedly POSIX.1 compliant,
5766 but its set[gu]id functions aren't; its setre[gu]id functions work.
5768 * misc.c ({user,make,child}_access): Give name of caller in error msgs.
5770 * job.c (load_too_high): Say "cannot enforce load limit" in error msg.
5772 * configure.in: Call AC_PROG_CC.
5773 * compatMakefile (CC): Define to @CC@ (autoconf magic).
5775 * compatMakefile: Add .NOEXPORT magic target.
5777 Mon Jan 4 17:00:03 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5779 * main.c (print_version): Updated copyright to include 93.
5781 Thu Dec 31 12:26:15 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5783 * make.h [_AIX]: Don't declare alloca.
5785 Tue Dec 29 13:45:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5789 * compatMakefile (objs): Add signame.o.
5790 (srcs): Add signame.[ch].
5792 * compatMakefile (srcs): Add config.h.in.
5793 (remote.o): Add -I. before -I$(srcdir).
5795 Mon Dec 28 15:51:26 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5799 * read.c (readline): Fatal when LEN==0, indicating a line starting
5801 (readline): Take new arg LINENO, for use in error msg.
5802 (read_makefile, do_define): Pass it.
5804 * compatMakefile (glob/libglob.a): Pass -DHAVE_CONFIG_H in CPPFLAGS.
5805 (.c.o): Add -I. before -I$(srcdir).
5807 Wed Dec 23 12:12:04 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5809 * read.c (read_makefile): Accept and ignore a rule with no targets.
5811 * compatMakefile (ALLOCA_SRC): New variable.
5812 (srcs): Include its value.
5814 * read.c (struct conditional): Renamed member `max_ignoring' to
5815 `allocated'; added new member `seen_else'.
5816 (conditional_line): Initialize seen_else flag when starting an `if...';
5817 set it when we see an `else'; fatal if set when we see `else'.
5818 (read_makefile): Fatal "missing `endif'" if there are any pending
5819 conditionals, not just if we are still ignoring.
5821 Tue Dec 22 15:36:28 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5823 * compatMakefile (manext): Set to 1, not l.
5824 ($(mandir)/$(instname).$(manext)): Use $(srcdir) for make.man in cmds.
5826 * file.c (file_hash_enter): Don't call uniquize_deps here.
5827 * read.c (record_files): Likewise.
5828 * implicit.c (pattern_search): Likewise.
5829 * commands.c (set_file_variables): Call it only here.
5831 * default.c (default_variables) [__convex__]: FC=fc.
5833 * variable.c (target_environment): Expand the values of recursively
5834 expanded variables when putting them into the environment.
5835 * expand.c (recursively_expand): Made global.
5836 * make.h (recursively_expand): Declare it.
5838 * remake.c (check_dep): Set FILE->command_state to cs_deps_running
5839 when a dep's command_state is cs_running or cs_deps_running.
5841 * read.c (read_makefile): Changed error msg for spurious cmds to
5842 not say "first target".
5844 Sun Dec 20 17:56:09 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5846 * configure.in: Do AC_CONFIG_HEADER right after AC_INIT.
5847 * make.h (HAVE_CONFIG_H): #include "config.h", then #define this.
5848 * compatMakefile (config.h, configure, config.h.in): New rules.
5849 (defines): Removed @DEFS@.
5851 Thu Dec 17 16:11:40 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5853 * compatMakefile (realclean): Just depend on distclean; no cmds.
5854 (distclean): Do what realclean did before; also remove Makefile and
5855 config.h; don't remove configure.
5856 (info, dvi): New targets; depend on make.{info,dvi}.
5857 (doc): Removed target.
5858 (MAKEINFO, TEXI2DVI): New vars.
5859 (make.info, make.dvi): Use them instead of explicit cmds.
5861 Wed Dec 16 16:25:24 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5863 * configure.in: Added fcntl.h to AC_HAVE_HEADERS. getloadavg cares.
5865 Wed Dec 9 15:21:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5867 * main.c (long_option_aliases): Add --new-file alias for -W.
5869 * default.c (default_variables): Change all C++ to CXX and C++FLAGS
5872 * read.c (do_define): Expand the variable name before using it.
5874 * main.c (main): Define variable "MAKE_COMMAND" to argv[0];
5875 define "MAKE=$(MAKE_COMMAND) $(MAKEOVERRIDES)" always.
5877 * remake.c (library_search): Search for libNAME.a in cwd; look in
5878 vpath before looking in standard dirs, not after.
5879 Changed order of std dirs to: /lib, /usr/lib, ${prefix}/lib.
5881 Mon Nov 23 14:57:34 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5883 * default.c (default_pattern_rules, default_terminal_rules): Added
5884 brackets around initializers.
5886 * variable.c (try_variable_definition): Don't check for LINE[0]=='\t'.
5887 (try_variable_definition): Expand the name before defining the var.
5889 * job.c (init_siglist): Removed function.
5890 Removed decl of `sys_siglist'.
5891 * make.h [! HAVE_SYS_SIGLIST]: #include "signame.h".
5892 [HAVE_SYS_SIGLIST && !SYS_SIGLIST_DECLARED]: Declare sys_siglist
5893 only under these conditions.
5894 * main.c (main): Don't declare init_siglist.
5895 (main) [! HAVE_SYS_SIGLIST]: Call signame_init instead of init_siglist.
5897 Wed Nov 18 14:52:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5899 * read.c (record_files): Don't try to append to FIRSTDEPS if it's
5900 nil; instead just set it to MOREDEPS.
5902 Mon Nov 16 17:49:17 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5904 * vpath.c (construct_vpath_list): Initialize P to DIRPATH before
5905 loop that sets MAXELEM.
5907 Fri Nov 13 18:23:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5911 Thu Nov 12 15:45:31 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5913 * job.c (start_job_command): Under -n, increment files_remade after
5914 processing (i.e., printing) all command lines.
5916 Tue Nov 10 15:33:53 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5918 * read.c (record_files): Append new deps if this rule has no
5919 commands; prepend them to existing deps if this rule has no commands.
5921 * dir.c (open_dirstream): Return nil if DIR->contents->files is nil.
5923 * read.c (parse_file_seq): Removed last arg STRIP. Always strip `./'s.
5924 (read_makefile): Changed callers.
5925 * function.c (string_glob): Likewise.
5926 * rule.c (install_pattern_rule): Likewise.
5928 Mon Nov 9 17:50:16 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5930 * remake.c (files_remade): Made global.
5931 (notice_finished_file): Don't increment files_remade here; this
5932 function gets called in many situations where no remaking was in
5934 * job.c (reap_children): Do it here instead, when we know that
5935 actual commands have been run for the file.
5936 * make.h (files_remade): Declare it.
5938 Thu Nov 5 18:26:10 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5940 * vpath.c (construct_vpath_list): Allow blanks as well as colons to
5941 separate elts in the search path.
5943 * read.c (read_makefile): Don't fatal on extra tokens in `vpath'.
5944 The search path can contain spaces now.
5946 Tue Nov 3 20:44:32 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5948 * compatMakefile (check): New target; no-op.
5950 * file.c (file_hash_enter): Mod OLDHASH by FILE_BUCKETS after
5951 testing for OLDHASH==0 but before using the value.
5952 (rename_file): Don't mod OLDHASH by FILE_BUCKETS before passing it
5955 * file.c (rename_file): Notice when OLDFILE->cmds came from
5956 default.c, and don't try to print ->filename in that case.
5958 Sun Oct 25 01:48:23 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5960 * remake.c (update_file): Don't process F->also_make here.
5961 (notice_finished_file): Don't process FILE->also_make if no attempt
5962 to update FILE was actually made.
5963 Fixed to call f_mtime directly to refresh their modtimes.
5965 Sat Oct 24 22:08:59 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5967 * read.c (find_percent): Don't increment P again after skipping
5970 * expand.c (variable_expand): In call to patsubst_expand, don't
5971 find `%'s ourselves; let that function do it.
5973 * read.c (read_makefile: record_waiting_files): Don't call
5974 record_files if FILENAMES is nil.
5975 (read_makefile): All alternatives in the parsing, except for rule
5976 lines, fall through to the end of the loop. At the end of the
5977 loop, do record_waiting_files so we notice later spurious cmds.
5979 Fri Oct 23 15:57:37 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5981 * variable.c (define_automatic_variables): Free old value of SHELL
5982 before replacing it.
5984 Thu Oct 15 18:57:56 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5986 * compatMakefile (.c.o): Add -I$(srcdir)/glob to flags.
5988 * dir.c (open_dirstream): Cast return value to __ptr_t.
5990 * default.c (default_variables: "GET") [_IBMR2]: Use USG defn.
5992 * make.h (MAXPATHLEN): Moved out of #ifndef POSIX.
5993 (GET_PATH_MAX): Moved from #ifdef POSIX to #ifdef PATH_MAX #else.
5994 Define as (get_path_max ()).
5995 [! PATH_MAX] (NEED_GET_PATH_MAX): Define.
5996 [! PATH_MAX] (get_path_max): Declare fn.
5997 * misc.c [NEED_GET_PATH_MAX] (get_path_max): New function.
5999 Mon Oct 12 13:34:45 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6003 * job.c (sys_siglist): Only declare #ifndef SYS_SIGLIST_DECLARED.
6004 * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
6005 SYS_SIGLIST_DECLARED.
6007 * dir.c (file_impossible): When initializing DIR->contents, set
6008 DIR->contents->dirstream to nil.
6010 * compatMakefile (GLOB): Define new variable.
6011 (objs): Use it, rather than glob/libglob.a explicitly.
6013 * read.c (parse_file_seq): When stripping "./", handle cases like
6014 ".///foo" and "./////".
6015 * file.c (lookup_file, enter_file): Likewise.
6017 Sun Oct 11 17:00:35 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6019 * dir.c (struct dirstream, {open,read}_dirstream): New
6020 data type and functions to read a directory sequentially.
6021 (init_dir): New function to hook it into glob.
6022 * main.c (main): Call init_dir.
6024 * compatMakefile (objs): Added glob/libglob.a.
6025 * configure.in: Remove code to test for glob.
6027 Fri Oct 9 12:08:30 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6029 * read.c (record_files): Generalized test for NAME pointing
6030 somewhere into F->name.
6032 * variable.c (define_variable_in_set): Free old value when replacing.
6034 * read.c (do_define): Free the linebuffer before returning.
6035 (record_files): When clearing .SUFFIXES deps, free their data.
6036 (multi_glob): Free OLD and its data when replacing it with results
6039 * commands.c (set_file_variables): Use alloca in place of xmalloc
6040 for temp space for $^, $?, et al.
6042 * dir.c (struct directory): New member `contents' replaces `files'
6044 (struct directory_contents): New type.
6045 (directories_contents): New hash table.
6046 (dir_struct_file_exists_p): Take a struct directory_contents.
6047 (dir_file_exists_p): Pass it the `contents' member of the dir found.
6048 (dir_struct_file_exists_p): Renamed to dir_contents_file_exists_p;
6049 made static. Return 0 if DIR is nil (meaning it couldn't be stat'd).
6050 (dir_file_exists_p, find_directory): Change all callers.
6051 (file_impossible): Use DIR->contents, initializing it if nil.
6052 (print_dir_data_base): Use DIR->contents, and print out device and
6053 inode numbers with each directory.
6055 * Changes for performance win from John Gilmore <gnu@cygnus.com>:
6056 * dir.c (DIRECTORY_BUCKETS): Increase to 199.
6057 (DIRFILE_BUCKETS): Decrease to 107.
6058 (find_directory): Allocate and zero a multiple of
6059 sizeof (struct dirfile *), not of sizeof (struct dirfile).
6060 (dir_struct_file_exists_p): New function, nearly all code from
6062 (dir_file_exists_p): Just call find_directory+dir_struct_file_exists_p.
6063 * vpath.c (selective_vpath_search): Remove redundant
6064 dir_file_exists_p call.
6066 * configure.in: Comment out glob check; always use our code.
6068 Fri Oct 2 19:41:20 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6070 * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
6071 HAVE_SYS_SIGLIST; after doing #define sys_siglist _sys_siglist, we
6074 Wed Sep 30 19:21:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6076 * main.c (main): Don't do -w automatically if -s.
6078 Tue Sep 29 21:07:55 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6080 * main.c (printed_version): Move variable inside print_version.
6081 (print_version): Return immediately if printed_version is set.
6082 (die): Don't test printed_version here.
6083 (decode_switches): Under -v, do print_version before giving usage.
6084 (DESCRIPTION_COLUMN): New macro.
6085 (decode_switches): Use it when printing the usage message.
6086 Leave at least two spaces between options and their descriptions.
6088 Fri Sep 25 13:12:42 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6092 Wed Sep 16 16:15:22 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6094 * read.c (read_makefile): Save errno value from trying to open
6095 FILENAME, and restore it before erring; otherwise we get the errno
6096 value from the last elt of the search path.
6098 Tue Sep 15 15:12:47 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6100 * main.c (long_option_aliases): Add --stop for -S.
6102 * read.c (word1eq): Do strncmp before dereferencing someplace that
6103 may be out in space.
6105 Wed Sep 9 15:50:41 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6107 * remake.c (notice_finished_file): If all the command lines were
6108 recursive, don't do the touching.
6110 * job.c (start_job_command): Don't check for + here.
6111 * commands.c (chop_commands): Do it here instead.
6113 * default.c (default_terminal_rules): Prepend + to cmds for RCS.
6115 Wed Sep 2 17:53:08 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6117 * compatMakefile (objs): Include $(ALLOCA).
6119 * make.h [CRAY]: Move #define signal bsdsignal to before #includes.
6121 Thu Aug 27 17:45:43 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6123 * read.c (default_include_directories): Add INCLUDEDIR first.
6124 * compatMakefile (includedir): Define.
6125 (defines): Add -D for INCLUDEDIR="$(includedir)".
6127 * read.c (read_makefile): Grok multiple files in `include';
6130 * remake.c (library_search): New function.
6131 (library_file_mtime): Remove function.
6132 (f_mtime): Use library_search instead of library_file_mtime.
6133 * compatMakefile (libdir): Define.
6134 (defines): Add -D for LIBDIR="$(libdir)".
6135 * make.texinfo (Libraries/Search): Document change.
6137 * file.c (rename_file): Fix file_hash_enter call with missing arg.
6139 Wed Aug 26 17:10:46 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6143 * main.c (main): Set command_state to cs_finished for temp files
6144 made for stdin makefiles.
6146 * main.c (decode_switches): Don't tell getopt to return non-option
6148 Ignore an argument of `-'.
6150 Thu Aug 20 13:36:04 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6152 * job.c (start_job_command): If (touch_flag && !RECURSIVE), ignore
6153 the command line and go to the next.
6154 (notice_finished_file): Under -t, touch FILE.
6155 * remake.c (remake_file): Don't touch it here.
6157 Wed Aug 19 16:06:09 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6159 * function.c (pattern_matches): Use temporary for strlen (WORD)
6160 instead of two function calls.
6162 * compatMakefile (LOAD_AVG): Remove variable and comments.
6164 Tue Aug 18 14:58:58 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6166 * make.texinfo (Running): Node renamed to `make Invocation'.
6168 Fri Aug 14 12:27:10 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6170 * arscan.c (ar_name_equal): Don't compare [MAX-3..MAX] if
6173 Thu Aug 13 17:50:09 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6177 * main.c: Don't #include <time.h>; make.h already does.
6179 Mon Aug 10 17:03:01 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6181 * implicit.c (pattern_search): Fixed copying of suffix when building
6184 * function.c (expand_function: `shell'): Make sure BUFFER is
6185 null-terminated before replacing newlines.
6187 * compatMakefile (mandir): Use man$(manext), not always manl.
6189 Sun Aug 2 01:42:50 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6191 * rule.c (new_pattern_rule): Not static.
6192 * rule.h: Declare it.
6194 * file.c (file_hash_enter): New function, most code from rename_file.
6195 (rename_file): Call it.
6196 * file.h (file_hash_enter): Declare it.
6200 Thu Jul 30 15:40:48 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6202 * main.c (decode_switches): Handle usage_and_exit when building
6203 long options vector.
6205 * default.c (default_terminal_rules): Make RCS rules use $(CHECKOUT,v).
6206 (default_variables): Define CHECKOUT,v (hairy).
6208 * make.h [!HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
6209 sys_siglist to _sys_siglist.
6211 Sun Jul 26 16:56:32 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6213 * NEWS: Add header and tail copyright info like Emacs NEWS.
6215 * make.h [ANSI_STRING]: Don't #define index, rindex, bcmp, bzero,
6216 bcopy if already #define'd.
6217 [STDC_HEADERS] (qsort, abort, exit): Declare here.
6218 [! __GNU_LIBRARY__ && !POSIX]: Not here.
6220 * make.h [_AIX]: #pragma alloca first thing.
6222 * job.c (start_waiting_job): Set the command_state to cs_running
6223 when we queue a job on waiting_jobs.
6225 Fri Jul 24 02:16:28 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6227 * variable.c (define_automatic_variables): Use "" instead of nil
6230 Thu Jul 23 22:31:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6234 * main.c (struct command_switch.type): Add alternative usage_and_exit.
6235 (command_switches): Add -h/--help.
6237 Thu Jul 16 14:27:50 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6239 * GNUmakefile (make-$(version).tar.Z): Include NEWS, not CHANGES.
6240 * README.template: Mention NEWS.
6241 * CHANGES: Renamed to NEWS.
6243 * main.c [! STDC_HEADERS] [sun]: Don't declare exit.
6245 Tue Jul 14 18:48:41 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6247 * main.c (main): Set -o files' command_states to cs_finished.
6249 * rule.c (count_implicit_rule_limits): Decrement num_pattern_rules
6250 when tossing a rule.
6252 * main.c (main): Use alloca only in simple local var assignment,
6253 for braindead SGI compiler.
6255 * rule.c (print_rule_data_base): Barf if num_pattern_rules is
6256 inconsistent with the number computed when listing them.
6258 Mon Jul 13 17:51:53 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6260 * commands.c (set_file_variables): For $? and $^ elts that are archive
6261 member refs, use member name only.
6263 Fri Jul 10 00:05:04 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6265 * variable.h (struct variable.export): Add new alternative v_ifset.
6266 * variable.c (target_environment): Check for it.
6267 (define_automatic_variables): Set it for MAKEFILES.
6269 Thu Jul 9 21:24:28 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6271 * compatMakefile (objs): Remove getloadavg.o; $(extras) gets it.
6272 (remote.o): Use $(srcdir)/remote.c, not $remote.c<.
6273 (distclean, mostlyclean): New targets.
6275 Tue Jul 7 19:12:49 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6279 * compatMakefile (config.status): Remove rule.
6281 * job.c (start_waiting_job): Free C after using C->file, not before.
6283 Sat Jul 4 20:51:49 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6285 * commands.c, job.c, main.c, make.h, remote-cstms.c: Use #ifdef
6286 HAVE_* instead of #ifndef *_MISSING.
6287 * configure.in: Use AC_HAVE_FUNCS instead of AC_MISSING_FUNCS (gone).
6289 Thu Jul 2 18:47:52 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6291 * main.c (main): makelevel>0 or -C implies -w.
6293 Tue Jun 30 20:50:17 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6295 * file.c, job.c, function.c: Don't #include <errno.h>.
6296 make.h: Do it here instead.
6297 * arscan.c (ar_member_touch): Don't declare errno.
6299 Thu Jun 25 17:06:55 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6301 * GNUmakefile (make-$(version).tar.Z): Depend on INSTALL, configure.in.
6303 * remake.c (update_file): If commands or deps are running after
6304 update_file_1 returns, break out of the :: rule (->prev) loop and
6307 * job.c (job_next_command): New function; code from start_job.
6308 (start_job_command): Renamed from start_job. Call job_next_command
6309 and recurse for empty command lines and -n.
6310 (start_waiting_job): Call start_job_command, not start_job.
6311 (new_job): Call job_next_command to prime the child structure, and
6312 then call start_waiting_job.
6313 (reap_children): Use job_next_command and start_job_command.
6314 (start_waiting_job): Call start_remote_job_p here, and store its
6315 result in C->remote. If zero, check the load average and
6316 maybe put C on waiting_jobs.
6317 (start_job_command): Test CHILD->remote rather than calling
6318 start_remote_job_p. Don't do load avg checking at all here.
6320 * main.c (main): Don't handle SIGILL, SIGIOT, SIGEMT, SIGBUS,
6321 SIGSEGV, SIGFPE or SIGTRAP.
6323 * compatMakefile (glob/libglob.a): Don't pass srcdir to sub-make.
6324 configure will set it in glob/Makefile.
6326 Wed Jun 24 19:40:34 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6328 * dir.c [DIRENT] (direct): Don't define to dirent.
6329 [! DIRENT] (direct): Define to dirent.
6330 (dir_file_exists_p): Use struct dirent instead of struct direct.
6332 * make.h (getcwd): No space between macro and ( for args!
6334 * job.c (start_job): Don't put the job on waiting_jobs if
6337 * make.texinfo (Missing): Shortened title.
6339 Tue Jun 23 18:42:21 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6341 * file.c (remove_intermediates): Print "rm" commands under -n.
6343 Mon Jun 22 16:20:02 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6347 Fri Jun 19 16:20:26 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6349 * arscan.c [M_UNIX]: #undef M_XENIX.
6351 Wed Jun 17 17:59:28 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6353 * default.c (default_terminal_rules): Put @ prefix on RCS cmds.
6355 Tue Jun 16 19:24:17 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6357 * compatMakefile (getloadavg.o): Removed special rule.
6358 (CFLAGS): Don't include $(defines).
6359 (.c.o): Define suffix rule.
6360 (glob/libglob.a): Pass CPPFLAGS=$(defines) to submake.
6361 (GETOPT_SRC, srcs, tagsrcs): Prefix files with $(srcdir)/.
6363 * arscan.c (ar_name_equal): Moved local vars inside #if'd block.
6365 * make.h (max): Removed.
6366 * expand.c (variable_buffer_output): Don't use it.
6368 * compatMakefile (INSTALL): Define.
6369 (Makefile): New rule to make from Makefile.in.
6372 (getloadavg.o, remote.o): Use autoconf $foo< hack.
6374 * commands.c (fatal_error_signal): Removed return.
6376 Mon Jun 15 17:42:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6380 * make.texinfo (Summary): New node.
6381 (Special Targets): Mention .EXPORT_ALL_VARIABLES here.
6383 * variable.c (max): Moved to make.h.
6385 * compatMakefile (objs, srcs): Added ar & arscan.
6387 * job.c (start_waiting_job): New function, 2nd half of new_job.
6389 (start_waiting_jobs): New function.
6390 * remake.c (update_goal_chain): Call start_waiting_jobs at the top
6392 * compatMakefile (objs, srcs): Removed load, added getloadavg.
6394 Fri Jun 12 19:33:16 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6396 * job.c (load_too_high): New function. Uses getloadavg.
6397 (waiting_jobs): New variable.
6398 (start_job): Don't call wait_to_start_job. Instead, if
6399 load_too_high returns nonzero, add the child to the
6400 `waiting_jobs' chain and return without starting the job.
6402 Thu Jun 11 00:05:28 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6404 * expand.c (variable_buffer_output): Made global again.
6405 * variable.h: And declare it.
6407 * arscan.c (PORTAR): Define for all systems if PORT5AR is not defined.
6408 (AR_NAMELEN, AR_TRAILING_SLASH): Removed.
6409 (ar_scan): Don't use it. Don't #ifdef AR_TRAILING_SLASH; just look
6410 for a slash in the archive at run time.
6411 (ar_name_equal): Rewrote .o hacking to not use AR_NAMELEN, and to
6412 cope with trailing-slash and non-trailing-slash archives.
6414 * main.c (main) [! SETVBUF_REVERSED]: Test this instead of USGr3 et al.
6415 [SETVBUF_REVERSED]: Always allocate a buffer ourselves.
6417 * load.c (load_average) [sgi]: Use sysmp call.
6419 * compatMakefile (INSTALL_DATA, INSTALL_PROGRAM): Define.
6420 ($(bindir)/$(instname), $(mandir)/make.$(manext)): Use them.
6422 * make.h [HAVE_VFORK_H]: #include <vfork.h>.
6423 (vfork, VFORK_NAME): Don't define.
6424 * job.c (start_job): Use "vfork" in place of VFORK_NAME.
6426 * make.h [HAVE_LIMITS_H, HAVE_SYS_PARAM_H]: If #define'd, #include
6427 the each file. Rearranged PATH_MAX hacking.
6428 * job.c: Rearranged NGROUPS_MAX hacking.
6430 * remake.c (fstat, time): Don't declare.
6432 * compatMakefile (defines): Value is @DEFS@.
6433 (LOADLIBES): Value is @LIBS@.
6434 (extras): Value is @LIBOBJS@.
6435 (ARCHIVES, ARCHIVES_SRC, ALLOCASRC): Removed.
6436 * arscan.c, ar.c: Surround body with #ifndef NO_ARCHIVES.
6438 * misc.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl get*id.
6440 * make.h [GETCWD_MISSING]: Test instead of !USG && !POSIX et al.
6441 (getcwd): Just declare if present. If not, declare as a macro
6442 using getwd, and declare getwd.
6443 [PATH_MAX] (GET_PATH_MAX): #define to PATH_MAX.
6444 * main.c (main, log_working_directory): Use getcwd instead of getwd.
6446 * main.c (main) [SETLINEBUF_MISSING]: Test this instead of USG.
6448 * make.h (SIGHANDLER, SIGNAL): Removed.
6449 (RETSIGTYPE): Define if not #define'd.
6450 * main.c (main): Use signal in place of SIGNAL.
6452 * main.c [SYS_SIGLIST_MISSING]: Test instead of USG.
6454 * job.c (search_path) [GETGROUPS_MISSING]: Test instead of USG.
6455 [HAVE_UNISTD_H]: Test instead of POSIX to not decl getgroups.
6457 * main.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl chdir.
6458 [! STDC_HEADERS]: Test instead of !POSIX to decl exit & atof.
6460 * job.c (child_handler), commands.c (fatal_error_signal): Return
6461 RETSIGTYPE instead of int.
6462 * main.c (main): Declare fatal_error_signal and child_handler here
6463 to return RETSIGTYPE; removed top-level decl of former.
6465 * commands.c (fatal_error_signal), job.c (unblock_sigs, start_job),
6466 main.c [SIGSETMASK_MISSING]: Test this instead of USG.
6468 Wed Jun 10 22:06:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6470 * job.c [HAVE_WAITPID]: Test this instead of USG.
6471 [! HAVE_UNISTD_H]: Test this instead of !POSIX to declare misc fns.
6472 (GID_T): Don't #define.
6473 (search_path): Use gid_t instead of GID_T.
6474 [GETDTABLESIZE_MISSING, SYS_SIGLIST_MISSING, DUP2_MISSING]: Test
6475 these individually instead of USG for all.
6476 * make.h (ctime): Don't declare. #include time.h instead.
6477 [HAVE_UNISTD_H]: #include <unistd.h> and #define POSIX #ifdef
6479 * dir.c [__GNU_LIBRARY__] (D_NAMLEN): Define to use d_namlen member.
6480 * make.h [NEED_MEMORY_H]: Only include memory.h #ifdef this.
6482 * arscan.c: Removed #ifdef mess about string.h et al.
6483 Just #include make.h instead.
6484 * make.h (fstat, atol): Declare.
6486 * commands.c (fatal_error_signal): Don't use sigmask to check for
6487 propagated signals; use ||s instead.
6488 (PROPAGATED_SIGNAL_MASK): Removed.
6489 (fatal_error_signal) [POSIX]: Use sigprocmask in place of sigsetmask.
6491 * variable.c (variable_buffer, variable_buffer_length,
6492 initialize_variable_output, variable_output): Moved to expand.c;
6494 (struct output_state, save_variable_output,
6495 restore_variable_output): Removed.
6496 * expand.c (initialize_variable_output): Put a NUL at the beginning
6497 of the new buffer after allocating it.
6498 (allocated_variable_expand_for_file): Don't use
6499 {save,restore}_variable_output. Do it by hand instead, keeping
6500 state on the stack instead of malloc'ing it.
6501 (allocated_variable_expand): Removed.
6502 * variable.h (allocated_variable_expand): Define here as macro.
6503 (variable_buffer_output, initialize_variable_output,
6504 save_variable_output, restore_variable_output): Removed decls.
6506 * read.c (conditional_line): For an if cmd, if any elt of the
6507 conditionals stack is ignoring, just push a new level that ignores
6508 and return 1; don't evaluate the condition.
6510 Thu Jun 4 21:01:20 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6512 * main.c (main): Put #ifdef's around frobbing SIGSYS and SIGBUS.
6514 * job.c (getdtablesize): Don't declare or #define if already #define'd.
6516 Wed Jun 3 23:42:36 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6518 * file.c (snap_deps): If `.EXPORT_ALL_VARIABLES' is a target, set
6519 export_all_variables.
6520 * make.texinfo (Variables/Recursion): Document .EXPORT_ALL_VARIABLES.
6522 Tue Jun 2 21:08:35 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6526 * commands.c (set_file_variables): Calculate length for ^D and ?D
6527 individually, making sure to give them at least enough space for "./".
6529 * make.h [CRAY]: #define signal to bsdsignal.
6531 * default.c (default_variables) [CRAY]: Define PC, SEGLDR,
6532 CF77PPFLAGS, CF77PP, CFT, CF, and FC.
6534 * arscan.c (AR_HDR_SIZE): Define to sizeof (struct ar_hdr), if it
6535 wasn't defined by <ar.h>.
6537 Thu May 28 00:56:53 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6541 Tue May 26 01:26:30 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6543 * rule.c (new_pattern_rule): Initialize LASTRULE to nil, not
6546 Mon May 25 19:02:15 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6548 * main.c (decode_switches): Initialize all the long_option elt members.
6550 Thu May 21 16:34:24 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6552 * make.texinfo (Text Functions): Correct filter-out description.
6554 Tue May 19 20:50:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6556 * compatMakefile (realclean): Don't remove backup files.
6558 * main.c (decode_switches): Allocate ARGC+1 elts in `other_args'.
6560 Sun May 17 16:38:48 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6564 Thu May 14 16:42:33 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6566 * job.c (reap_children): Don't die if wait returns EINTR.
6568 Wed May 13 18:28:25 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6570 * job.c (reap_children): Always run the next command for a
6571 successful target. If we are going to die, we don't want to leave
6572 the target partially made.
6574 Tue May 12 00:39:19 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6576 * job.c (construct_command_argv_internal): After loop, if we only
6577 have one word, check it for being a shell command.
6579 * main.c (decode_switches): Allocate ARGC slots in other_args to
6580 begin with, so we never need to worry about growing it.
6581 If we get a non-option arg and POSIXLY_CORRECT is in the
6582 environment, break out of the loop. After the loop, add all remaining
6583 args to other_args list.
6585 * main.c (decode_switches): For positive_int and floating switches
6586 when optarg is nil, use next arg if it looks right (start with a
6587 digit, or maybe decimal point for floating).
6589 * variable.c (define_automatic_variables): Always set SHELL to
6590 default if it comes from the environment. Set its export bit.
6591 * make.texinfo (Environment): Document change.
6593 Mon May 11 00:32:46 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6597 * compatMakefile (tags, TAGS): Use vars for cmds.
6598 (ETAGS, CTAGS): Define.
6600 * main.c (decode_switches): If a switches elt has a nil long_name,
6601 make the long option name elt be "".
6602 Fixed loop to not ignore all the options.
6604 * make.texinfo (Option Summary): Added long options.
6606 * main.c (switches): Changed -m's description to "-b".
6607 (decode_switches): When printing the usage message, don't print
6608 switches whose descriptions start with -.
6609 When constructing the list of names for switch -C, search the
6610 switches vector for switches whose descriptions are "-C".
6612 * main.c (switches): Call -S --no-keep-going, not --dont-keep-going.
6613 Call -I --include-dir, not --include-path.
6614 (long_option_aliases): Added --new == -W, --assume-new == -W,
6615 --assume-old == -o, --max-load == -l, --dry-run == -n, --recon == -n,
6618 * main.c (switches): Removed bogus "silent" elt.
6619 (long_option_aliases): Define new var.
6620 (decode_switches): Add long_option_aliases onto the end of the long
6621 options vector created for getopt_long.
6622 Look through long_option_aliases for extra names to list
6625 Sat May 9 00:21:05 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6627 * main.c (log_working_directory): Fixed to properly not print the
6628 leaving message when we haven't printed the entering message.
6630 Fri May 8 21:55:35 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6632 * main.c (struct command_switch): Added elts `long_name',
6633 `description', and `argdesc'.
6634 (switches): Added initializers for new members.
6635 (decode_switches): Rewritten to use getopt_long.
6636 * compatMakefile (GETOPT, GETOPT_SRC): Define.
6637 (objs, srcs): Include them.
6639 * job.c (child_died): Renamed to dead_children; made static.
6640 (child_handler): Increment dead_children instead of setting child_died.
6641 (reap_children): Decrement dead_children instead of clearing
6642 child_died. The point of all this is to avoid printing "waiting
6643 for unfinished jobs" when we don't actually need to block.
6644 This happened when multiple SIGCHLDs before reap_children was called.
6646 * job.c (reap_children): If ERR is set, so we don't call start_job
6647 on the child being reaped, instead set its command_state to
6649 (reap_children, child_handler, new_job): I added several
6650 debugging printf's while fixing this. I left them in if (debug_flag)
6651 because they may be useful for debugging this stuff again.
6653 Wed May 6 22:02:37 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6655 * read.c (read_makefile): v_export is not 1.
6657 Mon May 4 17:27:37 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6661 * variable.c (export_all_variables): New variable.
6662 (target_environment): Export variables whose `export' member is
6663 v_default if export_all_variables is set and their names are benign.
6664 * variable.h: Declare export_all_variables.
6665 * read.c (read_makefile): If export or unexport is given with no
6666 args, set or clear export_all_variables, respectively.
6668 * variable.c (target_environment): Exclude MAKELEVEL in the loop,
6669 so it isn't duplicated when we add it at the end.
6671 Sun May 3 17:44:48 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6675 * variable.h (struct variable): Added new member `export'.
6676 * variable.c (define_variable_in_set): Initialize it to v_default.
6677 (target_environment): Don't check for .NOEXPORT.
6678 Export variables whose `export' member is v_default and that would
6679 have been exported under .NOEXPORT, and variables whose `export'
6681 (try_variable_definition): Return the variable defined.
6682 * variable.h (try_variable_definition): Changed decl.
6683 * read.c (read_makefile): Recognize `export' and `unexport' directives.
6685 Fri May 1 11:39:38 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6687 * main.c (main) [POSIX]: Reversed args to sigaddset.
6689 Thu Apr 30 17:33:32 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6691 * job.c [POSIX || !USG] (unblock_sigs): New fn.
6692 (start_job): Block signals before forking.
6693 (new_job): Unblock signals after putting the new child on the chain.
6694 * main.c (main) [POSIX]: Use sigset_t fatal_signal_set instead of
6695 int fatal_signal_mask.
6697 * load.c [sgi] (LDAV_CVT): Define.
6699 Wed Apr 29 17:15:59 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6703 * load.c (load_average) [sgi]: Clear the high bit of the address
6704 from the symbol table before looking it up in kmem.
6706 * misc.c (fatal, makefile_fatal): Put *** in fatal error messages.
6707 (remake_file): No longer needed in message here.
6709 * main.c (die): Call reap_children with BLOCK==1.
6711 Tue Apr 28 20:44:35 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6713 * rule.c (freerule): Don't set LASTRULE->next if LASTRULE is nil.
6715 Sun Apr 26 15:09:51 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6717 * rule.c (count_implicit_rule_limits): Initialize LASTRULE to nil,
6718 not to head of chain. Extract next ptr before we might do
6719 freerule, and use that for next iteration.
6720 (freerule): Still do next ptr frobbing if LASTRULE is nil.
6722 Tue Apr 21 03:16:29 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6724 * job.c (child_error): Removed extra %s from error msg format.
6728 * job.c (reap_children): Don't start later commands in a sequence
6731 * job.c (new_job): Always call reap_children with BLOCK==0 first thing.
6733 * job.c (reap_children): New function; work that used to be done in
6735 (child_died): New global var.
6736 (child_handler): Now just sets child_died.
6737 (wait_for_children): Removed.
6738 (unknown_children_possible, block_signals, unblock_signals,
6739 push_signals_blocked_p, pop_signals_blocked_p): Removed.
6740 (child_execute_job): Removed call to unblock_signals.
6741 (new_job): Removed calls to push_signals_blocked_p and
6742 pop_signals_blocked_p.
6743 * job.h: Declare reap_children, not wait_for_children.
6744 * commands.c (fatal_error_signal), job.c (new_job),
6745 load.c [LDAV_BASED] (wait_to_start_job), main.c (die),
6746 remake.c (update_goal_chain), function.c (expand_function: `shell'):
6747 Changed wait_for_children calls to reap_children.
6748 Some needed to be loops to wait for all children to die.
6749 * commands.c (fatal_error_signal), main.c (main,
6750 log_working_directory), function.c (expand_function): Removed calls
6751 to push_signals_blocked_p and pop_signals_blocked_p.
6752 * job.h: Removed decls.
6754 * job.h: Added copyright notice.
6756 Wed Apr 15 02:02:40 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6758 * job.c (child_error): No *** for ignored error.
6760 Tue Apr 14 18:31:21 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6762 * implicit.c (DEBUGP2): Use do ... while (0) instead of if ... else to
6763 avoid compiler warnings.
6765 * read.c (parse_file_seq): Don't remove ./ when it is followed by a
6768 Mon Apr 13 21:56:15 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6770 * make.h (DEBUGPR): Use do ... while (0) instead of if ... else to
6771 avoid compiler warnings.
6773 * remake.c (notice_finished_file): Run file_mtime on the also_make
6774 files, so vpath_search can happen.
6776 * GNUmakefile (tests): Use perl test suite from csa@sw.stratus.com.
6777 (alpha-files): Include test suite tar file.
6779 Fri Apr 3 00:50:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6783 Wed Apr 1 05:31:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6785 * remake.c (update_file, update_file_1): Do check_renamed on elts
6786 of dep chains when traversing them. Something unrelated might have
6787 renamed one of the files the dep chain points to.
6789 * file.c (rename_file): If FILE has been renamed, follow its
6790 `renamed' ptr, so we get to the final real FILE. Using the renamed
6791 ones loses because they are not in the hash table, so the removal
6792 code loops infinitely.
6794 * read.c (read_all_makefiles): Clobber null terminator into
6795 MAKEFILES expansion, so string passed to read_makefile is properly
6798 Mon Mar 30 20:18:02 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6800 * commands.c (set_file_variables): $* for archive member with
6801 explicit cmds is stem of member, not of whole `lib(member)'.
6803 Thu Mar 26 15:24:38 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6807 Tue Mar 24 05:20:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6809 * rule.c (new_pattern_rule): Rules are identical only if all their
6810 targets match (regardless of order).
6812 Wed Mar 11 13:49:54 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6814 * remake.c (remake_file): Changed error "no way to make" to "no
6815 rule to make". Fiat Hugh.
6817 * make.texinfo (Last Resort): Describe %:: rules and new .DEFAULT
6820 * remake.c (update_file_1): Only use .DEFAULT cmds if FILE is not a
6823 Tue Mar 10 18:13:13 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6825 * remote-stub.c, remote-cstms.c (start_remote_job): Take new arg,
6826 environment to pass to child.
6827 * job.c (start_job): Pass it.
6829 Mon Mar 9 19:00:11 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6831 * file.c (enter_file): Also strip ./s here, to get command-line
6834 * remote-cstms.c: Add comment telling people to leave me alone.
6836 * compatMakefile (manpage install): Remove target before copying.
6838 Tue Mar 3 18:43:21 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6840 * make.texinfo (Missing): Renamed to "Incompatibilities and ...".
6841 Added paragraph describing $? incompatibility with Unix and POSIX.2.
6843 Sun Mar 1 15:50:54 1992 Roland McGrath (roland@nutrimat.gnu.ai.mit.edu)
6845 * function.c (expand_function: `shell'): Don't declare fork or pipe.
6846 Use vfork instead of fork.
6848 Tue Feb 25 22:05:32 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6850 * make.texinfo (Chained Rules): Clarify .PRECIOUS to save
6853 * load.c [sun] (LDAV_CVT): Define to divide by FSCALE.
6855 Sun Feb 16 02:05:16 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6859 Sat Feb 15 17:12:20 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6861 * compatMakefile (makeinfo): Use emacs batch-texinfo-format fn.
6863 Fri Feb 14 00:11:55 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6865 * read.c (read_makefile): Correctly handle define & endef in ifdefs.
6867 * read.c (record_files): Pass arg for %s in error msg.
6869 * main.c (main) [__IBMR2, POSIX]: Use correct (a la USGr3) setvbuf
6872 Wed Feb 12 12:07:39 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6874 * make.texinfo (Libraries/Search): Say it does /usr/local/lib too.
6876 Sun Feb 9 23:06:24 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6878 * read.c (read_makefile): Check for extraneous `endef' when ignoring.
6880 Thu Feb 6 16:15:48 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6884 Tue Feb 4 20:04:46 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6886 * job.c (construct_command_argv_internal): Correctly ignore
6887 whitespace after backslash-NL.
6889 Fri Jan 31 18:30:05 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6891 * compatMakefile: Ignore errors from chgrp and chmod when installing.
6893 Wed Jan 29 18:13:30 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6895 * main.c (main): When setting MAKELEVEL in the env to re-exec,
6896 allocate space so as not to clobber past the end of the old string.
6898 * make.h [HAVE_ALLOCA_H]: Include <alloca.h>
6899 * compatMakefile (defines): Document HAVE_ALLOCA_H.
6901 Mon Jan 20 13:40:05 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6903 * make.h [VFORK_MISSING]: Use fork instead.
6904 * compatMakefile (defines): Document same.
6906 * job.c (construct_command_argv_internal): Don't create an empty
6907 arg if backslash-NL is at beginning of word.
6909 Sun Jan 19 16:26:53 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6911 * main.c [DGUX]: Call setvbuf as for USGr3.
6913 * job.c (construct_command_argv_internal): Notice correctly that
6914 backslash-NL is the end of the arg (because it is replaced with a
6917 Thu Jan 16 18:42:38 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6919 * job.c (construct_command_argv_internal): If SHELL is nil, set it
6920 to default_shell before proceeding.
6922 * make.h [sgi]: No alloca.h, after all.
6924 Wed Jan 15 12:30:04 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6926 * read.c (multi_glob): Cons up the chain of the results of glob
6927 from back to front, so it comes out in forward order.
6929 * job.c (construct_command_argv_internal): Don't eat char following
6932 Mon Jan 13 19:16:56 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6936 * default.c (default_variables) [ultrix]: GET=get, like USG.
6938 * job.c (construct_command_argv_internal): Remove tabs following
6939 backslash-NL combos in the input line, so they don't show up when
6940 that line is printed.
6942 * read.c (read_makefile): Don't collapse_continuations the line on
6943 input; do it on the copy we do remove_comments on.
6944 For rule lines, collapse_continuations the line after chopping
6945 ";cmds" off the end, so we don't eat conts in the cmds.
6946 Give error for ";cmds" with no rule.
6947 * job.c (construct_command_argv_internal): Eat backslash-NL combos
6948 when constructing the line to recurse on for slow, too.
6950 Sat Jan 11 02:20:27 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6952 * file.c (enter_file): Don't strip leading `./'s.
6953 * read.c (parse_file_seq): Take new arg STRIP; if nonzero, do it here.
6954 * default.c (set_default_suffixes), function.c (string_glob),
6955 read.c (read_makefile), rule.c (install_pattern_rule): Change callers.
6957 * default.c (default_variables) [_IBMR2]: FC=xlf
6959 * job.c (construct_command_argv_internal): Turn backslash-NL and
6960 following whitespace into a single space, rather than just eating
6963 * make.texinfo (Copying): @include gpl.texinfo, rather than
6964 duplicating its contents.
6966 Fri Nov 8 20:06:03 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6968 * job.c (construct_command_argv_internal): Make sure not to bother
6969 processing an empty line.
6973 * job.c (construct_command_argv_internal): Always recurse for slow;
6974 simple case didn't handle finding newlines.
6976 Tue Nov 5 18:51:10 1991 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6978 * job.c (construct_command_argv_internal): Set RESTP properly when
6979 slow; don't \ify past a newline.
6981 Fri Nov 1 19:34:28 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6983 * make.h [sgi]: #include <alloca.h>.
6987 See ChangeLog.1 for earlier changes.