1 2001-01-17 Paul D. Smith <psmith@gnu.org>
3 * variable.c (lookup_variable) [VMS]: When getting values from the
4 environment, allocate enough space for the _value_ plus escapes,
5 not enough space for the name plus escapes :-/.
6 Reported by John Fowler <jfowler@nyx.net>.
8 * remake.c (f_mtime): Removed the "***" prefix from the mod time
9 warnings that make generates, so it doesn't look like an error.
10 Reported by Karl Berry <karl@gnu.org>.
13 Fix for PR/2020: Rework appended target-specific variables. I'm
14 fairly confident this algorithm is finally correct.
16 * expand.c (allocated_variable_append): Rewrite. Instead of
17 expanding each appended variable then adding all the expanded
18 strings together, we append all the unexpanded values going up
19 through the variable set contexts, then expand the final result.
20 This behaves just like non-target-specific appended variable
21 values, while the old way didn't in various corner cases.
22 (variable_append): New function: recursively append the unexpanded
23 value of a variable, walking from the outermost variable scope to
25 * variable.c (lookup_variable): Remove the code that looked up the
26 variable set list if the found variable was "append". We don't
28 (lookup_variable_in_set): Make this non-static so we can use it
30 (try_variable_definition): Use lookup_variable_in_set() rather
31 than faking out current_variable_set_list by hand (cleanup).
32 * variable.h: Add a prototype for the now non-static
33 lookup_variable_in_set().
35 2000-11-17 Paul D. Smith <psmith@gnu.org>
37 * remake.c (f_mtime) [WINDOWS32]: On various advice, I changed the
38 WINDOWS32 port to assume timestamps can be up to 3 seconds away
39 before throwing a fit.
41 2000-11-17 Paul D. Smith <psmith@gnu.org>
43 * read.c (readline): CRLF calculations had a hole, if you hit the
44 buffer grow scenario just right. Reworked the algorithm to avoid
45 the need for len or lastlen at all. Problem description with
46 sample code chages provided by Chris Faylor <cgf@redhat.com>.
48 2000-10-24 Paul D. Smith <psmith@gnu.org>
50 * gettext.c (SWAP): Declare this with the prototype, otherwise
51 some systems don't work (non-32-bit? Reported for Cray T3E).
52 Reported by Thorstein Thorsteinsson <thor@signe.teokem.lu.se>.
54 2000-10-05 Paul D. Smith <psmith@gnu.org>
56 * acinclude.m4 (AM_LC_MESSAGES): Remove undefined macro
57 AM_LC_MESSAGES; it doesn't seem to do anything anyway??
59 * i18n/gl.po, configure.in (ALL_LINGUAS): New Galician translation.
61 2000-09-22 Paul D. Smith <psmith@gnu.org>
63 * gettext.c: Don't #define _GETTEXT_H here; we only include some
64 parts of the real gettext.h here, and we expect to really include
65 the real gettext.h later. If we keep this #define, it's ignored.
67 2000-09-21 Paul D. Smith <psmith@gnu.org>
69 * main.c (log_working_directory): Rework the text to use complete
70 sentences, to make life simpler for the translators.
72 2000-08-29 Paul D. Smith <psmith@gnu.org>
74 * file.c (remove_intermediates): Print a debug message before we
75 remove intermediate files, so the user (if she uses -d) knows
78 2000-08-21 Paul D. Smith <psmith@gnu.org>
80 * variable.c (try_variable_definition): Change how we handle
81 target-specific append variable defns: instead of just setting the
82 value, expand it as an append _but_ only within the current
83 target's context. Otherwise we lose all but the last value if the
84 variable is appended more than once within the current target
85 context. Fixes PR/1831.
87 2000-08-16 Paul D. Smith <psmith@gnu.org>
89 * function.c (func_shell): Nul-terminate the buffer before
90 printing an exec error message (just in case it's not!).
91 Fixes PR/1860, reported by Joey Hess <joey@valinux.com>.
93 2000-07-25 Paul D. Smith <psmith@gnu.org>
95 * job.c (construct_command_argv_internal): Add "~" to the list of
96 sh_chars[] which disallow optimizing out the shell call.
98 2000-07-23 Paul Eggert <eggert@twinsun.com>
100 * NEWS, make.texinfo: Document .LOW_RESOLUTION_TIME, which
101 supersedes --disable-nsec-timestamps.
102 * make.texinfo: Consistently use "time stamp" instead of "timestamp".
103 * README: Remove --disable-nsec-timestamps.
105 * filedef.h (struct file.low_resolution_time): New member.
106 * file.c (snap_deps): Add support for .LOW_RESOLUTION_TIME.
107 * remake.c (update_file_1):
108 Avoid spurious rebuilds due to low resolution time stamps,
109 generalizing the earlier code that applied only to archive members.
110 (f_mtime): Archive members always have low resolution time stamps.
112 * configure.in: Remove --disable-nsec-timestamps, as this has
113 been superseded by .LOW_RESOLUTION_TIME.
115 2000-07-23 Paul Eggert <eggert@twinsun.com>
117 * configure.in (enable_nsec_timestamps): Renamed from
118 make_cv_nsec_timestamps, since enable/disable options
121 2000-07-23 Bruno Haible <haible@clisp.cons.org>
122 and Paul Eggert <eggert@twinsun.com>
124 * file.c (file_timestamp_now):
125 Use preprocessor-time check for FILE_TIMESTAMP_HI_RES
126 so that clock_gettime is not linked unless needed.
128 * filedef.h (FILE_TIMESTAMP_HI_RES):
129 Remove definition; "configure" now does this.
131 * configure.in (jm_AC_TYPE_UINTMAX_T): Move up,
132 to before high resolution file timestamp check,
133 since that check now uses uintmax_t.
134 (FILE_TIMESTAMP_HI_RES): Define to nonzero if the code should use
135 high resolution file timestamps.
136 (HAVE_CLOCK_GETTIME): Do not define if !FILE_TIMESTAMP_HI_RES,
137 so that we don't link in clock_gettime unnecessarily.
139 2000-07-17 Paul D. Smith <psmith@gnu.org>
141 * i18n/ja.po: New version of the translation file.
143 2000-07-07 Paul D. Smith <psmith@gnu.org>
145 * remake.c (f_mtime): If NO_FLOAT is defined, don't bother with
146 the offset calculation.
147 (name_mtime): Replace EINTR test with EINTR_SET macro.
149 2000-07-07 Paul Eggert <eggert@twinsun.com>
153 * remake.c (update_file_1):
154 Avoid spurious rebuilds of archive members due to their
155 timestamp resolution being only one second.
156 (f_mtime): Avoid spurious warnings of timestamps in the future due to
157 the clock's resolution being lower than file timestamps'.
158 When warning about future timestamps, report only the discrepancy,
159 not the absolute value of the timestamp and the current time.
161 * file.c (file_timestamp_now): New arg RESOLUTION.
162 * filedef.h (file_timestamp_now): Likewise.
163 (FILE_TIMESTAMP_NS): Now returns int. All uses changed.
165 2000-07-05 Paul D. Smith <psmith@gnu.org>
167 * variable.c (lookup_variable) [VMS]: Remove vestigial references
168 to listp. Fixes PR/1793.
170 2000-06-26 Paul Eggert <eggert@twinsun.com>
172 * Makefile.am (MAINTAINERCLEANFILES): New macro, with stamp-pot in it.
174 * dir.c (vms_hash): Ensure ctype macro args are nonnegative.
176 * remake.c (f_mtime): Remove unused var memtime.
178 2000-06-25 Martin Buchholz <martin@xemacs.org>
180 * make.texinfo, NEWS, TODO.private: Minor spelling corrections.
181 Ran spell-check on make.texinfo.
183 2000-06-23 Paul D. Smith <psmith@gnu.org>
185 * main.c (main): Replace EXIT_SUCCESS, EXIT_FAILURE, and
186 EXIT_TROUBLE with MAKE_SUCCESS, MAKE_FAILURE, and MAKE_TROUBLE.
187 * make.h: Define these macros.
189 * Version 3.79.1 released.
191 * configure.in: Add a new option, --disable-nsec-timestamps, to
192 avoid using sub-second timestamps on systems that support it. It
193 can lead to problems, e.g. if your makefile relies on "cp -p".
194 * README.template: Document the issue with "cp -p".
196 * config.guess, config.sub: Updated.
198 2000-06-22 Paul D. Smith <psmith@gnu.org>
200 * job.c (start_job_command): Increment commands_started before the
201 special check for ":" (empty command) to avoid spurious "is up to
202 date" messages. Also move the test for question_flag after we
203 expand arguments, and only stop if the expansion provided an
204 actual command to run, not just whitespace. This fixes PR/1780.
206 2000-06-21 Paul D. Smith <psmith@gnu.org>
208 * read.c (read_makefile): If we find a semicolon in the target
209 definition, remember where it was. If the line turns out to be a
210 target-specific variable, add back the semicolon and everything
211 after it. Fixes PR/1709.
213 2000-06-19 Paul D. Smith <psmith@gnu.org>
215 * config.h-vms.template: #define uintmax_t for this system.
216 * config.ami.template: Ditto.
217 * config.h.W32.template: Ditto.
219 * configure.in: We don't use select(2) anymore, so don't bother
222 * acinclude.m4: Ditto.
224 * file.c (all_secondary): New static global; if 1 it means
225 .SECONDARY with no prerequisites was seen in the makefile.
226 (snap_deps): Set it appropriately.
227 (remove_intermediates): Check it.
228 (num_intermediates): Remove this global, it's not used anywhere.
229 (considered): Move this to remake.c and make it static.
231 * NEWS: Document the change to .SECONDARY.
232 * make.texinfo (Special Targets): Document the change to .SECONDARY.
234 * implicit.c (pattern_search): Remove the increment of
235 num_intermediates; it's not used.
236 * filedef.h: Remove num_intermediates and considered.
238 * function.c (handle_function): If the last argument was empty, we
239 were pretending it didn't exist rather than providing an empty
240 value. Keep looking until we're past the end, not just at the end.
242 * implicit.c (pattern_search): Multi-target implicit rules weren't
243 expanding the "also made" targets correctly if the pattern didn't
244 contain a slash but the target did; in that case the directory
245 part wasn't being added back to the stem on the "also made"
246 targets. Reported by Seth M LaForge <sethml@newtonlabs.com>, with
249 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
251 * Makefile.DOS.template (DESTDIR, bindir, datadir, libdir)
252 (infodir, mandir, includedir): Support installation under a
255 * remake.c (f_mtime): Fix the spelling of __MSDOS__.
257 * configh.DOS.template (HAVE_FDOPEN, HAVE_MKSTEMP): Define.
259 2000-06-14 Paul D. Smith <psmith@gnu.org>
261 * acinclude.m4 (pds_WITH_GETTEXT): rewrite fp_WITH_GETTEXT and
262 rename it to avoid confusion. This version is very specific: it
263 won't accept any gettext that isn't GNU. If the user doesn't
264 explicitly ask for the included gettext, we look to see if the
265 system gettext is GNU (testing both the actual libintl library,
266 and the libintl.h header file). Only if the system gettext is
267 really GNU gettext will we allow it to be used.
268 (pds_CHECK_SYSTEM_GETTEXT): A helper function.
270 2000-06-13 Paul D. Smith <psmith@gnu.org>
272 * gettext.h: If we have libintl.h, use that instead of any of the
273 contents of gettext.h. We won't check for libintl.h unless we're
274 using the system gettext.
276 * function.c (func_word): Clarify error message.
278 2000-06-10 Paul Eggert <eggert@twinsun.com>
280 Support nanosecond resolution on hosts with 64-bit time_t and
281 uintmax_t (e.g. 64-bit Sparc Solaris), by splitting
282 FILE_TIMESTAMP into a 30-bit part for nanoseconds, with the
283 rest for seconds, if FILE_TIMESTAMP is at least 64 bits wide.
285 * make.h: Always define FILE_TIMESTAMP to be uintmax_t, for
288 * filedef.h (FILE_TIMESTAMP_HI_RES, FILE_TIMESTAMP_LO_BITS)
289 (UNKNOWN_MTIME, NONEXISTENT_MTIME, OLD_MTIME)
290 (ORDINARY_MTIME_MIN, ORDINARY_MTIME_MAX): New macros.
291 (FILE_TIMESTAMP_STAT_MODTIME): Now takes fname arg. All uses changed.
292 (FILE_TIMESTAMP_DIV, FILE_TIMESTAMP_MOD)
293 (FILE_TIMESTAMP_FROM_S_AND_NS): Remove.
294 (FILE_TIMESTAMP_S, FILE_TIMESTAMP_NS): Use shifts instead of
295 multiplication and division. Offset the timestamps by
297 (file_timestamp_cons): New decl.
298 (NEW_MTIME): Now just the maximal timestamp value, as we no longer use
299 -1 to refer to nonexistent files.
301 * file.c (snap_deps, print_file): Use NONEXISTENT_MTIME,
302 UNKNOWN_MTIME, and OLD_MTIME instead of magic constants.
303 * filedef.h (file_mtime_1): Likewise.
304 * main.c (main): Likewise.
305 * remake.c (update_file_1, notice_finished_file, check_dep)
306 (f_mtime, name_mtime, library_search): Likewise.
307 * vpath.c (selective_vpath_search): Likewise.
309 * remake.c (f_mtime): Do not assume that (time_t) -1 equals
310 NONEXISTENT_MTIME. When futzing with time stamps, adjust by
311 multiples of 2**30, not 10**9. Do not calculate timestamp
312 adjustments on DOS unless they are needed.
314 * commands.c (delete_target): Do not assume that
315 FILE_TIMESTAMP_S yields -1 for a nonexistent file, as that is
316 no longer true with the new representation.
318 * file.c (file_timestamp_cons): New function, replacing
319 FILE_TIMESTAMP_FROM_S_AND_NS. All uses changed.
320 (file_timestamp_now): Use FILE_TIMESTAMP_HI_RES instead of 1 <
321 FILE_TIMESTAMPS_PER_S to determine whether we're using hi-res
323 (print_file): Print OLD_MTIME values as "very old" instead of
326 2000-05-31 Paul Eggert <eggert@twinsun.com>
328 * remake.c (name_mtime): Check for stat failures. Retry if EINTR.
330 2000-05-24 Paul D. Smith <psmith@gnu.org>
332 * main.c (decode_switches): The "positive_int" switch uses atoi()
333 which succeeds for any input, and doesn't notice if extra,
334 non-digit text is after the number. This causes make to mis-parse
335 command lines like "make -j 5foo" as "make -j5" (ignoring "foo"
336 completely) instead of "make -j0 5foo" (where "5foo" is a
337 target). Fix this by checking the value by hand. We could use
338 strtol() if we were sure of having it; this is the only
339 questionable use of atoi() I found so we'll just stick with that.
342 * i18n/ja.po, i18n/nl.po, i18n/pt_BR.po: New translation files.
343 * configure.in (ALL_LINGUAS): Added pt_BR.
345 2000-05-22 Paul Eggert <eggert@twinsun.com>
347 * remake.c (f_mtime): Fix bug when handling future odd
348 timestamps in the WINDOWS32 case. Do not bother initializing
349 static var to zero. Simplify code that works around WINDOWS32
350 and __MSDOS__ time skew brain damage.
352 2000-05-22 Paul Eggert <eggert@twinsun.com>
354 * job.c: Don't include time.h, as make.h already does this.
356 2000-05-22 Paul Eggert <eggert@twinsun.com>
358 * configure.in (AC_CHECK_HEADERS): Add sys/time.h.
359 (AC_HEADER_TIME): Add.
360 (clock_gettime): Prefer -lrt to -lposix4, for Solaris 7.
361 (gettimeofday): Add check for standard version of gettimeofday.
362 This merges changes written by Paul D. Smith.
364 * file.c (file_timestamp_now): Use gettimeofday if available
365 and if clock_gettime does not work. Don't bother with
366 high-resolution clocks if file timestamps have only one-second
369 * make.h <sys/time.h>: Include, conditionally on the usual
370 TIME_WITH_SYS_TIME and HAVE_SYS_TIME_H macros. This is needed
373 2000-05-20 Paul D. Smith <psmith@gnu.org>
375 * read.c (read_makefile): We weren't keeping makefile names around
376 unless there was a rule defined in them; but now we need to keep
377 them for variables as well. Forget trying to be fancy: just keep
378 every makefile name we successfully open.
380 * remote-cstms.c (start_remote_job_p): Change DB_EXTRA (?) to DB_JOBS.
382 2000-05-17 Paul Eggert <eggert@twinsun.com>
384 * commands.c (chop_commands): Ensure ctype macro args are nonnegative.
385 * expand.c (variable_expand_string): Likewise.
386 * function.c (subst_expand, lookup_function, msdos_openpipe):
388 * job.c (vms_redirect, start_job_command, new_job, child_execute_job,
389 construct_command_argv_internal, construct_command_argv): Likewise.
390 * main.c (decode_env_switches, quote_for_env): Likewise.
391 * misc.c (collapse_continuations, end_of_token, end_of_token_w32,
392 next_token): Likewise.
393 * read.c (read_makefile, do_define, conditional_line,
394 find_char_unquote,get_next_mword): Likewise.
395 * variable.c (try_variable_definition): Likewise.
396 * vpath.c (construct_vpath_list): Likewise.
397 * w32/pathstuff.c (convert_vpath_to_windows32): Likewise.
399 2000-05-10 Eli Zaretskii <eliz@is.elta.co.il>
401 * main.c (main) [__MSDOS__]: Add SIGFPE to signals we block when
402 running child programs, to prevent Make from dying on Windows 9X
403 when the child triggers an FP exception.
405 2000-05-08 Paul D. Smith <psmith@gnu.org>
407 * dir.c (find_directory) [WINDOWS32]: If we strip a trailing "\"
408 from the directory name, remember to add it back. The argument
409 might really be inside a longer string (e.g. %Path%) and if you
410 don't restore the "\" it'll be truncated permanently. Fixes PR/1722.
411 Reported by <steven@surfcast.com>
413 2000-05-02 Paul D. Smith <psmith@gnu.org>
415 * job.c (construct_command_argv_internal) [WINDOWS32]: Added "rd"
416 and "rmdir" to the list of command.com commands.
417 Reported by Elod Horvath <Elod_Horvath@lnotes5.bankofny.com>
419 2000-04-24 Paul D. Smith <psmith@gnu.org>
421 * i18n/ja.po: New translation file from the Japanese language team.
423 2000-04-18 Paul D. Smith <psmith@gnu.org>
425 * remake.c (f_mtime): If ar_member_date() returns -1 (the member
426 doesn't exist), then return (FILE_TIMESTAMP)-1 rather than
427 returning the timestamp calculated from the value -1. Fixes PR/1696.
428 Reported by Gilles Bourhis <Gilles.Bourhis@univ-rennes1.fr>.
430 2000-04-17 Paul D. Smith <psmith@gnu.org>
432 * config.h.W32.template: Add LOCALEDIR macro resolving to "".
433 * w32/subproc/sub_proc.c (process_begin): Remove reference to
434 debug_flag; change it to a DB() call. Fixes PR/1700.
435 Reported by Jim Smith <jwksmith@attglobal.net>
437 2000-04-17 Bruno Haible <haible@clisp.cons.org>
439 * arscan.c [BeOS]: Add replacement for nonexistent <ar.h> from GNU
442 2000-04-11 Paul D. Smith <psmith@gnu.org>
444 * function.c (expand_builtin_function): If no arguments were
445 provided, just quit early rather than changing each function to
447 (function_table[]): Change the min # of arguments to 0 for all
448 those functions for which it makes sense (currently everything
449 that used to take a minimum of 1 argument, except $(call ...)).
452 2000-04-09 Eli Zaretskii <eliz@is.elta.co.il>
454 * README.DOS: Add instructions to install a binary distro.
455 Mention latest versions of Windows.
457 2000-04-07 Eli Zaretskii <eliz@is.elta.co.il>
459 * main.c (main): Rename TMP_TEMPLATE into DEFAULT_TMPDIR, and use
460 it for the directory of the temporary file. If P_tmpdir is
461 defined, use it in preference to "/tmp/". Try $TMPDIR, $TEMP, and
462 $TMP in the environment before defaulting to DEFAULT_TMPDIR.
463 (print_version): Add year 2000 to the Copyright line.
465 2000-04-04 Paul D. Smith <psmith@gnu.org>
467 * Version 3.79 released.
469 * make.texinfo: Update documentation with new features for 3.79.
471 * function.c (func_wordlist): Don't re-order arguments to
474 2000-04-03 Paul D. Smith <psmith@gnu.org>
476 * remake.c (f_mtime): Archive member timestamps are stored as
477 time_t, without nanoseconds. But, f_mtime() wants to return
478 nanosecond info on those systems that support it. So, convert the
479 return value of ar_member_date() into a FILE_TIMESTAMP, using 0 as
482 2000-03-28 Paul D. Smith <psmith@gnu.org>
484 * Version 3.78.92 released.
486 * build.template: Updates for gettext support; some bugs fixed.
488 2000-03-27 Paul D. Smith <psmith@gnu.org>
490 * config.guess, config.sub: Updated from config CVS archive at
491 :pserver:anoncvs@subversions.gnu.org:/home/cvs as of today.
493 * read.c (record_files): Check if expanding a static pattern
494 rule's prerequisite pattern leaves an empty string as the
495 prerequisite, and issue an error if so. Fixes PR/1670.
496 (read_makefile): Store the starting linenumber for a rule in
498 (record_waiting_files): Use the TGTS_STARTED value for the file
499 location passed to record_file() instead of the current
500 linenumber, so error messages list the line where the target was
501 defined instead of the line after the end of the rule definition.
503 * remake.c (start_updating, finish_updating, is_updating): Fix
504 PR/1671; circular dependencies in double-colon rules are not
505 diagnosed. These macros set the updating flag in the root
506 double-colon file instead of the current one, if it's part of a
507 double-colon list. This solution provided by Tim Magill
508 <magill@gate.net>; I just changed the macro names :).
509 (update_file_1): Call them.
510 (check_dep): Call them.
512 The change to not automatically evaluate the $(call ...)
513 function's arguments breaks recursive use of call. Although using
514 $(if ...) and $(foreach ...) in $(call ...) macros is important,
515 the error conditions generated are simply to obscure for me to
516 feel comfortable with. If a method is devised to get both
517 working, we'll revisit. For now, remove this change.
519 * function.c (function_table): Turn on the expand bit for func_call.
520 (func_call): Don't expand arguments for builtin functions; that
521 will have already been done.
523 2000-03-26 Paul D. Smith <psmith@gnu.org>
525 * file.c (remove_intermediates): Never remove targets explicitly
526 requested on the command-line by checking the cmd_target flag.
529 2000-03-23 Paul Eggert <eggert@twinsun.com>
531 * filedef.h (FILE_TIMESTAMP_STAT_MODTIME): Use st_mtime instead of
532 st_mtim.tv_sec; the latter doesn't work on Unixware.
534 2000-03-18 Paul D. Smith <psmith@gnu.org>
536 * file.c (file_hash_enter): If we're trying to change a file into
537 itself, just return. We used to assert this wasn't true, but
538 someone came up with a weird case involving archives. After
539 playing with it for a while I decided it was OK to ignore it.
541 * default.c: Define COFLAGS to empty to avoid spurious warnings.
543 * filedef.h: Change #if ST_MTIM_NSEC to #ifdef; this is a macro
544 containing the name of the nsec field, not true/false.
546 Reported by Marco Franzen <Marco.Franzen@Thyron.com>.
548 2000-03-08 Tim Magill <magill@gate.net>
550 * remake.c (update_file): Return the exit status of the pruned
551 file when pruning, not just 0. Fixes PR/1634.
553 2000-02-24 Paul D. Smith <psmith@gnu.org>
555 * configure.in: Close a minor potential security hole; if you're
556 reading makefiles from stdin (who does that?) you could run into a
557 race condition with the temp file using mktemp() or tmpnam(). Add
558 a check for mkstemp() and fdopen().
559 * main.c (open_tmpfile): New function to open a temporary file.
560 If we have mkstemp() (and fdopen()), use that. If not use
561 mktemp() or tmpnam(). If we have fdopen(), use open() to open the
562 file O_CREAT|O_EXCL. If not, fall back to normal fopen() (insecure).
564 * job.c (child_execute_job) [VMS]: Call it.
566 * variable.c (lookup_variable): If we find a variable which is
567 being expanded, then note it but keep looking through the rest of
568 the set list to see if we can find one that isn't. If we do,
569 return that. If we don't, return the original. Fix for PR/1610.
571 While implementing this I realized that it also solves PR/1380 in
572 a much more elegant way. I don't know what I was smoking before.
573 So, remove the hackage surrounding the original fix for that (see
574 below). Change this function back to lookup_variable and remove
575 the extra setlist argument.
576 * variable.h (recursively_expand_setlist): Remove the macro,
577 rename the prototype, and remove the extra setlist argument.
578 (lookup_variable): Ditto.
579 * expand.c (recursively_expand): Rename and remove the extra
581 (reference_variable): Use lookup_variable() again.
582 (allocated_variable_append): Remove the extra setlist argument.
584 2000-02-21 Paul D. Smith <psmith@gnu.org>
586 * README.template: A few updates.
588 * i18n/de.po: New version from the German translation team.
590 2000-02-09 Paul D. Smith <psmith@gnu.org>
592 * Version 3.78.91 released.
594 2000-02-07 Paul D. Smith <psmith@gnu.org>
596 * read.c (read_makefile): Reset *p2 to ':', not *colonp. If any
597 filenames contained backslashes the resulting output (without
598 backslashes) will be shorter, so setting *colonp doesn't change
599 the right character. Fix for PR/1586.
601 For += target-specific variables we need to remember which
602 variable set we found the variable in, so we can start looking
603 from there in the next iteration (otherwise we might see it again
604 in recursively_expand and fail!). This is turning into a hack; if
605 it gets any worse we'll have to rethink this entire algorithm...
606 implementing expansion of these references separately from the
607 "normal" expansion, say, instead of using the same codepath.
608 Actually, it's already "worse enough" :-/.
611 * variable.h (recursively_expand_setlist): Rename
612 recursively_expand to add a struct variable_set_list argument, and
613 make a macro for recursively_expand.
614 (lookup_variable_setlist): Rename lookup_variable to add a struct
615 variable_set_list argument, and make a macro for lookup_variable.
617 * expand.c (recursively_expand_setlist): Take an extra struct
618 variable_set_list argument and pass it to allocated_variable_append().
619 (reference_variable): Use lookup_variable_setlist() and pass the
620 returned variable_set_list to recursively_expand_setlist.
621 (allocated_variable_append): Take an extra setlist argument and
622 use this as the starting place when searching for the appended
623 expansion. If it's null, use current_variable_set_list as before.
625 * variable.c (lookup_variable_setlist): If the LISTP argument is
626 not nil, set it to the list containing the variable we found.
628 2000-02-04 Paul D. Smith <psmith@gnu.org>
630 * variable.c (print_variable): Write out filename/linenumber
631 information for the variable definition if present.
632 (define_variable_in_set): Store filename information if provided.
633 (define_variable, define_variable_for_file): Removed.
634 (try_variable_definition): Use define_variable_loc() to keep
635 variable definition location information.
636 * read.c (read_makefile): Keep variable definition location info.
638 (record_target_var): Ditto.
639 * variable.h (define_variable_in_set): New fileinfo argument.
640 (define_variable, define_variable_loc, define_variable_for_file):
645 * filedef.h (struct file): Rename patvar to pat_variables and make
646 it just a variable_set_list; we need our own copy of the pattern
647 variable's variable set list here to avoid overwriting the global
649 * variable.c (initialize_file_variables): Move the instantiation
650 of the pat_variables pointer here. Only do the search after we're
651 done reading the makefiles so we don't search too early. If
652 there's a pat_variables value, set up the variables next ptr.
653 * expand.c (variable_expand_for_file): Remove the setup of the
654 pat_variables info; it's done earlier now to ensure the parent's
655 pattern variables are set up correctly as well.
657 2000-02-03 Paul D. Smith <psmith@gnu.org>
659 * job.c (sh_chars_dos) [WINDOWS32]: Add "&" as a shell
660 metacharacter for the W32 DOS shell.
661 Reported by Warren Jones <wjones@tc.fluke.com>.
663 2000-02-02 Paul D. Smith <psmith@gnu.org>
665 Fixes for the OpenVMS port from Hartmut Becker <becker@rto.dec.com>
667 * config.h-vms [VMS]: Define LOCALEDIR to something; needed for
668 the expansion of bindtextdomain() even though it's a no-op.
669 * vmsfunctions.c (strcmpi): Remove duplicate definition of strcmpi().
670 (readdir): Use DB() instead of testing debug_flag.
671 * dir.c (file_impossible) [VMS]: Search "p" not "name".
672 * job.c [VMS]: Switch from debug_flag to the new DB macro. Add
673 some i18n _() macros (even though VMS doesn't yet support it).
675 * function.c (patsubst_expand): Change "len" to not be unsigned to
676 avoid type mismatches.
678 * main.c (main): Declare signame_init() if we're going to call it.
680 2000-01-29 Eli Zaretskii <eliz@is.elta.co.il>
682 * Makefile.DOS.template: Track changes in Makefile.in
683 (install-recursive, uninstall-recursive): Add missing targets.
685 (install-binPROGRAMS, uninstall-binPROGRAMS): Use $(DESTDIR).
687 * default.c (default_variables) [__MSDOS__]: Define CXX to gpp.
689 2000-01-27 Paul D. Smith <psmith@gnu.org>
691 * gettext.c: Some warning cleanups, and a fix for systems which
692 don't define HAVE_ALLOCA (the workaround code was included
695 2000-01-26 Paul D. Smith <psmith@gnu.org>
697 * Version 3.78.90 released.
699 2000-01-25 Paul D. Smith <psmith@gnu.org>
701 Change gettext support to use the simplified version in libit 0.7.
703 * getopt.c, make.h: Use gettext.h instead of libintl.h.
704 * ABOUT-NLS, gettext.h, gettext.c: New files from libit 0.7.
705 Modified to remove some static declarations which aren't defined.
706 * acconfig.h: Use new gettext #defines.
707 * acinclude.m4: Add fp_WITH_GETTEXT; remove AM_GNU_GETTEXT.
708 * configure.in: Call fp_WITH_GETTEXT instead.
709 * Makefile.am: New gettext stuff. Also force inclusion of glob
710 files for systems which have LIBC glob.
712 * i18n/Makefile.am, i18n/.cvsignore: New dir for translation files.
713 * i18n/de.po, i18n/es.po, i18n/fr.po, i18n/ko.po, i18n/nl.po:
714 * i18n/pl.po, i18n/ru.po: Import translations already done for
715 earlier versions of GNU make. Thanks for that work!!
717 * po/Makefile.in.in, po/POTFILES.in: Removed.
719 2000-01-23 Paul D. Smith <psmith@gnu.org>
721 * main.c (decode_debug_flags): If debug_flag is set, enable all
723 (debug_flag): Resurrect this flag variable.
724 (switches): Make -d give the old behavior of turning on all
725 debugging. Change --debug alone to emit basic debugging and take
726 optional arguments to expand debugging.
727 * NEWS: Document the new debugging options.
729 * remake.c (no_rule_error): Remove this function. This tries to
730 fix a real problem--see the description with the introduction of
731 this function below. However, the cure is worse than the disease
732 and this approach won't work.
733 (remake_file): Put the code from no_rule_error back here.
734 (update_file_1): Remove call to no_rule_error.
736 * filedef.h (struct file): Remove mfile_status field.
738 2000-01-22 Paul D. Smith <psmith@gnu.org>
740 Integrate GNU gettext support.
742 * configure.in: Add AM_GNU_GETTEXT.
743 * Makefile.am: Add options for setting LOCALEDIR, -Iintl, etc.
744 * acinclude.m4: Add gettext autoconf macros.
745 * acconfig.h: Add new gettext #defines.
746 * make.h: Include libintl.h. Make sure _() and N_() macros are
747 declared. Make gettext() an empty macro is NLS is disabled.
748 * main.c (struct command_switch switches[]): Can't initialize
749 static data with _() (gettext calls), so use N_() there then use
750 gettext() directly when printing the strings.
751 * remake.c (no_rule_error): The string constants can't be static
752 when initializing _() macros.
753 * file.c (print_file): Reformat a few strings to work better for
755 * po/POTFILES.in, po/Makefile.in.in: New files. Take
756 Makefile.in.in from the latest GNU tar distribution, as that
757 version works better than the one that comes with gettext.
758 * NEWS: Mention i18n ability.
760 2000-01-21 Paul D. Smith <psmith@gnu.org>
762 Installed patches for the VMS port.
763 Patches provided by: Hartmut Becker <Hartmut.Becker@compaq.com>
765 * readme.vms, arscan.c, config.h-vms, default.c, dir.c, file.c:
766 * implicit.c, job.c, make.h, makefile.com, makefile.vms, rule.c:
767 * variable.c, vmsdir.h, vmsfunctions.c, vmsify.c, glob/glob.c:
768 * glob/glob.h: Installed patches. See readme.vms for details.
770 2000-01-14 Andreas Schwab <schwab@suse.de>
772 * dir.c (read_dirstream): Initialize d_type if it exists.
774 2000-01-11 Paul D. Smith <psmith@gnu.org>
776 Resolve PR/xxxx: don't automatically evaluate the $(call ...)
777 function's arguments. While we're here, clean up argument passing
778 protocol to always use simple nul-terminated strings, instead of
779 sometimes using offset pointers to mark the end of arguments.
780 This change also fixes PR/1517.
781 Reported by Damien GIBOU <damien.gibou@st.com>.
783 * function.c (struct function_table_entry): Remove the negative
784 required_args hack; put in explicit min and max # of arguments.
785 (function_table): Add in the max value. Turn off the expand bit
787 (expand_builtin_function): Test against minimum_args instead of
788 the obsolete required_args.
789 (handle_function): Rewrite this. We don't try to be fancy and
790 pass one style of arguments to expanded functions and another
791 style to non-expanded functions: pass pointers to nul-terminated
792 strings to all functions.
793 (func_call): Rewrite this. If we are invoking a builtin function
794 and it's supposed to have its arguments expanded, do that (since
795 it's not done by handle_function for $(call ...) anymore). For
796 non-builtins, just add the variables as before but mark them as
797 recursive so they'll be expanded later, as needed.
798 (func_if): All arguments are vanilla nul-terminated strings:
799 remove trickery with "argv[1]-1".
800 (func_foreach): Ditto.
802 * expand.c (expand_argument): If the second arg is NULL, expand
803 the entire first argument.
805 * job.c (new_job): Zero the child struct. This change was just
806 made to keep some heap checking software happy, not because there
807 was an actual bug (the important memory was being cleared properly).
809 1999-12-15 Paul D. Smith <psmith@gnu.org>
811 * variable.c (print_variable): Print the variable with += if the
814 * implicit.c (pattern_search): Remove the extra check of the
815 implicit flag added on 8/24/1998. This causes problems and the
816 reason for the change was better resolved by the change made to
817 check_deps() on 1998-08-26. This fixes PR/1423.
819 1999-12-08 Paul D. Smith <psmith@gnu.org>
821 * dir.c (dir_setup_glob): On 64 bit ReliantUNIX (5.44 and above)
822 in LFS mode, stat() is actually a macro for stat64(). Assignment
823 doesn't work in that case. So, stat is a macro, make a local
824 wrapper function to invoke it.
825 (local_stat): Wrapper function, if needed.
826 Reported by Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>.
828 1999-12-02 Paul D. Smith <psmith@gnu.org>
830 * remake.c (update_file): Move the considered test outside the
831 double-colon loop, _but_ make sure we test the double_colon target
832 not the "current" target. If we stop early because one
833 double-colon target is running, mark all the rest considered and
834 try to start their prerequisites (so they're marked considered).
835 Fix for PR/1476 suggested by Tim Magill <tim.magill@telops.gte.com>.
837 1999-11-22 Rob Tulloh <rob_tulloh@dev.tivoli.com>
839 * function.c (windows32_openpipe, func_shell): Correct Windows32
840 problem where $(shell nosuchfile) would incorrectly exit make. The
841 fix is to print the error and let make continue.
842 Reported by David Masterson <David.Masterson@kla-tencor.com>.
844 * w32/subproc/misc.c (arr2envblk): Memory leak fix.
846 1999-11-21 Paul D. Smith <psmith@gnu.org>
848 Rework GNU make debugging to provide different levels of output.
851 * debug.h: New file. Define various debugging levels and macros.
852 * function.c, implicit.c, job.c, main.c, misc.c, read.c, remake.c
853 * remote-cstms.c, vmsfunctions.c: Replace all code depending on
854 debug_flag with invocations of debugging macros.
855 * make.h: Remove debug_flag and DEBUGPR, add db_level.
857 1999-11-18 Paul Eggert <eggert@twinsun.com>
859 * acinclude.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a problem
860 with the QNX 4.25 shell, which doesn't propagate exit status of
861 failed commands inside shell assignments.
863 1999-11-17 Paul D. Smith <psmith@gnu.org>
865 * function.c (func_if): Find the end of the arg list by testing
866 the next item for NULL; any other test is not correct.
867 Reported by Graham Reed <grahamr@algorithmics.com> (PR/1429).
869 Fix += when used in a target-specific variable context.
871 * variable.h: New bitfield APPEND set if we have a +=
872 target-specific variable.
874 * variable.c (try_variable_definition): Add an argument to specify
875 if we're trying a target-specific variable. If we are and it's an
876 append style, don't append it, record it as normal recursive, but
877 set the APPEND flag so it'll be expanded later.
878 * main.c (handle_non_switch_argument): Use new
879 try_variable_definition() signature.
880 * read.c (read_makefile,record_target_var): Ditto.
882 * expand.c (allocated_variable_append): New function: like
883 allocated_variable_expand(), but we expand the same variable name
884 in the context of the ``next'' variable set, then we append this
886 (recursively_expand): Invoke it, if the APPEND bit is set.
888 1999-11-10 Paul D. Smith <psmith@gnu.org>
890 * file.c (snap_deps): If the .NOTPARALLEL target is defined, turn
891 off parallel builds for this make only (still allow submakes to be
893 * main.c: New variable, ``not_parallel''.
894 * make.h: Add an extern for it.
895 * job.c (new_job): Test NOT_PARALLEL as well as JOB_SLOTS.
896 * NEWS: Add info on .NOTPARALLEL.
897 * make.texinfo (Special Targets): Document it.
899 * configure.in (GLOBDIR): Set to "glob" if we need to build the
901 * Makefile.am (SUBDIRS): Use the GLOBDIR variable instead of
902 "glob" so we don't try to build glob if we don't need to (if we
903 have GLIBC glob). Reported by Lars Hecking <lhecking@nmrc.ucc.ie>.
905 * main.c (main): Don't put "***" in the clock skew warning
906 message. Reported by karl@gnu.org.
908 * make.h: Remove unneeded signal setup.
910 * signame.c: Remove extraneous #includes; some versions of Ultrix
911 don't protect against multiple inclusions and it causes compile
912 errors. Reported by Simon Burge <simonb@thistledown.com.au>.
914 1999-10-15 Paul D. Smith <psmith@gnu.org>
916 * main.c (quote_for_env): Rename from quote_as_word().
918 * make.h, *.c: Prefer strchr() and strrchr() in the code
919 rather than index() and rindex(). Define strchr/strrchr in terms
920 of index/rindex if the former aren't supported.
922 * default.c (CHECKOUT,v): Replace the fancy, complicated
923 patsubst/filter expression with a simple $(if ...) expression.
925 * main.c (print_usage): Add the bug reporting mailing address to
926 the --help output, as per the GNU coding standards.
927 Reported by Paul Eggert <eggert@twinsun.com>.
929 * README.customs: Installed information on running Customs-ized
930 GNU make and setuid root, collected by Ted Stern <stern@tera.com>.
932 * read.c (read_all_makefiles): PR/1394: Mark the end of the next
933 token in the MAKEFILES value string _before_ we dup it.
935 1999-10-13 Paul D. Smith <psmith@gnu.org>
937 * configure.in (make_cv_sys_gnu_glob): We used to add the -Iglob
938 flag to CPPFLAGS, but that loses if the user specifies his own
939 CPPFLAGS; this one gets added _after_ his and if he happens to
940 have an old or broken glob.h--boom. Instead, put it in GLOBINC
943 * Makefile.am (INCLUDES): Add @GLOBINC@ to the INCLUDES macro;
944 these things get on the compile line well before the user's
947 1999-10-12 Paul D. Smith <psmith@gnu.org>
949 * remake.c (notice_finished_file): If we get here and -n is set,
950 see if all the command lines are marked recursive. If so, then we
951 ran every command there is, so check the mtime on this file just
952 like we would normally. If not, we assume the command we didn't
953 run would updates the target and set mtime of the target to "very new".
955 * job.c (start_job_command): Update lines_flags in the file's cmds
956 structure with any per-line tokens we found (`@', `-', `+').
958 1999-10-08 Paul D. Smith <psmith@gnu.org>
960 * variable.c (initialize_file_variables): Always recurse to
961 initialize the parent's file variables: the parent might not have
962 any rules to run so it might not have been initialized before
963 this--we need this to set up the chain properly for
964 target-specific variables.
966 1999-09-29 Paul Eggert <eggert@twinsun.com>
968 * main.c (quote_as_word): Always quote for decode_env_switches
969 instead of for the shell, so that arguments with strange
970 characters are are passed to submakes correctly. Remove
971 double_dollars arg; we always double dollars now. All callers
973 (decode_env_switches): Don't run off the end of an environment
974 variable whose contents ends in a unescaped backslash.
976 1999-09-23 Paul D. Smith <psmith@gnu.org>
978 * commands.c, function.c, job.c, read.c: Cast arguments to
979 ctype.h functions/macros to _unsigned_ char for portability.
981 * remake.c, function.c: Compiler warning fixes: the second
982 argument to find_next_token() should be an _unsigned_ int*.
983 Reported by Han-Wen Nienhuys <hanwen@cs.uu.nl>.
985 1999-09-23 Paul D. Smith <psmith@gnu.org>
987 * Version 3.78.1 released.
989 * make.texinfo: Update version/date stamp.
991 * main.c (main): Argh. For some reason we were closing _all_ the
992 jobserver pipes before we re-exec'd due to changed makefiles.
993 This means that any re-exec got a "jobserver unavailable" error :-/.
994 I can't believe we didn't notice this before.
996 1999-09-22 Paul D. Smith <psmith@gnu.org>
998 * Version 3.78 released.
1000 * main.c (main): Only fail on multiple --jobserver-fds options if
1001 they aren't all the same. Some makefiles use things like
1002 $(MAKE) $(MFLAGS) which will cause multiple, identical copies of
1003 --jobserver-fds to show up.
1005 1999-09-16 Paul D. Smith <psmith@gnu.org>
1007 * main.c (define_makeflags): Zero out FLAGSTRING to avoid
1008 uninitialized memory reads when checking *p != '-' in the loop.
1010 1999-09-15 Paul D. Smith <psmith@gnu.org>
1012 * Version 3.77.97 released.
1014 * configure.in (MAKE_HOST): AC_SUBST this so it will go into the
1016 * Makefile.am (check-local): Print a success banner if the check
1018 (check-regression): A bit of fine-tuning.
1020 1999-09-15 Eli Zaretskii <eliz@is.elta.co.il>
1022 * README.DOS.template: Document requirements for the test suite.
1023 * Makefile.DOS.template: Updates to allow the test suite to run
1026 * main.c (main): Handle it if argv[0] isn't an absolute path.
1028 1999-09-13 Paul D. Smith <psmith@gnu.org>
1030 * Version 3.77.96 released.
1032 * Makefile.am (loadavg): Use CPPFLAGS, etc. to make sure we get
1033 all the right #defines to compile.
1034 (check-regression): Look for the regression test suite in the make
1035 package itself. If we're building remotely, use symlinks to make
1037 (dist-hook): Put the test suite into the tar file.
1039 * configure.in: Look for perl for the test suite.
1041 1999-09-10 Paul Eggert <eggert@twinsun.com>
1043 * acinclude.m4 (AC_SYS_LARGEFILE_FLAGS): If on HP-UX 10.20 or
1044 later, and using GCC, define __STDC_EXT__; this works around a
1047 1999-09-08 Paul D. Smith <psmith@gnu.org>
1049 * main.c (print_version): Ugh. GLIBC's configure tries to check
1050 make version strings and is too aggressive with their matching
1051 expressions. I've struck a deal with them to leave the version
1052 output as-is for 3.78, and they'll change their configure checks
1053 so that I can change this back in the future.
1055 1999-09-07 Eli Zaretskii <eliz@is.elta.co.il>
1057 * job.c (construct_command_argv_internal) [__MSDOS__]: Add "echo"
1058 and "unset" to the list of builtin shell commands.
1060 * configh.DOS.template (MAKE_HOST): Define to "i386-pc-msdosdjgpp"
1061 which is the canonical name of the DJGPP host.
1063 1999-09-05 Paul D. Smith <psmith@gnu.org>
1065 * Version 3.77.95 released.
1067 * make.texinfo (Make Errors): Document some new jobserver error
1070 1999-09-04 Eli Zaretskii <eliz@is.elta.co.il>
1072 * make.texinfo (Make Errors): Document the hint about 8 spaces
1074 (Call Function, Quick Reference): Use @code{$(1)}, not @var.
1076 * main.c (main) [__MSDOS__]: Say "on this platform" instead of "on
1077 MS-DOS", since the MSDOS version could run on Windows.
1079 1999-09-03 Paul D. Smith <psmith@gnu.org>
1081 * remake.c (notice_finished_file): Always set mtime_before_update
1082 if it's not been set, not just if we ran some rules. Otherwise we
1083 may have a situation where a target's prerequisite was rebuilt but
1084 not changed, so this target's rules weren't run, then
1085 update_goal_chain() sees mtime_before_update != last_mtime and
1086 thinks that the top-level target changed when it really didn't.
1087 This can cause an infinite loop when remaking makefiles.
1088 (update_goal_chain): If we get back to the top and we don't know
1089 what the goal's last_mtime was, find it now. We need to know so
1090 we can compare it to mtime_before_update later (this is only
1091 crucial when remaking makefiles--should we only do it then?)
1093 1999-09-02 Paul D. Smith <psmith@gnu.org>
1095 * read.c (read_makefile): If "override" appears as the first
1096 prerequisite, look further to ensure this is really a
1097 target-specific variable definition, and not just some
1098 prerequisite named "override".
1100 1999-09-01 Paul D. Smith <psmith@gnu.org>
1102 * function.c (IS_PATHSEP) [WINDOWS32]: Allow backslash separators
1104 * read.c (record_files) [WINDOWS32]: Allow backslash separators
1106 * implicit.c (pattern_search) [WINDOWS32]: Allow backslash
1107 separators for W32 platforms.
1109 * configure.in (MAKE_HOST): Define it to be the canonical build
1110 host info, now that we need AC_CANONICAL_HOST anyway (for large
1112 * version.c (make_host): Define a variable to MAKE_HOST so we're
1113 sure to get it from the local config.h.
1114 * main.c (print_version): Use it in the version information.
1115 * config.ami.template: Add MAKE_HOST.
1116 * configh.dos.template: Ditto.
1117 * config.h.W32.template: Ditto.
1118 * config.h-vms.template: Ditto.
1120 * main.c (main): Close the jobserver file descriptors if we need
1121 to re-exec ourselves.
1122 Also print more reasonable error if users force -jN for submakes.
1123 This may be common for a while until people use the jobserver
1124 feature. If it happens, we ignore the existing jobserver stuff
1125 and use whatever they specified on the commandline.
1126 (define_makeflags): Fixed a long-standing bug: if a long name
1127 only option comes immediately after a single letter option with no
1128 argument, then the option string is constructed incorrectly. For
1129 example, with -w and --jobserver-fds you get "-w-jobserver-fds..."
1130 instead of "-w --jobserver-fds..."; add in an extra " -".
1132 * make.texinfo (Phony Targets): Add another example of using
1133 .PHONY with subdirectories/recursive make.
1135 1999-08-30 Paul D. Smith <psmith@gnu.org>
1137 * README.W32.template: Renamed from README.W32 so it's
1138 autogenerated during the dist. A few minor modifications.
1140 * configure.in: Check for kstat_open before AC_FUNC_GETLOADAVG
1141 since the latter needs to know whether the former exists to give
1144 1999-08-26 Rob Tulloh <rob_tulloh@dev.tivoli.com>
1146 * NMakefile [WINDOWS32]: Now more robust. If you change a file
1147 under w32/subproc, the make.exe will be relinked. Also added some
1148 tests to make sure erase commands won't fail when executed in a
1149 pristine build environment.
1151 * w32/subproc/sub_proc.c [WINDOWS32]: Added support for
1152 HAVE_CYGWIN_SHELL. If you are using the Cygwin B20.1 release, it
1153 is now possible to have have native support for this shell without
1154 having to rely on klutzy BATCH_MODE_ONLY_SHELL.
1156 * config.h.W32 [WINDOWS32]: Added HAVE_CYGWIN_SHELL macro which
1157 users can define if they want to build make to use this shell.
1159 * README.W32 [WINDOWS32]: Added informaton about
1160 HAVE_CYGWIN_SHELL. Cleaned up text a bit to make it more current.
1162 1999-08-26 Paul Eggert <eggert@twinsun.com>
1164 Support large files in AIX, HP-UX, and IRIX.
1166 * acinclude.m4 (AC_LFS): Remove. Superseded by AC_SYS_LARGEFILE.
1167 (AC_SYS_LARGEFILE_FLAGS, AC_SYS_LARGEFILE_SPACE_APPEND,
1168 AC_SYS_LARGEFILE_MACRO_VALUE, AC_SYS_LARGEFILE): New macros.
1169 (jm_AC_TYPE_UINTMAX_T): Check for busted compilers that can't
1170 shift or divide unsigned long long.
1171 (AM_PROG_CC_STDC): New macro; a temporary workaround of a bug in
1174 * configure.in (AC_CANONICAL_HOST): Add; required by new
1176 (AC_SYS_LARGEFILE): Renamed from AC_LFS.
1177 (AM_PROG_CC_STDC): Add.
1179 * config.guess, config.sub: New files, needed for AC_CANONICAL_HOST.
1181 1999-08-25 Paul Eggert <eggert@twinsun.com>
1183 * make.h (CHAR_MAX): New macro.
1184 * main.c (struct command_switch): c is now int,
1185 so that it can store values greater than CHAR_MAX.
1186 (switches): Replace small numbers N with CHAR_MAX+N-1,
1187 to avoid problems with non-ASCII character sets.
1188 (short_option): New macro.
1189 (init_switches, print_usage, define_makeflags): Use it instead of
1192 1999-08-25 Paul D. Smith <psmith@gnu.org>
1194 * Version 3.77.94 released.
1196 * main.c (main) [__MSDOS__]: If the user uses -j, warn that it's
1197 not supported and reset it.
1199 * make.h (ISDIGIT): Obtained this from the textutils distribution.
1200 * main.c (decode_switches): Use it.
1201 * function.c (is_numeric): Use it.
1203 * main.c (struct command_switch): Store the switch char in an
1204 unsigned char to shut up GCC about using it with ctype.h macros.
1205 Besides, it _is_ always unsigned.
1207 1999-08-24 Paul D. Smith <psmith@gnu.org>
1209 * make.texinfo: Change "dependency" to "prerequisite" and
1210 "dependencies" to "prerequisites". Various other cleanups related
1211 to the terminology change.
1212 * file.c: Change debugging and error messages to use
1213 "prerequisite" instead of "dependency".
1214 * implicit.c: Ditto.
1216 * NEWS: Document it.
1218 1999-08-23 Paul D. Smith <psmith@gnu.org>
1220 * remake.c (update_file): Move the considered check into the
1221 double-colon rule loop, so we consider double-colon rules
1222 individually (otherwise after the first is pruned, the rest won't
1225 * README.template: Minor changes.
1227 Remove the debugging features of the jobserver, so it no longer
1228 writes distinct tokens to the pipe. Thus, we don't need to store
1229 the token we get. A side effect of this is to remove a potential
1230 "unavailable token" situation: make-1 invokes make-2 with its
1231 special token and make-3 with a normal token; make-2 completes.
1232 Now we're waiting for make-3 but using 2 tokens; our special token
1233 is idle. In the new version we don't have special tokens per se,
1234 we merely decide if we already have a child or not. If we don't,
1235 we don't need a token. If we do, we have to get one to run the
1236 next child. Similar for putting tokens back: if we're cleaning up
1237 the last child, we don't put a token back. Otherwise, we do.
1239 * main.c: Add a new, internal flag --jobserver-fds instead of
1240 overloading the meaning of -j. Remove job_slots_str and add the
1241 stringlist jobserver_fds.
1242 (struct command_switch): We don't need the int_string type.
1243 (switches[]): Add a new option for --jobserver-fds and remove
1244 conditions around -j. Make the description for the former 0 so it
1245 doesn't print during "make --help".
1246 (main): Rework jobserver parsing. If we got --jobserver-fds
1247 make sure it's valid. We only get one and job_slots must be 0.
1248 If we're the toplevel make (-jN without --jobserver-fds) create
1249 the pipe and write generic tokens.
1250 Create the stringlist struct for the submakes.
1251 Clean up the stringlist where necessary.
1252 (init_switches): Remove int_string handling.
1253 (print_usage): Don't print internal flags (description ptr is 0).
1254 (decode_switches): Remove int_string handling.
1255 (define_makeflags): Remove int_string handling.
1257 * job.c: Remove my_job_token flag and all references to the
1258 child->job_token field.
1259 (free_job_token): Remove this and merge it into free_child().
1260 (reap_children): Rework the "reaped a child" logic slightly.
1261 Don't call defunct free_job_token anymore. Always call
1262 free_child, even if we're dying.
1263 (free_child): If we're not freeing the only child, put a token
1264 back in the pipe. Then, if we're dying, don't bother to free.
1265 (new_job): If we are using the jobserver, loop checking to see if
1266 a) there are no children or b) we get a token from the pipe.
1268 * job.h (struct child): Remove the job_token field.
1270 1999-08-20 Paul D. Smith <psmith@gnu.org>
1272 * variable.c (try_variable_definition): Allocate for variable
1273 expansion in f_append with a simple variable: if we're looking at
1274 target-specific variables we don't want to trash the buffer.
1275 Noticed by Reiner Beninga <Reiner.Beninga@mchp.siemens.de>.
1277 1999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
1279 * main.c (main) [__MSDOS__]: Mirror any backslashes in argv[0], to
1280 avoid problems in shell commands that use backslashes as escape
1283 1999-08-16 Paul D. Smith <psmith@gnu.org>
1285 * Version 3.77.93 released.
1287 1999-08-13 Paul D. Smith <psmith@gnu.org
1289 * function.c (func_if): New function $(if ...) based on the
1290 original by Han-Wen but reworked quite a bit.
1291 (function_table): Add it.
1292 * NEWS: Introduce it.
1293 * make.texinfo (If Function): Document it.
1295 * job.c (free_job_token): Check for EINTR when writing tokens to
1298 1999-08-12 Paul D. Smith <psmith@gnu.org>
1300 Another jobserver algorithm change. We conveniently forgot that
1301 the blocking bit is shared by all users of the pipe, it's not a
1302 per-process setting. Since we have many make processes all
1303 sharing the pipe we can't use the blocking bit as a signal handler
1304 flag. Instead, we'll dup the pipe's read FD and have the SIGCHLD
1305 handler close the dup'd FD. This will cause the read() to fail
1306 with EBADF the next time we invoke it, so we know we need to reap
1307 children. We then re-dup and reap.
1309 * main.c (main): Define the job_rfd variable to hold the dup'd FD.
1310 Actually dup the read side of the pipe. Don't bother setting the
1311 blocking bit on the file descriptor.
1312 * make.h: Declare the job_rfd variable.
1313 * job.c (child_handler): If the dup'd jobserver pipe is open,
1314 close it and assign -1 to job_rfd to notify the main program that
1316 (start_job_command): Close the dup'd FD before exec'ing children.
1317 Since we open and close this thing so often it doesn't seem
1318 worth it to use the close-on-exec bit.
1319 (new_job): Remove code for testing/setting the blocking bit.
1320 Instead of EAGAIN, test for EBADF. If the dup'd FD has been
1321 closed, re-dup it before we reap children.
1323 * function.c (func_shell): Be a little more accurate about the
1324 length of the error string to allocate.
1326 * expand.c (variable_expand_for_file): If there's no filenm info
1327 (say, from a builtin command) then reset reading_file to 0.
1329 1999-08-09 Paul D. Smith <psmith@gnu.org>
1331 * maintMakefile: Use g in sed (s///g) to replace >1 variable per
1334 * Makefile.DOS.template [__MSDOS__]: Fix mostlyclean-aminfo to
1335 remove the right files.
1337 1999-08-01 Eli Zaretskii <eliz@is.elta.co.il>
1339 * function.c (msdos_openpipe) [__MSDOS__]: *Really* return a FILE
1342 1999-08-01 Paul D. Smith <psmith@gnu.org>
1344 New jobserver algorithm to avoid a possible hole where we could
1345 miss SIGCHLDs and get into a deadlock. The original algorithm was
1346 suggested by Roland McGrath with a nice refinement by Paul Eggert.
1347 Many thanks as well to Tim Magill and Howard Chu, who also
1348 provided many viable ideas and critiques. We all had a fun week
1349 dreaming up interesting ways to use and abuse UNIX syscalls :).
1351 Previously we could miss a SIGCHLD if it happened after we reaped
1352 the children but before we re-entered the blocking read. If this
1353 happened to all makes and/or all children, make would never wake
1356 We avoid this by having the SIGCHLD handler reset the blocking bit
1357 on the jobserver pipe read FD (normally read does block in this
1358 algorithm). Now if the handler is called between the time we reap
1359 and the time we read(), and there are no tokens available, the
1360 read will merely return with EAGAIN instead of blocking.
1362 * main.c (main): Set the blocking bit explicitly here.
1363 * job.c (child_handler): If we have a jobserver pipe, set the
1364 non-blocking bit for it.
1365 (start_waiting_job): Move the token stuff back to new_job; if we
1366 do it here then we're not controlling the number of remote jobs
1368 (new_job): Move the check for job slots to _after_ we've created a
1369 child structure. If the read returns without getting a token, set
1370 the blocking bit then try to reap_children.
1372 * make.h (EINTR_SET): Define to test errno if EINTR is available,
1373 or 0 otherwise. Just some code cleanup.
1374 * arscan.c (ar_member_touch): Use it.
1375 * function.c (func_shell): Use it.
1376 * job.c (reap_children): Use it.
1377 * remake.c (touch_file): Use it.
1379 1999-07-28 Paul D. Smith <psmith@gnu.org>
1381 * make.h: Define _() and N_() macros as passthrough to initiate
1383 * <all>: Add _()/N_() around translatable strings.
1385 1999-07-27 Paul D. Smith <psmith@gnu.org>
1387 * read.c: Make sure make.h comes before other headers.
1389 1999-07-26 Paul D. Smith <psmith@gnu.org>
1391 * make.texinfo (Quick Reference): Update with the new features.
1393 1999-07-25 Eli Zaretskii <eliz@is.elta.co.il>
1395 * remake.c [__MSDOS__]: Don't include variables.h, it's already
1398 * function.c (msdos_openpipe) [__MSDOS__]: Return FILE ptr.
1399 (func_shell) [__MSDOS__]: Fix the argument list.
1401 * Makefile.DOS.template: Update from Makefile.in.
1403 * README.DOS.template: Configure command fixed.
1405 * configh.dos.template: Update to provide definitions for
1406 uintmax_t, fd_set_size_t, and HAVE_SELECT.
1408 1999-07-24 Paul D. Smith <psmith@gnu.org>
1410 * Version 3.77.91 released.
1412 * configure.in: Changes to the boostrapping code: if build.sh.in
1413 doesn't exist configure spits an error and generates an empty
1414 build.sh file which causes make to be confused.
1415 * maintMakefile: Don't build README early.
1417 1999-07-23 Paul D. Smith <psmith@gnu.org>
1419 * job.c (my_job_token): This variable controls whether we've
1420 handed our personal token to a subprocess or not. Note we could
1421 probably infer this from the value of job_slots_used, but it's
1422 clearer to just keep it separately. Job_slots_used isn't really
1423 relevant when running the job server.
1424 (free_job_token): New function: free a job token. If we don't
1425 have one, no-op. If we have the personal token, reclaim it. If
1426 we have another token, write it back to the pipe.
1427 (reap_children): Call free_job_token.
1428 (free_child): Call free_job_token.
1429 (start_job_command): Remove duplicate test for '+' in the command.
1430 If we don't appear to be running a recursive make, close the
1431 jobserver filedescriptors.
1432 (start_waiting_job): If our personal token is available, use that
1433 instead of going to the server pipe.
1434 (*): Add the token value to many debugging statements, and print
1435 the child target name in addition to the ptr hex value.
1436 Change the default "no token" value from '\0' to '-' so it looks
1437 better in the output.
1439 * main.c (main): Install the child_handler with sigaction()
1440 instead of signal() if we have it. On SysV systems, signal() uses
1441 SysV semantics which are a pain. But sigaction() always does what
1443 (main): If we got job server FDs from the environment, test them
1444 to see if they're open. If not, the parent make closed them
1445 because it didn't think we were a submake. Print a warning and
1446 suggestion to use "+" on the submake invocation, and hard-set to
1447 -j1 for this instance of make.
1448 (main): Change the algorithm for assigning slots to be more
1449 robust. Previously make checked to see if it thought a subprocess
1450 was a submake and if so, didn't give it a token. Since make's
1451 don't consume tokens we could spawn many of makes fighting for a
1452 small number of tokens. Plus this is unreliable because submakes
1453 might not be recognized by the parent (see above) then all the
1454 tokens could be used up by unrecognized makes, and no one could
1455 run. Now every make consumes a token from its parent. However,
1456 the make can also use this token to spawn a child. If the make
1457 wants more than one, it goes to the jobserver pipe. Thus there
1458 will never be more than N makes running for -jN, and N*2 processes
1459 (N makes and their N children). Every make can always run at
1460 least one job, and we'll never deadlock. (Note the closing of the
1461 pipe for non-submakes also solves this, but this is still a better
1462 algorithm.) So! Only put N-1 tokens into the pipe, since the
1463 topmost make keeps one for itself.
1465 * configure.in: Find sigaction. Disable job server support unless
1466 the system provides it, in addition to either waitpid() or
1469 1999-07-22 Rob Tulloh <rob_tulloh@dev.tivoli.com>
1471 * arscan.c (ar_member_touch) [WINDOWS32]: The ar_date field is a
1472 string on Windows, not a timestamp.
1474 1999-07-21 Paul D. Smith <psmith@gnu.org>
1476 * Version 3.77.90 released.
1478 * Makefile.am (AUTOMAKE_OPTIONS): Require automake 1.4.
1480 * function.c: Rearrange so we don't need to predeclare the
1481 function_table array; K&R C compilers don't like that.
1483 * acinclude.m4 (AC_FUNC_SELECT): Ouch; this requires an ANSI C
1484 compiler! Change to work with K&R compilers as well.
1486 * configure.in (AC_OUTPUT): Put build.sh back. I don't know how I
1487 thought it would work this way :-/. We'll have to think of
1489 * Makefile.am: Remove rule to create build.sh.
1491 * default.c (default_suffix_rules): Rearrange the default command
1492 lines to conform to POSIX rules (put the filename argument $<
1493 _after_ the OUTPUT_OPTION, not before it).
1495 * various: Changed !strncmp() calls to strneq() macros.
1497 * misc.c (sindex): Make slightly more efficient.
1499 * dir.c (file_impossible): Change savestring(X,strlen(X)) to xstrdup().
1500 * implicit.c (pattern_search): Ditto.
1501 * main.c (enter_command_line_file): Ditto.
1503 * misc.c (copy_dep_chain): Ditto.
1504 * read.c (read_makefile): Ditto.
1505 (parse_file_seq): Ditto.
1506 (tilde_expand): Ditto.
1507 (multi_glob): Ditto.
1508 * rule.c (install_pattern_rule): Ditto.
1509 * variable.c (define_variable_in_set): Ditto.
1510 (define_automatic_variables): Ditto.
1511 * vpath.c (construct_vpath_list): Ditto.
1513 * misc.c (xrealloc): Some reallocs are non-standard: work around
1514 them in xrealloc by calling malloc if PTR is NULL.
1515 * main.c (main): Call xrealloc() directly instead of testing for
1518 * function.c (func_sort): Don't try to free NULL; some older,
1519 non-standard versions of free() don't like it.
1521 * configure.in (--enable-dmalloc): Install some support for using
1522 dmalloc (http://www.dmalloc.com/) with make. Use --enable-dmalloc
1523 with configure to enable it.
1525 * function.c (function_table_entry): Whoops! The function.c
1526 rewrite breaks backward compatibility: all text to a function is
1527 broken into arguments, and extras are ignored. So $(sort a,b,c)
1528 returns "a"! Etc. Ouch. Fix it by making a positive value in
1529 the REQUIRED_ARGS field mean exactly that many arguments to the
1530 function; any "extras" are considered part of the last argument as
1531 before. A negative value means at least that many, but may be
1532 more: in this case all text is broken on commas.
1533 (handle_function): Stop when we've seen REQUIRED_ARGS args, if >0.
1534 (expand_builtin_function): Compare number of args to the absolute
1535 value of REQUIRED_ARGS.
1537 1999-07-20 Paul D. Smith <psmith@gnu.org>
1539 * job.c (start_job_command): Ensure that the state of the target
1540 is cs_running. It might not be if we skipped all the lines due to
1543 * commands.c (execute_file_commands): If we discover that the
1544 command script is empty and succeed early, set cs_running so the
1545 modtime of the target is still rechecked.
1547 * rule.c (freerule): Free the dependency list for the rule.
1549 * implicit.c (pattern_search): When turning an intermediate file
1550 into a real target, keep the also_make list.
1551 Free the dep->name if we didn't use it during enter_file().
1553 1999-07-16 Paul D. Smith <psmith@gnu.org>
1555 * read.c (read_makefile): Don't allocate the commands buffer until
1556 we're sure we found a makefile and won't return early (mem leak).
1558 * job.c (start_job_command): Broken #ifdef test: look for F_SETFD,
1559 not FD_SETFD. Close-on-exec isn't getting set on the bad_stdin
1560 file descriptor and it's leaking :-/.
1561 * getloadavg.c (getloadavg): Ditto.
1563 1999-07-15 Paul D. Smith <psmith@gnu.org>
1565 * read.c (read_makefile): Fix some potential memory stomps parsing
1566 `define' directives where no variable name is given.
1568 * function.c (func_call): Rename from func_apply. Various code
1569 cleanup and tightening.
1570 (function_table): Add "call" as a valid builtin function.
1572 * make.texinfo (Call Function): Document it.
1574 * NEWS: Announce it.
1576 1999-07-09 Eli Zaretskii <eliz@is.elta.co.il>
1578 * variable.c (try_variable_definition) [__MSDOS__, WINDOWS32]:
1579 Treat "override SHELL=" the same as just "SHELL=".
1581 1999-07-09 Paul D. Smith <psmith@gnu.org>
1583 * job.c (start_waiting_job): Don't get a second job token if we
1584 already have one; if we're waiting on the load to go down
1585 start_waiting_job() might get called twice on the same file.
1587 * filedef.h (struct file): Add new field, mtime_before_update.
1588 When notice_finished_file runs it assigns the cached last_mtime to
1590 * remake.c (update_goal_chain): Notice that a file wasn't updated
1591 by asking if it changed (g->changed) and comparing the current
1592 cached time (last_mtime) with the previous one, stored in
1593 mtime_before_update. The previous check ("did last_mtime changed
1594 during the run of update_file?") fails for parallel builds because
1595 last_mtime is set during reap_children, before update_file is run.
1596 This causes update_goal_chain to always return -1 (nothing
1597 rebuilt) when running parallel (-jN). This is OK during "normal"
1598 builds since our caller (main) treats these cases identically in
1599 that case, but if when rebuilding makefiles the difference is very
1600 important, as it controls whether we re-exec or not.
1601 * file.c (file_hash_enter): Copy the mtime_before_update field.
1602 (snap_deps): Initialize mtime_before_update to -1.
1603 * main.c (main): Initialize mtime_before_update on old (-o) and
1606 1999-07-08 Paul D. Smith <psmith@gnu.org>
1608 * main.c (switches): Define a new switch -R (or
1609 --no-builtin-variables). This option disables the defining of all
1610 the GNU make builtin variables.
1611 (main): If -R was given, force -r as well.
1612 * default.c (define_default_variables): Test the new flag.
1613 * make.h: Declare global flag.
1614 * make.texinfo (Options Summary): Document the new option.
1615 (Implicit Variables): Ditto.
1617 1999-07-06 Paul D. Smith <psmith@gnu.org>
1619 * make.texinfo (Options Summary): Correct examples in
1620 --print-data-base option summary (problem reported by David Morse
1621 <morse@nichimen.com>).
1623 * arscan.c: Add support for archives in Windows (VC++). Frank
1624 Libbrecht <frankl@abzx.belgium.hp.com> provided info on how to do
1626 * NMakefile.template (CFLAGS_any): Remove NO_ARCHIVES from the
1628 * build_w32.bat: Ditto.
1630 * remake.c (no_rule_error): Fix -include/sinclude so it doesn't
1631 give errors if you try to -include the same file twice.
1632 (updating_makefiles): New variable: we need to know this info in
1633 no_rule_error() so we know whether to print an error or not.
1634 (update_file_1): Unconditionally call no_rule_error(), don't try
1635 to play games with the dontcare flag.
1637 1999-06-14 Paul D. Smith <psmith@gnu.org>
1639 * make.texinfo (Remaking Makefiles): Add a description of how to
1640 prevent implicit rule searches for makefiles.
1642 * make.1: Remove statement that make continues processing when -v
1645 1999-06-14 Paul D. Smith <psmith@gnu.org>
1647 * read.c (read_makefile): Cast -1 arguments to
1648 variable_expand_string() to long. Alexandre Sauve
1649 <Alexandre.SAUVE@ifp.fr> reports that without casts, this breaks
1650 on a NEC SUPER-UX SX-4 system (and it's wrong without a cast
1651 anyway). Of course, (a) I'd really love to start using function
1652 prototypes, and (b) there's a whole slew of issues related to int
1653 vs. long and signed vs. unsigned in the length handling of
1654 variable buffers, etc. Gross. Needs a complete mucking-out.
1655 * expand.c (variable_expand): Ditto.
1657 * acinclude.m4 (AC_FUNC_SELECT): Slight enhancement for AIX 3.2 by
1658 Lars Hecking <lhecking@nmrc.ucc.ie>.
1660 * read.c (get_next_mword): Allow colons to be escaped in target
1661 names: fix for regression failure.
1663 1999-04-26 Paul D. Smith <psmith@gnu.org>
1665 * main.c (main): Reset read_makefiles to empty after processing so
1666 we get the right error message.
1668 1999-04-25 Paul D. Smith <psmith@gnu.org>
1670 * make.texinfo: Updates to @dircategory and @direntry suggested by
1671 Karl Berry <karl@cs.umb.edu>.
1673 1999-04-23 Eli Zaretskii <eliz@is.elta.co.il>
1675 * job.c (start_job_command) [__MSDOS__]: Call unblock_sigs before
1676 turning off dos_command_running, so child's signals produce the
1679 * commands.c (fatal_error_signal) [__MSDOS__]: Use EXIT_FAILURE
1682 1999-04-18 Eli Zaretskii <eliz@is.elta.co.il>
1684 * configh.dos.template: Update to recognize that version 2.02 of
1685 DJGPP contains sys_siglist stuff.
1687 1999-04-14 Paul D. Smith <psmith@gnu.org>
1689 * make.texinfo (Options/Recursion): Document the job server.
1692 1999-04-13 Paul D. Smith <psmith@gnu.org>
1694 Implement a new "job server" feature; the implementation was
1695 suggested by Howard Chu <hyc@highlandsun.com>.
1697 * configure.in (job-server): New disable option for job server
1698 support--it's enabled by default. If it works well this will go
1701 * NEWS: Summarize the new feature.
1703 * acconfig.h: New definition MAKE_JOBSERVER if job server support
1705 * config.h-vms.template: Undef MAKE_JOBSERVER for this port.
1706 * config.h.W32.template: Ditto.
1707 * config.ami.template: Ditto.
1709 * main.c (struct command_switch): Add a new type: int_string.
1710 (switches[]) Use int_string for -j if MAKE_JOBSERVER.
1711 (init_switches): Initialize the new int_string switch type.
1712 (print_usage): New function, extracted from decode_switches().
1713 (decode_switches): Call it. Decode the new int_string switch type.
1714 (define_makeflags): Add new int_string switch data to MAKEFLAGS.
1715 (job_fds[]) Array to contain the pipe file descriptors.
1716 (main): Parse the job_slots_str option results. If necessary,
1717 create the pipe and seed it with tokens. Set the non-blocking bit
1718 for the read fd. Enable the signal handler for SIGCHLD even if we
1719 have a non-hanging wait; it's needed to interrupt the select() in
1720 job.c:start_waiting_job().
1722 * make.h: Declare job_fds[].
1724 * job.h (struct child): Add job_token field to store the token for
1727 * job.c (reap_children): When a child is fully reaped, release the
1728 token back into the pipe.
1729 (free_child): If the child to be freed still has a token, put it
1731 (new_job): Initialize the job_token member.
1732 (start_waiting_job): For local jobs, if we're using the pipe, get
1733 a token before we check the load, etc. We do this by performing a
1734 non-blocking read in a loop. If the read fails, no token is
1735 available. Do a select on the fd to wait for a token. We need to
1736 re-enable the signal handler for SIGCHLD even if we have a
1737 non-hanging waitpid() or wait3(), so that the signal will
1738 interrupt the select() and we can wake up to reap children.
1739 (child_handler): Re-enable the signal handler. The count is still
1740 kept although it's not needed or used unless you don't have
1741 waitpid() or wait3().
1743 1999-04-10 Paul D. Smith <psmith@gnu.org>
1745 * main.c (main): Reset the considered bit on all the makefiles if
1746 something failed to update; we need to examine them again if they
1747 appear as normal targets in order to get the proper error message.
1749 1999-04-09 Paul D. Smith <psmith@gnu.org>
1751 Performance enhancement from Tim Magill <tim.magill@telops.gte.com>.
1753 * remake.c (update_file): If you have large numbers of
1754 dependencies and you run in parallel, make can spend considerable
1755 time each pass through the graph looking at branches it has
1756 already seen. Since we only reap_children() when starting a pass,
1757 not in the middle, if a branch has been seen already in that pass
1758 nothing interesting can happen until the next pass. So, we toggle
1759 a bit saying whether we've seen this target in this pass or not.
1760 (update_goal_chain): Initially set the global considered toggle to
1761 1, since all targets initialize their boolean to 0. At the end of
1762 each pass, toggle the global considered variable.
1763 * filedef.h (struct file): Per-file considered toggle bit.
1764 * file.c: New global toggle variable considered.
1766 1999-04-05 Paul D. Smith <psmith@gnu.org>
1768 * arscan.c (ar_scan): Added support for ARFZMAG (compressed
1769 archives?) for Digital UNIX C++. Information provided by
1770 Patrick E. Krogel <pekrogel@mtu.edu>.
1771 (ar_member_touch): Ditto.
1773 1999-04-03 Paul D. Smith <psmith@gnu.org>
1775 * remake.c (f_mtime): If: a) we found a file and b) we didn't
1776 create it and c) it's not marked as an implicit target and d) it
1777 is marked as an intermediate target, then it was so marked due to
1778 an .INTERMEDIATE special target, but it already existed in the
1779 directory. In this case, unset the intermediate flag so we won't
1780 delete it when make is done. It feels like it would be cleaner to
1781 put this check in update_file_1() but I worry it'll get missed...
1783 1999-04-01 Paul D. Smith <psmith@gnu.org>
1785 * job.c (construct_command_argv_internal): Use bcopy() to copy
1786 overlapping strings, rather than strcpy(). ISO C says the latter
1787 is undefined. Found this in a bug report from 1996! Ouch!
1789 1999-03-31 Paul D. Smith <psmith@gnu.org>
1791 * read.c (readline): Ignore carriage returns at the end of the
1792 line, to allow Windows-y CRLF line terminators.
1794 1999-03-30 Paul D. Smith <psmith@gnu.org>
1796 * configure.in: Don't put build.sh here, since build.sh.in doesn't
1797 exist initially. This cause autoreconf and automake to fail when
1798 run on a clean CVS checkout. Instead, we create build.sh in the
1799 Makefile (see below).
1801 * Makefile.am: Remove BUILT_SOURCES; this is no longer relevant.
1802 Put those files directly into EXTRA_DIST so they're distributed.
1803 Create a local build rule to create build.sh.
1804 Create a local maintainer-clean rule to delete all the funky
1807 * maintMakefile: Makefile.in depends on README, since automake
1808 fails if it doesn't exist. Also don't remove glob/Makefile.in
1809 here, as it causes problems.
1811 1999-03-26 Paul D. Smith <psmith@gnu.org>
1813 * configure.in: Substitute GLOBLIB if we need the link the
1814 glob/libglob.a library.
1815 * Makefile.am (make_LDADD): Use the subst variable GLOBLIB so we
1816 don't link the local libglob.a at all if we don't need it.
1817 * build.template: Don't compile glob/*.o unless we want globlib.
1818 * maintMakefile (build.sh.in): Substitute the glob/*.o files
1821 1999-03-25 Paul D. Smith <psmith@gnu.org>
1823 * make.texinfo: Various typos and additions, pointed out by James
1824 G. Sack <jsack@dornfeld.com>.
1826 1999-03-22 Paul D. Smith <psmith@gnu.org>
1828 * make.texinfo (Functions): Add a new section documenting the new
1829 $(error ...) and $(warning ...) functions. Also updated copyright
1831 * NEWS: Updated for the new functions.
1832 * function.c (func_error): Implement the new $(error ...) and
1833 $(warning ...) functions.
1834 (function_table): Insert new functions into the table.
1835 (func_firstword): Don't call find_next_token() with argv[0]
1836 itself, since that function modifies the pointer.
1837 * function.c: Cleanups and slight changes to the new method of
1840 1999-03-20 Han-Wen Nienhuys <hanwen@cs.uu.nl>
1842 * function.c: Rewrite to use one C function per make function,
1843 instead of a huge switch statement. Also allows some cleanup of
1844 multi-architecture issues, and a cleaner API which makes things
1845 like func_apply() simple.
1847 * function.c (func_apply): Initial implementation. Expand either
1848 a builtin function or a make variable in the context of some
1849 arguments, provided as $1, $2, ... $N.
1851 1999-03-19 Eli Zaretskii <eliz@is.elta.co.il>
1852 1999-03-19 Rob Tulloh <rob_tulloh@dev.tivoli.com>
1854 * job.c (construct_command_argv_internal): Don't treat _all_
1855 backslashes as escapes, only those which really escape a special
1856 character. This allows most normal "\" directory separators to be
1859 1999-03-05 Paul D. Smith <psmith@gnu.org>
1861 * configure.in: Check for a system strdup().
1862 * misc.c (xstrdup): Created. Suggestion by Han-Wen Nienhuys
1864 * make.h: Prototype xstrdup().
1865 * remake.c (library_search): Use it.
1866 * main.c (main): Use it.
1867 (find_and_set_default_shell): Use it.
1868 * job.c (construct_command_argv_internal): Use it.
1869 * dir.c (find_directory): Use it.
1871 * Makefile.am, configure.in: Use AC_SUBST_FILE to insert the
1872 maintMakefile instead of "include", to avoid automake 1.4
1875 1999-03-04 Paul D. Smith <psmith@gnu.org>
1877 * amiga.c, amiga.h, ar.c, arscan.c, commands.c, commands.h,
1878 * default.c, dep.h, dir.c, expand.c, file.c, filedef.h, function.c,
1879 * implicit.c, job.c, job.h, main.c, make.h, misc.c, read.c, remake.c
1880 * remote-cstms.c, remote-stub.c, rule.h, variable.c, variable.h,
1881 * vpath.c, Makefile.ami, NMakefile.template, build.template,
1882 * makefile.vms: Updated FSF address in the copyright notice.
1884 * variable.c (try_variable_definition): If we see a conditional
1885 variable and we decide to set it, re-type it as recursive so it
1886 will be expanded properly later.
1888 1999-02-22 Paul D. Smith <psmith@gnu.org>
1890 * NEWS: Mention new .LIBPATTERNS feature.
1892 * make.texinfo (Libraries/Search): Describe the use and
1893 ramifications of the new .LIBPATTERNS variable.
1895 * remake.c (library_search): Instead of searching only for the
1896 hardcoded expansion "libX.a" for a library reference "-lX", we
1897 obtain a list of patterns from the .LIBPATTERNS variable and
1898 search those in order.
1900 * default.c: Added a new default variable .LIBPATTERNS. The
1901 default for UNIX is "lib%.so lib%.a". Amiga and DOS values are
1904 * read.c: Remove bogus HAVE_GLOB_H references; always include
1907 1999-02-21 Paul D. Smith <psmith@gnu.org>
1909 * function.c (expand_function): Set value to 0 to avoid freeing it.
1910 * variable.c (pop_variable_scope): Free the value of the variable.
1911 (try_variable_definition): For simple variables, use
1912 allocated_variable_expand() to avoid stomping on the variable
1913 buffer when we still need it for other things.
1915 * arscan.c: Modified to support AIX 4.3 big archives. The changes
1916 are based on information provided by Phil Adams
1917 <padams@austin.ibm.com>.
1919 1999-02-19 Paul D. Smith <psmith@gnu.org>
1921 * configure.in: Check to see if the GNU glob library is already
1922 installed on the system. If so, _don't_ add -I./glob to the
1923 compile line. Using the system glob code with the local headers
1925 Rewrite SCCS macros to use more autoconf facilities.
1927 * Makefile.am: Move -Iglob out of INCLUDES; it'll get added to
1928 CPPFLAGS by configure now.
1929 Automake 1.4 introduced its own "include" feature which conflicts
1930 with the maintMakefile stuff. A hack that seems to work is add a
1931 space before the include :-/.
1933 * build.template: Move -Iglob out of the compile line; it'll get
1934 added to CPPFLAGS by configure now.
1936 1999-02-16 Glenn D. Wolf <Glenn_Wolf@email.sps.mot.com>
1938 * arscan.c (ar_scan) [VMS]: Initialized VMS_member_date before
1939 calling lbr$get_index since if the archive is empty,
1940 VMS_get_member_info won't get called at all, and any leftover date
1941 will be used. This bug shows up if any member of any archive is
1942 made, followed by a dependency check on a different, empty
1945 1998-12-13 Martin Zinser <zinser@decus.decus.de>
1947 * config.h-vms [VMS]: Set _POSIX_C_SOURCE. Redefine the getopt
1948 functions so we don't use the broken VMS versions.
1949 * makefile.com [VMS]: Allow debugging.
1950 * dir.c (dir_setup_glob) [VMS]: Don't extern stat() on VMS.
1952 1998-11-30 Paul D. Smith <psmith@gnu.org>
1954 * signame.c (init_sig): Check the sizes of signals being set up to
1955 avoid array overwrites (if the system headers have problems).
1957 1998-11-17 Paul D. Smith <psmith@gnu.org>
1959 * read.c (record_files): Clean up some indentation.
1961 1998-11-08 Han-Wen Nienhuys <hanwen@cs.uu.nl>
1963 * rule.c (print_rule_data_base): Fix arguments to fatal() call.
1965 1998-10-13 Paul D. Smith <psmith@gnu.org>
1967 * job.c (start_job_command): If the command list resolves to no
1968 chars at all (e.g.: "foo:;$(empty)") then command_ptr is NULL;
1971 1998-10-12 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1973 * rule.c (print_rule_data_base): Ignore num_pattern_rules if it is
1976 1998-10-09 Paul D. Smith <psmith@gnu.org>
1978 * read.c (read_makefile): Allow non-empty lines to expand to the
1979 empty string after variable, etc., expansion, and be ignored.
1981 1998-09-21 Paul D. Smith <psmith@gnu.org>
1983 * job.c (construct_command_argv_internal): Only add COMMAND.COM
1984 "@echo off" line for non-UNIXy shells.
1986 1998-09-09 Paul D. Smith <psmith@gnu.org>
1988 * w32/subproc/sub_proc.c: Add in missing HAVE_MKS_SHELL tests.
1990 1998-09-04 Paul D. Smith <psmith@gnu.org>
1992 * read.c (read_makefile): If we hit the "missing separator" error,
1993 check for the common case of 8 spaces instead of a TAB and give an
1994 extra comment to help people out.
1996 1998-08-29 Paul Eggert <eggert@twinsun.com>
1998 * configure.in (AC_STRUCT_ST_MTIM_NSEC):
1999 Renamed from AC_STRUCT_ST_MTIM.
2001 * acinclude.m4 (AC_STRUCT_ST_MTIM_NSEC): Likewise.
2002 Port to UnixWare 2.1.2 and pedantic Solaris 2.6.
2004 * acconfig.h (ST_MTIM_NSEC):
2005 Renamed from HAVE_ST_MTIM, with a new meaning.
2007 * filedef.h (FILE_TIMESTAMP_FROM_S_AND_NS):
2008 Use new ST_MTIM_NSEC macro.
2010 1998-08-26 Paul D. Smith <psmith@gnu.org>
2012 * remake.c (check_dep): For any intermediate file, not just
2013 secondary ones, try implicit and default rules if no explicit
2014 rules are given. I'm not sure why this was restricted to
2015 secondary rules in the first place.
2017 1998-08-24 Paul D. Smith <psmith@gnu.org>
2019 * make.texinfo (Special Targets): Update documentation for
2020 .INTERMEDIATE: if used with no dependencies, then it does nothing;
2021 old docs said it marked all targets as intermediate, which it
2022 didn't... and which would be silly :).
2024 * implicit.c (pattern_search): If we find a dependency in our
2025 internal tables, make sure it's not marked intermediate before
2026 accepting it as a found_file[].
2028 1998-08-20 Paul D. Smith <psmith@gnu.org>
2030 * ar.c (ar_glob): Use existing alpha_compare() with qsort.
2031 (ar_glob_alphacompare): Remove it.
2033 Modify Paul Eggert's patch so we don't abandon older systems:
2035 * configure.in: Warn the user if neither waitpid() nor wait3() is
2038 * job.c (WAIT_NOHANG): Don't syntax error on ancient hosts.
2039 (child_handler, dead_children): Define these if WAIT_NOHANG is not
2041 (reap_children): Only track the dead_children count if no
2042 WAIT_NOHANG. Otherwise, it's a boolean.
2044 * main.c (main): Add back signal handler if no WAIT_NOHANG is
2045 available; only use default signal handler if it is.
2047 1998-08-20 Paul Eggert <eggert@twinsun.com>
2049 Install a more robust signal handling mechanism for systems which
2052 * job.c (WAIT_NOHANG): Define to a syntax error if our host
2053 is truly ancient; this should never happen.
2054 (child_handler, dead_children): Remove.
2055 (reap_children): Don't try to keep separate track of how many
2056 dead children we have, as this is too bug-prone.
2057 Just ask the OS instead.
2058 (vmsHandleChildTerm): Fix typo in error message; don't mention
2061 * main.c (main): Make sure we're not ignoring SIGCHLD/SIGCLD;
2062 do this early, before we could possibly create a subprocess.
2063 Just use the default behavior; don't have our own handler.
2065 1998-08-18 Eli Zaretskii <eliz@is.elta.co.il>
2067 * read.c (read_makefile) [__MSDOS__, WINDOWS32]: Add code to
2068 recognize library archive members when dealing with drive spec
2069 mess. Discovery and initial fix by George Racz <gracz@mincom.com>.
2071 1998-08-18 Paul D. Smith <psmith@gnu.org>
2073 * configure.in: Check for stdlib.h explicitly (some hosts have it
2074 but don't have STDC_HEADERS).
2075 * make.h: Use HAVE_STDLIB_H. Clean up some #defines.
2076 * config.ami: Re-compute based on new config.h.in contents.
2077 * config.h-vms: Ditto.
2078 * config.h.W32: Ditto.
2079 * configh.dos: Ditto.
2081 * dir.c (find_directory) [WINDOWS32]: Windows stat() fails if
2082 directory names end with `\' so strip it.
2084 1998-08-17 Paul D. Smith <psmith@gnu.org>
2086 * make.texinfo: Added copyright year to the printed copy. Removed
2087 the price from the manual. Change the top-level reference to
2088 running make to be "Invoking make" instead of "make Invocation",
2089 to comply with GNU doc standards.
2091 * make.h (__format__, __printf__): Added support for these in
2092 __attribute__ macro.
2093 (message, error, fatal): Use ... prototype form under __STDC__.
2094 Add __format__ attributes for printf-style functions.
2096 * configure.in (AC_FUNC_VPRINTF): Check for vprintf()/_doprnt().
2098 * misc.c (message, error, fatal): Add preprocessor stuff to enable
2099 creation of variable-argument functions with appropriate
2100 prototypes, that works with ANSI, pre-ANSI, varargs.h, stdarg.h,
2101 v*printf(), _doprnt(), or none of the above. Culled from GNU
2102 fileutils and slightly modified.
2103 (makefile_error, makefile_error): Removed (merged into error() and
2104 fatal(), respectively).
2105 * amiga.c: Use them.
2107 * arscan.c: Use them.
2108 * commands.c: Use them.
2109 * expand.c: Use them.
2111 * function.c: Use them.
2116 * remake.c: Use them.
2117 * remote-cstms.c: Use them.
2119 * variable.c: Use them.
2121 * make.h (struct floc): New structure to store file location
2123 * commands.h (struct commands): Use it.
2124 * variable.c (try_variable_definition): Use it.
2125 * commands.c: Use it.
2126 * default.c: Use it.
2128 * function.c: Use it.
2133 1998-08-16 Paul Eggert <eggert@twinsun.com>
2135 * filedef.h (FILE_TIMESTAMP_PRINT_LEN_BOUND): Add 10, for nanoseconds.
2137 1998-08-16 Paul Eggert <eggert@twinsun.com>
2139 * filedef.h (FLOOR_LOG2_SECONDS_PER_YEAR): New macro.
2140 (FILE_TIMESTAMP_PRINT_LEN_BOUND): Tighten bound, and try to
2141 make it easier to understand.
2143 1998-08-14 Paul D. Smith <psmith@gnu.org>
2145 * read.c (read_makefile): We've already unquoted any colon chars
2146 by the time we're done reading the targets, so arrange for
2147 parse_file_seq() on the target list to not do so again.
2149 1998-08-05 Paul D. Smith <psmith@gnu.org>
2151 * configure.in: Added glob/configure.in data. We'll have the glob
2152 code include the regular make config.h, rather than creating its
2155 * getloadavg.c (main): Change return type to int.
2157 1998-08-01 Paul Eggert <eggert@twinsun.com>
2159 * job.c (reap_children): Ignore unknown children.
2161 1998-07-31 Paul D. Smith <psmith@gnu.org>
2163 * make.h, filedef.h, dep.h, rule.h, commands.h, remake.c:
2164 Add prototypes for functions. Some prototypes needed to be moved
2165 in order to get #include order reasonable.
2167 1998-07-30 Paul D. Smith <psmith@gnu.org>
2169 * make.h: Added MIN/MAX.
2170 * filedef.h: Use them; remove FILE_TIMESTAMP_MIN.
2172 1998-07-30 Paul Eggert <eggert@twinsun.com>
2174 Add support for sub-second timestamp resolution on hosts that
2175 support it (just Solaris 2.6, so far).
2177 * acconfig.h (HAVE_ST_MTIM, uintmax_t): New undefs.
2178 * acinclude.m4 (jm_AC_HEADER_INTTYPES_H, AC_STRUCT_ST_MTIM,
2179 jm_AC_TYPE_UINTMAX_T): New defuns.
2180 * commands.c (delete_target): Convert file timestamp to
2181 seconds before comparing to archive timestamp. Extract mod
2182 time from struct stat using FILE_TIMESTAMP_STAT_MODTIME.
2183 * configure.in (C_STRUCT_ST_MTIM, jm_AC_TYPE_UINTMAX_T): Add.
2184 (AC_CHECK_LIB, AC_CHECK_FUNCS): Add clock_gettime.
2185 * file.c (snap_deps): Use FILE_TIMESTAMP, not time_t.
2186 (file_timestamp_now, file_timestamp_sprintf): New functions.
2187 (print_file): Print file timestamps as FILE_TIMESTAMP, not
2189 * filedef.h: Include <inttypes.h> if available and if HAVE_ST_MTIM.
2190 (FILE_TIMESTAMP, FILE_TIMESTAMP_STAT_MODTIME, FILE_TIMESTAMP_MIN,
2191 FILE_TIMESTAMPS_PER_S, FILE_TIMESTAMP_FROM_S_AND_NS,
2192 FILE_TIMESTAMP_DIV, FILE_TIMESTAMP_MOD, FILE_TIMESTAMP_S,
2193 FILE_TIMESTAMP_NS, FILE_TIMESTAMP_PRINT_LEN_BOUND): New macros.
2194 (file_timestamp_now, file_timestamp_sprintf): New decls.
2195 (struct file.last_mtime, f_mtime, file_mtime_1, NEW_MTIME):
2196 time_t -> FILE_TIMESTAMP.
2197 * implicit.c (pattern_search): Likewise.
2198 * vpath.c (vpath_search, selective_vpath_search): Likewise.
2199 * main.c (main): Likewise.
2200 * remake.c (check_dep, name_mtime, library_search, f_mtime): Likewise.
2201 (f_mtime): Use file_timestamp_now instead of `time'.
2202 Print file timestamp with file_timestamp_sprintf.
2203 * vpath.c (selective_vpath_search): Extract file time stamp from
2204 struct stat with FILE_TIMESTAMP_STAT_MODTIME.
2206 1998-07-28 Paul D. Smith <psmith@gnu.org>
2208 * Version 3.77 released.
2210 * dosbuild.bat: Change to DOS CRLF line terminators.
2212 * make-stds.texi: Update from latest version.
2214 * make.texinfo (Options Summary): Clarify that the -r option
2215 affects only rules, not builtin variables.
2217 1998-07-27 Paul D. Smith <psmith@gnu.org>
2219 * make.h: Make __attribute__ resolve to empty for non-GCC _and_
2222 * misc.c (log_access): Print UID/GID's as unsigned long int for
2223 maximum portability.
2225 * job.c (reap_children): Print PIDs as long int for maximum
2228 1998-07-24 Eli Zaretskii <eliz@is.elta.co.il>
2230 * Makefile.DOS (*_INSTALL, *_UNINSTALL): Replace `true' with `:'.
2232 1998-07-25 Paul D. Smith <psmith@gnu.org>
2234 * Version 3.76.94 released.
2236 1998-07-23 Paul D. Smith <psmith@gnu.org>
2238 * config.h.W32.template: Make sure all the #defines of macros here
2239 have a value (e.g., use ``#define HAVE_STRING_H 1'' instead of
2240 just ``#define HAVE_STRING_H''. Keeps the preprocessor happy in
2243 * make.h: Remove __attribute__((format...)) stuff; using it with
2244 un-prototyped functions causes older GCC's to fail.
2246 * Version 3.76.93 released.
2248 1998-07-22 Paul D. Smith <psmith@gnu.org>
2250 * file.c (print_file_data_base): Fix average calculation.
2252 1998-07-20 Paul D. Smith <psmith@gnu.org>
2254 * main.c (die): Postpone the chdir() until after
2255 remove_intermediates() so that intermediate targets with relative
2256 pathnames are removed properly.
2258 1998-07-17 Paul D. Smith <psmith@gnu.org>
2260 * filedef.h (struct file): New flag: did we print an error or not?
2262 * remake.c (no_rule_error): New function to print error messages,
2263 extraced from remake_file().
2265 * remake.c (remake_file): Invoke the new error print function.
2266 (update_file_1): Invoke the error print function if we see that we
2267 already tried this target and it failed, but that an error wasn't
2268 printed for it. This can happen if a file is included with
2269 -include or sinclude and couldn't be built, then later is also
2270 the dependency of another target. Without this change, make just
2273 1998-07-16 Paul D. Smith <psmith@gnu.org>
2275 * make.texinfo: Removed "beta" version designator.
2276 Updated ISBN for the next printing.
2278 1998-07-13 Paul Eggert <eggert@twinsun.com>
2280 * acinclude.m4: New AC_LFS macro to determine if special compiler
2281 flags are needed to allow access to large files (e.g., Solaris 2.6).
2282 * configure.in: Invoke it.
2284 1998-07-08 Eli Zaretskii <eliz@is.elta.co.il>
2286 * Makefile.DOS: track changes in Makefile.in.
2288 1998-07-07 Paul D. Smith <psmith@gnu.org>
2290 * remote-cstms.c (start_remote_job): Move gethostbyaddr() to the
2291 top so host is initialized early enough.
2293 * acinclude.m4: New file. Need some special autoconf macros to
2294 check for network libraries (-lsocket, -lnsl, etc.) when
2295 configuring Customs.
2297 * configure.in (make_try_customs): Invoke new network libs macro.
2299 1998-07-06 Paul D. Smith <psmith@gnu.org>
2301 * Version 3.76.92 released.
2303 * README.customs: Added to the distribution.
2305 * configure.in (make_try_customs): Rewrite to require an installed
2306 Customs library, rather than looking at the build directory.
2308 * Makefile.am (man_MANS): Install make.1.
2309 * make.1: Renamed from make.man.
2311 * make.texinfo (Bugs): New mailing list address for GNU make bug
2314 1998-07-02 Paul D. Smith <psmith@gnu.org>
2316 * Version 3.76.91 released.
2318 * default.c: Added default rule for new-style RCS master file
2319 storage; ``% :: RCS/%''.
2320 Added default rules for DOS-style C++ files with suffix ".cpp".
2321 They use the new LINK.cpp and COMPILE.cpp macros, which are set by
2322 default to be equal to LINK.cc and COMPILE.cc.
2324 1998-06-19 Eli Zaretskii <eliz@is.elta.co.il>
2326 * job.c (start_job_command): Reset execute_by_shell after an empty
2327 command was skipped.
2329 1998-06-09 Paul D. Smith <psmith@gnu.org>
2331 * main.c (main): Keep track of the temporary filename created when
2332 reading a makefile from stdin (-f-) and attempt to remove it
2333 as soon as we know we're not going to re-exec. If we are, add it
2334 to the exec'd make's cmd line with "-o" so the exec'd make doesn't
2335 try to rebuild it. We still have a hole: if make re-execs then
2336 the temporary file will never be removed. To fix this we'd need
2337 a brand new option that meant "really delete this".
2338 * AUTHORS, getopt.c, getopt1.c, getopt.h, main.c (print_version):
2339 Updated mailing addresses.
2341 1998-06-08 Paul D. Smith <psmith@gnu.org>
2343 * main.c (main): Andreas Luik <luik@isa.de> points out that the
2344 check for makefile :: rules with commands but no dependencies
2345 causing a loop terminates incorrectly.
2347 * maintMakefile: Make a template for README.DOS to update version
2350 1998-05-30 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2352 * remake.c (update_file_1): Don't free the memory for the
2353 dependency structure when dropping a circular dependency.
2355 1998-05-30 Eli Zaretskii <eliz@is.elta.co.il>
2357 * dir.c (file_exists_p, file_impossible_p, file_impossible)
2358 [__MSDOS__, WINDOWS32]: Retain trailing slash in "d:/", and make
2359 dirname of "d:foo" be "d:".
2361 1998-05-26 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2363 * read.c (read_makefile): Avoid running past EOS when scanning
2364 file name after `include'.
2366 1998-05-26 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2368 * make.texinfo (Flavors): Correct description of conditional
2369 assignment, which is not equivalent to ifndef.
2370 (Setting): Likewise.
2372 1998-05-24 Paul D. Smith <psmith@gnu.org>
2374 * arscan.c (ar_name_equal): strncmp() might be implemented as a
2375 macro, so don't put preprocessor conditions inside the arguments
2378 1998-05-23 Eli Zaretskii <eliz@is.elta.co.il>
2380 * read.c (read_makefile) [__MSDOS__, WINDOWS32]: Skip colons in
2381 drive specs when parsing targets, target-specific variables and
2382 static pattern rules. A colon can only be part of drive spec if
2383 it is after the first letter in a token.
2385 1998-05-22 Eli Zaretskii <eliz@is.elta.co.il>
2387 * remake.c (f_mtime) [__MSDOS__]: Allow up to 3 sec of skew before
2388 yelling bloody murder.
2390 * dosbuild.bat: Use -DINCLUDEDIR= and -DLIBDIR= where appropriate.
2392 * read.c (parse_file_seq): Combine the special file-handling code
2393 for WINDOWS32 and __MSDOS__ into a single snippet.
2394 (get_next_mword) [__MSDOS__, WINDOWS32]: Allow a word to include a
2395 colon as part of a drive spec.
2397 * job.c (batch_mode_shell) [__MSDOS__]: Declare.
2399 1998-05-20 Paul D. Smith <psmith@gnu.org>
2401 * Version 3.76.90 released.
2403 1998-05-19 Paul D. Smith <psmith@gnu.org>
2405 * make.texinfo (Make Errors): Added a new appendix describing
2406 common errors make might generate and how to resolve them (or at
2407 least more information on what they mean).
2409 * maintMakefile (NMAKEFILES): Use the new automake 1.3 feature
2410 to create a dependency file to construct Makefile.DOS, SMakefile,
2412 (.dep_segment): Generate the dependency fragment file.
2414 1998-05-14 Paul D. Smith <psmith@gnu.org>
2416 * make.man: Minor changes.
2418 1998-05-13 Paul D. Smith <psmith@gnu.org>
2420 * function.c (pattern_matches,expand_function): Change variables
2421 and types named "word" to something else, to avoid compilation
2422 problems on Cray C90 Unicos.
2423 * variable.h: Modify the function prototype.
2425 1998-05-11 Rob Tulloh <rob_tulloh@tivoli.com>
2427 * job.c (construct_command_argv_internal) [WINDOWS32]: Turn off
2428 echo when using a batch file, and make sure the command ends in a
2431 1998-05-03 Paul D. Smith <psmith@gnu.org>
2433 * configure.in (make_try_customs): Add some customs flags if the
2434 user configures custom support.
2436 * job.c, remote-cstms.c: Merge in changes for custom library.
2438 * remote-stub.c: Add option to stub start_remote_job_p().
2440 1998-05-01 Paul D. Smith <psmith@gnu.org>
2442 * remake.c (f_mtime): Install VPATH+ handling for archives; use
2443 the hname field instead of the name field, and rehash when
2446 1998-04-30 Paul D. Smith <psmith@gnu.org>
2448 * rule.c (print_rule_data_base): Print out any pattern-specific
2449 variable values into the rules database.
2451 * variable.c (print_variable_set): Make this variable extern, to
2452 be called by print_rule_data_base() for pattern-specific variables.
2454 * make.texinfo (Pattern-specific): Document pattern-specific
2457 1998-04-29 Paul D. Smith <psmith@gnu.org>
2459 * expand.c (variable_expand_for_file): Make static; its only
2460 called internally. Look up this target in the list of
2461 pattern-specific variables and insert the variable set into the
2462 queue to be searched.
2464 * filedef.h (struct file): Add a new field to hold the
2465 previously-found pattern-specific variable reference. Add a new
2466 flag to remember whether we already searched for this file.
2468 * rule.h (struct pattern_var): New structure for storing
2469 pattern-specific variable values. Define new function prototypes.
2471 * rule.c: New variables pattern_vars and last_pattern_var for
2472 storage and handling of pattern-specific variable values.
2473 (create_pattern_var): Create a new pattern-specific variable value
2475 (lookup_pattern_var): Try to match a target to one of the
2476 pattern-specific variable values.
2478 1998-04-22 Paul D. Smith <psmith@gnu.org>
2480 * make.texinfo (Target-specific): Document target-specific
2483 1998-04-21 Paul D. Smith <psmith@gnu.org>
2485 * variable.c (define_variable_in_set): Made globally visible.
2486 (lookup_variable_in_set): New function: like lookup_variable but
2487 look only in a specific variable set.
2488 (target_environment): Use lookup_variable_in_set() to get the
2489 correct export rules for a target-specific variable.
2490 (create_new_variable_set): Create a new variable set, and just
2491 return it without installing it anywhere.
2492 (push_new_variable_scope): Reimplement in terms of
2493 create_new_variable_set.
2495 * read.c (record_target_var): Like record_files, but instead of
2496 files create a target-specific variable value for each of the
2497 listed targets. Invoked from read_makefile() when the target line
2498 turns out to be a target-specific variable assignment.
2500 1998-04-19 Paul D. Smith <psmith@gnu.org>
2502 * read.c (read_makefile): Rewrite the entire target parsing
2503 section to implement target-specific variables. In particular, we
2504 cannot expand the entire line as soon as it's read in, since we
2505 may want to evaluate parts of it with different variable contexts
2506 active. Instead, start expanding from the beginning until we find
2507 the `:' (or `::'), then determine what kind of line this is and
2508 continue appropriately.
2510 * read.c (get_next_mword): New function to parse a makefile line
2511 by "words", considering an entire variable or function as one
2512 word. Return the type read in, along with its starting position
2514 (enum make_word_type): The types of words that are recognized by
2517 * variable.h (struct variable): Add a flag to specify a per-target
2520 * expand.c: Make variable_buffer global. We need this during the
2521 new parsing of the makefile.
2522 (variable_expand_string): New function. Like variable_expand(),
2523 but start at a specific point in the buffer, not the beginning.
2524 (variable_expand): Rewrite to simply call variable_expand_string().
2526 1998-04-13 Paul D. Smith <psmith@gnu.org>
2528 * remake.c (update_goal_chain): Allow the rebuilding makefiles
2529 step to use parallel jobs. Not sure why this was disabled:
2530 hopefully we won't find out :-/.
2532 1998-04-11 Paul D. Smith <psmith@gnu.org>
2534 * main.c (main): Set the CURDIR makefile variable.
2535 * make.texinfo (Recursion): Document it.
2537 1998-03-17 Paul D. Smith <psmith@gnu.org>
2539 * misc.c (makefile_fatal): If FILE is nil, invoke plain fatal().
2540 * variable.c (try_variable_definition): Use new feature.
2542 1998-03-10 Paul D. Smith <psmith@gnu.org>
2544 * main.c (main): Don't pass included, rebuilt makefiles to
2545 re-exec'd makes with -o. Reopens a possible loop, but it caused
2548 1998-03-02 Paul D. Smith <psmith@gnu.org>
2550 * variable.c (try_variable_definition): Implement ?=.
2551 * make.texinfo (Setting): Document it.
2553 1998-02-28 Eli Zaretskii <eliz@is.elta.co.il>
2555 * job.c (start_job_command): Reset execute_by_shell after an empty
2556 command, like ":", has been seen.
2558 Tue Oct 07 15:00:00 1997 Phil Brooks <phillip_brooks@hp.com>
2560 * make.h [WINDOWS32]: make case sensitivity configurable
2561 * dir.c [WINDOWS32]: make case sensitivity configurable
2562 * README.W32: Document case sensitivity
2563 * config.ami: Share case warping code with Windows
2565 Mon Oct 6 18:48:45 CDT 1997 Rob Tulloh <rob_tulloh@dev.tivoli.com>
2567 * w32/subproc/sub_proc.c: Added support for MKS toolkit shell
2568 (turn on HAVE_MKS_SHELL).
2569 * read.c [WINDOWS32]: Fixed a problem with multiple target rules
2570 reported by Gilbert Catipon (gcatipon@tibco.com). If multiple
2571 path tokens in a rule did not have drive letters, make would
2572 incorrectly concatenate the 2 tokens together.
2573 * main.c/variable.c [WINDOWS32]: changed SHELL detection code to
2574 follow what MSDOS did. In addition to watching for SHELL variable
2575 updates, make's main will attempt to default the value of SHELL
2576 before and after makefiles are parsed.
2577 * job.c/job.h [WINDOWS32]: The latest changes made to enable use
2578 of the GNUWIN32 shell from make could cause make to fail due to a
2579 concurrency condition between parent and child processes. Make
2580 now creates a batch file per job instead of trying to reuse the
2581 same singleton batch file.
2582 * job.c/job.h/function.c/config.h.W32 [WINDOWS32]: Renamed macro
2583 from HAVE_CYGNUS_GNUWIN32_TOOLS to BATCH_MODE_ONLY_SHELL. Reworked
2584 logic to reduce complexity. WINDOWS32 now uses the unixy_shell
2585 variable to detect Bourne-shell compatible environments. There is
2586 also a batch_mode_shell variable that determines whether not
2587 command lines should be executed via script files. A WINDOWS32
2588 system with no sh.exe installed would have unixy_shell set to
2589 FALSE and batch_mode_shell set to TRUE. If you have a unixy shell
2590 that does not behave well when invoking things via 'sh -c xxx',
2591 you may want to turn on BATCH_MODE_ONLY_SHELL and see if things
2593 * NMakefile: Added /D DEBUG to debug build flags so that unhandled
2594 exceptions could be debugged.
2596 Mon Oct 6 00:04:25 1997 Rob Tulloh <rob_tulloh@dev.tivoli.com>
2598 * main.c [WINDOWS32]: The function define_variable() does not
2599 handle NULL. Test before calling it to set Path.
2600 * main.c [WINDOWS32]: Search Path again after makefiles have been
2601 parsed to detect sh.exe.
2602 * job.c [WINDOWS32]: Added support for Cygnus GNU WIN32 tools.
2603 To use, turn on HAVE_CYGNUS_GNUWIN32_TOOLS in config.h.W32.
2604 * config.h.W32: Added HAVE_CYGNUS_GNUWIN32_TOOLS macro.
2606 Sun Oct 5 22:43:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
2608 * glob/glob.c (glob_in_dir) [VMS]: Globbing shouldn't be
2610 * job.c (child_execute_job) [VMS]: Use a VMS .com file if the
2611 command contains a newline (e.g. from a define/enddef block).
2612 * vmsify.c (vmsify): Return relative pathnames wherever possible.
2613 * vmsify.c (vmsify): An input string like "../.." returns "[--]".
2615 Wed Oct 1 15:45:09 1997 Rob Tulloh <rob_tulloh@tivoli.com>
2617 * NMakefile: Changed nmake to $(MAKE).
2618 * subproc.bat: Take the make command name from the command
2619 line. If no command name was given, default to nmake.
2620 * job.c [MSDOS, WINDOWS32]: Fix memory stomp: temporary file names
2621 are now always created in heap memory.
2622 * w32/subproc/sub_proc.c: New implementation of make_command_line()
2623 which is more compatible with different Bourne shell implementations.
2624 Deleted the now obsolete fix_command_line() function.
2625 * main.c [WINDOWS32]: Any arbitrary spelling of Path can be
2626 detected. Make will ensure that the special spelling `Path' is
2627 inserted into the environment when the path variable is propagated
2628 within itself and to make's children.
2629 * main.c [WINDOWS32]: Detection of sh.exe was occurring too
2630 soon. The 2nd check for the existence of sh.exe must come after
2631 the call to read_all_makefiles().
2633 Fri Sep 26 01:14:18 1997 <zinser@axp602.gsi.de>
2635 * makefile.com [VMS]: Fixed definition of sys.
2636 * readme.vms: Comments on what's changed lately.
2638 Fri Sep 26 01:14:18 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
2640 * read.c (read_all_makefiles): Allow make to find files named
2641 "MAKEFILE" with no extension on VMS.
2642 * file.c (lookup_file): Lowercase filenames on VMS.
2644 1997-09-29 Paul D. Smith <psmith@baynetworks.com>
2646 * read.c (read_makefile): Reworked target detection again; the old
2647 version had an obscure quirk.
2649 Fri Sep 19 09:20:49 1997 Paul D. Smith <psmith@baynetworks.com>
2651 * Version 3.76.1 released.
2653 * Makefile.am: Add loadavg files to clean rules.
2655 * configure.in (AC_OUTPUT): Remove stamp-config; no longer needed.
2656 * Makefile.ami (distclean): Ditto.
2657 * SMakefile (distclean): Ditto.
2659 * main.c (main): Arg count should be int, not char! Major braino.
2661 Tue Sep 16 10:18:22 1997 Paul D. Smith <psmith@baynetworks.com>
2663 * Version 3.76 released.
2665 Tue Sep 2 10:07:39 1997 Paul D. Smith <psmith@baynetworks.com>
2667 * function.c (expand_function): When processing $(shell...)
2668 translate a CRLF (\r\n) sequence as well as a newline (\n) to a
2669 space. Also remove an ending \r\n sequence.
2670 * make.texinfo (Shell Function): Document it.
2672 Fri Aug 29 12:59:06 1997 Rob Tulloh <rob_tulloh@tivoli.com>
2674 * w32/pathstuff.c (convert_Path_to_windows32): Fix problem where
2675 paths which contain single character entries like `.' are not
2678 * README.W32: Document path handling issues on Windows systems.
2680 Fri Aug 29 02:01:27 1997 Paul D. Smith <psmith@baynetworks.com>
2684 Thu Aug 28 19:39:06 1997 Rob Tulloh <rob_tulloh@tivoli.com>
2686 * job.c (exec_command) [WINDOWS32]: If exec_command() is invoked
2687 from main() to re-exec make, the call to execvp() would
2688 incorrectly return control to parent shell before the exec'ed
2689 command could run to completion. I believe this is a feature of
2690 the way that execvp() is implemented on top of WINDOWS32 APIs. To
2691 alleviate the problem, use the supplied process launch function in
2692 the sub_proc library and suspend the parent process until the
2693 child process has run. When the child exits, exit the parent make
2694 with the exit code of the child make.
2696 Thu Aug 28 17:04:47 1997 Paul D. Smith <psmith@baynetworks.com>
2698 * Makefile.DOS.template (distdir): Fix a line that got wrapped in
2701 * Makefile.am (loadavg): Give the necessary cmdline options when
2704 * configure.in: Check for pstat_getdynamic for getloadvg on HP.
2706 * job.c (start_job_command) [VMS, _AMIGA]: Don't perform empty
2707 command optimization on these systems; it doesn't make sense.
2709 Wed Aug 27 17:09:32 1997 Paul D. Smith <psmith@baynetworks.com>
2713 Tue Aug 26 11:59:15 1997 Paul D. Smith <psmith@baynetworks.com>
2715 * main.c (print_version): Add '97 to copyright years.
2717 * read.c (do_define): Check the length of the array before looking
2718 at a particular offset.
2720 * job.c (construct_command_argv_internal): Examine the last byte
2721 of the previous arg, not the byte after that.
2723 Sat Aug 23 1997 Eli Zaretskii <eliz@is.elta.co.il>
2725 * Makefile.DOS.template: New file (converted to Makefile.DOS in
2728 * configure.bat: Rewrite to use Makefile.DOS instead of editing
2729 Makefile.in. Add support for building from outside of the source
2730 directory. Fail if the environment block is too small.
2732 * configh.dos: Use <sys/config.h>.
2734 * README.DOS: Update instructions.
2736 Fri Aug 22 1997 Eli Zaretskii <eliz@is.elta.co.il>
2738 * job.c (start_job_command) [__MSDOS__]: Don't test for "/bin/sh"
2739 literally, use value of unixy_shell instead.
2741 * filedef.h (NEW_MTIME): Use 1 less than maximum possible value if
2744 Sat Aug 16 00:56:15 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
2746 * vmsify.c (vmsify, case 11): After translating `..' elements, set
2747 nstate to N_OPEN if there are still more elements to process.
2748 (vmsify, case 2): After translating `foo/bar' up to the slash,
2749 set nstate to N_OPEN, not N_DOT.
2751 Fri Aug 8 15:18:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
2753 * dir.c (vmsstat_dir): Leave name unmodified on exit.
2754 * make.h (PATH_SEPARATOR_CHAR): Set to comma for VMS.
2755 * vpath.c: Fix comments to refer to path separator, not colon.
2756 (selective_vpath_search): Avoid Unixy slash handling for VMS.
2758 Thu Aug 7 22:24:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
2760 * ar.c [VMS]: Don't declare ar_member_touch.
2761 Delete VMS version of ar_member_date.
2762 Enable non-VMS versions of ar_member_date and ar_member_date_1 for
2764 * arscan.c (VMS_get_member_info): New function.
2765 (ar_scan): Provide version for VMS systems.
2766 (ar_name_equal): Simply compare name and mem on VMS systems.
2767 Don't define ar_member_pos or ar_member_touch on VMS systems.
2769 * config.h-vms (pid_t, uid_t): Don't define.
2771 * remake.c: Delete declaration of vms_stat.
2772 (name_mtime): Don't call vms_stat.
2773 (f_mtime) [VMS]: Funky time value manipulation no longer necessary.
2775 * file.c (print_file): [VMS] Use ctime, not cvt_time.
2777 * make.h [VMS]: Don't define POSIX.
2779 * makefile.com (filelist): Include ar and arscan.
2780 Also include them in the link commands.
2781 Don't define NO_ARCHIVES in cc command.
2783 * makefile.vms (ARCHIVES, ARCHIVES_SRC): Uncomment.
2784 (defines): Delete NO_ARCHIVES from list.
2786 * remake.c (f_mtime): Only check to see if intermediate file is
2787 out of date if it also exists (i.e., mtime != (time_t) -1).
2789 * vmsdir.h (u_long, u_short): Skip typedefs if using DEC C.
2791 Fri Jun 20 23:02:07 1997 Rob Tulloh <rob_tulloh@tivoli.com>
2793 * w32/subproc/sub_proc.c: Get W32 sub_proc to handle shebang
2794 (#!/bin/sh) in script files correctly.
2795 Fixed a couple of memory leaks.
2796 Fixed search order in find_file() (w32/subproc/sub_proc.c) so that
2797 files with extensions are preferred over files without extensions.
2798 Added search for files with .cmd extension too.
2799 * w32/subproc/misc.c (arr2envblk): Fixed memory leak.
2801 Mon Aug 18 09:41:08 1997 Paul D. Smith <psmith@baynetworks.com>
2805 Fri Aug 15 13:50:54 1997 Paul D. Smith <psmith@baynetworks.com>
2807 * read.c (do_define): Remember to count the newline after the endef.
2809 Thu Aug 14 23:14:37 1997 Paul D. Smith <psmith@baynetworks.com>
2811 * many: Rewrote builds to use Automake 1.2.
2813 * AUTHORS: New file.
2814 * maintMakefile: Contains maintainer-only make snippets.
2815 * GNUmakefile: This now only runs the initial auto* tools.
2816 * COPYING,texinfo.tex,mkinstalldirs,install-sh: Removed (obtained
2817 automatically by automake).
2818 * compatMakefile: Removed (not needed anymore).
2819 * README,build.sh.in: Removed (built from templates).
2820 * config.h.in,Makefile.in: Removed (built by tools).
2822 Wed Aug 13 02:22:08 1997 Paul D. Smith <psmith@baynetworks.com>
2824 * make.texinfo: Updates for DOS/Windows information (Eli Zaretskii)
2825 * README,README.DOS: Ditto.
2827 * remake.c (update_file_1,f_mtime): Fix GPATH handling.
2828 * vpath.c (gpath_search): Ditto.
2830 * file.c (rename_file): New function: rehash, but also rename to
2832 * filedef.h: Declare it.
2834 * variable.c (merge_variable_set_lists): Remove free() of variable
2835 set; since various files can share variable sets we don't want to
2838 Tue Aug 12 10:51:54 1997 Paul D. Smith <psmith@baynetworks.com>
2840 * configure.in: Require autoconf 2.12
2842 * make.texinfo: Replace all "cd subdir; $(MAKE)" examples with a
2843 more stylistically correct "cd subdir && $(MAKE)".
2845 * main.c: Global variable `clock_skew_detected' defined.
2846 (main): Print final warning if it's set.
2847 * make.h: Declare it.
2848 * remake.c (f_mtime): Test and set it.
2850 * job.c (start_job_command): Add special optimizations for
2851 "do-nothing" rules, containing just the shell no-op ":". This is
2852 useful for timestamp files and can make a real difference if you
2853 have a lot of them (requested by Fergus Henderson <fjh@cs.mu.oz.au>).
2855 * configure.in,Makefile.in: Rewrote to use the new autoconf
2856 program_transform_name macro.
2858 * function.c (function_strip): Strip newlines as well as spaces
2861 Fri Jun 6 23:41:04 1997 Rob Tulloh <rob_tulloh@tivoli.com>
2863 * remake.c (f_mtime): Datestamps on FAT-based files are rounded to
2864 even seconds when stored, so if the date check fails on WINDOWS32
2865 systems, see if this "off-by-one" error is the problem.
2867 * General: If your TZ environment variable is not set correctly
2868 then all your timestamps will be off by hours. So, set it!
2870 Mon Apr 7 02:06:22 1997 Paul D. Smith <psmith@baynetworks.com>
2874 * compatMakefile (objs): Define & use the $(GLOB) variable so
2875 that it's removed correctly from build.sh.in when it's built.
2877 * configure.in: On Solaris we can use the kstat_*() functions to
2878 get load averages without needing special permissions. Add a
2879 check for -lkstat to see if we have it.
2881 * getloadavg.c (getloadavg): Use HAVE_LIBKSTAT instead of SUN5 as
2882 the test to enable kstat_open(), etc. processing.
2884 Fri Apr 4 20:21:18 1997 Eli Zaretskii <eliz@is.elta.co.il>
2886 * <lots>: Fixes to work in the DJGPP DOS environment.
2888 Mon Mar 31 02:42:52 1997 Paul D. Smith <psmith@baynetworks.com>
2890 * function.c (expand_function): Added new function $(wordlist).
2892 * make.texinfo (Filename Functions): Document $(wordlist) function.
2894 * vpath.c (build_vpath_lists): Construct the GPATH variable
2895 information in the same manner we used to construct VPATH.
2896 (gpath_search): New function to search GPATH.
2898 * make.h: Declare the new function.
2900 * remake.c (update_file_1): Call it, and keep VPATH if it's found.
2902 * make.texinfo (Search Algorithm): Document GPATH variable.
2904 Sun Mar 30 20:57:16 1997 Paul D. Smith <psmith@baynetworks.com>
2906 * main.c (handle_non_switch_argument): Defined the MAKECMDGOALS
2907 variable to contain the user options passed in on the cmd line.
2909 * make.texinfo (Goals): Document MAKECMDGOALS variable.
2911 * remake.c (f_mtime): Print a warning if we detect a clock skew
2912 error, rather than failing.
2914 * main.c (main): If we rebuild any makefiles and need to re-exec,
2915 add "-o<mkfile>" options for each makefile rebuilt to avoid
2918 Fri Mar 28 15:26:05 1997 Paul D. Smith <psmith@baynetworks.com>
2920 * job.c (construct_command_argv_internal): Track whether the last
2921 arg in the cmd string was empty or not (Roland).
2922 (construct_command_argv_internal): If the shell line is empty,
2923 don't do anything (Roland).
2925 * glob/glob.h,glob/glob.c,glob/fnmatch.c,glob/fnmatch.h: Install
2926 the latest changes from the GLIBC version of glob (Ulrich Drepper).
2928 * getloadavg.c,make-stds.texi: New version (Roland).
2930 * (ALL): Changed WIN32 to W32 or WINDOWS32 (RMS).
2932 Mon Mar 24 15:33:34 1997 Rob Tulloh <rob_tulloh@tivoli.com>
2934 * README.W32: Describe preliminary FAT support.
2936 * build_w32.bat: Use a variable for the final exe name.
2938 * dir.c (find_directory): W32: Find the filesystem type.
2939 (dir_contents_file_exists_p): W32: for FAT filesystems, always
2940 rehash since FAT doesn't change directory mtime on change.
2942 * main.c (handle_runtime_exceptions): W32: Add an
2943 UnhandledExceptionFilter so that when make bombs due to ^C or a
2944 bug, it won't cause a GUI requestor to pop up unless debug is
2948 Mon Mar 24 00:57:34 1997 Paul D. Smith <psmith@baynetworks.com>
2950 * configure.in, config.h.in, config.ami, config.h-vms, config.h.w32:
2951 Check for memmove() function.
2953 * make.h (bcopy): If memmove() available, define bcopy() to use it.
2954 Otherwise just use bcopy(). Don't use memcpy(); it's not guaranteed
2955 to handle overlapping moves.
2957 * read.c (read_makefile): Fix some uninitialized memory reads
2958 (reported by Purify).
2960 * job.c (construct_command_argv_internal): Use bcopy() not
2961 strcpy(); strcpy() isn't guaranteed to handle overlapping moves.
2963 * Makefile.in: Change install-info option ``--infodir'' to
2964 ``--info-dir'' for use with new texinfo.
2966 * function.c (expand_function): $(basename) and $(suffix) should
2967 only search for suffixes as far back as the last directory (e.g.,
2968 only the final filename in the path).
2970 Sun Mar 23 00:13:05 1997 Paul D. Smith <psmith@baynetworks.com>
2972 * make.texinfo: Add @dircategory/@direntry information.
2973 (Top): Remove previous reference to (dir) (from RMS).
2974 (Static Usage): Add "all:" rule to example.
2975 (Automatic Dependencies): fix .d file creation example.
2977 * Install VPATH+ patch:
2979 * filedef.h (struct file): Add in hname field to store the hashed
2980 filename, and a flag to remember if we're using the vpath filename
2981 or not. Renamed a few functions for more clarity.
2983 * file.c (lookup_file,enter_file,file_hash_enter): Store filenames
2984 in the hash table based on their "hash name". We can change this
2985 while keeping the original target in "name".
2986 (rehash_file): Renamed from "rename_file" to be more accurate.
2987 Changes the hash name, but not the target name.
2989 * remake.c (update_file_1): Modify -d output for more detailed
2990 VPATH info. If we don't need to rebuild, use the VPATH name.
2991 (f_mtime): Don't search for vpath if we're ignoring it. Call
2992 renamed function rehash_file. Call name_mtime instead of
2993 file_mtime, to avoid infinite recursion since the file wasn't
2996 * implicit.c (pattern_search): if we find an implicit file in
2997 VPATH, save the original name not the VPATH name.
2999 * make.texinfo (Directory Search): Add a section on the new VPATH
3002 Sun Dec 1 18:36:04 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3004 * dir.c (file_exists_p, file_impossible, file_impossible_p): If
3005 dirname is empty replace it by the name of the root directory.
3006 Note that this doesn't work (yet) for W32, Amiga, or VMS.
3008 Tue Oct 08 13:57:03 1996 Rob Tulloh <tulloh@tivoli.com>
3010 * main.c (main): W32 bug fix for PATH vars.
3012 Tue Sep 17 1996 Paul Eggert <eggert@twinsun.com>
3014 * filedef.h (NEW_MTIME): Don't assume that time_t is a signed
3017 * make.h: (CHAR_BIT, INTEGER_TYPE_SIGNED, INTEGER_TYPE_MAXIMUM,
3018 INTEGER_TYPE_MINIMUM): New macros.
3020 Tue Aug 27 01:06:34 1996 Roland McGrath <roland@baalperazim.frob.com>
3022 * Version 3.75 released.
3024 * main.c (print_version): Print out bug-reporting address.
3026 Mon Aug 26 19:55:47 1996 Roland McGrath <roland@baalperazim.frob.com>
3028 * main.c (print_data_base): Don't declare ctime; headers do it for us
3031 Sun Jul 28 15:37:09 1996 Rob Tulloh (tulloh@tivoli.com)
3033 * w32/pathstuff.c: Turned convert_vpath_to_w32() into a
3034 real function. This was done so that VPATH could contain
3035 white space separated pathnames. Please note that directory
3036 paths (in VPATH/vpath context) containing white space are not
3037 supported (just as they are not under Unix). See README.W32
3040 * w32/include/pathstuff.h: Added prototype for the new
3041 function convert_vpath_to_w32. Deleted macro for same.
3043 * README.W32: Added some notes about why I chose not to try
3044 and support pathnames which contain white space and some
3045 workaround suggestions.
3047 Thu Jul 25 19:53:31 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3049 * GNUmakefile (mkdep-nolib): Use -MM option unconditionally.
3053 * main.c (define_makeflags): Back up P to point at null terminator
3054 when killing final space and dash before setting MFLAGS.
3056 From Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>:
3057 * dir.c [__MSDOS__ && DJGPP > 1]: Include <libc/dosio.h> and defin
3058 `__opendir_flags' initialized to 0.
3059 (dosify) [__MSDOS__ && DJGPP > 1]: Return name unchanged if _USE_LFN.
3060 (find_directory) [__MSDOS__ && DJGPP > 1]: If _USE_LGN, set
3061 __opendir_flags to __OPENDIR_PRESERVE_CASE.
3063 * vmsfunctions.c (vms_stat): `sys$dassgn (DevChan);' added by kkaempf.
3065 * GNUmakefile (w32files): Add NMakefile.
3067 * NMakefile (LDFLAGS_debug): Value fixed by tulloh.
3069 Sat Jul 20 12:32:10 1996 Klaus Kämpf (kkaempf@progis.de)
3071 * remake.c (f_mtime) [VMS]: Add missing `if' conditional for future
3073 * config.h-vms, makefile.vms, readme.vms, vmsify.c: Update address.
3075 Sat Jul 20 05:29:43 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3077 * configure.in: Require autoconf 2.10 or later.
3079 Fri Jul 19 16:57:27 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3083 * GNUmakefile (w32files): New variable.
3084 (distfiles): Add it.
3085 * w32: Updated by Rob Tulloh.
3087 * makefile.vms (LOADLIBES): Fix typo.
3089 Sun Jul 14 12:59:27 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3091 * job.c (construct_command_argv_internal): Fix up #else, #endifs.
3093 * configh.dos: Define HAVE_DIRENT_H instead of DIRENT.
3095 * remake.c (f_mtime): Don't compare MTIME to NOW if MTIME == -1.
3099 * main.c (main): Exit with status 2 when update_goal_chain returns 2.
3101 Sat Jun 22 14:56:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3103 * configure.in: Don't check for _sys_siglist.
3104 * make.h [HAVE__SYS_SIGLIST]: Don't test this; just punt if there is
3105 no strsignal or sys_siglist.
3107 * read.c (conditional_line): Strip ws in `ifeq (a , b)' so it is the
3108 same as `ifeq (a, b)'.
3110 * job.c (reap_children): Don't call die if handling_fatal_signal.
3112 * file.c (file_hash_enter): Allow renaming :: to : when latter is
3113 non-target, or : to :: when former is non-target.
3115 * job.c (start_job_command): Call block_sigs.
3116 (block_sigs): New function, broken out of start_job_command.
3117 (reap_children): Block fatal signals around removing dead child from
3118 chain and adjusting job_slots_used.
3119 * job.h: Declare block_sigs.
3121 * remote-stub.c (remote_setup, remote_cleanup): New (empty) functions.
3122 * main.c (main): Call remote_setup.
3123 (die): Call remote_cleanup.
3125 * job.c (reap_children): Quiescent value of shell_function_pid is
3128 * main.c (print_version): Add 96 to copyright years.
3130 Sat Jun 15 20:30:01 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3132 * read.c (find_char_unquote): Avoid calling strlen on every call
3133 just to throw away the value most of the time.
3135 Sun Jun 2 12:24:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3137 * main.c (decode_env_switches): Prepend '-' to ARGV[1] if it contains
3138 no '=', regardless of ARGC.
3139 (define_makeflags): Elide leading '-' from MAKEFLAGS value if first
3140 word is short option, regardless of WORDS.
3142 Wed May 22 17:24:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3144 * makefile.vms: Set LOADLIBES.
3145 * makefile.com (link_using_library): Fix typo.
3147 Wed May 15 17:37:26 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3149 * dir.c (print_dir_data_base): Use %ld dev and ino and cast them to
3152 Wed May 15 10:14:14 CDT 1996 Rob Tulloh <tulloh@tivoli.com>
3154 * dir.c: W32 does not support inode. For now, fully qualified
3155 pathname along with st_mtime will be keys for files.
3156 Fixed problem where vpath can be confused when files
3157 are added to a directory after the directory has already been
3158 read in. The code now attempts to reread the directory if it
3159 discovers that the datestamp on the directory has changed since
3160 it was cached by make. This problem only seems to occur on W32
3161 right now so it is lumped under port #ifdef WINDOWS32.
3163 * function.c: W32: call subproc library (CreateProcess()) instead of
3166 * job.c: W32: Added the code to do fork/exec/waitpid style processing
3167 on W32 systems via calls to subproc library.
3169 * main.c: W32: Several things added here. First, there is code
3170 for dealing with PATH and SHELL defaults. Make tries to figure
3171 out if the user has %PATH% set in the environment and sets it to
3172 %Path% if it is not set already. Make also looks to see if sh.exe
3173 is anywhere to be found. Code path through job.c will change
3174 based on existence of a working Bourne shell. The checking for
3175 default shell is done twice: once before makefiles are read in
3176 and again after. Fall back to MSDOS style execution mode if no sh.exe
3177 is found. Also added some debug support that allows user to pause make
3178 with -D switch and attach a debugger. This is especially useful for
3179 debugging recursive calls to make where problems appear only in the
3182 * make.h: W32: A few macros and header files for W32 support.
3184 * misc.c: W32: Added a function end_of_token_w32() to assist
3185 in parsing code in read.c.
3187 * read.c: W32: Fixes similar to MSDOS which allow colon to
3188 appear in filenames. Use of colon in filenames would otherwise
3191 * remake.c: W32: Added include of io.h to eliminate compiler
3192 warnings. Added some code to default LIBDIR if it is not set
3195 * variable.c: W32: Added support for detecting Path/PATH
3196 and converting them to semicolon separated lists for make's
3197 internal use. New function sync_Path_environment()
3198 which is called in job.c and function.c before creating a new
3199 process. Caller must set Path in environment since we don't
3200 have fork() to do this for us.
3202 * vpath.c: W32: Added detection for filenames containing
3203 forward or backward slashes.
3205 * NMakefile: W32: Visual C compatible makefile for use with nmake.
3206 Use this to build GNU make the first time on Windows NT or Windows 95.
3208 * README.W32: W32: Contains some helpful notes.
3210 * build_w32.bat: W32: If you don't like nmake, use this the first
3211 time you build GNU make on Windows NT or Windows 95.
3213 * config.h.W32: W32 version of config.h
3215 * subproc.bat: W32: A bat file used to build the
3216 subproc library from the top-level NMakefile. Needed because
3217 WIndows 95 (nmake) doesn't allow you to cd in a make rule.
3219 * w32/include/dirent.h
3220 * w32/compat/dirent.c: W32: opendir, readdir, closedir, etc.
3222 * w32/include/pathstuff.h: W32: used by files needed functions
3223 defined in pathstuff.c (prototypes).
3225 * w32/include/sub_proc.h: W32: prototypes for subproc.lib functions.
3227 * w32/include/w32err.h: W32: prototypes for w32err.c.
3229 * w32/pathstuff.c: W32: File and Path/Path conversion functions.
3231 * w32/subproc/build.bat: W32: build script for subproc library
3232 if you don't wish to use nmake.
3234 * w32/subproc/NMakefile: W32: Visual C compatible makefile for use
3235 with nmake. Used to build subproc library.
3237 * w32/subproc/misc.c: W32: subproc library support code
3238 * w32/subproc/proc.h: W32: subproc library support code
3239 * w32/subproc/sub_proc.c: W32: subproc library source code
3240 * w32/subproc/w32err.c: W32: subproc library support code
3242 Mon May 13 14:37:42 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3246 * GNUmakefile (vmsfiles): Fix typo.
3248 * GNUmakefile (amigafiles): Add amiga.h.
3250 Sun May 12 19:19:43 1996 Aaron Digulla <digulla@fh-konstanz.de>
3252 * dir.c: New function: amigafy() to fold filenames
3253 Changes HASH() to HASHI() to fold filenames on Amiga.
3254 Stringcompares use strieq() instead of streq()
3255 The current directory on Amiga is "" instead of "."
3258 * amiga.c: New function wildcard_expansion(). Allows to use
3259 Amiga wildcards with $(wildcard )
3261 * amiga.h: New file. Prototypes for amiga.c
3263 * function.c: Use special function wildcard_expansion() for
3264 $(wildcard ) to allow Amiga wildcards
3265 The current directory on Amiga is "" instead of "."
3267 * job.c: No Pipes on Amiga, too
3268 (load_too_high) Neither on Amiga
3269 ENV variable on Amiga are in a special directory and are not
3270 passed as third argument to main().
3272 * job.h: No envp on Amiga
3274 * make.h: Added HASHI(). This is the same as HASH() but converts
3275 it's second parameter to lowercase on Amiga to fold filenames.
3277 * main.c: (main), variable.c Changed handling of ENV-vars. Make
3278 stores now the names of the variables only and reads their contents
3279 when they are accessed to reflect that these variables are really
3280 global (ie. they CAN change WHILE make runs !) This handling is
3281 made in lookup_variable()
3283 * Makefile.ami: renamed file.h to filedep.h
3284 Updated dependencies
3286 * read.c: "find_semicolon" is declared as static but never defined.
3287 No difference between Makefile and makefile on Amiga; added
3288 SMakefile to *default_makefiles[].
3289 (read_makefile) SAS/C want's two_colon and pattern_percent be set
3291 The current directory on Amiga is "" instead of "."
3292 Strange #endif moved.
3294 * README.Amiga: updated feature list
3296 * SMakefile: Updated dependencies
3298 * variable.c: Handling of ENV variable happens inside lookup_variable()
3300 Sat May 11 17:58:32 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3302 * variable.c (try_variable_definition): Count parens in lhs variable
3303 refs to avoid seeing =/:=/+= inside a ref.
3305 Thu May 9 13:54:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3307 * commands.c (fatal_error_signal) [SIGQUIT]: Make SIGQUIT check
3310 * main.c (main): Use unsigned for fread return.
3312 * read.c (parse_file_seq): Use `int' for char arg to avoid widening
3314 * dep.h: Fix prototype.
3316 * function.c (expand_function) [_AMIGA]: Fix some typos.
3317 (patsubst_expand): Make len vars unsigned.
3319 * GNUmakefile (globfiles): Add AmigaDOS support files.
3320 (distfiles): Add $(amigafiles).
3321 (amigafiles): New variable.
3323 Thu Nov 7 10:18:16 1995 Aaron Digulla <digulla@fh-konstanz.de>
3325 * Added Amiga support in commands.c, dir.c, function.c,
3326 job.c, main.c, make.h, read.c, remake.c
3327 * commands.c: Amiga has neither SIGHUP nor SIGQUIT
3328 * dir.c: Amiga has filenames with Upper- and Lowercase,
3329 but "FileName" is the same as "filename". Added strieq()
3330 which is use to compare filenames. This is like streq()
3331 on all other systems. Also there is no such thing as
3333 * function.c: On Amiga, the environment is not passed as envp,
3334 there are no pipes and Amiga can't fork. Use my own function
3335 to create a new child.
3336 * job.c: default_shell is "" (The system automatically chooses
3337 a shell for me). Have to use the same workaround as MSDOS for
3338 running batch commands. Added HAVE_SYS_PARAM_H. NOFILE isn't
3339 known on Amiga. Cloned code to run children from MSDOS. Own
3340 version of sh_chars[] and sh_cmds[]. No dup2() or dup() on Amiga.
3341 * main.c: Force stack to 20000 bytes. Read environment from ENV:
3342 device. On Amiga, exec_command() does return, so I exit()
3344 * make.h: Added strieq() to compare filenames.
3345 * read.c: Amiga needs special extension to have passwd. Only
3346 one include-dir. "Makefile" and "makefile" are the same.
3347 Added "SMakefile". Added special code to handle device names (xxx:)
3349 * remake.c: Only one lib-dir. Amiga link-libs are named "%s.lib"
3350 instead of "lib%s.a".
3351 * main.c, rule.c, variable.c: Avoid floats at all costs.
3352 * vpath.c: Get rid of as many alloca()s as possible.
3354 Thu May 9 13:20:43 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3356 * read.c (read_makefile): Grok `sinclude' as alias for `-include'.
3358 Wed Mar 20 09:52:27 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
3360 * GNUmakefile (vmsfiles): New variable.
3361 (distfiles): Include $(vmsfiles).
3363 Tue Mar 19 20:21:34 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
3365 Merged VMS port from Klaus Kaempf <kkaempf@didymus.rmi.de>.
3366 * make.h (PARAMS): New macro.
3367 * config.h-vms: New file.
3368 * makefile.com: New file.
3369 * makefile.vms: New file.
3370 * readme.vms: New file.
3371 * vmsdir.h: New file.
3372 * vmsfunctions.c: New file.
3373 * vmsify.c: New file.
3374 * file.h: Renamed to filedef.h to avoid conflict with VMS system hdr.
3375 * ar.c: Added prototypes and changes for VMS.
3376 * commands.c: Likewise.
3377 * commands.h: Likewise.
3378 * default.c: Likewise.
3381 * expand.c: Likewise.
3383 * function.c: Likewise.
3384 * implicit.c: Likewise.
3391 * remake.c: Likewise.
3392 * remote-stub.c: Likewise.
3395 * variable.c: Likewise.
3396 * variable.h: Likewise.
3397 * vpath.c: Likewise.
3398 * compatMakefile (srcs): Rename file.h to filedef.h.
3400 Sat Aug 19 23:11:00 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
3402 * remake.c (check_dep): For a secondary file, try implicit and
3403 default rules if appropriate.
3405 Wed Aug 2 04:29:42 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
3407 * remake.c (check_dep): If an intermediate file exists,
3408 do consider its actual date.
3410 Sun Jul 30 00:49:53 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
3412 * file.h (struct file): New field `secondary'.
3413 * file.c (snap_deps): Check for .INTERMEDIATE and .SECONDARY.
3414 (remove_intermediates): Don't delete .SECONDARY files.
3416 Sat Mar 2 16:26:52 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
3418 * compatMakefile (srcs): Add getopt.h; prepend $(srcdir)/ to getopt*.
3420 Fri Mar 1 12:04:47 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
3424 * remake.c (f_mtime): Move future modtime check before FILE is
3425 clobbered by :: loop.
3427 * dir.c: Use canonical code from autoconf manual for dirent include.
3428 [_D_NAMLEN]: Redefine NAMLEN using this.
3429 (dir_contents_file_exists_p): Use NAMLEN macro.
3430 (read_dirstream) [_DIRENT_HAVE_D_NAMLEN]: Only set d_namlen #if this.
3432 * compatMakefile (objs): Add missing backslash.
3434 Wed Feb 28 03:56:20 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
3436 * default.c (default_terminal_rules): Remove + prefix from RCS cmds.
3437 (default_variables): Put + prefix in $(CHECKOUT,v) value instead.
3439 * remake.c (f_mtime): Check for future timestamps; give error and mark
3440 file as "failed to update".
3442 Fri Jan 12 18:09:36 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3444 * job.c: Don't declare unblock_sigs; job.h already does.
3446 Sat Jan 6 16:24:44 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3448 * acconfig.h (HAVE_SYSCONF_OPEN_MAX): #undef removed.
3450 * job.c (NGROUPS_MAX): Don't try to define this macro.
3452 Fri Dec 22 18:44:44 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3454 * compatMakefile (GETOPT, GETOPT_SRC, GLOB): Variables removed.
3455 (objs, srcs): Include their values here instead of references.
3457 Thu Dec 14 06:21:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3461 * job.c (reap_children): Call unblock_sigs after start_job_command.
3463 Thu Dec 14 07:22:03 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
3465 * dir.c (dir_setup_glob): Don't use lstat; glob never calls it anyway.
3466 Avoid & before function names to silence bogus sunos4 compiler.
3468 * configure.in: Remove check for `sysconf (_SC_OPEN_MAX)'.
3470 Tue Dec 12 00:48:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3474 * dir.c (read_dirstream): Fix braino: fill in the buffer when not
3477 Mon Dec 11 22:26:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3479 * misc.c (collapse_continuations): Fix skipping of trailing \s so
3480 it can never dereference before the beginning of the array.
3482 * read.c (find_semicolon): Function removed.
3483 (read_makefile): Don't use find_semicolon or remove_comments for
3484 rule lines. Use find_char_unquote directly and handle quoted comments
3487 * default.c: Remove all [M_XENIX] code.
3489 * dir.c [HAVE_D_NAMLEN]: Define this for __GNU_LIBRARY__ > 1.
3490 (D_NAMLEN): Macro removed.
3491 (FAKE_DIR_ENTRY): New macro.
3492 (dir_contents_file_exists_p): Test HAVE_D_NAMLEN instead of using
3494 (read_dirstream): Return a struct dirent * for new glob interface.
3495 (init_dir): Function removed.
3496 (dir_setup_glob): New function.
3497 * main.c (main): Don't call init_dir.
3498 * read.c (multi_glob): Call dir_setup_glob on our glob_t and use
3499 GLOB_ALTDIRFUNC flag.
3501 * misc.c (safe_stat): Function removed.
3502 * read.c, commands.c, remake.c, vpath.c: Use plain stat instead of
3505 Sat Nov 25 20:35:18 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3507 * job.c [HAVE_UNION_WAIT]: Include sys/wait.h.
3509 * main.c (log_working_directory): Made global.
3510 Print entering msg only once.
3511 * make.h (log_working_directory): Declare it.
3512 * misc.c (message): Take new arg PREFIX. Print "make: " only if
3513 nonzero. Call log_working_directory.
3514 * remake.c: Pass new arg in `message' calls.
3515 * job.c (start_job_command): Pass new arg to `message'; fix
3516 inverted test in that call.
3518 Tue Nov 21 19:01:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3520 * job.c (start_job_command): Use `message' to print the command,
3521 and call it with null if the command is silent.
3522 * remake.c (touch_file): Use message instead of printf.
3524 Tue Oct 10 14:59:30 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3526 * main.c (enter_command_line_file): Barf if NAME is "".
3528 Sat Sep 9 06:33:20 1995 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
3530 * commands.c (delete_target): Ignore unlink failure if it is ENOENT.
3532 Thu Aug 17 15:08:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3534 * configure.in: Don't check for getdtablesize.
3535 * job.c (getdtablesize): Remove decls and macros.
3537 Thu Aug 10 19:10:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3539 * main.c (define_makeflags): Omit command line variable
3540 definitions from MFLAGS value.
3542 * arscan.c (ar_scan) [AIAMAG]: Check for zero MEMBER_OFFSET,
3543 indicating a valid, but empty, archive.
3545 Mon Aug 7 15:40:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3547 * dir.c (file_impossible_p): Correctly reset FILENAME to name
3548 within directory before hash search.
3550 * job.c (child_error): Do nothing if IGNORED under -s.
3552 * job.c (exec_command): Correctly use ARGV[0] for script name when
3553 running shell directly.
3555 Tue Aug 1 14:39:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3557 * job.c (child_execute_job): Close STDIN_FD and STDOUT_FD after
3558 dup'ing from them. Don't try to close all excess descriptors;
3559 getdtablesize might return a huge value. Any open descriptors in
3560 the parent should have FD_CLOEXEC set.
3561 (start_job_command): Set FD_CLOEXEC flag on BAD_STDIN descriptor.
3563 Tue Jun 20 03:47:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3565 * read.c (read_all_makefiles): Properly append default makefiles
3566 to the end of the `read_makefiles' chain.
3568 Fri May 19 16:36:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3570 * Version 3.74 released.
3572 Wed May 10 17:43:34 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3576 Tue May 9 17:15:23 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3578 * compatMakefile ($(infodir)/make.info): Make sure $$dir is set in
3581 Wed May 3 15:56:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3583 * file.c (print_file): Grok update_status of 1 for -q.
3585 Thu Apr 27 12:39:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3589 Wed Apr 26 17:15:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3591 * file.c (remove_intermediates): Fix inverted test to bail under
3592 -n for signal case. Bail under -q or -t.
3593 Skip files with update_status==-1.
3595 * job.c (job_next_command): Skip empty lines.
3596 (new_job): Don't test the return of job_next_command.
3597 Just let start_waiting_job handle the case of empty commands.
3599 Wed Apr 19 03:25:54 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3601 * function.c [__MSDOS__]: Include <fcntl.h>. From DJ Delorie.
3605 Sat Apr 8 14:53:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3607 * remake.c (notice_finished_file): Set FILE->update_status to zero
3610 Wed Apr 5 00:20:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3612 * Version 3.73 released.
3614 Tue Mar 28 13:25:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3616 * main.c (main): Fixed braino in assert.
3620 Mon Mar 27 05:29:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3622 * main.c: Avoid string in assert expression. Some systems are broken.
3624 Fri Mar 24 00:32:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3626 * main.c (main): Handle 1 and 2 returns from update_goal_chain
3627 makefile run properly.
3631 * main.c (handle_non_switch_argument): New function, broken out of
3633 (decode_switches): Set optind to 0 to reinitialize getopt, not to 1.
3634 When getopt_long returns EOF, break the loop and handle remaining args
3635 with a simple second loop.
3637 * remake.c (remake_file): Set update_status to 2 instead of 1 for
3638 no rule to make. Mention parent (dependent) in error message.
3639 (update_file_1): Handle FILE->update_status == 2 in -d printout.
3640 * job.c (start_job_command, reap_children): Set update_status to 2
3641 instead of 1 for failed commands.
3643 Tue Mar 21 16:23:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3645 * job.c (search_path): Function removed (was already #if 0'd out).
3646 * configure.in: Remove AC_TYPE_GETGROUPS; nothing needs it any more.
3648 Fri Mar 17 15:57:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3650 * configure.bat: Write @CPPFLAGS@ translation.
3652 Mon Mar 13 00:45:59 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3654 * read.c (parse_file_seq): Rearranged `l(a b)' -> `l(a) l(b)' loop
3655 to not skip the elt immediately preceding `l(...'.
3657 Fri Mar 10 13:56:49 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3661 * read.c (find_char_unquote): Make second arg a string of stop
3662 chars instead of a single stop char. Stop when any char in the
3663 string is hit. All callers changed.
3664 (find_semicolon): Pass stop chars "#;" to one find_char_unquote call,
3665 instead of using two calls. If the match is not a ; but a #,
3667 * misc.c: Changed find_char_unquote callers here too.
3671 * read.c (read_makefile, parse_file_seq): Fix typo __MS_DOS__ ->
3674 * GNUmakefile (globfiles): Add glob/configure.bat.
3675 (distfiles): Add configh.dos, configure.bat.
3677 Wed Mar 8 13:10:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3679 Fixes for MS-DOS from DJ Delorie.
3680 * read.c (read_makefile, parse_file_seq) [__MS_DOS__]: Don't see :
3681 as separator in "C:\...".
3682 * configh.dos (STDC_HEADERS): Define only if undefined.
3683 (HAVE_SYS_PARAM_H): Don't define this.
3684 (HAVE_STRERROR): Define this.
3685 * job.c (construct_command_argv_internal) [__MSDOS__]: Fix typos.
3689 * main.c (decode_switches): Reset optind to 1 instead of 0.
3691 Tue Mar 7 17:31:06 1995 Roland McGrath <roland@geech.gnu.ai.mit.edu>
3693 * main.c (decode_switches): If non-option arg is "-", ignore it.
3695 Mon Mar 6 23:57:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3699 Wed Feb 22 21:26:36 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3703 Tue Feb 21 22:10:43 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3705 * main.c (main): Pass missing arg to tmpnam.
3707 * configure.in: Check for strsignal.
3708 * job.c (child_error): Use strsignal.
3709 * main.c (main): Don't call signame_init #ifdef HAVE_STRSIGNAL.
3711 * misc.c (strerror): Fix swapped args in sprintf.
3713 Mon Feb 13 11:50:08 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3715 * configure.in (CFLAGS, LDFLAGS): Don't set these variables.
3717 Fri Feb 10 18:44:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3719 * main.c (print_version): Add 95 to copyright years.
3723 * job.c (start_job_command): Remember to call notice_finished_file
3724 under -n when not recursing. To do this, consolidate that code
3725 under the empty command case and goto there for the -n case.
3727 Tue Feb 7 13:36:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3729 * make.h [! STDC_HEADERS]: Don't declare qsort. Sun headers
3732 Mon Feb 6 17:37:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3734 * read.c (read_makefile): For bogus line starting with tab, ignore
3735 it if blank after removing comments.
3737 * main.c: Cast results of `alloca' to `char *'.
3738 * expand.c: Likewise.
3740 Sun Feb 5 18:35:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3744 * configure.in: Check for mktemp.
3745 * main.c (main) [! HAVE_MKTEMP]: Use tmpnam instead of mktemp.
3747 * configure.in (make_cv_sysconf_open_max): New check for `sysconf
3749 * acconfig.h: Added #undef HAVE_SYSCONF_OPEN_MAX.
3750 * job.c [HAVE_SYSCONF_OPEN_MAX] (getdtablesize): Define as macro
3753 Fri Jan 27 04:42:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3755 * remake.c (update_file_1): When !MUST_MAKE, don't set
3756 FILE->update_status to zero before calling notice_finished_file.
3757 (notice_finished_file): Touch only when FILE->update_status is zero.
3758 (remake_file): Set FILE->update_status to zero after not calling
3759 execute_file_command and deciding to touch instead.
3761 Thu Jan 26 01:29:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3763 * main.c (debug_signal_handler): New function; toggles debug_flag.
3764 (main): Handle SIGUSR1 with that.
3766 Mon Jan 16 15:46:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3768 * compatMakefile (realclean): Remove Info files.
3770 Sun Jan 15 08:23:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3774 * job.c (start_job_command): Save and restore environ around vfork
3776 (search_path): Function #if 0'd out.
3777 (exec_command): Use execvp instead of search_path.
3779 * expand.c (variable_expand): Rewrote computed variable name and
3780 substitution reference handling to be simpler. First expand the
3781 entire text between the parens if it contains any $s, then examine
3782 the result of that for subtitution references and do no further
3783 expansion while parsing them.
3785 * job.c (construct_command_argv_internal): Handle " quoting too,
3786 when no backslash, $ or ` characters appear inside the quotes.
3788 * configure.in (union wait check): If WEXITSTATUS and WTERMSIG are
3789 defined, just use int.
3791 Tue Jan 10 06:27:27 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3793 * default.c (default_variables) [__hpux]: Remove special
3794 definition of ARFLAGS. Existence of the `f' flag is not
3795 consistent across HPUX versions; and one might be using GNU ar
3798 * compatMakefile (clean): Don't remove Info files.
3800 * compatMakefile (check): Remove gratuitous target declaration.
3802 Sat Jan 7 11:38:23 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3804 * compatMakefile (ETAGS, CTAGS): Don't use -t.
3806 * arscan.c (ar_name_equal) [cray]: Subtract 1 like [__hpux].
3808 * main.c (decode_switches): For --help, print usage to stdout.
3810 Mon Dec 5 12:42:18 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3814 * remake.c (update_file_1): Do set_command_state (FILE,
3815 cs_not_started) only if old state was deps_running.
3817 Mon Nov 28 14:24:03 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3819 * job.c (start_waiting_job): Use set_command_state.
3821 * build.template (CPPFLAGS): New variable.
3822 (prefix, exec_prefix): Set from @...@.
3823 (compilation loop): Pass $CPPFLAGS to compiler.
3825 * GNUmakefile (build.sh.in): Make it executable.
3827 * GNUmakefile (globfiles): Add configure.in, configure.
3831 * configure.in (AC_OUTPUT): Don't write glob/Makefile.
3833 * configure.in (AC_CHECK_SYMBOL): Use AC_DEFINE_UNQUOTED.
3835 * configure.in: Don't check for ranlib.
3837 Tue Nov 22 22:42:40 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3839 * remake.c (notice_finished_file): Only mark also_make's as
3840 updated if really ran cmds.
3842 Tue Nov 15 06:32:46 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3844 * configure.in: Put dnls before random whitespace.
3846 Sun Nov 13 05:02:25 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3848 * compatMakefile (CPPFLAGS): New variable, set from @CPPFLAGS@.
3849 (RANLIB): Variable removed.
3850 (prefix, exec_prefix): Set these from @...@.
3851 (.c.o): Use $(CPPFLAGS).
3852 (glob/libglob.a): Don't pass down variables to sub-make.
3853 glob/Makefile should be configured properly by configure.
3854 (distclean): Remove config.log and config.cache (autoconf stuff).
3856 Mon Nov 7 13:58:06 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3858 * acconfig.h: Add #undef HAVE_UNION_WAIT.
3859 * configure.in: Converted to Autoconf v2.
3860 * dir.c: Test HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H instead
3861 of DIRENT, SYSDIR, NDIR.
3862 * build.sh.in (prefix, exec_prefix): Set these from @...@.
3863 (CPPFLAGS): New variable, set from @CPPFLAGS@.
3864 (compiling loop): Pass $CPPFLAGS before $CFLAGS.
3865 * install.sh: File renamed to install-sh.
3867 * main.c (define_makeflags): When no flags, set WORDS to zero.
3869 Sun Nov 6 18:34:01 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3873 * main.c (define_makeflags): Terminate properly when FLAGSTRING is
3876 Fri Nov 4 16:02:51 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3880 Tue Nov 1 01:18:10 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3884 * job.c (start_job_command): When ARGV is nil, only set
3885 update_state and call notice_finished_file if job_next_command
3888 * job.c (start_job_command): Call notice_finished_file for empty
3891 Thu Oct 27 02:02:45 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3893 * file.c (snap_deps): Set COMMANDS_SILENT for .SILENT, not
3896 Wed Oct 26 02:14:10 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3900 Tue Oct 25 22:49:24 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3902 * file.c (snap_deps): Set command_flags bits in all :: entries.
3904 Mon Oct 24 18:47:50 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3906 * make.h (posix_pedantic): Declare it.
3907 * main.c (main): Move checks .IGNORE, .SILENT, .POSIX to
3909 * file.c (snap_deps): Check .IGNORE, .SILENT, .POSIX here instead
3910 of in main. If .IGNORE has deps, OR COMMANDS_NOERROR into their
3911 command_flags and don't set -i. Likewise .SILENT.
3912 * job.c (start_job_command): In FLAGS initialization, OR in
3913 CHILD->file->command_flags.
3914 * file.h (struct file): New member `command_flags'.
3916 Sun Oct 16 01:01:51 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3918 * main.c (switches): Bump flag values for --no-print-directory and
3919 --warn-undefined-variables, so neither is 1 (which indicates a
3920 nonoption argument).
3922 Sat Oct 15 23:39:48 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3924 * main.c (main): Add missing code in .IGNORE test.
3926 Mon Oct 10 04:09:03 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3928 * variable.c (define_automatic_variables): Define +D and +F.
3930 Sat Oct 1 04:07:48 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3932 * main.c (main): Define hidden automatic variable with command
3933 vars, and MAKEOVERRIDES to a reference to that.
3934 (define_makeflags): If posix_pedantic, write a reference to that
3937 Thu Sep 29 00:14:26 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3939 * main.c (posix_pedantic): New variable.
3940 (main): Set posix_pedantic if .POSIX is a target.
3941 Fix .IGNORE and .SILENT checks to require is_target.
3943 * commands.c (set_file_variables): Define new automatic variable
3944 $+, like $^ but before calling uniquize_deps.
3946 * job.c (reap_children): Call delete_child_targets for non-signal
3947 error if .DELETE_ON_ERROR is a target.
3949 Tue Sep 27 01:57:14 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3953 Mon Sep 26 18:16:55 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3955 * job.c (reap_children): Don't change C->file->command_state when
3956 dying. Test it only after calling start_job_command for a new
3957 command line. When no more cmds, just set C->file->update_status.
3958 (start_job_command): When the last line is empty or under -n, set
3959 C->file->update_status.
3960 (start_waiting_job): Grok cs_not_started after start_job_command
3962 (new_job): Set C->file->update_status when there are no cmds.
3963 (job_next_command): When out of lines, don't set
3964 CHILD->file->update_status or CHILD->file->command_state.
3966 * main.c (quote_as_word): Renamed from shell_quote. Take new arg;
3967 if nonzero, also double $s.
3968 (main): Define MAKEOVERRIDES from command_variables here.
3969 (define_makeflags): Don't use command_variables here; instead write a
3970 reference $(MAKEOVERRIDES) in MAKEFLAGS. Make vars recursive.
3972 * dir.c [__MSDOS__]: Fixed typo.
3974 * vpath.c (selective_vpath_search): Reset EXISTS when stat fails.
3976 Sat Sep 10 03:01:35 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3978 * remake.c: Include <assert.h> and use assert instead of printfs
3981 * main.c (decode_switches): Loop until optind hits ARGC, not just
3982 until getopt_long returns EOF. Initialize C to zero before loop;
3983 in loop if C is EOF, set optarg from ARGV[optind++], else call
3985 (decode_env_switches): Use variable_expand instead of
3986 allocated_variable_expand. Allocate a fresh buffer to copy split
3987 words into; scan characters by hand to break words and
3989 (shell_quote): New function.
3990 (define_makeflags): Allocate doubled space for switch args, and command
3991 variable names and values; use shell_quote to quote those things.
3993 Fri Sep 9 01:37:47 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3997 * acconfig.h: Add HAVE_SYS_SIGLIST and HAVE__SYS_SIGLIST.
3999 * main.c (decode_switches): The non-option return from getopt is
4001 (command_variables): New type and variable.
4002 (decode_switches, decode_env_switches): After making a variable
4003 definition, record the struct variable pointer in the
4004 command_variables chain.
4005 (define_makeflags): If ALL, write variable definitions for
4008 * main.c (other_args): Variable removed.
4009 (goals, lastgoal): New static variables (moved from auto in main).
4010 (main): Don't process OTHER_ARGS at all.
4011 Don't set variable MAKEOVERRIDES at all; define MAKE to just
4013 (init_switches): Prepend a - {return in order} instead of a +
4015 (decode_switches): Don't set OTHER_ARGS at all.
4016 Grok '\0' return from getopt_long as non-option argument; try
4017 variable definition and (if !ENV) enter goal targets here.
4018 (decode_env_switches): Use allocated_variable_expand to store value.
4019 Use find_next_token to simplify word-splitting loop. Don't
4020 prepend a dash to uninterpreted value. Instead, if split into
4021 only one word, try variable definition and failing that prepend a
4022 dash to the word and pass it to decode_switches as a single arg.
4024 Wed Sep 7 03:02:46 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4026 * remake.c (notice_finished_file): Only recheck modtimes if
4027 FILE->command_state was cs_running on entry (meaning the commands
4029 (update_file_1): Whenever we set FILE->update_status, call
4030 notice_finished_file instead of just set_command_state.
4031 * job.c (start_job_command): Whenever we set
4032 CHILD->file->update_status, call notice_finished_file instead of
4033 just set_command_state.
4035 Tue Sep 6 19:13:54 1994 Roland McGrath <roland@geech.gnu.ai.mit.edu>
4037 * default.c: Add missing ".
4039 * job.c: Changed all assignments of command_state members to calls
4040 to set_command_state.
4041 * remake.c: Likewise.
4042 * file.c (set_command_state): New function.
4043 * file.h: Declare set_command_state.
4045 * main.c (init_switches): Put a + first in options.
4047 Mon Jul 25 18:07:46 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4049 Merge MSDOS/GO32 port from DJ Delorie <dj@ctron.com>.
4050 * vpath.c: Changed all uses of ':' to PATH_SEPARATOR_CHAR.
4051 * main.c (directory_before_chdir): New variable, moved out of main
4053 (main) [__MSDOS__]: Look for \ or : to delimit last component of
4054 PROGRAM. Don't frob ARGV[0] before setting MAKE_COMMAND variable.
4055 (die): Change back to `directory_before_chdir' before dying.
4056 * make.h (PATH_SEPARATOR_CHAR): New macro; differing defns for
4057 [__MSDOS__] and not.
4058 * job.c [__MSDOS__]: Include <process.h>.
4059 [__MSDOS__] (dos_pid, dos_status, dos_bname, dos_bename,
4060 dos_batch_file): New variables.
4061 (reap_children) [__MSDOS__]: Don't call wait; just examine those vars.
4062 (unblock_sigs) [__MSDOS__]: Do nothing.
4063 (start_job_command) [__MSDOS__]: Use spawnvpe instead of vfork & exec.
4064 (load_too_high) [__MSDOS__]: Always return true.
4065 (search_path) [__MSDOS__]: Check for : or / in FILE to punt.
4066 Use PATH_SEPARATOR_CHAR instead of ':'.
4067 (construct_command_argv_internal) [__MSDOS__]: Wholly different
4068 values for sh_chars and sh_cmds. Wholly new code to handle shell
4070 * function.c (expand_function: `shell') [__MSDOS__]: Wholly new
4072 * dir.c [__MSDOS__] (dosify): New function.
4073 (dir_contents_file_exists_p) [__MSDOS__]: Call it on FILENAME and
4074 process the result instead of FILENAME itself.
4075 (file_impossible_p) [__MSDOS__]: Likewise.
4076 * default.c [__MSDOS__]: Define GCC_IS_NATIVE.
4077 (default_suffix_rules) [__MSDOS__]: Use `y_tab.c' instead of `y.tab.c'.
4078 (default_variables) [GCC_IS_NATIVE]: Set CC and CXX to `gcc', YACC to
4079 `bison -y', and LEX to `flex'.
4080 * configure.bat, configh.dos: New files.
4081 * commands.c (fatal_error_signal) [__MSDOS__]: Just remove
4082 intermediates and exit.
4084 * commands.c (set_file_variables): Add parens in length
4085 computation in .SUFFIXES dep loop to quiet compiler warning. From
4088 * read.c (read_makefile): Free FILENAME if we allocated it. From
4091 Mon Jul 4 17:47:08 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4093 * misc.c (safe_stat): New function, EINTR-safe wrapper around stat.
4094 * vpath.c (selective_vpath_search): Use safe_stat in place of stat.
4095 * read.c (construct_include_path): Use safe_stat in place of stat.
4096 * job.c (search_path): Use safe_stat in place of stat.
4097 * dir.c (find_directory): Use safe_stat in place of stat.
4098 * commands.c (delete_target): Use safe_stat in place of stat.
4099 * arscan.c (ar_member_touch) [EINTR]: Do EINTR looping around fstat.
4100 * remake.c (name_mtime): Use safe_stat in place of stat.
4101 (touch_file) [EINTR]: Do EINTR looping around fstat.
4103 Fri Jun 24 05:40:24 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4105 * read.c (read_makefile): Check for a shell command first, and
4106 then strip leading tabs before further checking if it's not a
4109 * make.h [__arm]: Undefine POSIX.
4110 [!__GNU_LIBRARY__ && !POSIX && !_POSIX_VERSION]: Don't declare system
4111 functions that return int.
4113 * job.c (construct_command_argv_internal): After swallowing a
4114 backslash-newline combination, if INSTRING is set goto string_char
4115 (new label) for normal INSTRING handling code.
4117 Sat Jun 4 01:11:20 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4119 * configure.in: Don't check for sys_siglist and _sys_siglist with
4120 AC_HAVE_FUNCS. Instead use two AC_COMPILE_CHECKs.
4122 Mon May 23 18:20:38 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4124 * Version 3.71.1 released.
4126 * make.h [!__GNU_LIBRARY__ && !POSIX]: Also test #ifndef
4127 _POSIX_VERSION for these declarations.
4129 * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Remove bogus #ifndefs
4130 around #undefs of HAVE_SETREUID and HAVE_SETREGID.
4132 Sat May 21 16:26:38 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4134 * Version 3.71 released.
4136 * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Don't test [HAVE_SETUID]
4137 and [HAVE_SETGID]. Every system has those, and configure doesn't
4140 * make.h [_POSIX_VERSION]: Don't #define POSIX #ifdef ultrix.
4142 * compatMakefile (loadavg): Depend on and use loadavg.c instead of
4144 (loadavg.c): Link or copy it from getloadavg.c.
4145 (distclean): Remove loadavg.c.
4147 Mon May 16 22:59:04 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4151 * misc.c [GETLOADAVG_PRIVILEGED] [! POSIX]: Undefine HAVE_SETEUID
4154 * default.c (default_terminal_rules): In SCCS rules, put
4155 $(SCCS_OUTPUT_OPTION) before $<. On some systems -G is grokked
4156 only before the file name.
4157 * configure.in (SCCS_GET_MINUS_G check): Put -G flag before file name.
4159 Tue May 10 16:27:38 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4161 * job.c (construct_command_argv_internal): Swallow
4162 backslash-newline combinations inside '' strings too.
4164 Thu May 5 04:15:10 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4166 * read.c (do_define): Call collapse_continuations on each line
4169 Mon Apr 25 19:32:02 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4171 * job.c (construct_command_argv_internal): Notice newline inside
4172 '' string when RESTP is non-null.
4174 Fri Apr 22 17:33:30 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4178 * remake.c (update_goal_chain): Reset FILE to G->file after the
4179 double-colon loop so it is never null for following code.
4181 * read.c (read_makefile): Fix `override define' parsing to skip
4182 whitespace after `define' properly.
4184 * compatMakefile (srcdir): Define as @srcdir@; don't reference
4186 (glob/Makefile): New target.
4188 Thu Apr 21 16:16:55 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4192 * misc.c (remove_comments): Use find_char_unquote.
4193 * make.h (find_char_unquote): Declare it.
4194 * read.c (find_char_unquote): New function, generalized from
4196 (find_percent, find_semicolon, parse_file_seq): Use that.
4198 Wed Apr 20 18:42:39 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4200 * implicit.c (pattern_search): Always allocate new storage for
4201 FILE->stem. It is not safe to store STEM's address because it
4202 might be auto storage.
4204 * configure.in: Check for seteuid and setegid.
4205 * misc.c [HAVE_SETEUID]: Declare seteuid.
4206 [HAVE_SETEGID]: Declare setegid.
4207 (make_access, user_access) [HAVE_SETEUID]: Use seteuid.
4208 [HAVE_SETEGID]: Use setegid.
4210 * remake.c (update_goal_chain): Set STATUS to FILE->update_status,
4211 to preserve whether it's 2 for error or 1 for -q trigger. When
4212 STATUS gets nonzero and -q is set, always stop immediately.
4213 * main.c (main, decode_switches): Die with 2 for errors.
4214 (main): Accept 2 return from update_goal_chain and die with that.
4215 * misc.c (fatal, makefile_fatal): Die with 2; 1 is reserved for -q
4217 * job.c (reap_children): Die with 2 for error.
4218 (start_job_command): Set update_status to 2 for error. Set it to
4219 1 when we would run a command and question_flag is set.
4221 * read.c (read_makefile): Don't mark makefiles as precious. Just
4222 like other targets, they can be left inconsistent and in need of
4223 remaking by aborted commands.
4225 * read.c (read_makefile): Write no error msg for -include file.
4227 Tue Apr 5 05:22:19 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4229 * commands.c (fatal_error_signal): Don't unblock signals.
4231 * file.h (struct file): Change member `double_colon' from flag to
4233 * read.c (record_files): Set double_colon pointer instead of flag.
4234 * main.c (main): When disqualifying makefiles for updating, use
4235 double_colon pointer to find all entries for a file.
4236 * file.c (enter_file): If there is already a double-colon entry
4237 for the file, set NEW->double_colon to that pointer.
4238 (file_hash_enter): Use FILE->double_colon to find all entries to
4240 * remake.c (update_goal_chain): Do inner loop on double-colon entries.
4241 (update_file): Use FILE->double_colon pointer to find all entries.
4242 (f_mtime): Likewise.
4243 (notice_finished_file): Propagate mtime change to all entries.
4245 * variable.c (try_variable_definition): Return after abort.
4247 Fri Apr 1 18:44:15 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4249 * read.c (read_makefile): Remove unused variable.
4250 (parse_file_seq): When removing an elt that is just `)', properly
4251 fix up the previous elt's next pointer.
4253 Mon Mar 28 18:31:49 1994 Roland McGrath (roland@mole.gnu.ai.mit.edu)
4255 * configure.in: Do AC_SET_MAKE.
4256 * GNUmakefile (Makefile.in): Edit MAKE assignment into @SET_MAKE@.
4258 Fri Mar 4 00:02:32 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4260 * function.c (subst_expand): If BY_WORD or SUFFIX_ONLY is set and
4261 the search string is the empty string, find a match at the end of
4262 each word (using end_of_token in place of sindex).
4264 * misc.c (end_of_token): Don't treat backslashes specially; you
4265 can no longer escape blanks with backslashes in export, unexport,
4266 and vpath. This was never documented anyway.
4268 Thu Mar 3 23:53:46 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4270 * read.c (read_makefile): Variable name for `define' is not just
4271 first token; use whole rest of line and strip trailing blanks.
4273 Wed Feb 16 16:03:45 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4277 * read.c (read_makefile): Add -d msg stating args.
4279 * read.c (read_makefile): Use isspace to skip over leading
4280 whitespace, and explicitly avoid skipping over tabs. Don't want
4281 to skip just spaces though; formfeeds et al should be skipped.
4283 * default.c (default_variables) [__hpux]: Add f in ARFLAGS.
4285 * arscan.c (ar_name_equal) [__hpux]: Subtract 2 instead of 1 from
4286 sizeof ar_name for max length to compare.
4288 * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Undefine HAVE_SETREUID
4289 #ifdef HAVE_SETUID; likewise HAVE_SETREGID and HAVE_SETGID.
4291 * main.c (main): Call user_access after setting `program', in case
4292 it needs to use it in an error message.
4294 * read.c (read_makefile): Ignore an empty line starting with a tab.
4296 Thu Feb 10 21:45:31 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4298 * configure.in (AC_SYS_SIGLIST_DECLARED): Use this instead of
4299 AC_COMPILE_CHECK that is now its contents.
4301 Fri Feb 4 16:28:54 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4303 * make.h: #undef strerror after #include <string.h>.
4304 [! ANSI_STRING]: Declare strerror.
4306 Thu Feb 3 02:21:22 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4308 * misc.c (strerror): #undef any macro before function definition.
4310 Mon Jan 31 19:07:23 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4312 * variable.c (try_variable_definition): Calculate BEG before loop
4313 to strip blanks by decrementing END. Don't decr END to before BEG.
4315 * read.c (read_makefile): Skip over leading space characters, but
4316 not tabs, after removing continuations and comments (it used to
4319 Tue Jan 25 16:45:05 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4321 * variable.c (define_automatic_variables): In $(@D) et al, use
4322 patsubst to remove trailing slash.
4324 * commands.c (delete_target): New function, broken out of
4325 delete_child_targets. Check for archive members and give special msg.
4326 (delete_child_targets): Use delete_target.
4328 Mon Jan 17 17:03:22 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4330 * default.c (default_suffix_rules): Use $(TEXI2DVI_FLAGS) in
4331 texi2dvi rules. Use $(MAKEINFO_FLAGS) in makeinfo rules.
4333 Tue Jan 11 19:29:55 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4335 * GNUmakefile (tarfiles): Omit make-doc.
4336 (make-$(version).tar): Include make.info*.
4338 Fri Jan 7 16:27:00 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4340 * compatMakefile (configure, config.h.in): Comment out rules.
4342 Thu Jan 6 18:08:08 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4344 * compatMakefile (binprefix, manprefix): New variables.
4345 (instname): Variable removed.
4346 (install): Use $({bin,man}prefix)make in place of $(instname).
4347 File targets likewised renamed.
4349 Mon Jan 3 17:50:25 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4351 * Version 3.70 released.
4353 Thu Dec 23 14:46:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4357 * read.c (parse_file_seq): Inside multi-word archive ref
4358 translation loop, check NEW1==0 at end and break out of the loop.
4360 * GNUmakefile (make-$(version).tar): Distribute install.sh.
4361 * install.sh: New file.
4363 * configure.in (SCCS_GET_MINUS_G check): Put redirection for admin
4364 cmds outside subshell parens, to avoid "command not found" msgs
4367 Wed Dec 22 17:00:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4369 * configure.in (SCCS_GET_MINUS_G check): Put -G flag last in get cmd.
4370 Redirect output & error from get to /dev/null.
4371 Fix reversed sense of test.
4373 Fri Dec 17 15:31:36 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4375 * configure.in (SCCS_GET_MINUS_G check): Use parens instead of
4376 braces inside if condition command; some shells lose.
4378 Thu Dec 16 15:10:23 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4382 * arscan.c [M_UNIX]: Move #undef M_XENIX for PORTAR stuff.
4383 (PORTAR) [M_XENIX]: Define to 0 instead of 1.
4385 * main.c (define_makeflags): Only export MAKEFLAGS if !ALL.
4387 Wed Dec 15 17:47:48 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4389 * main.c (main): Cast result of pointer arith to unsigned int
4390 before passing to define_variable for envars. Matters when
4391 sizeof(unsigned)!=sizeof(ptrdiff_t).
4393 Tue Dec 14 14:21:16 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4395 * configure.in: Add new check for SCCS_GET_MINUS_G.
4396 * config.h.in: Add #undef SCCS_GET_MINUS_G.
4397 * default.c (default_terminal_rules): Use `$(SCCS_OUTPUT_OPTION)' in
4398 place of `-G $@' in SCCS commands.
4399 (default_variables) [SCCS_GET_MINUS_G]: Define SCCS_OUTPUT_OPTION
4402 * configure.in (AC_OUTPUT): Put touch stamp-config in second arg
4403 (so it goes in config.status), rather than afterward.
4405 * ar.c (ar_member_date): Don't call enter_file on the archive file
4406 if it doesn't exist (by file_exists_p).
4408 * compatMakefile ($(infodir)/make.info): Replace `$$d/foo.info'
4409 with `$$dir/make.info' in install-info invocation (oops).
4411 * vpath.c (construct_vpath_list): Only set LASTPATH set PATH when
4412 we do not unlink and free PATH.
4414 * file.c (print_file_data_base): Fix inverted calculation for
4415 average files per hash bucket.
4417 * read.c (readline): When we see a NUL, give only a warning and
4418 synthesize a newline to terminate the building line (used to
4419 fatal). Move fgets call into the loop condition, and after the
4420 loop test ferror (used to test !feof in the loop).
4422 Fri Dec 3 16:40:31 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4424 * configure.in: Check for strerror in AC_HAVE_FUNCS.
4426 Thu Dec 2 15:37:50 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4428 Differentiate different flavors of missing makefile error msgs,
4429 removing gratuitous `fopen: ' and giving caller for included makefiles.
4430 * misc.c [! HAVE_STRERROR]: Define our own strerror here.
4431 (perror_with_name, pfatal_with_name): Use strerror instead of
4432 replicating its functionality.
4433 * read.c (read_makefile): Return int instead of void.
4434 (read_all_makefiles, read_makefile): Change callers to notice zero
4435 return and give error msg.
4437 Thu Nov 11 11:47:36 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4441 * default.c: Put `-G $@' before $< in SCCS cmds.
4443 Wed Nov 10 06:06:14 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4445 * read.c (read_makefile): After trying a variable defn, notice if
4446 the line begins with a tab, and diagnose an error.
4448 Sun Nov 7 08:07:37 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4452 Wed Nov 3 06:54:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4456 * implicit.c (try_implicit_rule): Look for a normal rule before an
4459 Fri Oct 29 16:45:28 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4461 * function.c (expand_function: `sort'): Double NWORDS when it
4462 overflows, instead of adding five.
4464 * compatMakefile (clean): Remove loadavg.
4466 Wed Oct 27 17:58:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4470 * file.h (NEW_MTIME): Define new macro.
4471 * main.c (main): Set time of NEW_FILES to NEW_MTIME, not to
4472 current time returned from system. Removed variable NOW.
4473 * remake.c (notice_finished_file): Use NEW_MTIME in place of
4474 current time here too.
4476 Tue Oct 26 19:45:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4480 * remake.c (update_file_1): Don't clear MUST_MAKE when FILE has no
4481 cmds and !DEPS_CHANGED unless also !NOEXIST.
4483 Mon Oct 25 15:25:21 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4485 * read.c (parse_file_seq): When converting multi-word archive
4486 refs, ignore a word beginning with a '('.
4488 Fri Oct 22 02:53:38 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4490 * configure.in: Check for sys/timeb.h.
4491 * make.h [HAVE_SYS_TIMEB_H]: Test this before including it.
4493 Thu Oct 21 16:48:17 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4497 * rule.c (convert_suffix_rule): New local TARGPERCENT. Set it to
4498 TARGNAME+1 for "(%.o)", to TARGNAME for "%.?". Use it in place of
4499 TARGNAME to initialize PERCENTS[0].
4501 Mon Oct 18 06:49:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4503 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
4504 Remove AC_USG; it is no longer used.
4506 * file.c (print_file): New function, broken out of
4507 print_file_data_base.
4508 (print_file_data_base): Call it.
4509 * rule.c (print_rule): New function, broken out of
4510 print_rule_data_base.
4511 (print_rule_data_base): Call it.
4513 Thu Oct 14 14:54:03 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4515 * default.c (install_default_suffix_rules): New function, broken
4516 out of install_default_implicit_rules.
4517 (install_default_implicit_rules): Move suffix rule code there.
4518 * make.h: Declare install_default_suffix_rules.
4519 * main.c (main): Call install_default_suffix_rules before reading
4520 makefiles. Move convert_to_pattern call before
4521 install_default_implicit_rules.
4523 * job.h (struct child): Make `pid' member type `pid_t' instead of
4526 * compatMakefile (RANLIB): New variable, set by configure.
4527 (glob/libglob.a): Pass RANLIB value down to submake.
4529 Fixes for SCO 3.2 "devsys 4.2" from pss@tfn.com (Peter Salvitti).
4530 * make.h: Include <sys/timeb.h> before <time.h> for SCO lossage.
4531 * job.c [! getdtablesize] [! HAVE_GETDTABLESIZE]: If NOFILE is not
4532 defined but NOFILES_MAX is, define it to be that.
4534 Mon Oct 11 19:47:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4536 * GNUmakefile (make-$(version).tar): Depend on acconfig.h, so it
4539 Sun Oct 3 15:15:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4541 * default.c (default_terminal_rules): Add `-G $@' to SCCS get cmds.
4543 Tue Sep 28 14:18:20 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4545 * job.c (construct_command_argv_internal): Add ^ to SH_CHARS; it
4546 is another symbol for | in some shells.
4547 * main.c (main): Add it to CMD_DEFS quoting list as well.
4549 Mon Sep 20 18:05:24 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4551 * job.c (construct_command_argv_internal): Remove '=' from
4552 SH_CHARS. Only punt on '=' if it is unquoted in a word before the
4553 first word without an unquoted '='.
4555 * main.c (define_makeflags): Set v_export for MAKEFLAGS.
4557 Fri Sep 17 00:37:18 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4559 * remake.c (update_file_1): Use .DEFAULT cmds for phony targets.
4561 * make.h [_AIX && _POSIX_SOURCE]: Define POSIX.
4563 * commands.c (delete_child_targets): Don't delete phony files.
4565 * job.c (start_job_command): Set COMMANDS_RECURSE in FLAGS if we
4566 see a `+' at the beginning of the command line.
4568 Thu Sep 9 17:57:14 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4572 Wed Sep 8 20:14:21 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4574 * main.c (define_makeflags): Define MAKEFLAGS with o_file, not o_env.
4576 Mon Aug 30 12:31:58 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4578 * expand.c (variable_expand): Fatal on an unterminated reference.
4580 Thu Aug 19 16:27:53 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4584 * variable.c (define_automatic_variables): Define new o_default
4585 variable `MAKE_VERSION' from version_string and remote_description.
4587 * make.h (version_string, remote_description): Declare these here.
4588 * main.c: Don't declare version_string.
4589 (print_version): Don't declare remote_description.
4591 Wed Aug 18 15:01:24 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4593 * read.c (read_makefile): Free space pointed to by CONDITIONALS
4594 before restoring the old pointer.
4596 Mon Aug 16 17:33:36 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4598 * compatMakefile ($(objs)): Depend on config.h.
4600 * GNUmakefile (build.sh.in): Depend on compatMakefile.
4602 * configure.in: Touch stamp-config after AC_OUTPUT.
4604 Fri Aug 13 16:04:22 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4608 Thu Aug 12 17:18:57 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4610 * make.h: Include <config.h> instead of "config.h".
4612 Wed Aug 11 02:35:25 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4614 * main.c (main): Make all variables interned from ENVP be v_export.
4615 * variable.c (try_variable_definition): In v_default case, don't
4616 check for an o_file variable that `getenv' finds.
4618 * job.c (reap_children): New local variable ANY_LOCAL; set it
4619 while setting ANY_REMOTE. If !ANY_LOCAL, don't wait for local kids.
4621 * main.c (main): Don't call decode_env_switches on MFLAGS. DOC THIS.
4623 * function.c (expand_function): #if 0 out freeing of ENVP since it
4626 Mon Aug 9 17:37:20 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4630 * remote-stub.c (remote_status): Set errno to ECHILD before return.
4631 * job.c (reap_children): Scan the chain for remote children and
4632 never call remote_status if there are none.
4634 * function.c (expand_function: `shell'): #if 0 out calling
4635 target_environment; just set ENVP to environ instead.
4637 * job.c (reap_children): Check for negative return from
4638 remote_status and fatal for it.
4639 When blocking local child wait returns 0, then try a blocking call
4642 Tue Aug 3 00:19:00 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4644 * compatMakefile (clean): Delete make.info* and make.dvi here.
4645 (distclean): Not here.
4647 * dep.h (RM_*): Use #defines instead of enum to avoid lossage from
4648 compilers that don't like enum values used as ints.
4650 Mon Aug 2 16:46:34 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4652 * compatMakefile (loadavg): Add $(LOADLIBES).
4654 Sun Aug 1 16:01:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4658 * compatMakefile (loadavg, check-loadavg): New targets.
4659 (check): Depend on check-loadavg.
4661 * compatMakefile (glob/libglob.a): Depend on config.h.
4663 * misc.c (log_access): Write to stderr instead of stdout.
4665 Fri Jul 30 00:07:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4669 Thu Jul 29 23:26:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4671 * configure.in (SYS_SIGLIST_DECLARED): In test program include
4672 <unistd.h> #ifdef HAVE_UNISTD_H.
4674 * compatMakefile (.PHONY): Put after `all' et al.
4676 * configure.in: Add AC_IRIX_SUN.
4678 Wed Jul 28 17:41:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4682 Mon Jul 26 14:36:49 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4686 Sun Jul 25 22:09:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4690 * compatMakefile ($(infodir)/make.info): Don't use $(instname).
4691 Run install-info script if present.
4693 Fri Jul 23 16:03:50 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4695 * make.h [STAT_MACROS_BROKEN]: Test this instead of [uts].
4697 * configure.in: Add AC_STAT_MACROS_BROKEN.
4699 Wed Jul 14 18:48:11 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4703 * read.c (read_makefile): Recognize directive `-include', like
4704 `include' but sets RM_DONTCARE flag.
4706 * variable.c (target_environment): If FILE is nil, use
4707 current_variable_set_list in place of FILE->variables.
4708 * function.c (expand_function: `shell'): Get an environment for
4709 the child from target_environment instead of using environ.
4711 * dep.h: Declare read_all_makefiles here.
4712 (RM_*): Define new enum constants.
4713 * read.c (read_makefile): Second arg is FLAGS instead of TYPE.
4714 Treat it as a bit mask containing RM_*.
4715 (read_all_makefiles): For default makefiles, set D->changed to
4716 RM_DONTCARE instead of 1.
4717 * main.c: Don't declare read_all_makefiles here.
4718 (main): Check `changed' member of read_makefiles elts for RM_*
4719 flags instead of specific integer values.
4721 Mon Jul 12 22:42:17 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4723 * make.h [sequent && i386]: #undef POSIX. From trost@cse.ogi.edu.
4725 Thu Jul 8 19:51:23 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4727 * vpath.c (construct_vpath_list): If ELEM is zero 0, free PATTERN
4729 (build_vpath_lists): Empty `vpaths' around construct_vpath_list
4730 call for $(VPATH). Expand $(strip $(VPATH)), not just $(VPATH).
4732 * rule.c (convert_suffix_rule): Use alloca instead of xmalloc for
4733 PERCENTS, whose storage is not consumed by create_pattern_rule.
4735 * make.h [__mips && _SYSTYPE_SVR3]: #undef POSIX.
4737 Wed Jun 30 18:11:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4741 * rule.c (max_pattern_targets): New variable.
4742 (count_implicit_rule_limits): Compute its value.
4743 * rule.h: Declare it.
4744 * implicit.c (pattern_search): Make TRYRULES max_target_patterns
4745 times bigger. Move adding new TRYRULES elt inside the inner
4746 targets loop, so each matching target gets its own elt in MATCHES
4747 and CHECKED_LASTSLASH.
4749 * file.c (remove_intermediates): If SIG!=0 say `intermediate file'
4750 instead of just `file' in error msg.
4752 Fri Jun 25 14:55:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4754 * job.c (construct_command_argv): Turn off
4755 --warn-undefined-variables around expansion of SHELL and IFS.
4756 * read.c (tilde_expand): Likewise for HOME.
4757 (read_all_makefiles): Likewise for MAKEFILES.
4758 * vpath.c (build_vpath_lists): Likewise for VPATH.
4760 * main.c (warn_undefined_variables_flag): New flag variable.
4761 (switches): Add --warn-undefined-variables.
4762 * make.h (warn_undefined_variables_flag): Declare it.
4763 * expand.c (warn_undefined): New function.
4764 (reference_variable): Call it if the variable is undefined.
4765 (variable_expand): In substitution ref, call warn_undefined if the
4766 variable is undefined.
4768 * default.c (default_pattern_rules): Add `%.c: %.w %.ch' and
4769 `%.tex: %.w %.ch' rules.
4770 (default_suffix_rules: .w.c, .w.tex): Pass three args: $< - $@.
4771 (default_suffixes): Add `.ch'.
4773 Mon Jun 21 17:55:39 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4775 * default.c (default_suffixes): Replace `.cweb' with `.w'.
4776 (default_suffix_rules): Rename `.cweb.c' and `.cweb.tex' to `.w.c'
4779 Fri Jun 11 14:42:09 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4781 * compatMakefile ($(bindir)/$(instname)): Add missing backslash.
4783 Thu Jun 10 18:14:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4787 * read.c (multi_glob): Don't free OLD and OLD->name in the
4788 FOUND!=0 fork. Use new block-local variable F instead of
4791 * ar.c (glob_pattern_p): New function, snarfed from glob/glob.c.
4792 (ar_glob): Call it; return nil immediately if MEMBER_PATTERN
4793 contains no metacharacters.
4795 Wed Jun 9 16:25:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4797 * ar.c (ar_glob{_match,_alphacompare}): New function.
4799 * dep.h [! NO_ARCHIVES]: Declare it.
4800 * read.c (multi_glob) [! NO_ARCHIVES]: Use it on archive member elts.
4802 * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
4803 multi_glob (which doesn't take a 3rd arg).
4804 * rule.c (install_pattern_rule): Likewise.
4805 * default.c (set_default_suffixes): Here too.
4806 * function.c (string_glob): Don't pass gratuitous arg to multi_glob.
4808 * read.c (parse_file_seq) [! NO_ARCHIVES]: Add post-processing
4809 loop to translate archive refs "lib(a b)" into "lib(a) lib(b)".
4811 Mon Jun 7 19:26:51 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4813 * compatMakefile (installdirs): Actually pass directory names.
4814 ($(bindir)/$(instname)): Test chgrp&&chmod exit status with `if';
4815 if it fails, echo a warning msg, but don't make the rule fail.
4817 * read.c (tilde_expand): New function, broken out of tilde_expand.
4818 (multi_glob): Call it.
4819 (construct_include_path): Expand ~ in directory names.
4820 * dep.h: Declare tilde_expand.
4821 * main.c (enter_command_line_file): Expand ~ at the start of NAME.
4822 (main): Expand ~ in -C args.
4823 * read.c (read_makefile): Expand ~ in FILENAME unless TYPE==2.
4825 Fri Jun 4 13:34:47 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4827 * main.c (decode_env_switches): Use xmalloc instead of alloca for ARGS.
4829 * main.c (main): Put result of alloca in temporary variable with
4830 simple assignment, to make SGI compiler happy.
4832 Thu Jun 3 20:15:46 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4836 * main.c (main): Before re-execing, remove intermediate files, and
4837 print the data base under -p. Sexier debugging message.
4839 * implicit.c (pattern_search): Allocate an extra copy of the name
4840 of a winning intermediate file when putting it in FOUND_FILES.
4842 Wed Jun 2 16:38:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4844 * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
4845 multi_glob (which doesn't take a 3rd arg).
4847 * dir.c (dir_contents_file_exists_p): When reading dirents, ignore
4848 chars within D_NAMLEN that are NULs.
4850 * main.c (decode_switches): Don't savestring ARGV[0] to put it
4852 For string switch, don't savestring `optarg'.
4853 (main): Don't free elts of makefiles->list that are "-".
4854 Use alloca'd rather than savestring'd storage for elts of
4855 makefiles->list that are temporary file names.
4856 * read.c (read_all_makefiles): Don't free *MAKEFILES.
4857 * file.c (enter_file): Don't strip `./'s.
4858 * main.c (enter_command_line_file): New function.
4859 (main): Use it in place of enter_file for command-line goals from
4860 other_files, and for old_files and new_files.
4862 Mon May 31 18:41:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4866 * compatMakefile (.SUFFIXES): Add .info.
4867 ($(infodir)/$(instname).info): Find make.info* in cwd if there,
4868 else in $srcdir. Use basename to remove dir name from installed name.
4870 Thu May 27 17:35:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4872 * implicit.c (pattern_search): When interning FOUND_FILES, try
4873 lookup_file first; if found, free the storage for our copy of the name.
4875 Wed May 26 14:31:20 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4879 * main.c (decode_switches): In usage msg, write `--switch=ARG' or
4880 `--switch[=OPTARG]' rather than `--switch ARG' or `--switch [ARG]'.
4882 Mon May 24 16:17:31 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4884 * rule.c (convert_suffix_rule): New function.
4885 (convert_to_pattern): Use it instead of doing all the work here
4887 For target suffix `.a', generate both the archive magic rule and
4890 * compatMakefile (distclean): Remove stamp-config.
4892 Sat May 22 16:15:18 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4896 * file.c (remove_intermediates): Don't write extra space after `rm'.
4898 * main.c (struct command_switch.type): Remove `usage_and_exit'.
4899 (print_usage_flag): New variable.
4900 (switches: --help): Make type `flag', to set print_usage_flag.
4901 (init_switches): Remove `usage_and_exit' case.
4902 (decode_switches): Likewise.
4903 (decode_switches): Print usage if print_usage_flag is set.
4904 When printing usage, die with status of BAD.
4905 (main): Die with 0 if print_version_flag.
4907 Fri May 21 16:09:28 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4911 Wed May 19 21:30:44 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4913 * compatMakefile (installdirs): New target.
4914 (install): Depend on it.
4916 Sun May 16 20:15:07 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4920 Fri May 14 16:40:09 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4922 * vpath.c (construct_vpath_list): In removal loop for DIRPATH==0,
4923 set LASTPATH to PATH, not NEXT.
4925 * dir.c (read_dirstream): Break out of loop after incrementing
4926 DS->buckets such that it reaches DIRFILE_BUCKETS; avoid trying to
4927 dereference DS->contents->files[DIRFILE_BUCKETS].
4929 * read.c (read_makefile): Clear no_targets after reading a
4930 targetful rule line.
4932 * main.c (main): If print_version_flag is set, exit after printing
4934 (switches): Change --version docstring to say it exits.
4936 * make.h [butterfly]: #undef POSIX.
4938 Wed May 12 15:20:21 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4942 * arscan.c (ar_scan) [! AIAMAG]: Don't declare LONG_NAME.
4943 [AIAMAG]: Pass TRUNCATE flag arg to (*FUNCTION), always zero.
4945 * function.c (handle_function): Use fatal instead of
4946 makefile_fatal when reading_filename is nil.
4948 * configure.in: Add AC_GETGROUPS_T.
4949 * job.c (search_path): Use GETGROUPS_T in place of gid_t.
4951 Sun May 9 15:41:25 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4955 Fri May 7 18:34:56 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4957 * function.c (handle_function): Fatal for unmatched paren.
4959 Thu May 6 16:13:41 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4963 * commands.c (handling_fatal_signal): New variable.
4964 (fatal_error_signal): Set it.
4965 * job.c (reap_children): Avoid nonreentrant operations if that is set.
4966 * make.h: Declare handling_fatal_signal.
4968 * expand.c (reference_variable): New function, snippet of code
4969 broken out of simple-reference case of variable_expand.
4970 (variable_expand): Use it for simple refs.
4971 (variable_expand): When checking for a computed variable name,
4972 notice a colon that comes before the final CLOSEPAREN. Expand
4973 only up to the colon, and then replace the pending text with a
4974 copy containing the expanded name and fall through to subst ref
4976 (variable_expand): Don't bother expanding the name if a colon
4977 appears before the first $.
4978 (expand_argument): Use alloca instead of savestring.
4979 (variable_expand): For subst ref, expand both sides of = before
4980 passing to [pat]subst_expand. Use find_percent instead of lindex
4981 to check the lhs for a %.
4983 Wed May 5 14:45:52 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4987 Mon May 3 17:00:32 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4989 * arscan.c (ar_name_equal) [AIAMAG]: Abort if TRUNCATED is nonzero.
4991 * read.c (read_makefile): Pass extra arg of 1 to parse_file_seq,
4994 Thu Apr 29 19:47:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4998 * arscan.c (ar_scan): New local flag var LONG_NAME. Set it when
4999 we read the member name in any of the fashions that allow it to be
5000 arbitrarily long. Pass its negation to FUNCTION.
5001 (describe_member): Take TRUNCATED from ar_scan and print it.
5002 (ar_name_equal): Take new arg TRUNCATED; if nonzero, compare only
5003 the first sizeof (struct ar_hdr.ar_name) chars.
5004 (ar_member_pos): Take TRUNCATED from ar_scan, pass to ar_name_equal.
5005 * ar.c (ar_member_date_1): Likewise.
5007 Wed Apr 28 21:18:22 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5009 * job.c (reap_children): Before calling start_job_command to start
5010 the next command line, reset C->remote by calling start_remote_job_p.
5012 Mon Apr 26 15:56:15 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5014 * arscan.c (ar_scan): New local var NAMEMAP.
5015 In loop, rename NAME to NAMEBUF; new var NAME is a pointer; new
5016 flag IS_NAMEMAP. When extracting the member name, always put a
5017 null at its end first. If the name is "//" or "/ARFILENAMES", set
5018 IS_NAMEMAP. If we have already read in NAMEMAP, and NAME looks
5019 like " /N", get full name from NAMEMAP+N.
5020 Else if NAME looks like "#1/N", read N chars from the
5021 elt data to be the full name. At end of loop, if IS_NAMEMAP, read
5022 the elt's data into alloca'd NAMEMAP.
5023 (ar_name_equal): #if 0 truncating code.
5025 * make.h: Don't declare vfork at all. It returns int anyway,
5026 unless <unistd.h> declared it; and we conflicted with some systems.
5028 * main.c (define_makeflags): If FLAGSTRING[1] is '-', define
5029 MAKEFLAGS to all of FLAGSTRING, not &FLAGSTRING[1]. Don't want to
5030 define it to something like "-no-print-directory".
5031 Use %g format instead of %f for floating-valued things.
5033 Thu Apr 22 18:40:58 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5035 * GNUmakefile (Makefile.in): Use a substitution ref on nolib-deps
5036 to change remote-%.dep to remote-stub.dep.
5038 Wed Apr 21 15:17:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5042 Fri Apr 16 14:22:22 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5044 * compatMakefile (install): Remove - prefix from chgrp+chmod.
5048 Thu Apr 15 18:24:07 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5050 * acconfig.h: New file; contains "#undef SCCS_GET" for autoheader.
5051 * configure.in: If /usr/sccs/get exists, define SCCS_GET to that,
5053 * default.c (default_variables): Set GET to macro SCCS_GET.
5055 * read.c (parse_file_seq): Take extra arg STRIP; strip `./' only
5056 if nonzero. I hope this is the last time this argument is added
5058 (read_makefile): Pass it 1 when parsing include file names.
5059 Pass it 1 when parsing target file names.
5060 Pass it 1 when parsing static pattern target pattern names.
5061 * rule.c (install_pattern_rule): Pass it 1 when parsing rule deps.
5062 * default.c (set_default_suffixes): Pass it 1 when parsing
5064 * function.c (string_glob): Pass it 0 here.
5066 Wed Apr 14 11:32:05 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5068 * misc.c (log_access): New function.
5069 ({init,user,make,child}_access): Call it.
5070 (child_access): Abort if !access_inited.
5072 * main.c (switches: --no-print-directory): Use 1 instead of -1 for
5073 single-letter option.
5074 (init_switches, decode_switches, define_makeflags): An option with
5075 no single-letter version is no longer indicated by a value of -1;
5076 instead a value that is !isalnum.
5077 (init_switches): Don't put such switches into the string, only
5078 into the long_option table.
5080 * make.h [!NSIG] [!_NSIG]: #define NSIG 32.
5082 * job.c [HAVE_WAITPID]: Remove #undef HAVE_UNION_WAIT. AIX's
5083 bsdcc defined WIF* to use union wait.
5085 * main.c (struct command_switch): Change member `c' to type int.
5086 (switches): Make const.
5087 (decode_switches): Use `const struct command_switch *'.
5088 (define_makeflags): Likewise.
5090 * default.c (default_suffix_rules): Add `-o $@' to makeinfo rules.
5092 Mon Apr 12 12:30:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5096 * configure.in (AC_HAVE_HEADERS): Check for string.h and memory.h.
5097 Removed AC_MEMORY_H.
5098 * make.h [USG, NeXT]: Don't test these.
5099 [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
5100 [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
5101 [! ANSI_STRING]: Put decls of bcopy et al here.
5102 [sparc]: Don't test this for alloca.h; HAVE_ALLOCA_H is sufficient.
5103 [HAVE_SIGSETMASK]: Test this rather than USG.
5104 [__GNU_LIBRARY__ || POSIX]: Don't #include <unistd.h> again.
5105 * main.c (main): Handle SIGCHLD if defined, and SIGCLD if defined.
5106 It doesn't hurt to do both if they are both defined, and testing
5108 * dir.c: Rationalize directory header conditionals.
5109 * arscan.c [HAVE_FCNTL_H]: Test this rather than USG || POSIX.
5111 * default.c (default_suffixes): Add `.txinfo'.
5112 (default_suffix_rules): Add `.txinfo.info' and `.txinfo.dvi' rules.
5114 * variable.c (try_variable_definition): Replace RECURSIVE flag
5115 with enum FLAVOR, which can be simple, recursive, or append.
5116 Recognize += as append flavor. Set new variable VALUE in a switch
5117 on FLAVOR. For append flavor, prepend the variable's old value.
5118 If the variable was previously defined recursive, set FLAVOR to
5119 recursive; if it was defined simple, expand the new value before
5120 appending it to the old value. Pass RECURSIVE flag to
5121 define_variable iff FLAVOR == recursive.
5123 * variable.c (try_variable_definition): Use alloca and bcopy for
5124 NAME, instead of savestring. Might as well use stack storage
5125 since we free it immediately anyway.
5127 Thu Apr 8 18:04:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5129 * job.c (start_waiting_jobs): Move decl of JOB outside of loop.
5131 * main.c (define_makeflags): Rename `struct flag' member `switch'
5132 to `cs', which is not a reserved word.
5134 Wed Apr 7 15:30:51 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5136 * job.c (new_job): Call start_waiting_jobs first thing.
5137 (start_waiting_job): Changed return type from void to int.
5138 Return 0 when putting the child on the waiting_jobs chain.
5139 (start_waiting_jobs): Don't check load and job_slots here.
5140 Always take a job off the chain and call start_waiting_job on it;
5141 give up and return when start_waiting_job returns zero.
5143 * main.c (define_makeflags: struct flag): Change member `char c' to
5144 `struct command_switch *switch'.
5145 (ADD_FLAG): Set that to CS instead of CS->c.
5146 If CS->c is -1, increment FLAGSLEN for the long name.
5147 When writing out FLAGS, handle FLAGS->switch->c == -1 and write
5148 the long name instead.
5150 * compatMakefile (stamp-config): New target of old config.h rule.
5151 Touch stamp-config after running config.status.
5152 (config.h): Just depend on stamp-config, and have empty commands.
5154 Mon Apr 5 20:14:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5156 * job.c [HAVE_WAITPID]: #undef HAVE_UNION_WAIT.
5158 * configure.in (AC_HAVE_FUNCS): Check for psignal.
5160 Fri Apr 2 17:15:46 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5162 * main.c (long_option_aliases): Remove "new"; it is already an
5163 unambiguous prefix of "new-file".
5165 Sun Mar 28 16:57:17 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5169 Wed Mar 24 14:26:19 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5171 * vpath.c (selective_vpath_search): When adding the
5172 name-within-directory at the end of NAME, and we don't add a
5173 slash, don't copy FILENAME in one char too far into NAME.
5175 * variable.c (define_automatic_variables): Find default_shell's
5176 length with strlen, not numerology.
5178 Wed Mar 17 20:02:27 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5180 * main.c (define_makeflags): Add the elts of a string option in
5181 reverse order, so they come out right when reversed again.
5183 Fri Mar 12 15:38:45 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5185 * compatMakefile (make.info): Use `-o make.info'.
5187 Thu Mar 11 14:13:00 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5189 * compatMakefile (REMOTE): Set to @REMOTE@; change comments to
5191 (objs): Replace remote.o with remote-$(REMOTE).o.
5192 (srcs): Replace remote.c with remote-$(REMOTE).c.
5193 (remote.o): Rule removed.
5195 * configure.in (REMOTE): Subst this in Makefile et al; default "stub".
5196 Use AC_WITH to grok --with-customs arg to set REMOTE=cstms.
5197 * GNUmakefile (build.sh.in): Filter out remote-% from objs list.
5198 * build.template (REMOTE): New var; set to @REMOTE@.
5199 (objs): Add remote-${REMOTE}.o.
5201 Wed Mar 10 15:12:24 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5205 * implicit.c (pattern_search): Fix "dependent"->"dependency" in
5206 "Rejecting impossible" -d msg.
5208 * file.c (file_hash_enter): New local vars {OLD,NEW}BUCKET. Store
5209 mod'd values there; never mod {OLD,NEW}HASH.
5211 Mon Mar 8 13:32:48 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5213 * remake.c [eta10]: Include <fcntl.h> instead of <sys/file.h>.
5215 * compatMakefile (VPATH): Set this to @srcdir@.
5216 (srcdir): Set this to $(VPATH).
5218 * main.c (main): New local var DIRECTORY_BEFORE_CHDIR. Save in it
5219 a copy of CURRENT_DIRECTORY after the first getcwd. Use it
5220 instead of CURRENT_DIRECTORY when chdir'ing back before re-execing.
5222 * remake.c (notice_finished_file): Pass missing SEARCH arg to f_mtime.
5224 * read.c (read_makefile): Remove extraneous arg to parse_file_seq.
5226 Mon Feb 22 14:19:38 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5228 * compatMakefile ($(infodir)/$(instname).info): Use , instead of /
5229 as the sed delimiter char.
5231 Sun Feb 21 14:11:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5235 * rule.h (struct rule): Removed `subdir' member.
5236 * rule.c (new_pattern_rule): No need to clear it.
5237 (count_implicit_rule_limits): Set the `changed' flag in each dep
5238 that refers to a nonexistent directory. No longer set rule-global
5239 `subdir' flag with that information.
5240 (print_rule_data_base): Don't record info on `subdir' flags.
5242 * implicit.c (pattern_search): Check the DEP->changed flag rather
5243 than the (now gone) RULE->subdir flag. Also test CHECK_LASTSLASH;
5244 if it is set, the file might exist even though the DEP->changed
5247 * rule.c (count_implicit_rule_limits): Pass "", not ".", as file
5248 name arg to dir_file_exists_p to check for existence of directory.
5250 * implicit.c (pattern_search): Inside dep-finding loop, set
5251 CHECK_LASTSLASH from the value recorded in CHECKED_LASTSLASH[I],
5252 rather than computing it anew.
5254 * commands.c (set_file_variables): Must alloca space for PERCENT
5255 and copy it, to avoid leaving the trailing `)' in the value.
5257 * misc.c (remove_comments): Fixed backslash-checking loop
5258 condition to allow it to look at the first char on the line.
5259 P2 >= LINE, not P2 > LINE.
5261 * compatMakefile ($(bindir)/$(instname)): Before moving $@.new to
5262 $@, rm $@.old and mv $@ to $@.old.
5264 * variable.c (try_variable_definition): Take new args FILENAME and
5265 LINENO. Fatal if the variable name is empty.
5266 * read.c (read_makefile): Change callers.
5267 * main.c (main): Likewise.
5269 * compatMakefile (group): Define to @KMEM_GROUP@, autoconf magic
5270 that configure will replace with the group owning /dev/kmem.
5272 Mon Feb 8 14:26:43 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5274 * vpath.c (vpath_search): Take second arg MTIME_PTR, pass thru to
5275 selective_vpath_search.
5276 (selective_vpath_search): Take second arg MTIME_PTR.
5277 If the dir cache thinks a file exists, stat it to make sure, and
5278 put the modtime in *MTIME_PTR.
5279 * remake.c (library_search): Take second arg MTIME_PTR.
5280 When we find a match, record its mtime there.
5281 Pass MTIME_PTR through to vpath_search to do same.
5282 (f_mtime): Pass &MTIME as new 2nd arg to {vpath,library}_search;
5283 store it in FILE->last_mtime if set nonzero.
5284 * implicit.c (pattern_search): Pass nil 2nd arg to vpath_search.
5286 * compatMakefile (remote.o): Prepend `$(srcdir)/' to `remote-*.c',
5287 so globbing looks somewhere it will find things.
5289 * compatMakefile ($(infodir)/$(instname).info): Install `make.info*'
5290 not `$(srcdir)/make.info*'; no need to use basename.
5292 Fri Feb 5 12:52:43 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5296 * compatMakefile (install): Add missing ;\s.
5298 Make -, @, and + prefixes on a pre-expanded command line affect
5299 all lines in the expansion, not just the first.
5300 * commands.h (struct commands): Replace `lines_recurse' member
5302 (COMMANDS_{RECURSE,SILENT,NOERROR}): New macros, bits to set in
5304 * commands.c (chop_commands): Set `lines_flags' instead of
5305 `lines_recurse'. Record not only + but also @ and - prefixes.
5306 * remake.c (notice_finished_file): Check the COMMANDS_RECURSE bit
5307 in FILE->cmds->lines_flags, rather than FILE->cmds->lines_recurse.
5308 * job.c (start_job_command): Replaced RECURSIVE and NOPRINT local
5309 var with FLAGS; initialize it to the appropriate `lines_flags' byte.
5310 Set CHILD->noerror if the COMMANDS_NOERROR bit is set in FLAGS.
5311 Set the COMMANDS_SILENT bit in FLAGS for a @ prefix.
5313 * remake.c (update_goal_chain): Set G->file to its prev after
5314 checking for G being finished, since that check needs to examine
5317 * configure.in (union wait check) [HAVE_WAITPID]: Try using
5318 waitpid with a `union wait' STATUS arg. If waitpid and union wait
5319 don't work together, we should not use union wait.
5323 * remake.c (update_goal_chain): When G->file->updated, move
5324 G->file to its prev. We aren't finished until G->file is nil.
5326 Thu Feb 4 12:53:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5328 * main.c (starting_directory): New global variable.
5329 (main): Set it to cwd after doing -Cs.
5330 (log_working_directory): Use it, rather than computing each time.
5331 * make.h: Declare it.
5333 * compatMakefile (SHELL): Define to /bin/sh for losing Unix makes.
5335 * main.c (decode_env_switches): Allocate (1 + LEN + 1) words for
5336 ARGV, rather than LEN words plus one byte.
5338 Wed Feb 3 18:13:52 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5340 * compatMakefile ($(bindir)/$(instname)): Put - before
5341 install_setgid command line, so its failure won't be an error.
5342 (infodir): New variable.
5343 (install): Depend on $(infodir)/$(instname).info.
5344 ($(infodir)/$(instname).info): New target.
5346 * read.c (read_makefile): If FILENAMES is nil when we see a line
5347 starting with a tab, don't treat it as a command. Just fall
5348 through, rather than giving an error.
5350 * read.c (read_makefile): If the NO_TARGETS flag is set when we see a
5351 command line, don't clear it before continuing. We want
5352 subsequent command lines to be ignored as well.
5354 * job.c (new_job): Before expanding each command line, collapse
5355 backslash-newline combinations that are inside var or fn references.
5357 Mon Feb 1 16:00:13 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5359 * compatMakefile (exec_prefix): Default to $(prefix), not /usr/local.
5361 * compatMakefile (make.info): Pass -I$(srcdir) to makeinfo.
5363 * job.c [POSIX] (unblock_sigs): Made global.
5364 [!POSIX] (unblock_sigs): Move defns to job.h.
5365 * job.h [POSIX] (unblock_sigs): Declare.
5367 Sun Jan 31 19:11:05 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5369 * read.c (read_makefile): In vpath parsing, after finding the
5370 pattern token, take entire rest of line as the search path, not
5371 just the next token.
5373 * compatMakefile (remote.o): Depend on remote-*.c.
5375 Thu Jan 28 16:40:29 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5377 * commands.c (set_file_variables): Don't define any F or D versions.
5378 * variable.c (define_automatic_variables): Define them here as
5379 recursively-expanded variables that use the dir and notdir funcs.
5381 * variable.c (target_environment): In v_default case, don't export
5382 o_default or o_automatic variables.
5384 * configure.in (union wait check): Remove ` and ' inside C code;
5385 they confuse the shell script.
5387 Mon Jan 25 13:10:42 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5391 * vpath.c (construct_vpath_list): When skipping further processing
5392 of an elt that is ".", don't also skip the code that pushes P past
5395 * compatMakefile (distclean): Don't remove make-*.
5397 * configure.in (HAVE_UNION_WAIT): Try to use WEXITSTATUS if it's
5398 defined. If one cannot use WEXITSTATUS with a `union wait'
5399 argument, we don't want to believe the system has `union wait' at all.
5401 * remake.c (update_file): Do nothing to print "up to date" msgs.
5402 (update_goal_chain): Do it here instead.
5403 Use the `changed' flag of each goal's `struct dep' to keep track
5404 of whether files_remade (now commands_started) changed around a
5405 call to update_file for that goal.
5406 When a goal is finished, and its file's update_status is zero (i.e.,
5407 success or nothing done), test the `changed' flag and give an "up
5408 to date" msg iff it is clear.
5409 * make.h (files_remade): Renamed to commands_started.
5410 * remake.c: Changed defn.
5411 (update_goal_chain): Changed uses.
5412 * job.c (start_job_command): Increment commands_started here.
5413 (reap_children): Not here.
5415 * remake.c (update_goal_chain): Don't do anything with files'
5416 `prev' members. update_file now completely handles this.
5418 * variable.c (target_environment): Don't expand recursive
5419 variables if they came from the environment.
5421 * main.c (define_makeflags): For flags with omitted optional args,
5422 store {"", 0} with ADD_FLAG. When constructing FLAGSTRING, a flag
5423 so stored cannot have more flags appended to the same word.
5425 Fri Jan 22 14:46:16 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5427 * variable.c (print_variable_set): In vars/bucket calculation,
5428 don't spuriously multiply by 100.
5432 * job.c [!HAVE_UNION_WAIT] (WTERMSIG, WCOREDUMP, WEXITSTATUS):
5433 Don't define if already defined.
5435 * remake.c (update_file): Don't keep track of the command_state before
5436 calling update_file_1. Remove local variable COMMANDS_FINISHED,
5437 and don't test it to decide to print the "is up to date" msg.
5438 Testing for files_remade having changed should always be sufficient.
5439 The old method lost when we are called in the goal chain run on a
5440 makefile, because the makefile's command_state is already
5441 `cs_finished' from the makefile chain run.
5443 * misc.c [HAVE_SETRE[GU]ID]: Test these to decl setre[gu]id.
5445 * configure.in: Rewrote wait checking.
5446 Use AC_HAVE_HEADERS to check for <sys/wait.h>.
5447 Use AC_HAVE_FUNCS to check for waitpid and wait3.
5448 Use a compile check to test just for `union wait'.
5449 * job.c: Rewrote conditionals accordingly.
5450 [HAVE_WAITPID]: Test this only to define WAIT_NOHANG.
5451 [HAVE_WAIT3]: Likewise.
5452 [HAVE_UNION_WAIT]: Test this to define WAIT_T and W*.
5454 * configure.in: Set CFLAGS and LDFLAGS before all checks.
5456 * dir.c: Add static forward decls of {open,read}_dirstream.
5458 Thu Jan 21 17:18:00 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5462 * job.c [NGROUPS_MAX && NGROUPS_MAX==0]: #undef NGROUPS_MAX.
5464 * compatMakefile (CFLAGS, LDFLAGS): Set to @CFLAGS@/@LDFLAGS@.
5465 * build.template (CFLAGS, LDFLAGS): Same here.
5466 * configure.in: AC_SUBST(CFLAGS) and LDFLAGS.
5467 Set them to -g if not defined in the environment.
5469 * remake.c (library_search): Use LIBNAME consistently, setting it
5470 only once, to be the passed name sans `-l'.
5471 Pass new var FILE to be modified by vpath_search.
5473 Mon Jan 18 14:53:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5477 * job.c (start_waiting_jobs): Return when job_slots_used is equal to
5480 * configure.in: Add AC_CONST for the sake of getopt.
5482 * read.c (read_makefile): Continue after parsing `override'
5483 directive, rather than falling through to lossage.
5484 Check for EOL or blank after "override define".
5486 * compatMakefile (.c.o, remote.o): Put $(CFLAGS) after other switches.
5488 Fri Jan 15 12:52:52 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5492 * main.c (define_makeflags): After writing everything into
5493 FLAGSTRING, only back up two chars if [-1] is a dash, meaning we
5494 just wrote " -". Always terminate the string at *P.
5496 * remake.c (library_search): When constructing names in std dirs,
5497 use &(*LIB)[2] for the stem, not LIBNAME (which points at the
5498 buffer we are writing into!).
5500 Thu Jan 14 13:50:06 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5502 * read.c (read_makefile): Set IN_IGNORED_DEFINE for "override
5503 define" when IGNORING is true.
5505 * compatMakefile (distclean): Remove config.status and build.sh.
5507 Wed Jan 13 16:01:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5511 * misc.c (xmalloc, xrealloc): Cast result of malloc/realloc to
5514 * arscan.c (ar_scan) [AIAMAG]: Cast read arg to (char *).
5516 * variable.c (define_automatic_variables): Override SHELL value for
5517 origin o_env_override as well as o_env.
5519 * GNUmakefile (build.sh.in): Don't replace %globobjs%. Instead,
5520 add the names of the glob objects (w/subdir) to %objs%.
5521 * build.template (globobjs): Removed.
5522 Take basename of $objs before linking.
5524 Tue Jan 12 12:31:06 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5528 * configure.in (AC_OUTPUT): Also edit build.sh.
5529 * build.template: New file.
5530 * GNUmakefile (build.sh.in): New rule to create it from build.template.
5531 (make-$(version).tar.Z): Depend on build.sh.in.
5533 * main.c (die): Call print_data_base if -p.
5534 (main): Don't call it here.
5536 * compatMakefile (defines): Add @DEFS@. configure should turn this
5537 into -DHAVE_CONFIG_H.
5539 Mon Jan 11 14:39:23 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5543 * misc.c (init_access): Surround with #ifdef GETLOADAVG_PRIVILEGED.
5544 ({make,user,child}_access) [! GETLOADAVG_PRIVILEGED]: Make no-op.
5545 * compatMakefile (install_setgid): New var, set by configure.
5546 (install): Install setgid $(group) only if $(install_setgid) is true.
5548 Fri Jan 8 15:31:55 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5550 * job.c (load_too_high): If getloadavg fails with errno==0, give a
5551 message saying that load limits are not supported.
5553 * vpath.c (construct_vpath_list): Rewrote path deletion code to
5554 not try to use PATH's next link after freeing PATH.
5556 * main.c (define_makeflags): Rewritten; now handles string-valued
5557 option, and has no arbitrary limits.
5558 (switches): Set `toenv' flag for -I and -v.
5560 * main.c (decode_env_switches): Cast return value of alloca to char *.
5562 * misc.c (child_access) [HAVE_SETREUID, HAVE_SETREGID]: Use
5563 setre[gu]id in place of set[gu]id.
5565 Wed Jan 6 15:06:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5567 * main.c (main): Define MAKEOVERRIDES, MAKE, and MAKE_COMMAND with
5570 * make.h [POSIX]: Don't test this to use ANSI_STRING.
5571 Testing STDC_HEADERS should be sufficient.
5573 * job.h: Declare start_waiting_jobs.
5575 * read.c (read_makefile): Add missing parens in if stmt that find
5576 conditional directives.
5578 * main.c (main): Declare init_dir.
5579 * implicit.c (pattern_search): Always use two % specs in a
5580 DEBUGP2, and always pass two non-nil args.
5581 Cast field width args to int.
5582 Add missing parens in !RULE->subdir if stmt.
5583 * function.c (expand_function, patsubst_expand): Add parens around
5584 assignments inside `while' stmts.
5585 * commands.c (print_commands): Cast field width args to int.
5587 * read.c (do_define): Cast return value of alloca to (char *).
5589 * main.c (init_switches): New function, broken out of decode_switches.
5590 (decode_switches): Take new arg ENV. If set, ignore non-option
5591 args; print no error msgs; ignore options with clear `env' flags.
5592 (decode_env_switches): Rewritten to chop envar value into words
5593 and pass them to decode_switches.
5594 (switches): Set `env' flag for -I and -v.
5596 * dir.c (init_dir): Cast free to __glob_closedir_hook's type.
5598 Tue Jan 5 14:52:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5602 * job.c [HAVE_SYS_WAIT || !USG]: Don't #include <sys/time.h> and
5603 <sys/resource.h>. <sys/time.h> interacts badly with <time.h>, and
5604 we don't need these anyway.
5606 * configure.in (AC_HAVE_FUNCS): Check for setre[gu]id.
5607 * misc.c ({user,make}_access): Test #ifndef HAVE_SETRE[GU]ID, not
5608 #ifdef POSIX || USG. SunOS 4.1 is supposedly POSIX.1 compliant,
5609 but its set[gu]id functions aren't; its setre[gu]id functions work.
5611 * misc.c ({user,make,child}_access): Give name of caller in error msgs.
5613 * job.c (load_too_high): Say "cannot enforce load limit" in error msg.
5615 * configure.in: Call AC_PROG_CC.
5616 * compatMakefile (CC): Define to @CC@ (autoconf magic).
5618 * compatMakefile: Add .NOEXPORT magic target.
5620 Mon Jan 4 17:00:03 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5622 * main.c (print_version): Updated copyright to include 93.
5624 Thu Dec 31 12:26:15 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5626 * make.h [_AIX]: Don't declare alloca.
5628 Tue Dec 29 13:45:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5632 * compatMakefile (objs): Add signame.o.
5633 (srcs): Add signame.[ch].
5635 * compatMakefile (srcs): Add config.h.in.
5636 (remote.o): Add -I. before -I$(srcdir).
5638 Mon Dec 28 15:51:26 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5642 * read.c (readline): Fatal when LEN==0, indicating a line starting
5644 (readline): Take new arg LINENO, for use in error msg.
5645 (read_makefile, do_define): Pass it.
5647 * compatMakefile (glob/libglob.a): Pass -DHAVE_CONFIG_H in CPPFLAGS.
5648 (.c.o): Add -I. before -I$(srcdir).
5650 Wed Dec 23 12:12:04 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5652 * read.c (read_makefile): Accept and ignore a rule with no targets.
5654 * compatMakefile (ALLOCA_SRC): New variable.
5655 (srcs): Include its value.
5657 * read.c (struct conditional): Renamed member `max_ignoring' to
5658 `allocated'; added new member `seen_else'.
5659 (conditional_line): Initialize seen_else flag when starting an `if...';
5660 set it when we see an `else'; fatal if set when we see `else'.
5661 (read_makefile): Fatal "missing `endif'" if there are any pending
5662 conditionals, not just if we are still ignoring.
5664 Tue Dec 22 15:36:28 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5666 * compatMakefile (manext): Set to 1, not l.
5667 ($(mandir)/$(instname).$(manext)): Use $(srcdir) for make.man in cmds.
5669 * file.c (file_hash_enter): Don't call uniquize_deps here.
5670 * read.c (record_files): Likewise.
5671 * implicit.c (pattern_search): Likewise.
5672 * commands.c (set_file_variables): Call it only here.
5674 * default.c (default_variables) [__convex__]: FC=fc.
5676 * variable.c (target_environment): Expand the values of recursively
5677 expanded variables when putting them into the environment.
5678 * expand.c (recursively_expand): Made global.
5679 * make.h (recursively_expand): Declare it.
5681 * remake.c (check_dep): Set FILE->command_state to cs_deps_running
5682 when a dep's command_state is cs_running or cs_deps_running.
5684 * read.c (read_makefile): Changed error msg for spurious cmds to
5685 not say "first target".
5687 Sun Dec 20 17:56:09 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5689 * configure.in: Do AC_CONFIG_HEADER right after AC_INIT.
5690 * make.h (HAVE_CONFIG_H): #include "config.h", then #define this.
5691 * compatMakefile (config.h, configure, config.h.in): New rules.
5692 (defines): Removed @DEFS@.
5694 Thu Dec 17 16:11:40 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5696 * compatMakefile (realclean): Just depend on distclean; no cmds.
5697 (distclean): Do what realclean did before; also remove Makefile and
5698 config.h; don't remove configure.
5699 (info, dvi): New targets; depend on make.{info,dvi}.
5700 (doc): Removed target.
5701 (MAKEINFO, TEXI2DVI): New vars.
5702 (make.info, make.dvi): Use them instead of explicit cmds.
5704 Wed Dec 16 16:25:24 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5706 * configure.in: Added fcntl.h to AC_HAVE_HEADERS. getloadavg cares.
5708 Wed Dec 9 15:21:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5710 * main.c (long_option_aliases): Add --new-file alias for -W.
5712 * default.c (default_variables): Change all C++ to CXX and C++FLAGS
5715 * read.c (do_define): Expand the variable name before using it.
5717 * main.c (main): Define variable "MAKE_COMMAND" to argv[0];
5718 define "MAKE=$(MAKE_COMMAND) $(MAKEOVERRIDES)" always.
5720 * remake.c (library_search): Search for libNAME.a in cwd; look in
5721 vpath before looking in standard dirs, not after.
5722 Changed order of std dirs to: /lib, /usr/lib, ${prefix}/lib.
5724 Mon Nov 23 14:57:34 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5726 * default.c (default_pattern_rules, default_terminal_rules): Added
5727 brackets around initializers.
5729 * variable.c (try_variable_definition): Don't check for LINE[0]=='\t'.
5730 (try_variable_definition): Expand the name before defining the var.
5732 * job.c (init_siglist): Removed function.
5733 Removed decl of `sys_siglist'.
5734 * make.h [! HAVE_SYS_SIGLIST]: #include "signame.h".
5735 [HAVE_SYS_SIGLIST && !SYS_SIGLIST_DECLARED]: Declare sys_siglist
5736 only under these conditions.
5737 * main.c (main): Don't declare init_siglist.
5738 (main) [! HAVE_SYS_SIGLIST]: Call signame_init instead of init_siglist.
5740 Wed Nov 18 14:52:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5742 * read.c (record_files): Don't try to append to FIRSTDEPS if it's
5743 nil; instead just set it to MOREDEPS.
5745 Mon Nov 16 17:49:17 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5747 * vpath.c (construct_vpath_list): Initialize P to DIRPATH before
5748 loop that sets MAXELEM.
5750 Fri Nov 13 18:23:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5754 Thu Nov 12 15:45:31 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5756 * job.c (start_job_command): Under -n, increment files_remade after
5757 processing (i.e., printing) all command lines.
5759 Tue Nov 10 15:33:53 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5761 * read.c (record_files): Append new deps if this rule has no
5762 commands; prepend them to existing deps if this rule has no commands.
5764 * dir.c (open_dirstream): Return nil if DIR->contents->files is nil.
5766 * read.c (parse_file_seq): Removed last arg STRIP. Always strip `./'s.
5767 (read_makefile): Changed callers.
5768 * function.c (string_glob): Likewise.
5769 * rule.c (install_pattern_rule): Likewise.
5771 Mon Nov 9 17:50:16 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5773 * remake.c (files_remade): Made global.
5774 (notice_finished_file): Don't increment files_remade here; this
5775 function gets called in many situations where no remaking was in
5777 * job.c (reap_children): Do it here instead, when we know that
5778 actual commands have been run for the file.
5779 * make.h (files_remade): Declare it.
5781 Thu Nov 5 18:26:10 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5783 * vpath.c (construct_vpath_list): Allow blanks as well as colons to
5784 separate elts in the search path.
5786 * read.c (read_makefile): Don't fatal on extra tokens in `vpath'.
5787 The search path can contain spaces now.
5789 Tue Nov 3 20:44:32 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5791 * compatMakefile (check): New target; no-op.
5793 * file.c (file_hash_enter): Mod OLDHASH by FILE_BUCKETS after
5794 testing for OLDHASH==0 but before using the value.
5795 (rename_file): Don't mod OLDHASH by FILE_BUCKETS before passing it
5798 * file.c (rename_file): Notice when OLDFILE->cmds came from
5799 default.c, and don't try to print ->filename in that case.
5801 Sun Oct 25 01:48:23 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5803 * remake.c (update_file): Don't process F->also_make here.
5804 (notice_finished_file): Don't process FILE->also_make if no attempt
5805 to update FILE was actually made.
5806 Fixed to call f_mtime directly to refresh their modtimes.
5808 Sat Oct 24 22:08:59 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5810 * read.c (find_percent): Don't increment P again after skipping
5813 * expand.c (variable_expand): In call to patsubst_expand, don't
5814 find `%'s ourselves; let that function do it.
5816 * read.c (read_makefile: record_waiting_files): Don't call
5817 record_files if FILENAMES is nil.
5818 (read_makefile): All alternatives in the parsing, except for rule
5819 lines, fall through to the end of the loop. At the end of the
5820 loop, do record_waiting_files so we notice later spurious cmds.
5822 Fri Oct 23 15:57:37 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5824 * variable.c (define_automatic_variables): Free old value of SHELL
5825 before replacing it.
5827 Thu Oct 15 18:57:56 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5829 * compatMakefile (.c.o): Add -I$(srcdir)/glob to flags.
5831 * dir.c (open_dirstream): Cast return value to __ptr_t.
5833 * default.c (default_variables: "GET") [_IBMR2]: Use USG defn.
5835 * make.h (MAXPATHLEN): Moved out of #ifndef POSIX.
5836 (GET_PATH_MAX): Moved from #ifdef POSIX to #ifdef PATH_MAX #else.
5837 Define as (get_path_max ()).
5838 [! PATH_MAX] (NEED_GET_PATH_MAX): Define.
5839 [! PATH_MAX] (get_path_max): Declare fn.
5840 * misc.c [NEED_GET_PATH_MAX] (get_path_max): New function.
5842 Mon Oct 12 13:34:45 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5846 * job.c (sys_siglist): Only declare #ifndef SYS_SIGLIST_DECLARED.
5847 * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
5848 SYS_SIGLIST_DECLARED.
5850 * dir.c (file_impossible): When initializing DIR->contents, set
5851 DIR->contents->dirstream to nil.
5853 * compatMakefile (GLOB): Define new variable.
5854 (objs): Use it, rather than glob/libglob.a explicitly.
5856 * read.c (parse_file_seq): When stripping "./", handle cases like
5857 ".///foo" and "./////".
5858 * file.c (lookup_file, enter_file): Likewise.
5860 Sun Oct 11 17:00:35 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5862 * dir.c (struct dirstream, {open,read}_dirstream): New
5863 data type and functions to read a directory sequentially.
5864 (init_dir): New function to hook it into glob.
5865 * main.c (main): Call init_dir.
5867 * compatMakefile (objs): Added glob/libglob.a.
5868 * configure.in: Remove code to test for glob.
5870 Fri Oct 9 12:08:30 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5872 * read.c (record_files): Generalized test for NAME pointing
5873 somewhere into F->name.
5875 * variable.c (define_variable_in_set): Free old value when replacing.
5877 * read.c (do_define): Free the linebuffer before returning.
5878 (record_files): When clearing .SUFFIXES deps, free their data.
5879 (multi_glob): Free OLD and its data when replacing it with results
5882 * commands.c (set_file_variables): Use alloca in place of xmalloc
5883 for temp space for $^, $?, et al.
5885 * dir.c (struct directory): New member `contents' replaces `files'
5887 (struct directory_contents): New type.
5888 (directories_contents): New hash table.
5889 (dir_struct_file_exists_p): Take a struct directory_contents.
5890 (dir_file_exists_p): Pass it the `contents' member of the dir found.
5891 (dir_struct_file_exists_p): Renamed to dir_contents_file_exists_p;
5892 made static. Return 0 if DIR is nil (meaning it couldn't be stat'd).
5893 (dir_file_exists_p, find_directory): Change all callers.
5894 (file_impossible): Use DIR->contents, initializing it if nil.
5895 (print_dir_data_base): Use DIR->contents, and print out device and
5896 inode numbers with each directory.
5898 * Changes for performance win from John Gilmore <gnu@cygnus.com>:
5899 * dir.c (DIRECTORY_BUCKETS): Increase to 199.
5900 (DIRFILE_BUCKETS): Decrease to 107.
5901 (find_directory): Allocate and zero a multiple of
5902 sizeof (struct dirfile *), not of sizeof (struct dirfile).
5903 (dir_struct_file_exists_p): New function, nearly all code from
5905 (dir_file_exists_p): Just call find_directory+dir_struct_file_exists_p.
5906 * vpath.c (selective_vpath_search): Remove redundant
5907 dir_file_exists_p call.
5909 * configure.in: Comment out glob check; always use our code.
5911 Fri Oct 2 19:41:20 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5913 * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
5914 HAVE_SYS_SIGLIST; after doing #define sys_siglist _sys_siglist, we
5917 Wed Sep 30 19:21:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5919 * main.c (main): Don't do -w automatically if -s.
5921 Tue Sep 29 21:07:55 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5923 * main.c (printed_version): Move variable inside print_version.
5924 (print_version): Return immediately if printed_version is set.
5925 (die): Don't test printed_version here.
5926 (decode_switches): Under -v, do print_version before giving usage.
5927 (DESCRIPTION_COLUMN): New macro.
5928 (decode_switches): Use it when printing the usage message.
5929 Leave at least two spaces between options and their descriptions.
5931 Fri Sep 25 13:12:42 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5935 Wed Sep 16 16:15:22 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5937 * read.c (read_makefile): Save errno value from trying to open
5938 FILENAME, and restore it before erring; otherwise we get the errno
5939 value from the last elt of the search path.
5941 Tue Sep 15 15:12:47 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5943 * main.c (long_option_aliases): Add --stop for -S.
5945 * read.c (word1eq): Do strncmp before dereferencing someplace that
5946 may be out in space.
5948 Wed Sep 9 15:50:41 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5950 * remake.c (notice_finished_file): If all the command lines were
5951 recursive, don't do the touching.
5953 * job.c (start_job_command): Don't check for + here.
5954 * commands.c (chop_commands): Do it here instead.
5956 * default.c (default_terminal_rules): Prepend + to cmds for RCS.
5958 Wed Sep 2 17:53:08 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5960 * compatMakefile (objs): Include $(ALLOCA).
5962 * make.h [CRAY]: Move #define signal bsdsignal to before #includes.
5964 Thu Aug 27 17:45:43 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
5966 * read.c (default_include_directories): Add INCLUDEDIR first.
5967 * compatMakefile (includedir): Define.
5968 (defines): Add -D for INCLUDEDIR="$(includedir)".
5970 * read.c (read_makefile): Grok multiple files in `include';
5973 * remake.c (library_search): New function.
5974 (library_file_mtime): Remove function.
5975 (f_mtime): Use library_search instead of library_file_mtime.
5976 * compatMakefile (libdir): Define.
5977 (defines): Add -D for LIBDIR="$(libdir)".
5978 * make.texinfo (Libraries/Search): Document change.
5980 * file.c (rename_file): Fix file_hash_enter call with missing arg.
5982 Wed Aug 26 17:10:46 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5986 * main.c (main): Set command_state to cs_finished for temp files
5987 made for stdin makefiles.
5989 * main.c (decode_switches): Don't tell getopt to return non-option
5991 Ignore an argument of `-'.
5993 Thu Aug 20 13:36:04 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5995 * job.c (start_job_command): If (touch_flag && !RECURSIVE), ignore
5996 the command line and go to the next.
5997 (notice_finished_file): Under -t, touch FILE.
5998 * remake.c (remake_file): Don't touch it here.
6000 Wed Aug 19 16:06:09 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6002 * function.c (pattern_matches): Use temporary for strlen (WORD)
6003 instead of two function calls.
6005 * compatMakefile (LOAD_AVG): Remove variable and comments.
6007 Tue Aug 18 14:58:58 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6009 * make.texinfo (Running): Node renamed to `make Invocation'.
6011 Fri Aug 14 12:27:10 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6013 * arscan.c (ar_name_equal): Don't compare [MAX-3..MAX] if
6016 Thu Aug 13 17:50:09 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6020 * main.c: Don't #include <time.h>; make.h already does.
6022 Mon Aug 10 17:03:01 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6024 * implicit.c (pattern_search): Fixed copying of suffix when building
6027 * function.c (expand_function: `shell'): Make sure BUFFER is
6028 null-terminated before replacing newlines.
6030 * compatMakefile (mandir): Use man$(manext), not always manl.
6032 Sun Aug 2 01:42:50 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6034 * rule.c (new_pattern_rule): Not static.
6035 * rule.h: Declare it.
6037 * file.c (file_hash_enter): New function, most code from rename_file.
6038 (rename_file): Call it.
6039 * file.h (file_hash_enter): Declare it.
6043 Thu Jul 30 15:40:48 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6045 * main.c (decode_switches): Handle usage_and_exit when building
6046 long options vector.
6048 * default.c (default_terminal_rules): Make RCS rules use $(CHECKOUT,v).
6049 (default_variables): Define CHECKOUT,v (hairy).
6051 * make.h [!HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
6052 sys_siglist to _sys_siglist.
6054 Sun Jul 26 16:56:32 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6056 * NEWS: Add header and tail copyright info like Emacs NEWS.
6058 * make.h [ANSI_STRING]: Don't #define index, rindex, bcmp, bzero,
6059 bcopy if already #define'd.
6060 [STDC_HEADERS] (qsort, abort, exit): Declare here.
6061 [! __GNU_LIBRARY__ && !POSIX]: Not here.
6063 * make.h [_AIX]: #pragma alloca first thing.
6065 * job.c (start_waiting_job): Set the command_state to cs_running
6066 when we queue a job on waiting_jobs.
6068 Fri Jul 24 02:16:28 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6070 * variable.c (define_automatic_variables): Use "" instead of nil
6073 Thu Jul 23 22:31:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6077 * main.c (struct command_switch.type): Add alternative usage_and_exit.
6078 (command_switches): Add -h/--help.
6080 Thu Jul 16 14:27:50 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6082 * GNUmakefile (make-$(version).tar.Z): Include NEWS, not CHANGES.
6083 * README.template: Mention NEWS.
6084 * CHANGES: Renamed to NEWS.
6086 * main.c [! STDC_HEADERS] [sun]: Don't declare exit.
6088 Tue Jul 14 18:48:41 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6090 * main.c (main): Set -o files' command_states to cs_finished.
6092 * rule.c (count_implicit_rule_limits): Decrement num_pattern_rules
6093 when tossing a rule.
6095 * main.c (main): Use alloca only in simple local var assignment,
6096 for braindead SGI compiler.
6098 * rule.c (print_rule_data_base): Barf if num_pattern_rules is
6099 inconsistent with the number computed when listing them.
6101 Mon Jul 13 17:51:53 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6103 * commands.c (set_file_variables): For $? and $^ elts that are archive
6104 member refs, use member name only.
6106 Fri Jul 10 00:05:04 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6108 * variable.h (struct variable.export): Add new alternative v_ifset.
6109 * variable.c (target_environment): Check for it.
6110 (define_automatic_variables): Set it for MAKEFILES.
6112 Thu Jul 9 21:24:28 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6114 * compatMakefile (objs): Remove getloadavg.o; $(extras) gets it.
6115 (remote.o): Use $(srcdir)/remote.c, not $remote.c<.
6116 (distclean, mostlyclean): New targets.
6118 Tue Jul 7 19:12:49 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6122 * compatMakefile (config.status): Remove rule.
6124 * job.c (start_waiting_job): Free C after using C->file, not before.
6126 Sat Jul 4 20:51:49 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6128 * commands.c, job.c, main.c, make.h, remote-cstms.c: Use #ifdef
6129 HAVE_* instead of #ifndef *_MISSING.
6130 * configure.in: Use AC_HAVE_FUNCS instead of AC_MISSING_FUNCS (gone).
6132 Thu Jul 2 18:47:52 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6134 * main.c (main): makelevel>0 or -C implies -w.
6136 Tue Jun 30 20:50:17 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6138 * file.c, job.c, function.c: Don't #include <errno.h>.
6139 make.h: Do it here instead.
6140 * arscan.c (ar_member_touch): Don't declare errno.
6142 Thu Jun 25 17:06:55 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6144 * GNUmakefile (make-$(version).tar.Z): Depend on INSTALL, configure.in.
6146 * remake.c (update_file): If commands or deps are running after
6147 update_file_1 returns, break out of the :: rule (->prev) loop and
6150 * job.c (job_next_command): New function; code from start_job.
6151 (start_job_command): Renamed from start_job. Call job_next_command
6152 and recurse for empty command lines and -n.
6153 (start_waiting_job): Call start_job_command, not start_job.
6154 (new_job): Call job_next_command to prime the child structure, and
6155 then call start_waiting_job.
6156 (reap_children): Use job_next_command and start_job_command.
6157 (start_waiting_job): Call start_remote_job_p here, and store its
6158 result in C->remote. If zero, check the load average and
6159 maybe put C on waiting_jobs.
6160 (start_job_command): Test CHILD->remote rather than calling
6161 start_remote_job_p. Don't do load avg checking at all here.
6163 * main.c (main): Don't handle SIGILL, SIGIOT, SIGEMT, SIGBUS,
6164 SIGSEGV, SIGFPE or SIGTRAP.
6166 * compatMakefile (glob/libglob.a): Don't pass srcdir to sub-make.
6167 configure will set it in glob/Makefile.
6169 Wed Jun 24 19:40:34 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6171 * dir.c [DIRENT] (direct): Don't define to dirent.
6172 [! DIRENT] (direct): Define to dirent.
6173 (dir_file_exists_p): Use struct dirent instead of struct direct.
6175 * make.h (getcwd): No space between macro and ( for args!
6177 * job.c (start_job): Don't put the job on waiting_jobs if
6180 * make.texinfo (Missing): Shortened title.
6182 Tue Jun 23 18:42:21 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6184 * file.c (remove_intermediates): Print "rm" commands under -n.
6186 Mon Jun 22 16:20:02 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6190 Fri Jun 19 16:20:26 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6192 * arscan.c [M_UNIX]: #undef M_XENIX.
6194 Wed Jun 17 17:59:28 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6196 * default.c (default_terminal_rules): Put @ prefix on RCS cmds.
6198 Tue Jun 16 19:24:17 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6200 * compatMakefile (getloadavg.o): Removed special rule.
6201 (CFLAGS): Don't include $(defines).
6202 (.c.o): Define suffix rule.
6203 (glob/libglob.a): Pass CPPFLAGS=$(defines) to submake.
6204 (GETOPT_SRC, srcs, tagsrcs): Prefix files with $(srcdir)/.
6206 * arscan.c (ar_name_equal): Moved local vars inside #if'd block.
6208 * make.h (max): Removed.
6209 * expand.c (variable_buffer_output): Don't use it.
6211 * compatMakefile (INSTALL): Define.
6212 (Makefile): New rule to make from Makefile.in.
6215 (getloadavg.o, remote.o): Use autoconf $foo< hack.
6217 * commands.c (fatal_error_signal): Removed return.
6219 Mon Jun 15 17:42:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6223 * make.texinfo (Summary): New node.
6224 (Special Targets): Mention .EXPORT_ALL_VARIABLES here.
6226 * variable.c (max): Moved to make.h.
6228 * compatMakefile (objs, srcs): Added ar & arscan.
6230 * job.c (start_waiting_job): New function, 2nd half of new_job.
6232 (start_waiting_jobs): New function.
6233 * remake.c (update_goal_chain): Call start_waiting_jobs at the top
6235 * compatMakefile (objs, srcs): Removed load, added getloadavg.
6237 Fri Jun 12 19:33:16 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6239 * job.c (load_too_high): New function. Uses getloadavg.
6240 (waiting_jobs): New variable.
6241 (start_job): Don't call wait_to_start_job. Instead, if
6242 load_too_high returns nonzero, add the child to the
6243 `waiting_jobs' chain and return without starting the job.
6245 Thu Jun 11 00:05:28 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6247 * expand.c (variable_buffer_output): Made global again.
6248 * variable.h: And declare it.
6250 * arscan.c (PORTAR): Define for all systems if PORT5AR is not defined.
6251 (AR_NAMELEN, AR_TRAILING_SLASH): Removed.
6252 (ar_scan): Don't use it. Don't #ifdef AR_TRAILING_SLASH; just look
6253 for a slash in the archive at run time.
6254 (ar_name_equal): Rewrote .o hacking to not use AR_NAMELEN, and to
6255 cope with trailing-slash and non-trailing-slash archives.
6257 * main.c (main) [! SETVBUF_REVERSED]: Test this instead of USGr3 et al.
6258 [SETVBUF_REVERSED]: Always allocate a buffer ourselves.
6260 * load.c (load_average) [sgi]: Use sysmp call.
6262 * compatMakefile (INSTALL_DATA, INSTALL_PROGRAM): Define.
6263 ($(bindir)/$(instname), $(mandir)/make.$(manext)): Use them.
6265 * make.h [HAVE_VFORK_H]: #include <vfork.h>.
6266 (vfork, VFORK_NAME): Don't define.
6267 * job.c (start_job): Use "vfork" in place of VFORK_NAME.
6269 * make.h [HAVE_LIMITS_H, HAVE_SYS_PARAM_H]: If #define'd, #include
6270 the each file. Rearranged PATH_MAX hacking.
6271 * job.c: Rearranged NGROUPS_MAX hacking.
6273 * remake.c (fstat, time): Don't declare.
6275 * compatMakefile (defines): Value is @DEFS@.
6276 (LOADLIBES): Value is @LIBS@.
6277 (extras): Value is @LIBOBJS@.
6278 (ARCHIVES, ARCHIVES_SRC, ALLOCASRC): Removed.
6279 * arscan.c, ar.c: Surround body with #ifndef NO_ARCHIVES.
6281 * misc.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl get*id.
6283 * make.h [GETCWD_MISSING]: Test instead of !USG && !POSIX et al.
6284 (getcwd): Just declare if present. If not, declare as a macro
6285 using getwd, and declare getwd.
6286 [PATH_MAX] (GET_PATH_MAX): #define to PATH_MAX.
6287 * main.c (main, log_working_directory): Use getcwd instead of getwd.
6289 * main.c (main) [SETLINEBUF_MISSING]: Test this instead of USG.
6291 * make.h (SIGHANDLER, SIGNAL): Removed.
6292 (RETSIGTYPE): Define if not #define'd.
6293 * main.c (main): Use signal in place of SIGNAL.
6295 * main.c [SYS_SIGLIST_MISSING]: Test instead of USG.
6297 * job.c (search_path) [GETGROUPS_MISSING]: Test instead of USG.
6298 [HAVE_UNISTD_H]: Test instead of POSIX to not decl getgroups.
6300 * main.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl chdir.
6301 [! STDC_HEADERS]: Test instead of !POSIX to decl exit & atof.
6303 * job.c (child_handler), commands.c (fatal_error_signal): Return
6304 RETSIGTYPE instead of int.
6305 * main.c (main): Declare fatal_error_signal and child_handler here
6306 to return RETSIGTYPE; removed top-level decl of former.
6308 * commands.c (fatal_error_signal), job.c (unblock_sigs, start_job),
6309 main.c [SIGSETMASK_MISSING]: Test this instead of USG.
6311 Wed Jun 10 22:06:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6313 * job.c [HAVE_WAITPID]: Test this instead of USG.
6314 [! HAVE_UNISTD_H]: Test this instead of !POSIX to declare misc fns.
6315 (GID_T): Don't #define.
6316 (search_path): Use gid_t instead of GID_T.
6317 [GETDTABLESIZE_MISSING, SYS_SIGLIST_MISSING, DUP2_MISSING]: Test
6318 these individually instead of USG for all.
6319 * make.h (ctime): Don't declare. #include time.h instead.
6320 [HAVE_UNISTD_H]: #include <unistd.h> and #define POSIX #ifdef
6322 * dir.c [__GNU_LIBRARY__] (D_NAMLEN): Define to use d_namlen member.
6323 * make.h [NEED_MEMORY_H]: Only include memory.h #ifdef this.
6325 * arscan.c: Removed #ifdef mess about string.h et al.
6326 Just #include make.h instead.
6327 * make.h (fstat, atol): Declare.
6329 * commands.c (fatal_error_signal): Don't use sigmask to check for
6330 propagated signals; use ||s instead.
6331 (PROPAGATED_SIGNAL_MASK): Removed.
6332 (fatal_error_signal) [POSIX]: Use sigprocmask in place of sigsetmask.
6334 * variable.c (variable_buffer, variable_buffer_length,
6335 initialize_variable_output, variable_output): Moved to expand.c;
6337 (struct output_state, save_variable_output,
6338 restore_variable_output): Removed.
6339 * expand.c (initialize_variable_output): Put a NUL at the beginning
6340 of the new buffer after allocating it.
6341 (allocated_variable_expand_for_file): Don't use
6342 {save,restore}_variable_output. Do it by hand instead, keeping
6343 state on the stack instead of malloc'ing it.
6344 (allocated_variable_expand): Removed.
6345 * variable.h (allocated_variable_expand): Define here as macro.
6346 (variable_buffer_output, initialize_variable_output,
6347 save_variable_output, restore_variable_output): Removed decls.
6349 * read.c (conditional_line): For an if cmd, if any elt of the
6350 conditionals stack is ignoring, just push a new level that ignores
6351 and return 1; don't evaluate the condition.
6353 Thu Jun 4 21:01:20 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6355 * main.c (main): Put #ifdef's around frobbing SIGSYS and SIGBUS.
6357 * job.c (getdtablesize): Don't declare or #define if already #define'd.
6359 Wed Jun 3 23:42:36 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6361 * file.c (snap_deps): If `.EXPORT_ALL_VARIABLES' is a target, set
6362 export_all_variables.
6363 * make.texinfo (Variables/Recursion): Document .EXPORT_ALL_VARIABLES.
6365 Tue Jun 2 21:08:35 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6369 * commands.c (set_file_variables): Calculate length for ^D and ?D
6370 individually, making sure to give them at least enough space for "./".
6372 * make.h [CRAY]: #define signal to bsdsignal.
6374 * default.c (default_variables) [CRAY]: Define PC, SEGLDR,
6375 CF77PPFLAGS, CF77PP, CFT, CF, and FC.
6377 * arscan.c (AR_HDR_SIZE): Define to sizeof (struct ar_hdr), if it
6378 wasn't defined by <ar.h>.
6380 Thu May 28 00:56:53 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6384 Tue May 26 01:26:30 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6386 * rule.c (new_pattern_rule): Initialize LASTRULE to nil, not
6389 Mon May 25 19:02:15 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6391 * main.c (decode_switches): Initialize all the long_option elt members.
6393 Thu May 21 16:34:24 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6395 * make.texinfo (Text Functions): Correct filter-out description.
6397 Tue May 19 20:50:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6399 * compatMakefile (realclean): Don't remove backup files.
6401 * main.c (decode_switches): Allocate ARGC+1 elts in `other_args'.
6403 Sun May 17 16:38:48 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6407 Thu May 14 16:42:33 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6409 * job.c (reap_children): Don't die if wait returns EINTR.
6411 Wed May 13 18:28:25 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6413 * job.c (reap_children): Always run the next command for a
6414 successful target. If we are going to die, we don't want to leave
6415 the target partially made.
6417 Tue May 12 00:39:19 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6419 * job.c (construct_command_argv_internal): After loop, if we only
6420 have one word, check it for being a shell command.
6422 * main.c (decode_switches): Allocate ARGC slots in other_args to
6423 begin with, so we never need to worry about growing it.
6424 If we get a non-option arg and POSIXLY_CORRECT is in the
6425 environment, break out of the loop. After the loop, add all remaining
6426 args to other_args list.
6428 * main.c (decode_switches): For positive_int and floating switches
6429 when optarg is nil, use next arg if it looks right (start with a
6430 digit, or maybe decimal point for floating).
6432 * variable.c (define_automatic_variables): Always set SHELL to
6433 default if it comes from the environment. Set its export bit.
6434 * make.texinfo (Environment): Document change.
6436 Mon May 11 00:32:46 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6440 * compatMakefile (tags, TAGS): Use vars for cmds.
6441 (ETAGS, CTAGS): Define.
6443 * main.c (decode_switches): If a switches elt has a nil long_name,
6444 make the long option name elt be "".
6445 Fixed loop to not ignore all the options.
6447 * make.texinfo (Option Summary): Added long options.
6449 * main.c (switches): Changed -m's description to "-b".
6450 (decode_switches): When printing the usage message, don't print
6451 switches whose descriptions start with -.
6452 When constructing the list of names for switch -C, search the
6453 switches vector for switches whose descriptions are "-C".
6455 * main.c (switches): Call -S --no-keep-going, not --dont-keep-going.
6456 Call -I --include-dir, not --include-path.
6457 (long_option_aliases): Added --new == -W, --assume-new == -W,
6458 --assume-old == -o, --max-load == -l, --dry-run == -n, --recon == -n,
6461 * main.c (switches): Removed bogus "silent" elt.
6462 (long_option_aliases): Define new var.
6463 (decode_switches): Add long_option_aliases onto the end of the long
6464 options vector created for getopt_long.
6465 Look through long_option_aliases for extra names to list
6468 Sat May 9 00:21:05 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6470 * main.c (log_working_directory): Fixed to properly not print the
6471 leaving message when we haven't printed the entering message.
6473 Fri May 8 21:55:35 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6475 * main.c (struct command_switch): Added elts `long_name',
6476 `description', and `argdesc'.
6477 (switches): Added initializers for new members.
6478 (decode_switches): Rewritten to use getopt_long.
6479 * compatMakefile (GETOPT, GETOPT_SRC): Define.
6480 (objs, srcs): Include them.
6482 * job.c (child_died): Renamed to dead_children; made static.
6483 (child_handler): Increment dead_children instead of setting child_died.
6484 (reap_children): Decrement dead_children instead of clearing
6485 child_died. The point of all this is to avoid printing "waiting
6486 for unfinished jobs" when we don't actually need to block.
6487 This happened when multiple SIGCHLDs before reap_children was called.
6489 * job.c (reap_children): If ERR is set, so we don't call start_job
6490 on the child being reaped, instead set its command_state to
6492 (reap_children, child_handler, new_job): I added several
6493 debugging printf's while fixing this. I left them in if (debug_flag)
6494 because they may be useful for debugging this stuff again.
6496 Wed May 6 22:02:37 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6498 * read.c (read_makefile): v_export is not 1.
6500 Mon May 4 17:27:37 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6504 * variable.c (export_all_variables): New variable.
6505 (target_environment): Export variables whose `export' member is
6506 v_default if export_all_variables is set and their names are benign.
6507 * variable.h: Declare export_all_variables.
6508 * read.c (read_makefile): If export or unexport is given with no
6509 args, set or clear export_all_variables, respectively.
6511 * variable.c (target_environment): Exclude MAKELEVEL in the loop,
6512 so it isn't duplicated when we add it at the end.
6514 Sun May 3 17:44:48 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6518 * variable.h (struct variable): Added new member `export'.
6519 * variable.c (define_variable_in_set): Initialize it to v_default.
6520 (target_environment): Don't check for .NOEXPORT.
6521 Export variables whose `export' member is v_default and that would
6522 have been exported under .NOEXPORT, and variables whose `export'
6524 (try_variable_definition): Return the variable defined.
6525 * variable.h (try_variable_definition): Changed decl.
6526 * read.c (read_makefile): Recognize `export' and `unexport' directives.
6528 Fri May 1 11:39:38 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6530 * main.c (main) [POSIX]: Reversed args to sigaddset.
6532 Thu Apr 30 17:33:32 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6534 * job.c [POSIX || !USG] (unblock_sigs): New fn.
6535 (start_job): Block signals before forking.
6536 (new_job): Unblock signals after putting the new child on the chain.
6537 * main.c (main) [POSIX]: Use sigset_t fatal_signal_set instead of
6538 int fatal_signal_mask.
6540 * load.c [sgi] (LDAV_CVT): Define.
6542 Wed Apr 29 17:15:59 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6546 * load.c (load_average) [sgi]: Clear the high bit of the address
6547 from the symbol table before looking it up in kmem.
6549 * misc.c (fatal, makefile_fatal): Put *** in fatal error messages.
6550 (remake_file): No longer needed in message here.
6552 * main.c (die): Call reap_children with BLOCK==1.
6554 Tue Apr 28 20:44:35 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6556 * rule.c (freerule): Don't set LASTRULE->next if LASTRULE is nil.
6558 Sun Apr 26 15:09:51 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6560 * rule.c (count_implicit_rule_limits): Initialize LASTRULE to nil,
6561 not to head of chain. Extract next ptr before we might do
6562 freerule, and use that for next iteration.
6563 (freerule): Still do next ptr frobbing if LASTRULE is nil.
6565 Tue Apr 21 03:16:29 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6567 * job.c (child_error): Removed extra %s from error msg format.
6571 * job.c (reap_children): Don't start later commands in a sequence
6574 * job.c (new_job): Always call reap_children with BLOCK==0 first thing.
6576 * job.c (reap_children): New function; work that used to be done in
6578 (child_died): New global var.
6579 (child_handler): Now just sets child_died.
6580 (wait_for_children): Removed.
6581 (unknown_children_possible, block_signals, unblock_signals,
6582 push_signals_blocked_p, pop_signals_blocked_p): Removed.
6583 (child_execute_job): Removed call to unblock_signals.
6584 (new_job): Removed calls to push_signals_blocked_p and
6585 pop_signals_blocked_p.
6586 * job.h: Declare reap_children, not wait_for_children.
6587 * commands.c (fatal_error_signal), job.c (new_job),
6588 load.c [LDAV_BASED] (wait_to_start_job), main.c (die),
6589 remake.c (update_goal_chain), function.c (expand_function: `shell'):
6590 Changed wait_for_children calls to reap_children.
6591 Some needed to be loops to wait for all children to die.
6592 * commands.c (fatal_error_signal), main.c (main,
6593 log_working_directory), function.c (expand_function): Removed calls
6594 to push_signals_blocked_p and pop_signals_blocked_p.
6595 * job.h: Removed decls.
6597 * job.h: Added copyright notice.
6599 Wed Apr 15 02:02:40 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6601 * job.c (child_error): No *** for ignored error.
6603 Tue Apr 14 18:31:21 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6605 * implicit.c (DEBUGP2): Use do ... while (0) instead of if ... else to
6606 avoid compiler warnings.
6608 * read.c (parse_file_seq): Don't remove ./ when it is followed by a
6611 Mon Apr 13 21:56:15 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6613 * make.h (DEBUGPR): Use do ... while (0) instead of if ... else to
6614 avoid compiler warnings.
6616 * remake.c (notice_finished_file): Run file_mtime on the also_make
6617 files, so vpath_search can happen.
6619 * GNUmakefile (tests): Use perl test suite from csa@sw.stratus.com.
6620 (alpha-files): Include test suite tar file.
6622 Fri Apr 3 00:50:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6626 Wed Apr 1 05:31:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6628 * remake.c (update_file, update_file_1): Do check_renamed on elts
6629 of dep chains when traversing them. Something unrelated might have
6630 renamed one of the files the dep chain points to.
6632 * file.c (rename_file): If FILE has been renamed, follow its
6633 `renamed' ptr, so we get to the final real FILE. Using the renamed
6634 ones loses because they are not in the hash table, so the removal
6635 code loops infinitely.
6637 * read.c (read_all_makefiles): Clobber null terminator into
6638 MAKEFILES expansion, so string passed to read_makefile is properly
6641 Mon Mar 30 20:18:02 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6643 * commands.c (set_file_variables): $* for archive member with
6644 explicit cmds is stem of member, not of whole `lib(member)'.
6646 Thu Mar 26 15:24:38 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6650 Tue Mar 24 05:20:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6652 * rule.c (new_pattern_rule): Rules are identical only if all their
6653 targets match (regardless of order).
6655 Wed Mar 11 13:49:54 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6657 * remake.c (remake_file): Changed error "no way to make" to "no
6658 rule to make". Fiat Hugh.
6660 * make.texinfo (Last Resort): Describe %:: rules and new .DEFAULT
6663 * remake.c (update_file_1): Only use .DEFAULT cmds if FILE is not a
6666 Tue Mar 10 18:13:13 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6668 * remote-stub.c, remote-cstms.c (start_remote_job): Take new arg,
6669 environment to pass to child.
6670 * job.c (start_job): Pass it.
6672 Mon Mar 9 19:00:11 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6674 * file.c (enter_file): Also strip ./s here, to get command-line
6677 * remote-cstms.c: Add comment telling people to leave me alone.
6679 * compatMakefile (manpage install): Remove target before copying.
6681 Tue Mar 3 18:43:21 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6683 * make.texinfo (Missing): Renamed to "Incompatibilities and ...".
6684 Added paragraph describing $? incompatibility with Unix and POSIX.2.
6686 Sun Mar 1 15:50:54 1992 Roland McGrath (roland@nutrimat.gnu.ai.mit.edu)
6688 * function.c (expand_function: `shell'): Don't declare fork or pipe.
6689 Use vfork instead of fork.
6691 Tue Feb 25 22:05:32 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6693 * make.texinfo (Chained Rules): Clarify .PRECIOUS to save
6696 * load.c [sun] (LDAV_CVT): Define to divide by FSCALE.
6698 Sun Feb 16 02:05:16 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6702 Sat Feb 15 17:12:20 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6704 * compatMakefile (makeinfo): Use emacs batch-texinfo-format fn.
6706 Fri Feb 14 00:11:55 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6708 * read.c (read_makefile): Correctly handle define & endef in ifdefs.
6710 * read.c (record_files): Pass arg for %s in error msg.
6712 * main.c (main) [__IBMR2, POSIX]: Use correct (a la USGr3) setvbuf
6715 Wed Feb 12 12:07:39 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6717 * make.texinfo (Libraries/Search): Say it does /usr/local/lib too.
6719 Sun Feb 9 23:06:24 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6721 * read.c (read_makefile): Check for extraneous `endef' when ignoring.
6723 Thu Feb 6 16:15:48 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6727 Tue Feb 4 20:04:46 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6729 * job.c (construct_command_argv_internal): Correctly ignore
6730 whitespace after backslash-NL.
6732 Fri Jan 31 18:30:05 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6734 * compatMakefile: Ignore errors from chgrp and chmod when installing.
6736 Wed Jan 29 18:13:30 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6738 * main.c (main): When setting MAKELEVEL in the env to re-exec,
6739 allocate space so as not to clobber past the end of the old string.
6741 * make.h [HAVE_ALLOCA_H]: Include <alloca.h>
6742 * compatMakefile (defines): Document HAVE_ALLOCA_H.
6744 Mon Jan 20 13:40:05 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6746 * make.h [VFORK_MISSING]: Use fork instead.
6747 * compatMakefile (defines): Document same.
6749 * job.c (construct_command_argv_internal): Don't create an empty
6750 arg if backslash-NL is at beginning of word.
6752 Sun Jan 19 16:26:53 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6754 * main.c [DGUX]: Call setvbuf as for USGr3.
6756 * job.c (construct_command_argv_internal): Notice correctly that
6757 backslash-NL is the end of the arg (because it is replaced with a
6760 Thu Jan 16 18:42:38 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6762 * job.c (construct_command_argv_internal): If SHELL is nil, set it
6763 to default_shell before proceeding.
6765 * make.h [sgi]: No alloca.h, after all.
6767 Wed Jan 15 12:30:04 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6769 * read.c (multi_glob): Cons up the chain of the results of glob
6770 from back to front, so it comes out in forward order.
6772 * job.c (construct_command_argv_internal): Don't eat char following
6775 Mon Jan 13 19:16:56 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6779 * default.c (default_variables) [ultrix]: GET=get, like USG.
6781 * job.c (construct_command_argv_internal): Remove tabs following
6782 backslash-NL combos in the input line, so they don't show up when
6783 that line is printed.
6785 * read.c (read_makefile): Don't collapse_continuations the line on
6786 input; do it on the copy we do remove_comments on.
6787 For rule lines, collapse_continuations the line after chopping
6788 ";cmds" off the end, so we don't eat conts in the cmds.
6789 Give error for ";cmds" with no rule.
6790 * job.c (construct_command_argv_internal): Eat backslash-NL combos
6791 when constructing the line to recurse on for slow, too.
6793 Sat Jan 11 02:20:27 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6795 * file.c (enter_file): Don't strip leading `./'s.
6796 * read.c (parse_file_seq): Take new arg STRIP; if nonzero, do it here.
6797 * default.c (set_default_suffixes), function.c (string_glob),
6798 read.c (read_makefile), rule.c (install_pattern_rule): Change callers.
6800 * default.c (default_variables) [_IBMR2]: FC=xlf
6802 * job.c (construct_command_argv_internal): Turn backslash-NL and
6803 following whitespace into a single space, rather than just eating
6806 * make.texinfo (Copying): @include gpl.texinfo, rather than
6807 duplicating its contents.
6809 Fri Nov 8 20:06:03 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6811 * job.c (construct_command_argv_internal): Make sure not to bother
6812 processing an empty line.
6816 * job.c (construct_command_argv_internal): Always recurse for slow;
6817 simple case didn't handle finding newlines.
6819 Tue Nov 5 18:51:10 1991 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6821 * job.c (construct_command_argv_internal): Set RESTP properly when
6822 slow; don't \ify past a newline.
6824 Fri Nov 1 19:34:28 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6826 * make.h [sgi]: #include <alloca.h>.
6830 See ChangeLog.1 for earlier changes.