1 2000-10-05 Paul D. Smith <psmith@gnu.org>
3 * acinclude.m4 (AM_LC_MESSAGES): Remove undefined macro
4 AM_LC_MESSAGES; it doesn't seem to do anything anyway??
6 * i18n/gl.po, configure.in (ALL_LINGUAS): New Galician translation.
8 2000-09-22 Paul D. Smith <psmith@gnu.org>
10 * gettext.c: Don't #define _GETTEXT_H here; we only include some
11 parts of the real gettext.h here, and we expect to really include
12 the real gettext.h later. If we keep this #define, it's ignored.
14 2000-09-21 Paul D. Smith <psmith@gnu.org>
16 * main.c (log_working_directory): Rework the text to use complete
17 sentences, to make life simpler for the translators.
19 2000-08-29 Paul D. Smith <psmith@gnu.org>
21 * file.c (remove_intermediates): Print a debug message before we
22 remove intermediate files, so the user (if she uses -d) knows
25 2000-08-21 Paul D. Smith <psmith@gnu.org>
27 * variable.c (try_variable_definition): Change how we handle
28 target-specific append variable defns: instead of just setting the
29 value, expand it as an append _but_ only within the current
30 target's context. Otherwise we lose all but the last value if the
31 variable is appended more than once within the current target
32 context. Fixes PR/1831.
34 2000-08-16 Paul D. Smith <psmith@gnu.org>
36 * function.c (func_shell): Nul-terminate the buffer before
37 printing an exec error message (just in case it's not!).
38 Fixes PR/1860, reported by Joey Hess <joey@valinux.com>.
40 2000-07-25 Paul D. Smith <psmith@gnu.org>
42 * job.c (construct_command_argv_internal): Add "~" to the list of
43 sh_chars[] which disallow optimizing out the shell call.
45 2000-07-23 Paul Eggert <eggert@twinsun.com>
47 * NEWS, make.texinfo: Document .LOW_RESOLUTION_TIME, which
48 supersedes --disable-nsec-timestamps.
49 * make.texinfo: Consistently use "time stamp" instead of "timestamp".
50 * README: Remove --disable-nsec-timestamps.
52 * filedef.h (struct file.low_resolution_time): New member.
53 * file.c (snap_deps): Add support for .LOW_RESOLUTION_TIME.
54 * remake.c (update_file_1):
55 Avoid spurious rebuilds due to low resolution time stamps,
56 generalizing the earlier code that applied only to archive members.
57 (f_mtime): Archive members always have low resolution time stamps.
59 * configure.in: Remove --disable-nsec-timestamps, as this has
60 been superseded by .LOW_RESOLUTION_TIME.
62 2000-07-23 Paul Eggert <eggert@twinsun.com>
64 * configure.in (enable_nsec_timestamps): Renamed from
65 make_cv_nsec_timestamps, since enable/disable options
68 2000-07-23 Bruno Haible <haible@clisp.cons.org>
69 and Paul Eggert <eggert@twinsun.com>
71 * file.c (file_timestamp_now):
72 Use preprocessor-time check for FILE_TIMESTAMP_HI_RES
73 so that clock_gettime is not linked unless needed.
75 * filedef.h (FILE_TIMESTAMP_HI_RES):
76 Remove definition; "configure" now does this.
78 * configure.in (jm_AC_TYPE_UINTMAX_T): Move up,
79 to before high resolution file timestamp check,
80 since that check now uses uintmax_t.
81 (FILE_TIMESTAMP_HI_RES): Define to nonzero if the code should use
82 high resolution file timestamps.
83 (HAVE_CLOCK_GETTIME): Do not define if !FILE_TIMESTAMP_HI_RES,
84 so that we don't link in clock_gettime unnecessarily.
86 2000-07-17 Paul D. Smith <psmith@gnu.org>
88 * i18n/ja.po: New version of the translation file.
90 2000-07-07 Paul D. Smith <psmith@gnu.org>
92 * remake.c (f_mtime): If NO_FLOAT is defined, don't bother with
93 the offset calculation.
94 (name_mtime): Replace EINTR test with EINTR_SET macro.
96 2000-07-07 Paul Eggert <eggert@twinsun.com>
100 * remake.c (update_file_1):
101 Avoid spurious rebuilds of archive members due to their
102 timestamp resolution being only one second.
103 (f_mtime): Avoid spurious warnings of timestamps in the future due to
104 the clock's resolution being lower than file timestamps'.
105 When warning about future timestamps, report only the discrepancy,
106 not the absolute value of the timestamp and the current time.
108 * file.c (file_timestamp_now): New arg RESOLUTION.
109 * filedef.h (file_timestamp_now): Likewise.
110 (FILE_TIMESTAMP_NS): Now returns int. All uses changed.
112 2000-07-05 Paul D. Smith <psmith@gnu.org>
114 * variable.c (lookup_variable) [VMS]: Remove vestigial references
115 to listp. Fixes PR/1793.
117 2000-06-26 Paul Eggert <eggert@twinsun.com>
119 * Makefile.am (MAINTAINERCLEANFILES): New macro, with stamp-pot in it.
121 * dir.c (vms_hash): Ensure ctype macro args are nonnegative.
123 * remake.c (f_mtime): Remove unused var memtime.
125 2000-06-25 Martin Buchholz <martin@xemacs.org>
127 * make.texinfo, NEWS, TODO.private: Minor spelling corrections.
128 Ran spell-check on make.texinfo.
130 2000-06-23 Paul D. Smith <psmith@gnu.org>
132 * main.c (main): Replace EXIT_SUCCESS, EXIT_FAILURE, and
133 EXIT_TROUBLE with MAKE_SUCCESS, MAKE_FAILURE, and MAKE_TROUBLE.
134 * make.h: Define these macros.
136 * Version 3.79.1 released.
138 * configure.in: Add a new option, --disable-nsec-timestamps, to
139 avoid using sub-second timestamps on systems that support it. It
140 can lead to problems, e.g. if your makefile relies on "cp -p".
141 * README.template: Document the issue with "cp -p".
143 * config.guess, config.sub: Updated.
145 2000-06-22 Paul D. Smith <psmith@gnu.org>
147 * job.c (start_job_command): Increment commands_started before the
148 special check for ":" (empty command) to avoid spurious "is up to
149 date" messages. Also move the test for question_flag after we
150 expand arguments, and only stop if the expansion provided an
151 actual command to run, not just whitespace. This fixes PR/1780.
153 2000-06-21 Paul D. Smith <psmith@gnu.org>
155 * read.c (read_makefile): If we find a semicolon in the target
156 definition, remember where it was. If the line turns out to be a
157 target-specific variable, add back the semicolon and everything
158 after it. Fixes PR/1709.
160 2000-06-19 Paul D. Smith <psmith@gnu.org>
162 * config.h-vms.template: #define uintmax_t for this system.
163 * config.ami.template: Ditto.
164 * config.h.W32.template: Ditto.
166 * configure.in: We don't use select(2) anymore, so don't bother
169 * acinclude.m4: Ditto.
171 * file.c (all_secondary): New static global; if 1 it means
172 .SECONDARY with no prerequisites was seen in the makefile.
173 (snap_deps): Set it appropriately.
174 (remove_intermediates): Check it.
175 (num_intermediates): Remove this global, it's not used anywhere.
176 (considered): Move this to remake.c and make it static.
178 * NEWS: Document the change to .SECONDARY.
179 * make.texinfo (Special Targets): Document the change to .SECONDARY.
181 * implicit.c (pattern_search): Remove the increment of
182 num_intermediates; it's not used.
183 * filedef.h: Remove num_intermediates and considered.
185 * function.c (handle_function): If the last argument was empty, we
186 were pretending it didn't exist rather than providing an empty
187 value. Keep looking until we're past the end, not just at the end.
189 * implicit.c (pattern_search): Multi-target implicit rules weren't
190 expanding the "also made" targets correctly if the pattern didn't
191 contain a slash but the target did; in that case the directory
192 part wasn't being added back to the stem on the "also made"
193 targets. Reported by Seth M LaForge <sethml@newtonlabs.com>, with
196 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
198 * Makefile.DOS.template (DESTDIR, bindir, datadir, libdir)
199 (infodir, mandir, includedir): Support installation under a
202 * remake.c (f_mtime): Fix the spelling of __MSDOS__.
204 * configh.DOS.template (HAVE_FDOPEN, HAVE_MKSTEMP): Define.
206 2000-06-14 Paul D. Smith <psmith@gnu.org>
208 * acinclude.m4 (pds_WITH_GETTEXT): rewrite fp_WITH_GETTEXT and
209 rename it to avoid confusion. This version is very specific: it
210 won't accept any gettext that isn't GNU. If the user doesn't
211 explicitly ask for the included gettext, we look to see if the
212 system gettext is GNU (testing both the actual libintl library,
213 and the libintl.h header file). Only if the system gettext is
214 really GNU gettext will we allow it to be used.
215 (pds_CHECK_SYSTEM_GETTEXT): A helper function.
217 2000-06-13 Paul D. Smith <psmith@gnu.org>
219 * gettext.h: If we have libintl.h, use that instead of any of the
220 contents of gettext.h. We won't check for libintl.h unless we're
221 using the system gettext.
223 * function.c (func_word): Clarify error message.
225 2000-06-10 Paul Eggert <eggert@twinsun.com>
227 Support nanosecond resolution on hosts with 64-bit time_t and
228 uintmax_t (e.g. 64-bit Sparc Solaris), by splitting
229 FILE_TIMESTAMP into a 30-bit part for nanoseconds, with the
230 rest for seconds, if FILE_TIMESTAMP is at least 64 bits wide.
232 * make.h: Always define FILE_TIMESTAMP to be uintmax_t, for
235 * filedef.h (FILE_TIMESTAMP_HI_RES, FILE_TIMESTAMP_LO_BITS)
236 (UNKNOWN_MTIME, NONEXISTENT_MTIME, OLD_MTIME)
237 (ORDINARY_MTIME_MIN, ORDINARY_MTIME_MAX): New macros.
238 (FILE_TIMESTAMP_STAT_MODTIME): Now takes fname arg. All uses changed.
239 (FILE_TIMESTAMP_DIV, FILE_TIMESTAMP_MOD)
240 (FILE_TIMESTAMP_FROM_S_AND_NS): Remove.
241 (FILE_TIMESTAMP_S, FILE_TIMESTAMP_NS): Use shifts instead of
242 multiplication and division. Offset the timestamps by
244 (file_timestamp_cons): New decl.
245 (NEW_MTIME): Now just the maximal timestamp value, as we no longer use
246 -1 to refer to nonexistent files.
248 * file.c (snap_deps, print_file): Use NONEXISTENT_MTIME,
249 UNKNOWN_MTIME, and OLD_MTIME instead of magic constants.
250 * filedef.h (file_mtime_1): Likewise.
251 * main.c (main): Likewise.
252 * remake.c (update_file_1, notice_finished_file, check_dep)
253 (f_mtime, name_mtime, library_search): Likewise.
254 * vpath.c (selective_vpath_search): Likewise.
256 * remake.c (f_mtime): Do not assume that (time_t) -1 equals
257 NONEXISTENT_MTIME. When futzing with time stamps, adjust by
258 multiples of 2**30, not 10**9. Do not calculate timestamp
259 adjustments on DOS unless they are needed.
261 * commands.c (delete_target): Do not assume that
262 FILE_TIMESTAMP_S yields -1 for a nonexistent file, as that is
263 no longer true with the new representation.
265 * file.c (file_timestamp_cons): New function, replacing
266 FILE_TIMESTAMP_FROM_S_AND_NS. All uses changed.
267 (file_timestamp_now): Use FILE_TIMESTAMP_HI_RES instead of 1 <
268 FILE_TIMESTAMPS_PER_S to determine whether we're using hi-res
270 (print_file): Print OLD_MTIME values as "very old" instead of
273 2000-05-31 Paul Eggert <eggert@twinsun.com>
275 * remake.c (name_mtime): Check for stat failures. Retry if EINTR.
277 2000-05-24 Paul D. Smith <psmith@gnu.org>
279 * main.c (decode_switches): The "positive_int" switch uses atoi()
280 which succeeds for any input, and doesn't notice if extra,
281 non-digit text is after the number. This causes make to mis-parse
282 command lines like "make -j 5foo" as "make -j5" (ignoring "foo"
283 completely) instead of "make -j0 5foo" (where "5foo" is a
284 target). Fix this by checking the value by hand. We could use
285 strtol() if we were sure of having it; this is the only
286 questionable use of atoi() I found so we'll just stick with that.
289 * i18n/ja.po, i18n/nl.po, i18n/pt_BR.po: New translation files.
290 * configure.in (ALL_LINGUAS): Added pt_BR.
292 2000-05-22 Paul Eggert <eggert@twinsun.com>
294 * remake.c (f_mtime): Fix bug when handling future odd
295 timestamps in the WINDOWS32 case. Do not bother initializing
296 static var to zero. Simplify code that works around WINDOWS32
297 and __MSDOS__ time skew brain damage.
299 2000-05-22 Paul Eggert <eggert@twinsun.com>
301 * job.c: Don't include time.h, as make.h already does this.
303 2000-05-22 Paul Eggert <eggert@twinsun.com>
305 * configure.in (AC_CHECK_HEADERS): Add sys/time.h.
306 (AC_HEADER_TIME): Add.
307 (clock_gettime): Prefer -lrt to -lposix4, for Solaris 7.
308 (gettimeofday): Add check for standard version of gettimeofday.
309 This merges changes written by Paul D. Smith.
311 * file.c (file_timestamp_now): Use gettimeofday if available
312 and if clock_gettime does not work. Don't bother with
313 high-resolution clocks if file timestamps have only one-second
316 * make.h <sys/time.h>: Include, conditionally on the usual
317 TIME_WITH_SYS_TIME and HAVE_SYS_TIME_H macros. This is needed
320 2000-05-20 Paul D. Smith <psmith@gnu.org>
322 * read.c (read_makefile): We weren't keeping makefile names around
323 unless there was a rule defined in them; but now we need to keep
324 them for variables as well. Forget trying to be fancy: just keep
325 every makefile name we successfully open.
327 * remote-cstms.c (start_remote_job_p): Change DB_EXTRA (?) to DB_JOBS.
329 2000-05-17 Paul Eggert <eggert@twinsun.com>
331 * commands.c (chop_commands): Ensure ctype macro args are nonnegative.
332 * expand.c (variable_expand_string): Likewise.
333 * function.c (subst_expand, lookup_function, msdos_openpipe):
335 * job.c (vms_redirect, start_job_command, new_job, child_execute_job,
336 construct_command_argv_internal, construct_command_argv): Likewise.
337 * main.c (decode_env_switches, quote_for_env): Likewise.
338 * misc.c (collapse_continuations, end_of_token, end_of_token_w32,
339 next_token): Likewise.
340 * read.c (read_makefile, do_define, conditional_line,
341 find_char_unquote,get_next_mword): Likewise.
342 * variable.c (try_variable_definition): Likewise.
343 * vpath.c (construct_vpath_list): Likewise.
344 * w32/pathstuff.c (convert_vpath_to_windows32): Likewise.
346 2000-05-10 Eli Zaretskii <eliz@is.elta.co.il>
348 * main.c (main) [__MSDOS__]: Add SIGFPE to signals we block when
349 running child programs, to prevent Make from dying on Windows 9X
350 when the child triggers an FP exception.
352 2000-05-08 Paul D. Smith <psmith@gnu.org>
354 * dir.c (find_directory) [WINDOWS32]: If we strip a trailing "\"
355 from the directory name, remember to add it back. The argument
356 might really be inside a longer string (e.g. %Path%) and if you
357 don't restore the "\" it'll be truncated permanently. Fixes PR/1722.
358 Reported by <steven@surfcast.com>
360 2000-05-02 Paul D. Smith <psmith@gnu.org>
362 * job.c (construct_command_argv_internal) [WINDOWS32]: Added "rd"
363 and "rmdir" to the list of command.com commands.
364 Reported by Elod Horvath <Elod_Horvath@lnotes5.bankofny.com>
366 2000-04-24 Paul D. Smith <psmith@gnu.org>
368 * i18n/ja.po: New translation file from the Japanese language team.
370 2000-04-18 Paul D. Smith <psmith@gnu.org>
372 * remake.c (f_mtime): If ar_member_date() returns -1 (the member
373 doesn't exist), then return (FILE_TIMESTAMP)-1 rather than
374 returning the timestamp calculated from the value -1. Fixes PR/1696.
375 Reported by Gilles Bourhis <Gilles.Bourhis@univ-rennes1.fr>.
377 2000-04-17 Paul D. Smith <psmith@gnu.org>
379 * config.h.W32.template: Add LOCALEDIR macro resolving to "".
380 * w32/subproc/sub_proc.c (process_begin): Remove reference to
381 debug_flag; change it to a DB() call. Fixes PR/1700.
382 Reported by Jim Smith <jwksmith@attglobal.net>
384 2000-04-17 Bruno Haible <haible@clisp.cons.org>
386 * arscan.c [BeOS]: Add replacement for nonexistent <ar.h> from GNU
389 2000-04-11 Paul D. Smith <psmith@gnu.org>
391 * function.c (expand_builtin_function): If no arguments were
392 provided, just quit early rather than changing each function to
394 (function_table[]): Change the min # of arguments to 0 for all
395 those functions for which it makes sense (currently everything
396 that used to take a minimum of 1 argument, except $(call ...)).
399 2000-04-09 Eli Zaretskii <eliz@is.elta.co.il>
401 * README.DOS: Add instructions to install a binary distro.
402 Mention latest versions of Windows.
404 2000-04-07 Eli Zaretskii <eliz@is.elta.co.il>
406 * main.c (main): Rename TMP_TEMPLATE into DEFAULT_TMPDIR, and use
407 it for the directory of the temporary file. If P_tmpdir is
408 defined, use it in preference to "/tmp/". Try $TMPDIR, $TEMP, and
409 $TMP in the environment before defaulting to DEFAULT_TMPDIR.
410 (print_version): Add year 2000 to the Copyright line.
412 2000-04-04 Paul D. Smith <psmith@gnu.org>
414 * Version 3.79 released.
416 * make.texinfo: Update documentation with new features for 3.79.
418 * function.c (func_wordlist): Don't re-order arguments to
421 2000-04-03 Paul D. Smith <psmith@gnu.org>
423 * remake.c (f_mtime): Archive member timestamps are stored as
424 time_t, without nanoseconds. But, f_mtime() wants to return
425 nanosecond info on those systems that support it. So, convert the
426 return value of ar_member_date() into a FILE_TIMESTAMP, using 0 as
429 2000-03-28 Paul D. Smith <psmith@gnu.org>
431 * Version 3.78.92 released.
433 * build.template: Updates for gettext support; some bugs fixed.
435 2000-03-27 Paul D. Smith <psmith@gnu.org>
437 * config.guess, config.sub: Updated from config CVS archive at
438 :pserver:anoncvs@subversions.gnu.org:/home/cvs as of today.
440 * read.c (record_files): Check if expanding a static pattern
441 rule's prerequisite pattern leaves an empty string as the
442 prerequisite, and issue an error if so. Fixes PR/1670.
443 (read_makefile): Store the starting linenumber for a rule in
445 (record_waiting_files): Use the TGTS_STARTED value for the file
446 location passed to record_file() instead of the current
447 linenumber, so error messages list the line where the target was
448 defined instead of the line after the end of the rule definition.
450 * remake.c (start_updating, finish_updating, is_updating): Fix
451 PR/1671; circular dependencies in double-colon rules are not
452 diagnosed. These macros set the updating flag in the root
453 double-colon file instead of the current one, if it's part of a
454 double-colon list. This solution provided by Tim Magill
455 <magill@gate.net>; I just changed the macro names :).
456 (update_file_1): Call them.
457 (check_dep): Call them.
459 The change to not automatically evaluate the $(call ...)
460 function's arguments breaks recursive use of call. Although using
461 $(if ...) and $(foreach ...) in $(call ...) macros is important,
462 the error conditions generated are simply to obscure for me to
463 feel comfortable with. If a method is devised to get both
464 working, we'll revisit. For now, remove this change.
466 * function.c (function_table): Turn on the expand bit for func_call.
467 (func_call): Don't expand arguments for builtin functions; that
468 will have already been done.
470 2000-03-26 Paul D. Smith <psmith@gnu.org>
472 * file.c (remove_intermediates): Never remove targets explicitly
473 requested on the command-line by checking the cmd_target flag.
476 2000-03-23 Paul Eggert <eggert@twinsun.com>
478 * filedef.h (FILE_TIMESTAMP_STAT_MODTIME): Use st_mtime instead of
479 st_mtim.tv_sec; the latter doesn't work on Unixware.
481 2000-03-18 Paul D. Smith <psmith@gnu.org>
483 * file.c (file_hash_enter): If we're trying to change a file into
484 itself, just return. We used to assert this wasn't true, but
485 someone came up with a weird case involving archives. After
486 playing with it for a while I decided it was OK to ignore it.
488 * default.c: Define COFLAGS to empty to avoid spurious warnings.
490 * filedef.h: Change #if ST_MTIM_NSEC to #ifdef; this is a macro
491 containing the name of the nsec field, not true/false.
493 Reported by Marco Franzen <Marco.Franzen@Thyron.com>.
495 2000-03-08 Tim Magill <magill@gate.net>
497 * remake.c (update_file): Return the exit status of the pruned
498 file when pruning, not just 0. Fixes PR/1634.
500 2000-02-24 Paul D. Smith <psmith@gnu.org>
502 * configure.in: Close a minor potential security hole; if you're
503 reading makefiles from stdin (who does that?) you could run into a
504 race condition with the temp file using mktemp() or tmpnam(). Add
505 a check for mkstemp() and fdopen().
506 * main.c (open_tmpfile): New function to open a temporary file.
507 If we have mkstemp() (and fdopen()), use that. If not use
508 mktemp() or tmpnam(). If we have fdopen(), use open() to open the
509 file O_CREAT|O_EXCL. If not, fall back to normal fopen() (insecure).
511 * job.c (child_execute_job) [VMS]: Call it.
513 * variable.c (lookup_variable): If we find a variable which is
514 being expanded, then note it but keep looking through the rest of
515 the set list to see if we can find one that isn't. If we do,
516 return that. If we don't, return the original. Fix for PR/1610.
518 While implementing this I realized that it also solves PR/1380 in
519 a much more elegant way. I don't know what I was smoking before.
520 So, remove the hackage surrounding the original fix for that (see
521 below). Change this function back to lookup_variable and remove
522 the extra setlist argument.
523 * variable.h (recursively_expand_setlist): Remove the macro,
524 rename the prototype, and remove the extra setlist argument.
525 (lookup_variable): Ditto.
526 * expand.c (recursively_expand): Rename and remove the extra
528 (reference_variable): Use lookup_variable() again.
529 (allocated_variable_append): Remove the extra setlist argument.
531 2000-02-21 Paul D. Smith <psmith@gnu.org>
533 * README.template: A few updates.
535 * i18n/de.po: New version from the German translation team.
537 2000-02-09 Paul D. Smith <psmith@gnu.org>
539 * Version 3.78.91 released.
541 2000-02-07 Paul D. Smith <psmith@gnu.org>
543 * read.c (read_makefile): Reset *p2 to ':', not *colonp. If any
544 filenames contained backslashes the resulting output (without
545 backslashes) will be shorter, so setting *colonp doesn't change
546 the right character. Fix for PR/1586.
548 For += target-specific variables we need to remember which
549 variable set we found the variable in, so we can start looking
550 from there in the next iteration (otherwise we might see it again
551 in recursively_expand and fail!). This is turning into a hack; if
552 it gets any worse we'll have to rethink this entire algorithm...
553 implementing expansion of these references separately from the
554 "normal" expansion, say, instead of using the same codepath.
555 Actually, it's already "worse enough" :-/.
558 * variable.h (recursively_expand_setlist): Rename
559 recursively_expand to add a struct variable_set_list argument, and
560 make a macro for recursively_expand.
561 (lookup_variable_setlist): Rename lookup_variable to add a struct
562 variable_set_list argument, and make a macro for lookup_variable.
564 * expand.c (recursively_expand_setlist): Take an extra struct
565 variable_set_list argument and pass it to allocated_variable_append().
566 (reference_variable): Use lookup_variable_setlist() and pass the
567 returned variable_set_list to recursively_expand_setlist.
568 (allocated_variable_append): Take an extra setlist argument and
569 use this as the starting place when searching for the appended
570 expansion. If it's null, use current_variable_set_list as before.
572 * variable.c (lookup_variable_setlist): If the LISTP argument is
573 not nil, set it to the list containing the variable we found.
575 2000-02-04 Paul D. Smith <psmith@gnu.org>
577 * variable.c (print_variable): Write out filename/linenumber
578 information for the variable definition if present.
579 (define_variable_in_set): Store filename information if provided.
580 (define_variable, define_variable_for_file): Removed.
581 (try_variable_definition): Use define_variable_loc() to keep
582 variable definition location information.
583 * read.c (read_makefile): Keep variable definition location info.
585 (record_target_var): Ditto.
586 * variable.h (define_variable_in_set): New fileinfo argument.
587 (define_variable, define_variable_loc, define_variable_for_file):
592 * filedef.h (struct file): Rename patvar to pat_variables and make
593 it just a variable_set_list; we need our own copy of the pattern
594 variable's variable set list here to avoid overwriting the global
596 * variable.c (initialize_file_variables): Move the instantiation
597 of the pat_variables pointer here. Only do the search after we're
598 done reading the makefiles so we don't search too early. If
599 there's a pat_variables value, set up the variables next ptr.
600 * expand.c (variable_expand_for_file): Remove the setup of the
601 pat_variables info; it's done earlier now to ensure the parent's
602 pattern variables are set up correctly as well.
604 2000-02-03 Paul D. Smith <psmith@gnu.org>
606 * job.c (sh_chars_dos) [WINDOWS32]: Add "&" as a shell
607 metacharacter for the W32 DOS shell.
608 Reported by Warren Jones <wjones@tc.fluke.com>.
610 2000-02-02 Paul D. Smith <psmith@gnu.org>
612 Fixes for the OpenVMS port from Hartmut Becker <becker@rto.dec.com>
614 * config.h-vms [VMS]: Define LOCALEDIR to something; needed for
615 the expansion of bindtextdomain() even though it's a no-op.
616 * vmsfunctions.c (strcmpi): Remove duplicate definition of strcmpi().
617 (readdir): Use DB() instead of testing debug_flag.
618 * dir.c (file_impossible) [VMS]: Search "p" not "name".
619 * job.c [VMS]: Switch from debug_flag to the new DB macro. Add
620 some i18n _() macros (even though VMS doesn't yet support it).
622 * function.c (patsubst_expand): Change "len" to not be unsigned to
623 avoid type mismatches.
625 * main.c (main): Declare signame_init() if we're going to call it.
627 2000-01-29 Eli Zaretskii <eliz@is.elta.co.il>
629 * Makefile.DOS.template: Track changes in Makefile.in
630 (install-recursive, uninstall-recursive): Add missing targets.
632 (install-binPROGRAMS, uninstall-binPROGRAMS): Use $(DESTDIR).
634 * default.c (default_variables) [__MSDOS__]: Define CXX to gpp.
636 2000-01-27 Paul D. Smith <psmith@gnu.org>
638 * gettext.c: Some warning cleanups, and a fix for systems which
639 don't define HAVE_ALLOCA (the workaround code was included
642 2000-01-26 Paul D. Smith <psmith@gnu.org>
644 * Version 3.78.90 released.
646 2000-01-25 Paul D. Smith <psmith@gnu.org>
648 Change gettext support to use the simplified version in libit 0.7.
650 * getopt.c, make.h: Use gettext.h instead of libintl.h.
651 * ABOUT-NLS, gettext.h, gettext.c: New files from libit 0.7.
652 Modified to remove some static declarations which aren't defined.
653 * acconfig.h: Use new gettext #defines.
654 * acinclude.m4: Add fp_WITH_GETTEXT; remove AM_GNU_GETTEXT.
655 * configure.in: Call fp_WITH_GETTEXT instead.
656 * Makefile.am: New gettext stuff. Also force inclusion of glob
657 files for systems which have LIBC glob.
659 * i18n/Makefile.am, i18n/.cvsignore: New dir for translation files.
660 * i18n/de.po, i18n/es.po, i18n/fr.po, i18n/ko.po, i18n/nl.po:
661 * i18n/pl.po, i18n/ru.po: Import translations already done for
662 earlier versions of GNU make. Thanks for that work!!
664 * po/Makefile.in.in, po/POTFILES.in: Removed.
666 2000-01-23 Paul D. Smith <psmith@gnu.org>
668 * main.c (decode_debug_flags): If debug_flag is set, enable all
670 (debug_flag): Resurrect this flag variable.
671 (switches): Make -d give the old behavior of turning on all
672 debugging. Change --debug alone to emit basic debugging and take
673 optional arguments to expand debugging.
674 * NEWS: Document the new debugging options.
676 * remake.c (no_rule_error): Remove this function. This tries to
677 fix a real problem--see the description with the introduction of
678 this function below. However, the cure is worse than the disease
679 and this approach won't work.
680 (remake_file): Put the code from no_rule_error back here.
681 (update_file_1): Remove call to no_rule_error.
683 * filedef.h (struct file): Remove mfile_status field.
685 2000-01-22 Paul D. Smith <psmith@gnu.org>
687 Integrate GNU gettext support.
689 * configure.in: Add AM_GNU_GETTEXT.
690 * Makefile.am: Add options for setting LOCALEDIR, -Iintl, etc.
691 * acinclude.m4: Add gettext autoconf macros.
692 * acconfig.h: Add new gettext #defines.
693 * make.h: Include libintl.h. Make sure _() and N_() macros are
694 declared. Make gettext() an empty macro is NLS is disabled.
695 * main.c (struct command_switch switches[]): Can't initialize
696 static data with _() (gettext calls), so use N_() there then use
697 gettext() directly when printing the strings.
698 * remake.c (no_rule_error): The string constants can't be static
699 when initializing _() macros.
700 * file.c (print_file): Reformat a few strings to work better for
702 * po/POTFILES.in, po/Makefile.in.in: New files. Take
703 Makefile.in.in from the latest GNU tar distribution, as that
704 version works better than the one that comes with gettext.
705 * NEWS: Mention i18n ability.
707 2000-01-21 Paul D. Smith <psmith@gnu.org>
709 Installed patches for the VMS port.
710 Patches provided by: Hartmut Becker <Hartmut.Becker@compaq.com>
712 * readme.vms, arscan.c, config.h-vms, default.c, dir.c, file.c:
713 * implicit.c, job.c, make.h, makefile.com, makefile.vms, rule.c:
714 * variable.c, vmsdir.h, vmsfunctions.c, vmsify.c, glob/glob.c:
715 * glob/glob.h: Installed patches. See readme.vms for details.
717 2000-01-14 Andreas Schwab <schwab@suse.de>
719 * dir.c (read_dirstream): Initialize d_type if it exists.
721 2000-01-11 Paul D. Smith <psmith@gnu.org>
723 Resolve PR/xxxx: don't automatically evaluate the $(call ...)
724 function's arguments. While we're here, clean up argument passing
725 protocol to always use simple nul-terminated strings, instead of
726 sometimes using offset pointers to mark the end of arguments.
727 This change also fixes PR/1517.
728 Reported by Damien GIBOU <damien.gibou@st.com>.
730 * function.c (struct function_table_entry): Remove the negative
731 required_args hack; put in explicit min and max # of arguments.
732 (function_table): Add in the max value. Turn off the expand bit
734 (expand_builtin_function): Test against minimum_args instead of
735 the obsolete required_args.
736 (handle_function): Rewrite this. We don't try to be fancy and
737 pass one style of arguments to expanded functions and another
738 style to non-expanded functions: pass pointers to nul-terminated
739 strings to all functions.
740 (func_call): Rewrite this. If we are invoking a builtin function
741 and it's supposed to have its arguments expanded, do that (since
742 it's not done by handle_function for $(call ...) anymore). For
743 non-builtins, just add the variables as before but mark them as
744 recursive so they'll be expanded later, as needed.
745 (func_if): All arguments are vanilla nul-terminated strings:
746 remove trickery with "argv[1]-1".
747 (func_foreach): Ditto.
749 * expand.c (expand_argument): If the second arg is NULL, expand
750 the entire first argument.
752 * job.c (new_job): Zero the child struct. This change was just
753 made to keep some heap checking software happy, not because there
754 was an actual bug (the important memory was being cleared properly).
756 1999-12-15 Paul D. Smith <psmith@gnu.org>
758 * variable.c (print_variable): Print the variable with += if the
761 * implicit.c (pattern_search): Remove the extra check of the
762 implicit flag added on 8/24/1998. This causes problems and the
763 reason for the change was better resolved by the change made to
764 check_deps() on 1998-08-26. This fixes PR/1423.
766 1999-12-08 Paul D. Smith <psmith@gnu.org>
768 * dir.c (dir_setup_glob): On 64 bit ReliantUNIX (5.44 and above)
769 in LFS mode, stat() is actually a macro for stat64(). Assignment
770 doesn't work in that case. So, stat is a macro, make a local
771 wrapper function to invoke it.
772 (local_stat): Wrapper function, if needed.
773 Reported by Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>.
775 1999-12-02 Paul D. Smith <psmith@gnu.org>
777 * remake.c (update_file): Move the considered test outside the
778 double-colon loop, _but_ make sure we test the double_colon target
779 not the "current" target. If we stop early because one
780 double-colon target is running, mark all the rest considered and
781 try to start their prerequisites (so they're marked considered).
782 Fix for PR/1476 suggested by Tim Magill <tim.magill@telops.gte.com>.
784 1999-11-22 Rob Tulloh <rob_tulloh@dev.tivoli.com>
786 * function.c (windows32_openpipe, func_shell): Correct Windows32
787 problem where $(shell nosuchfile) would incorrectly exit make. The
788 fix is to print the error and let make continue.
789 Reported by David Masterson <David.Masterson@kla-tencor.com>.
791 * w32/subproc/misc.c (arr2envblk): Memory leak fix.
793 1999-11-21 Paul D. Smith <psmith@gnu.org>
795 Rework GNU make debugging to provide different levels of output.
798 * debug.h: New file. Define various debugging levels and macros.
799 * function.c, implicit.c, job.c, main.c, misc.c, read.c, remake.c
800 * remote-cstms.c, vmsfunctions.c: Replace all code depending on
801 debug_flag with invocations of debugging macros.
802 * make.h: Remove debug_flag and DEBUGPR, add db_level.
804 1999-11-18 Paul Eggert <eggert@twinsun.com>
806 * acinclude.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a problem
807 with the QNX 4.25 shell, which doesn't propagate exit status of
808 failed commands inside shell assignments.
810 1999-11-17 Paul D. Smith <psmith@gnu.org>
812 * function.c (func_if): Find the end of the arg list by testing
813 the next item for NULL; any other test is not correct.
814 Reported by Graham Reed <grahamr@algorithmics.com> (PR/1429).
816 Fix += when used in a target-specific variable context.
818 * variable.h: New bitfield APPEND set if we have a +=
819 target-specific variable.
821 * variable.c (try_variable_definition): Add an argument to specify
822 if we're trying a target-specific variable. If we are and it's an
823 append style, don't append it, record it as normal recursive, but
824 set the APPEND flag so it'll be expanded later.
825 * main.c (handle_non_switch_argument): Use new
826 try_variable_definition() signature.
827 * read.c (read_makefile,record_target_var): Ditto.
829 * expand.c (allocated_variable_append): New function: like
830 allocated_variable_expand(), but we expand the same variable name
831 in the context of the ``next'' variable set, then we append this
833 (recursively_expand): Invoke it, if the APPEND bit is set.
835 1999-11-10 Paul D. Smith <psmith@gnu.org>
837 * file.c (snap_deps): If the .NOTPARALLEL target is defined, turn
838 off parallel builds for this make only (still allow submakes to be
840 * main.c: New variable, ``not_parallel''.
841 * make.h: Add an extern for it.
842 * job.c (new_job): Test NOT_PARALLEL as well as JOB_SLOTS.
843 * NEWS: Add info on .NOTPARALLEL.
844 * make.texinfo (Special Targets): Document it.
846 * configure.in (GLOBDIR): Set to "glob" if we need to build the
848 * Makefile.am (SUBDIRS): Use the GLOBDIR variable instead of
849 "glob" so we don't try to build glob if we don't need to (if we
850 have GLIBC glob). Reported by Lars Hecking <lhecking@nmrc.ucc.ie>.
852 * main.c (main): Don't put "***" in the clock skew warning
853 message. Reported by karl@gnu.org.
855 * make.h: Remove unneeded signal setup.
857 * signame.c: Remove extraneous #includes; some versions of Ultrix
858 don't protect against multiple inclusions and it causes compile
859 errors. Reported by Simon Burge <simonb@thistledown.com.au>.
861 1999-10-15 Paul D. Smith <psmith@gnu.org>
863 * main.c (quote_for_env): Rename from quote_as_word().
865 * make.h, *.c: Prefer strchr() and strrchr() in the code
866 rather than index() and rindex(). Define strchr/strrchr in terms
867 of index/rindex if the former aren't supported.
869 * default.c (CHECKOUT,v): Replace the fancy, complicated
870 patsubst/filter expression with a simple $(if ...) expression.
872 * main.c (print_usage): Add the bug reporting mailing address to
873 the --help output, as per the GNU coding standards.
874 Reported by Paul Eggert <eggert@twinsun.com>.
876 * README.customs: Installed information on running Customs-ized
877 GNU make and setuid root, collected by Ted Stern <stern@tera.com>.
879 * read.c (read_all_makefiles): PR/1394: Mark the end of the next
880 token in the MAKEFILES value string _before_ we dup it.
882 1999-10-13 Paul D. Smith <psmith@gnu.org>
884 * configure.in (make_cv_sys_gnu_glob): We used to add the -Iglob
885 flag to CPPFLAGS, but that loses if the user specifies his own
886 CPPFLAGS; this one gets added _after_ his and if he happens to
887 have an old or broken glob.h--boom. Instead, put it in GLOBINC
890 * Makefile.am (INCLUDES): Add @GLOBINC@ to the INCLUDES macro;
891 these things get on the compile line well before the user's
894 1999-10-12 Paul D. Smith <psmith@gnu.org>
896 * remake.c (notice_finished_file): If we get here and -n is set,
897 see if all the command lines are marked recursive. If so, then we
898 ran every command there is, so check the mtime on this file just
899 like we would normally. If not, we assume the command we didn't
900 run would updates the target and set mtime of the target to "very new".
902 * job.c (start_job_command): Update lines_flags in the file's cmds
903 structure with any per-line tokens we found (`@', `-', `+').
905 1999-10-08 Paul D. Smith <psmith@gnu.org>
907 * variable.c (initialize_file_variables): Always recurse to
908 initialize the parent's file variables: the parent might not have
909 any rules to run so it might not have been initialized before
910 this--we need this to set up the chain properly for
911 target-specific variables.
913 1999-09-29 Paul Eggert <eggert@twinsun.com>
915 * main.c (quote_as_word): Always quote for decode_env_switches
916 instead of for the shell, so that arguments with strange
917 characters are are passed to submakes correctly. Remove
918 double_dollars arg; we always double dollars now. All callers
920 (decode_env_switches): Don't run off the end of an environment
921 variable whose contents ends in a unescaped backslash.
923 1999-09-23 Paul D. Smith <psmith@gnu.org>
925 * commands.c, function.c, job.c, read.c: Cast arguments to
926 ctype.h functions/macros to _unsigned_ char for portability.
928 * remake.c, function.c: Compiler warning fixes: the second
929 argument to find_next_token() should be an _unsigned_ int*.
930 Reported by Han-Wen Nienhuys <hanwen@cs.uu.nl>.
932 1999-09-23 Paul D. Smith <psmith@gnu.org>
934 * Version 3.78.1 released.
936 * make.texinfo: Update version/date stamp.
938 * main.c (main): Argh. For some reason we were closing _all_ the
939 jobserver pipes before we re-exec'd due to changed makefiles.
940 This means that any re-exec got a "jobserver unavailable" error :-/.
941 I can't believe we didn't notice this before.
943 1999-09-22 Paul D. Smith <psmith@gnu.org>
945 * Version 3.78 released.
947 * main.c (main): Only fail on multiple --jobserver-fds options if
948 they aren't all the same. Some makefiles use things like
949 $(MAKE) $(MFLAGS) which will cause multiple, identical copies of
950 --jobserver-fds to show up.
952 1999-09-16 Paul D. Smith <psmith@gnu.org>
954 * main.c (define_makeflags): Zero out FLAGSTRING to avoid
955 uninitialized memory reads when checking *p != '-' in the loop.
957 1999-09-15 Paul D. Smith <psmith@gnu.org>
959 * Version 3.77.97 released.
961 * configure.in (MAKE_HOST): AC_SUBST this so it will go into the
963 * Makefile.am (check-local): Print a success banner if the check
965 (check-regression): A bit of fine-tuning.
967 1999-09-15 Eli Zaretskii <eliz@is.elta.co.il>
969 * README.DOS.template: Document requirements for the test suite.
970 * Makefile.DOS.template: Updates to allow the test suite to run
973 * main.c (main): Handle it if argv[0] isn't an absolute path.
975 1999-09-13 Paul D. Smith <psmith@gnu.org>
977 * Version 3.77.96 released.
979 * Makefile.am (loadavg): Use CPPFLAGS, etc. to make sure we get
980 all the right #defines to compile.
981 (check-regression): Look for the regression test suite in the make
982 package itself. If we're building remotely, use symlinks to make
984 (dist-hook): Put the test suite into the tar file.
986 * configure.in: Look for perl for the test suite.
988 1999-09-10 Paul Eggert <eggert@twinsun.com>
990 * acinclude.m4 (AC_SYS_LARGEFILE_FLAGS): If on HP-UX 10.20 or
991 later, and using GCC, define __STDC_EXT__; this works around a
994 1999-09-08 Paul D. Smith <psmith@gnu.org>
996 * main.c (print_version): Ugh. GLIBC's configure tries to check
997 make version strings and is too aggressive with their matching
998 expressions. I've struck a deal with them to leave the version
999 output as-is for 3.78, and they'll change their configure checks
1000 so that I can change this back in the future.
1002 1999-09-07 Eli Zaretskii <eliz@is.elta.co.il>
1004 * job.c (construct_command_argv_internal) [__MSDOS__]: Add "echo"
1005 and "unset" to the list of builtin shell commands.
1007 * configh.DOS.template (MAKE_HOST): Define to "i386-pc-msdosdjgpp"
1008 which is the canonical name of the DJGPP host.
1010 1999-09-05 Paul D. Smith <psmith@gnu.org>
1012 * Version 3.77.95 released.
1014 * make.texinfo (Make Errors): Document some new jobserver error
1017 1999-09-04 Eli Zaretskii <eliz@is.elta.co.il>
1019 * make.texinfo (Make Errors): Document the hint about 8 spaces
1021 (Call Function, Quick Reference): Use @code{$(1)}, not @var.
1023 * main.c (main) [__MSDOS__]: Say "on this platform" instead of "on
1024 MS-DOS", since the MSDOS version could run on Windows.
1026 1999-09-03 Paul D. Smith <psmith@gnu.org>
1028 * remake.c (notice_finished_file): Always set mtime_before_update
1029 if it's not been set, not just if we ran some rules. Otherwise we
1030 may have a situation where a target's prerequisite was rebuilt but
1031 not changed, so this target's rules weren't run, then
1032 update_goal_chain() sees mtime_before_update != last_mtime and
1033 thinks that the top-level target changed when it really didn't.
1034 This can cause an infinite loop when remaking makefiles.
1035 (update_goal_chain): If we get back to the top and we don't know
1036 what the goal's last_mtime was, find it now. We need to know so
1037 we can compare it to mtime_before_update later (this is only
1038 crucial when remaking makefiles--should we only do it then?)
1040 1999-09-02 Paul D. Smith <psmith@gnu.org>
1042 * read.c (read_makefile): If "override" appears as the first
1043 prerequisite, look further to ensure this is really a
1044 target-specific variable definition, and not just some
1045 prerequisite named "override".
1047 1999-09-01 Paul D. Smith <psmith@gnu.org>
1049 * function.c (IS_PATHSEP) [WINDOWS32]: Allow backslash separators
1051 * read.c (record_files) [WINDOWS32]: Allow backslash separators
1053 * implicit.c (pattern_search) [WINDOWS32]: Allow backslash
1054 separators for W32 platforms.
1056 * configure.in (MAKE_HOST): Define it to be the canonical build
1057 host info, now that we need AC_CANONICAL_HOST anyway (for large
1059 * version.c (make_host): Define a variable to MAKE_HOST so we're
1060 sure to get it from the local config.h.
1061 * main.c (print_version): Use it in the version information.
1062 * config.ami.template: Add MAKE_HOST.
1063 * configh.dos.template: Ditto.
1064 * config.h.W32.template: Ditto.
1065 * config.h-vms.template: Ditto.
1067 * main.c (main): Close the jobserver file descriptors if we need
1068 to re-exec ourselves.
1069 Also print more reasonable error if users force -jN for submakes.
1070 This may be common for a while until people use the jobserver
1071 feature. If it happens, we ignore the existing jobserver stuff
1072 and use whatever they specified on the commandline.
1073 (define_makeflags): Fixed a long-standing bug: if a long name
1074 only option comes immediately after a single letter option with no
1075 argument, then the option string is constructed incorrectly. For
1076 example, with -w and --jobserver-fds you get "-w-jobserver-fds..."
1077 instead of "-w --jobserver-fds..."; add in an extra " -".
1079 * make.texinfo (Phony Targets): Add another example of using
1080 .PHONY with subdirectories/recursive make.
1082 1999-08-30 Paul D. Smith <psmith@gnu.org>
1084 * README.W32.template: Renamed from README.W32 so it's
1085 autogenerated during the dist. A few minor modifications.
1087 * configure.in: Check for kstat_open before AC_FUNC_GETLOADAVG
1088 since the latter needs to know whether the former exists to give
1091 1999-08-26 Rob Tulloh <rob_tulloh@dev.tivoli.com>
1093 * NMakefile [WINDOWS32]: Now more robust. If you change a file
1094 under w32/subproc, the make.exe will be relinked. Also added some
1095 tests to make sure erase commands won't fail when executed in a
1096 pristine build environment.
1098 * w32/subproc/sub_proc.c [WINDOWS32]: Added support for
1099 HAVE_CYGWIN_SHELL. If you are using the Cygwin B20.1 release, it
1100 is now possible to have have native support for this shell without
1101 having to rely on klutzy BATCH_MODE_ONLY_SHELL.
1103 * config.h.W32 [WINDOWS32]: Added HAVE_CYGWIN_SHELL macro which
1104 users can define if they want to build make to use this shell.
1106 * README.W32 [WINDOWS32]: Added informaton about
1107 HAVE_CYGWIN_SHELL. Cleaned up text a bit to make it more current.
1109 1999-08-26 Paul Eggert <eggert@twinsun.com>
1111 Support large files in AIX, HP-UX, and IRIX.
1113 * acinclude.m4 (AC_LFS): Remove. Superseded by AC_SYS_LARGEFILE.
1114 (AC_SYS_LARGEFILE_FLAGS, AC_SYS_LARGEFILE_SPACE_APPEND,
1115 AC_SYS_LARGEFILE_MACRO_VALUE, AC_SYS_LARGEFILE): New macros.
1116 (jm_AC_TYPE_UINTMAX_T): Check for busted compilers that can't
1117 shift or divide unsigned long long.
1118 (AM_PROG_CC_STDC): New macro; a temporary workaround of a bug in
1121 * configure.in (AC_CANONICAL_HOST): Add; required by new
1123 (AC_SYS_LARGEFILE): Renamed from AC_LFS.
1124 (AM_PROG_CC_STDC): Add.
1126 * config.guess, config.sub: New files, needed for AC_CANONICAL_HOST.
1128 1999-08-25 Paul Eggert <eggert@twinsun.com>
1130 * make.h (CHAR_MAX): New macro.
1131 * main.c (struct command_switch): c is now int,
1132 so that it can store values greater than CHAR_MAX.
1133 (switches): Replace small numbers N with CHAR_MAX+N-1,
1134 to avoid problems with non-ASCII character sets.
1135 (short_option): New macro.
1136 (init_switches, print_usage, define_makeflags): Use it instead of
1139 1999-08-25 Paul D. Smith <psmith@gnu.org>
1141 * Version 3.77.94 released.
1143 * main.c (main) [__MSDOS__]: If the user uses -j, warn that it's
1144 not supported and reset it.
1146 * make.h (ISDIGIT): Obtained this from the textutils distribution.
1147 * main.c (decode_switches): Use it.
1148 * function.c (is_numeric): Use it.
1150 * main.c (struct command_switch): Store the switch char in an
1151 unsigned char to shut up GCC about using it with ctype.h macros.
1152 Besides, it _is_ always unsigned.
1154 1999-08-24 Paul D. Smith <psmith@gnu.org>
1156 * make.texinfo: Change "dependency" to "prerequisite" and
1157 "dependencies" to "prerequisites". Various other cleanups related
1158 to the terminology change.
1159 * file.c: Change debugging and error messages to use
1160 "prerequisite" instead of "dependency".
1161 * implicit.c: Ditto.
1163 * NEWS: Document it.
1165 1999-08-23 Paul D. Smith <psmith@gnu.org>
1167 * remake.c (update_file): Move the considered check into the
1168 double-colon rule loop, so we consider double-colon rules
1169 individually (otherwise after the first is pruned, the rest won't
1172 * README.template: Minor changes.
1174 Remove the debugging features of the jobserver, so it no longer
1175 writes distinct tokens to the pipe. Thus, we don't need to store
1176 the token we get. A side effect of this is to remove a potential
1177 "unavailable token" situation: make-1 invokes make-2 with its
1178 special token and make-3 with a normal token; make-2 completes.
1179 Now we're waiting for make-3 but using 2 tokens; our special token
1180 is idle. In the new version we don't have special tokens per se,
1181 we merely decide if we already have a child or not. If we don't,
1182 we don't need a token. If we do, we have to get one to run the
1183 next child. Similar for putting tokens back: if we're cleaning up
1184 the last child, we don't put a token back. Otherwise, we do.
1186 * main.c: Add a new, internal flag --jobserver-fds instead of
1187 overloading the meaning of -j. Remove job_slots_str and add the
1188 stringlist jobserver_fds.
1189 (struct command_switch): We don't need the int_string type.
1190 (switches[]): Add a new option for --jobserver-fds and remove
1191 conditions around -j. Make the description for the former 0 so it
1192 doesn't print during "make --help".
1193 (main): Rework jobserver parsing. If we got --jobserver-fds
1194 make sure it's valid. We only get one and job_slots must be 0.
1195 If we're the toplevel make (-jN without --jobserver-fds) create
1196 the pipe and write generic tokens.
1197 Create the stringlist struct for the submakes.
1198 Clean up the stringlist where necessary.
1199 (init_switches): Remove int_string handling.
1200 (print_usage): Don't print internal flags (description ptr is 0).
1201 (decode_switches): Remove int_string handling.
1202 (define_makeflags): Remove int_string handling.
1204 * job.c: Remove my_job_token flag and all references to the
1205 child->job_token field.
1206 (free_job_token): Remove this and merge it into free_child().
1207 (reap_children): Rework the "reaped a child" logic slightly.
1208 Don't call defunct free_job_token anymore. Always call
1209 free_child, even if we're dying.
1210 (free_child): If we're not freeing the only child, put a token
1211 back in the pipe. Then, if we're dying, don't bother to free.
1212 (new_job): If we are using the jobserver, loop checking to see if
1213 a) there are no children or b) we get a token from the pipe.
1215 * job.h (struct child): Remove the job_token field.
1217 1999-08-20 Paul D. Smith <psmith@gnu.org>
1219 * variable.c (try_variable_definition): Allocate for variable
1220 expansion in f_append with a simple variable: if we're looking at
1221 target-specific variables we don't want to trash the buffer.
1222 Noticed by Reiner Beninga <Reiner.Beninga@mchp.siemens.de>.
1224 1999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
1226 * main.c (main) [__MSDOS__]: Mirror any backslashes in argv[0], to
1227 avoid problems in shell commands that use backslashes as escape
1230 1999-08-16 Paul D. Smith <psmith@gnu.org>
1232 * Version 3.77.93 released.
1234 1999-08-13 Paul D. Smith <psmith@gnu.org
1236 * function.c (func_if): New function $(if ...) based on the
1237 original by Han-Wen but reworked quite a bit.
1238 (function_table): Add it.
1239 * NEWS: Introduce it.
1240 * make.texinfo (If Function): Document it.
1242 * job.c (free_job_token): Check for EINTR when writing tokens to
1245 1999-08-12 Paul D. Smith <psmith@gnu.org>
1247 Another jobserver algorithm change. We conveniently forgot that
1248 the blocking bit is shared by all users of the pipe, it's not a
1249 per-process setting. Since we have many make processes all
1250 sharing the pipe we can't use the blocking bit as a signal handler
1251 flag. Instead, we'll dup the pipe's read FD and have the SIGCHLD
1252 handler close the dup'd FD. This will cause the read() to fail
1253 with EBADF the next time we invoke it, so we know we need to reap
1254 children. We then re-dup and reap.
1256 * main.c (main): Define the job_rfd variable to hold the dup'd FD.
1257 Actually dup the read side of the pipe. Don't bother setting the
1258 blocking bit on the file descriptor.
1259 * make.h: Declare the job_rfd variable.
1260 * job.c (child_handler): If the dup'd jobserver pipe is open,
1261 close it and assign -1 to job_rfd to notify the main program that
1263 (start_job_command): Close the dup'd FD before exec'ing children.
1264 Since we open and close this thing so often it doesn't seem
1265 worth it to use the close-on-exec bit.
1266 (new_job): Remove code for testing/setting the blocking bit.
1267 Instead of EAGAIN, test for EBADF. If the dup'd FD has been
1268 closed, re-dup it before we reap children.
1270 * function.c (func_shell): Be a little more accurate about the
1271 length of the error string to allocate.
1273 * expand.c (variable_expand_for_file): If there's no filenm info
1274 (say, from a builtin command) then reset reading_file to 0.
1276 1999-08-09 Paul D. Smith <psmith@gnu.org>
1278 * maintMakefile: Use g in sed (s///g) to replace >1 variable per
1281 * Makefile.DOS.template [__MSDOS__]: Fix mostlyclean-aminfo to
1282 remove the right files.
1284 1999-08-01 Eli Zaretskii <eliz@is.elta.co.il>
1286 * function.c (msdos_openpipe) [__MSDOS__]: *Really* return a FILE
1289 1999-08-01 Paul D. Smith <psmith@gnu.org>
1291 New jobserver algorithm to avoid a possible hole where we could
1292 miss SIGCHLDs and get into a deadlock. The original algorithm was
1293 suggested by Roland McGrath with a nice refinement by Paul Eggert.
1294 Many thanks as well to Tim Magill and Howard Chu, who also
1295 provided many viable ideas and critiques. We all had a fun week
1296 dreaming up interesting ways to use and abuse UNIX syscalls :).
1298 Previously we could miss a SIGCHLD if it happened after we reaped
1299 the children but before we re-entered the blocking read. If this
1300 happened to all makes and/or all children, make would never wake
1303 We avoid this by having the SIGCHLD handler reset the blocking bit
1304 on the jobserver pipe read FD (normally read does block in this
1305 algorithm). Now if the handler is called between the time we reap
1306 and the time we read(), and there are no tokens available, the
1307 read will merely return with EAGAIN instead of blocking.
1309 * main.c (main): Set the blocking bit explicitly here.
1310 * job.c (child_handler): If we have a jobserver pipe, set the
1311 non-blocking bit for it.
1312 (start_waiting_job): Move the token stuff back to new_job; if we
1313 do it here then we're not controlling the number of remote jobs
1315 (new_job): Move the check for job slots to _after_ we've created a
1316 child structure. If the read returns without getting a token, set
1317 the blocking bit then try to reap_children.
1319 * make.h (EINTR_SET): Define to test errno if EINTR is available,
1320 or 0 otherwise. Just some code cleanup.
1321 * arscan.c (ar_member_touch): Use it.
1322 * function.c (func_shell): Use it.
1323 * job.c (reap_children): Use it.
1324 * remake.c (touch_file): Use it.
1326 1999-07-28 Paul D. Smith <psmith@gnu.org>
1328 * make.h: Define _() and N_() macros as passthrough to initiate
1330 * <all>: Add _()/N_() around translatable strings.
1332 1999-07-27 Paul D. Smith <psmith@gnu.org>
1334 * read.c: Make sure make.h comes before other headers.
1336 1999-07-26 Paul D. Smith <psmith@gnu.org>
1338 * make.texinfo (Quick Reference): Update with the new features.
1340 1999-07-25 Eli Zaretskii <eliz@is.elta.co.il>
1342 * remake.c [__MSDOS__]: Don't include variables.h, it's already
1345 * function.c (msdos_openpipe) [__MSDOS__]: Return FILE ptr.
1346 (func_shell) [__MSDOS__]: Fix the argument list.
1348 * Makefile.DOS.template: Update from Makefile.in.
1350 * README.DOS.template: Configure command fixed.
1352 * configh.dos.template: Update to provide definitions for
1353 uintmax_t, fd_set_size_t, and HAVE_SELECT.
1355 1999-07-24 Paul D. Smith <psmith@gnu.org>
1357 * Version 3.77.91 released.
1359 * configure.in: Changes to the boostrapping code: if build.sh.in
1360 doesn't exist configure spits an error and generates an empty
1361 build.sh file which causes make to be confused.
1362 * maintMakefile: Don't build README early.
1364 1999-07-23 Paul D. Smith <psmith@gnu.org>
1366 * job.c (my_job_token): This variable controls whether we've
1367 handed our personal token to a subprocess or not. Note we could
1368 probably infer this from the value of job_slots_used, but it's
1369 clearer to just keep it separately. Job_slots_used isn't really
1370 relevant when running the job server.
1371 (free_job_token): New function: free a job token. If we don't
1372 have one, no-op. If we have the personal token, reclaim it. If
1373 we have another token, write it back to the pipe.
1374 (reap_children): Call free_job_token.
1375 (free_child): Call free_job_token.
1376 (start_job_command): Remove duplicate test for '+' in the command.
1377 If we don't appear to be running a recursive make, close the
1378 jobserver filedescriptors.
1379 (start_waiting_job): If our personal token is available, use that
1380 instead of going to the server pipe.
1381 (*): Add the token value to many debugging statements, and print
1382 the child target name in addition to the ptr hex value.
1383 Change the default "no token" value from '\0' to '-' so it looks
1384 better in the output.
1386 * main.c (main): Install the child_handler with sigaction()
1387 instead of signal() if we have it. On SysV systems, signal() uses
1388 SysV semantics which are a pain. But sigaction() always does what
1390 (main): If we got job server FDs from the environment, test them
1391 to see if they're open. If not, the parent make closed them
1392 because it didn't think we were a submake. Print a warning and
1393 suggestion to use "+" on the submake invocation, and hard-set to
1394 -j1 for this instance of make.
1395 (main): Change the algorithm for assigning slots to be more
1396 robust. Previously make checked to see if it thought a subprocess
1397 was a submake and if so, didn't give it a token. Since make's
1398 don't consume tokens we could spawn many of makes fighting for a
1399 small number of tokens. Plus this is unreliable because submakes
1400 might not be recognized by the parent (see above) then all the
1401 tokens could be used up by unrecognized makes, and no one could
1402 run. Now every make consumes a token from its parent. However,
1403 the make can also use this token to spawn a child. If the make
1404 wants more than one, it goes to the jobserver pipe. Thus there
1405 will never be more than N makes running for -jN, and N*2 processes
1406 (N makes and their N children). Every make can always run at
1407 least one job, and we'll never deadlock. (Note the closing of the
1408 pipe for non-submakes also solves this, but this is still a better
1409 algorithm.) So! Only put N-1 tokens into the pipe, since the
1410 topmost make keeps one for itself.
1412 * configure.in: Find sigaction. Disable job server support unless
1413 the system provides it, in addition to either waitpid() or
1416 1999-07-22 Rob Tulloh <rob_tulloh@dev.tivoli.com>
1418 * arscan.c (ar_member_touch) [WINDOWS32]: The ar_date field is a
1419 string on Windows, not a timestamp.
1421 1999-07-21 Paul D. Smith <psmith@gnu.org>
1423 * Version 3.77.90 released.
1425 * Makefile.am (AUTOMAKE_OPTIONS): Require automake 1.4.
1427 * function.c: Rearrange so we don't need to predeclare the
1428 function_table array; K&R C compilers don't like that.
1430 * acinclude.m4 (AC_FUNC_SELECT): Ouch; this requires an ANSI C
1431 compiler! Change to work with K&R compilers as well.
1433 * configure.in (AC_OUTPUT): Put build.sh back. I don't know how I
1434 thought it would work this way :-/. We'll have to think of
1436 * Makefile.am: Remove rule to create build.sh.
1438 * default.c (default_suffix_rules): Rearrange the default command
1439 lines to conform to POSIX rules (put the filename argument $<
1440 _after_ the OUTPUT_OPTION, not before it).
1442 * various: Changed !strncmp() calls to strneq() macros.
1444 * misc.c (sindex): Make slightly more efficient.
1446 * dir.c (file_impossible): Change savestring(X,strlen(X)) to xstrdup().
1447 * implicit.c (pattern_search): Ditto.
1448 * main.c (enter_command_line_file): Ditto.
1450 * misc.c (copy_dep_chain): Ditto.
1451 * read.c (read_makefile): Ditto.
1452 (parse_file_seq): Ditto.
1453 (tilde_expand): Ditto.
1454 (multi_glob): Ditto.
1455 * rule.c (install_pattern_rule): Ditto.
1456 * variable.c (define_variable_in_set): Ditto.
1457 (define_automatic_variables): Ditto.
1458 * vpath.c (construct_vpath_list): Ditto.
1460 * misc.c (xrealloc): Some reallocs are non-standard: work around
1461 them in xrealloc by calling malloc if PTR is NULL.
1462 * main.c (main): Call xrealloc() directly instead of testing for
1465 * function.c (func_sort): Don't try to free NULL; some older,
1466 non-standard versions of free() don't like it.
1468 * configure.in (--enable-dmalloc): Install some support for using
1469 dmalloc (http://www.dmalloc.com/) with make. Use --enable-dmalloc
1470 with configure to enable it.
1472 * function.c (function_table_entry): Whoops! The function.c
1473 rewrite breaks backward compatibility: all text to a function is
1474 broken into arguments, and extras are ignored. So $(sort a,b,c)
1475 returns "a"! Etc. Ouch. Fix it by making a positive value in
1476 the REQUIRED_ARGS field mean exactly that many arguments to the
1477 function; any "extras" are considered part of the last argument as
1478 before. A negative value means at least that many, but may be
1479 more: in this case all text is broken on commas.
1480 (handle_function): Stop when we've seen REQUIRED_ARGS args, if >0.
1481 (expand_builtin_function): Compare number of args to the absolute
1482 value of REQUIRED_ARGS.
1484 1999-07-20 Paul D. Smith <psmith@gnu.org>
1486 * job.c (start_job_command): Ensure that the state of the target
1487 is cs_running. It might not be if we skipped all the lines due to
1490 * commands.c (execute_file_commands): If we discover that the
1491 command script is empty and succeed early, set cs_running so the
1492 modtime of the target is still rechecked.
1494 * rule.c (freerule): Free the dependency list for the rule.
1496 * implicit.c (pattern_search): When turning an intermediate file
1497 into a real target, keep the also_make list.
1498 Free the dep->name if we didn't use it during enter_file().
1500 1999-07-16 Paul D. Smith <psmith@gnu.org>
1502 * read.c (read_makefile): Don't allocate the commands buffer until
1503 we're sure we found a makefile and won't return early (mem leak).
1505 * job.c (start_job_command): Broken #ifdef test: look for F_SETFD,
1506 not FD_SETFD. Close-on-exec isn't getting set on the bad_stdin
1507 file descriptor and it's leaking :-/.
1508 * getloadavg.c (getloadavg): Ditto.
1510 1999-07-15 Paul D. Smith <psmith@gnu.org>
1512 * read.c (read_makefile): Fix some potential memory stomps parsing
1513 `define' directives where no variable name is given.
1515 * function.c (func_call): Rename from func_apply. Various code
1516 cleanup and tightening.
1517 (function_table): Add "call" as a valid builtin function.
1519 * make.texinfo (Call Function): Document it.
1521 * NEWS: Announce it.
1523 1999-07-09 Eli Zaretskii <eliz@is.elta.co.il>
1525 * variable.c (try_variable_definition) [__MSDOS__, WINDOWS32]:
1526 Treat "override SHELL=" the same as just "SHELL=".
1528 1999-07-09 Paul D. Smith <psmith@gnu.org>
1530 * job.c (start_waiting_job): Don't get a second job token if we
1531 already have one; if we're waiting on the load to go down
1532 start_waiting_job() might get called twice on the same file.
1534 * filedef.h (struct file): Add new field, mtime_before_update.
1535 When notice_finished_file runs it assigns the cached last_mtime to
1537 * remake.c (update_goal_chain): Notice that a file wasn't updated
1538 by asking if it changed (g->changed) and comparing the current
1539 cached time (last_mtime) with the previous one, stored in
1540 mtime_before_update. The previous check ("did last_mtime changed
1541 during the run of update_file?") fails for parallel builds because
1542 last_mtime is set during reap_children, before update_file is run.
1543 This causes update_goal_chain to always return -1 (nothing
1544 rebuilt) when running parallel (-jN). This is OK during "normal"
1545 builds since our caller (main) treats these cases identically in
1546 that case, but if when rebuilding makefiles the difference is very
1547 important, as it controls whether we re-exec or not.
1548 * file.c (file_hash_enter): Copy the mtime_before_update field.
1549 (snap_deps): Initialize mtime_before_update to -1.
1550 * main.c (main): Initialize mtime_before_update on old (-o) and
1553 1999-07-08 Paul D. Smith <psmith@gnu.org>
1555 * main.c (switches): Define a new switch -R (or
1556 --no-builtin-variables). This option disables the defining of all
1557 the GNU make builtin variables.
1558 (main): If -R was given, force -r as well.
1559 * default.c (define_default_variables): Test the new flag.
1560 * make.h: Declare global flag.
1561 * make.texinfo (Options Summary): Document the new option.
1562 (Implicit Variables): Ditto.
1564 1999-07-06 Paul D. Smith <psmith@gnu.org>
1566 * make.texinfo (Options Summary): Correct examples in
1567 --print-data-base option summary (problem reported by David Morse
1568 <morse@nichimen.com>).
1570 * arscan.c: Add support for archives in Windows (VC++). Frank
1571 Libbrecht <frankl@abzx.belgium.hp.com> provided info on how to do
1573 * NMakefile.template (CFLAGS_any): Remove NO_ARCHIVES from the
1575 * build_w32.bat: Ditto.
1577 * remake.c (no_rule_error): Fix -include/sinclude so it doesn't
1578 give errors if you try to -include the same file twice.
1579 (updating_makefiles): New variable: we need to know this info in
1580 no_rule_error() so we know whether to print an error or not.
1581 (update_file_1): Unconditionally call no_rule_error(), don't try
1582 to play games with the dontcare flag.
1584 1999-06-14 Paul D. Smith <psmith@gnu.org>
1586 * make.texinfo (Remaking Makefiles): Add a description of how to
1587 prevent implicit rule searches for makefiles.
1589 * make.1: Remove statement that make continues processing when -v
1592 1999-06-14 Paul D. Smith <psmith@gnu.org>
1594 * read.c (read_makefile): Cast -1 arguments to
1595 variable_expand_string() to long. Alexandre Sauve
1596 <Alexandre.SAUVE@ifp.fr> reports that without casts, this breaks
1597 on a NEC SUPER-UX SX-4 system (and it's wrong without a cast
1598 anyway). Of course, (a) I'd really love to start using function
1599 prototypes, and (b) there's a whole slew of issues related to int
1600 vs. long and signed vs. unsigned in the length handling of
1601 variable buffers, etc. Gross. Needs a complete mucking-out.
1602 * expand.c (variable_expand): Ditto.
1604 * acinclude.m4 (AC_FUNC_SELECT): Slight enhancement for AIX 3.2 by
1605 Lars Hecking <lhecking@nmrc.ucc.ie>.
1607 * read.c (get_next_mword): Allow colons to be escaped in target
1608 names: fix for regression failure.
1610 1999-04-26 Paul D. Smith <psmith@gnu.org>
1612 * main.c (main): Reset read_makefiles to empty after processing so
1613 we get the right error message.
1615 1999-04-25 Paul D. Smith <psmith@gnu.org>
1617 * make.texinfo: Updates to @dircategory and @direntry suggested by
1618 Karl Berry <karl@cs.umb.edu>.
1620 1999-04-23 Eli Zaretskii <eliz@is.elta.co.il>
1622 * job.c (start_job_command) [__MSDOS__]: Call unblock_sigs before
1623 turning off dos_command_running, so child's signals produce the
1626 * commands.c (fatal_error_signal) [__MSDOS__]: Use EXIT_FAILURE
1629 1999-04-18 Eli Zaretskii <eliz@is.elta.co.il>
1631 * configh.dos.template: Update to recognize that version 2.02 of
1632 DJGPP contains sys_siglist stuff.
1634 1999-04-14 Paul D. Smith <psmith@gnu.org>
1636 * make.texinfo (Options/Recursion): Document the job server.
1639 1999-04-13 Paul D. Smith <psmith@gnu.org>
1641 Implement a new "job server" feature; the implementation was
1642 suggested by Howard Chu <hyc@highlandsun.com>.
1644 * configure.in (job-server): New disable option for job server
1645 support--it's enabled by default. If it works well this will go
1648 * NEWS: Summarize the new feature.
1650 * acconfig.h: New definition MAKE_JOBSERVER if job server support
1652 * config.h-vms.template: Undef MAKE_JOBSERVER for this port.
1653 * config.h.W32.template: Ditto.
1654 * config.ami.template: Ditto.
1656 * main.c (struct command_switch): Add a new type: int_string.
1657 (switches[]) Use int_string for -j if MAKE_JOBSERVER.
1658 (init_switches): Initialize the new int_string switch type.
1659 (print_usage): New function, extracted from decode_switches().
1660 (decode_switches): Call it. Decode the new int_string switch type.
1661 (define_makeflags): Add new int_string switch data to MAKEFLAGS.
1662 (job_fds[]) Array to contain the pipe file descriptors.
1663 (main): Parse the job_slots_str option results. If necessary,
1664 create the pipe and seed it with tokens. Set the non-blocking bit
1665 for the read fd. Enable the signal handler for SIGCHLD even if we
1666 have a non-hanging wait; it's needed to interrupt the select() in
1667 job.c:start_waiting_job().
1669 * make.h: Declare job_fds[].
1671 * job.h (struct child): Add job_token field to store the token for
1674 * job.c (reap_children): When a child is fully reaped, release the
1675 token back into the pipe.
1676 (free_child): If the child to be freed still has a token, put it
1678 (new_job): Initialize the job_token member.
1679 (start_waiting_job): For local jobs, if we're using the pipe, get
1680 a token before we check the load, etc. We do this by performing a
1681 non-blocking read in a loop. If the read fails, no token is
1682 available. Do a select on the fd to wait for a token. We need to
1683 re-enable the signal handler for SIGCHLD even if we have a
1684 non-hanging waitpid() or wait3(), so that the signal will
1685 interrupt the select() and we can wake up to reap children.
1686 (child_handler): Re-enable the signal handler. The count is still
1687 kept although it's not needed or used unless you don't have
1688 waitpid() or wait3().
1690 1999-04-10 Paul D. Smith <psmith@gnu.org>
1692 * main.c (main): Reset the considered bit on all the makefiles if
1693 something failed to update; we need to examine them again if they
1694 appear as normal targets in order to get the proper error message.
1696 1999-04-09 Paul D. Smith <psmith@gnu.org>
1698 Performance enhancement from Tim Magill <tim.magill@telops.gte.com>.
1700 * remake.c (update_file): If you have large numbers of
1701 dependencies and you run in parallel, make can spend considerable
1702 time each pass through the graph looking at branches it has
1703 already seen. Since we only reap_children() when starting a pass,
1704 not in the middle, if a branch has been seen already in that pass
1705 nothing interesting can happen until the next pass. So, we toggle
1706 a bit saying whether we've seen this target in this pass or not.
1707 (update_goal_chain): Initially set the global considered toggle to
1708 1, since all targets initialize their boolean to 0. At the end of
1709 each pass, toggle the global considered variable.
1710 * filedef.h (struct file): Per-file considered toggle bit.
1711 * file.c: New global toggle variable considered.
1713 1999-04-05 Paul D. Smith <psmith@gnu.org>
1715 * arscan.c (ar_scan): Added support for ARFZMAG (compressed
1716 archives?) for Digital UNIX C++. Information provided by
1717 Patrick E. Krogel <pekrogel@mtu.edu>.
1718 (ar_member_touch): Ditto.
1720 1999-04-03 Paul D. Smith <psmith@gnu.org>
1722 * remake.c (f_mtime): If: a) we found a file and b) we didn't
1723 create it and c) it's not marked as an implicit target and d) it
1724 is marked as an intermediate target, then it was so marked due to
1725 an .INTERMEDIATE special target, but it already existed in the
1726 directory. In this case, unset the intermediate flag so we won't
1727 delete it when make is done. It feels like it would be cleaner to
1728 put this check in update_file_1() but I worry it'll get missed...
1730 1999-04-01 Paul D. Smith <psmith@gnu.org>
1732 * job.c (construct_command_argv_internal): Use bcopy() to copy
1733 overlapping strings, rather than strcpy(). ISO C says the latter
1734 is undefined. Found this in a bug report from 1996! Ouch!
1736 1999-03-31 Paul D. Smith <psmith@gnu.org>
1738 * read.c (readline): Ignore carriage returns at the end of the
1739 line, to allow Windows-y CRLF line terminators.
1741 1999-03-30 Paul D. Smith <psmith@gnu.org>
1743 * configure.in: Don't put build.sh here, since build.sh.in doesn't
1744 exist initially. This cause autoreconf and automake to fail when
1745 run on a clean CVS checkout. Instead, we create build.sh in the
1746 Makefile (see below).
1748 * Makefile.am: Remove BUILT_SOURCES; this is no longer relevant.
1749 Put those files directly into EXTRA_DIST so they're distributed.
1750 Create a local build rule to create build.sh.
1751 Create a local maintainer-clean rule to delete all the funky
1754 * maintMakefile: Makefile.in depends on README, since automake
1755 fails if it doesn't exist. Also don't remove glob/Makefile.in
1756 here, as it causes problems.
1758 1999-03-26 Paul D. Smith <psmith@gnu.org>
1760 * configure.in: Substitute GLOBLIB if we need the link the
1761 glob/libglob.a library.
1762 * Makefile.am (make_LDADD): Use the subst variable GLOBLIB so we
1763 don't link the local libglob.a at all if we don't need it.
1764 * build.template: Don't compile glob/*.o unless we want globlib.
1765 * maintMakefile (build.sh.in): Substitute the glob/*.o files
1768 1999-03-25 Paul D. Smith <psmith@gnu.org>
1770 * make.texinfo: Various typos and additions, pointed out by James
1771 G. Sack <jsack@dornfeld.com>.
1773 1999-03-22 Paul D. Smith <psmith@gnu.org>
1775 * make.texinfo (Functions): Add a new section documenting the new
1776 $(error ...) and $(warning ...) functions. Also updated copyright
1778 * NEWS: Updated for the new functions.
1779 * function.c (func_error): Implement the new $(error ...) and
1780 $(warning ...) functions.
1781 (function_table): Insert new functions into the table.
1782 (func_firstword): Don't call find_next_token() with argv[0]
1783 itself, since that function modifies the pointer.
1784 * function.c: Cleanups and slight changes to the new method of
1787 1999-03-20 Han-Wen Nienhuys <hanwen@cs.uu.nl>
1789 * function.c: Rewrite to use one C function per make function,
1790 instead of a huge switch statement. Also allows some cleanup of
1791 multi-architecture issues, and a cleaner API which makes things
1792 like func_apply() simple.
1794 * function.c (func_apply): Initial implementation. Expand either
1795 a builtin function or a make variable in the context of some
1796 arguments, provided as $1, $2, ... $N.
1798 1999-03-19 Eli Zaretskii <eliz@is.elta.co.il>
1799 1999-03-19 Rob Tulloh <rob_tulloh@dev.tivoli.com>
1801 * job.c (construct_command_argv_internal): Don't treat _all_
1802 backslashes as escapes, only those which really escape a special
1803 character. This allows most normal "\" directory separators to be
1806 1999-03-05 Paul D. Smith <psmith@gnu.org>
1808 * configure.in: Check for a system strdup().
1809 * misc.c (xstrdup): Created. Suggestion by Han-Wen Nienhuys
1811 * make.h: Prototype xstrdup().
1812 * remake.c (library_search): Use it.
1813 * main.c (main): Use it.
1814 (find_and_set_default_shell): Use it.
1815 * job.c (construct_command_argv_internal): Use it.
1816 * dir.c (find_directory): Use it.
1818 * Makefile.am, configure.in: Use AC_SUBST_FILE to insert the
1819 maintMakefile instead of "include", to avoid automake 1.4
1822 1999-03-04 Paul D. Smith <psmith@gnu.org>
1824 * amiga.c, amiga.h, ar.c, arscan.c, commands.c, commands.h,
1825 * default.c, dep.h, dir.c, expand.c, file.c, filedef.h, function.c,
1826 * implicit.c, job.c, job.h, main.c, make.h, misc.c, read.c, remake.c
1827 * remote-cstms.c, remote-stub.c, rule.h, variable.c, variable.h,
1828 * vpath.c, Makefile.ami, NMakefile.template, build.template,
1829 * makefile.vms: Updated FSF address in the copyright notice.
1831 * variable.c (try_variable_definition): If we see a conditional
1832 variable and we decide to set it, re-type it as recursive so it
1833 will be expanded properly later.
1835 1999-02-22 Paul D. Smith <psmith@gnu.org>
1837 * NEWS: Mention new .LIBPATTERNS feature.
1839 * make.texinfo (Libraries/Search): Describe the use and
1840 ramifications of the new .LIBPATTERNS variable.
1842 * remake.c (library_search): Instead of searching only for the
1843 hardcoded expansion "libX.a" for a library reference "-lX", we
1844 obtain a list of patterns from the .LIBPATTERNS variable and
1845 search those in order.
1847 * default.c: Added a new default variable .LIBPATTERNS. The
1848 default for UNIX is "lib%.so lib%.a". Amiga and DOS values are
1851 * read.c: Remove bogus HAVE_GLOB_H references; always include
1854 1999-02-21 Paul D. Smith <psmith@gnu.org>
1856 * function.c (expand_function): Set value to 0 to avoid freeing it.
1857 * variable.c (pop_variable_scope): Free the value of the variable.
1858 (try_variable_definition): For simple variables, use
1859 allocated_variable_expand() to avoid stomping on the variable
1860 buffer when we still need it for other things.
1862 * arscan.c: Modified to support AIX 4.3 big archives. The changes
1863 are based on information provided by Phil Adams
1864 <padams@austin.ibm.com>.
1866 1999-02-19 Paul D. Smith <psmith@gnu.org>
1868 * configure.in: Check to see if the GNU glob library is already
1869 installed on the system. If so, _don't_ add -I./glob to the
1870 compile line. Using the system glob code with the local headers
1872 Rewrite SCCS macros to use more autoconf facilities.
1874 * Makefile.am: Move -Iglob out of INCLUDES; it'll get added to
1875 CPPFLAGS by configure now.
1876 Automake 1.4 introduced its own "include" feature which conflicts
1877 with the maintMakefile stuff. A hack that seems to work is add a
1878 space before the include :-/.
1880 * build.template: Move -Iglob out of the compile line; it'll get
1881 added to CPPFLAGS by configure now.
1883 1999-02-16 Glenn D. Wolf <Glenn_Wolf@email.sps.mot.com>
1885 * arscan.c (ar_scan) [VMS]: Initialized VMS_member_date before
1886 calling lbr$get_index since if the archive is empty,
1887 VMS_get_member_info won't get called at all, and any leftover date
1888 will be used. This bug shows up if any member of any archive is
1889 made, followed by a dependency check on a different, empty
1892 1998-12-13 Martin Zinser <zinser@decus.decus.de>
1894 * config.h-vms [VMS]: Set _POSIX_C_SOURCE. Redefine the getopt
1895 functions so we don't use the broken VMS versions.
1896 * makefile.com [VMS]: Allow debugging.
1897 * dir.c (dir_setup_glob) [VMS]: Don't extern stat() on VMS.
1899 1998-11-30 Paul D. Smith <psmith@gnu.org>
1901 * signame.c (init_sig): Check the sizes of signals being set up to
1902 avoid array overwrites (if the system headers have problems).
1904 1998-11-17 Paul D. Smith <psmith@gnu.org>
1906 * read.c (record_files): Clean up some indentation.
1908 1998-11-08 Han-Wen Nienhuys <hanwen@cs.uu.nl>
1910 * rule.c (print_rule_data_base): Fix arguments to fatal() call.
1912 1998-10-13 Paul D. Smith <psmith@gnu.org>
1914 * job.c (start_job_command): If the command list resolves to no
1915 chars at all (e.g.: "foo:;$(empty)") then command_ptr is NULL;
1918 1998-10-12 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1920 * rule.c (print_rule_data_base): Ignore num_pattern_rules if it is
1923 1998-10-09 Paul D. Smith <psmith@gnu.org>
1925 * read.c (read_makefile): Allow non-empty lines to expand to the
1926 empty string after variable, etc., expansion, and be ignored.
1928 1998-09-21 Paul D. Smith <psmith@gnu.org>
1930 * job.c (construct_command_argv_internal): Only add COMMAND.COM
1931 "@echo off" line for non-UNIXy shells.
1933 1998-09-09 Paul D. Smith <psmith@gnu.org>
1935 * w32/subproc/sub_proc.c: Add in missing HAVE_MKS_SHELL tests.
1937 1998-09-04 Paul D. Smith <psmith@gnu.org>
1939 * read.c (read_makefile): If we hit the "missing separator" error,
1940 check for the common case of 8 spaces instead of a TAB and give an
1941 extra comment to help people out.
1943 1998-08-29 Paul Eggert <eggert@twinsun.com>
1945 * configure.in (AC_STRUCT_ST_MTIM_NSEC):
1946 Renamed from AC_STRUCT_ST_MTIM.
1948 * acinclude.m4 (AC_STRUCT_ST_MTIM_NSEC): Likewise.
1949 Port to UnixWare 2.1.2 and pedantic Solaris 2.6.
1951 * acconfig.h (ST_MTIM_NSEC):
1952 Renamed from HAVE_ST_MTIM, with a new meaning.
1954 * filedef.h (FILE_TIMESTAMP_FROM_S_AND_NS):
1955 Use new ST_MTIM_NSEC macro.
1957 1998-08-26 Paul D. Smith <psmith@gnu.org>
1959 * remake.c (check_dep): For any intermediate file, not just
1960 secondary ones, try implicit and default rules if no explicit
1961 rules are given. I'm not sure why this was restricted to
1962 secondary rules in the first place.
1964 1998-08-24 Paul D. Smith <psmith@gnu.org>
1966 * make.texinfo (Special Targets): Update documentation for
1967 .INTERMEDIATE: if used with no dependencies, then it does nothing;
1968 old docs said it marked all targets as intermediate, which it
1969 didn't... and which would be silly :).
1971 * implicit.c (pattern_search): If we find a dependency in our
1972 internal tables, make sure it's not marked intermediate before
1973 accepting it as a found_file[].
1975 1998-08-20 Paul D. Smith <psmith@gnu.org>
1977 * ar.c (ar_glob): Use existing alpha_compare() with qsort.
1978 (ar_glob_alphacompare): Remove it.
1980 Modify Paul Eggert's patch so we don't abandon older systems:
1982 * configure.in: Warn the user if neither waitpid() nor wait3() is
1985 * job.c (WAIT_NOHANG): Don't syntax error on ancient hosts.
1986 (child_handler, dead_children): Define these if WAIT_NOHANG is not
1988 (reap_children): Only track the dead_children count if no
1989 WAIT_NOHANG. Otherwise, it's a boolean.
1991 * main.c (main): Add back signal handler if no WAIT_NOHANG is
1992 available; only use default signal handler if it is.
1994 1998-08-20 Paul Eggert <eggert@twinsun.com>
1996 Install a more robust signal handling mechanism for systems which
1999 * job.c (WAIT_NOHANG): Define to a syntax error if our host
2000 is truly ancient; this should never happen.
2001 (child_handler, dead_children): Remove.
2002 (reap_children): Don't try to keep separate track of how many
2003 dead children we have, as this is too bug-prone.
2004 Just ask the OS instead.
2005 (vmsHandleChildTerm): Fix typo in error message; don't mention
2008 * main.c (main): Make sure we're not ignoring SIGCHLD/SIGCLD;
2009 do this early, before we could possibly create a subprocess.
2010 Just use the default behavior; don't have our own handler.
2012 1998-08-18 Eli Zaretskii <eliz@is.elta.co.il>
2014 * read.c (read_makefile) [__MSDOS__, WINDOWS32]: Add code to
2015 recognize library archive members when dealing with drive spec
2016 mess. Discovery and initial fix by George Racz <gracz@mincom.com>.
2018 1998-08-18 Paul D. Smith <psmith@gnu.org>
2020 * configure.in: Check for stdlib.h explicitly (some hosts have it
2021 but don't have STDC_HEADERS).
2022 * make.h: Use HAVE_STDLIB_H. Clean up some #defines.
2023 * config.ami: Re-compute based on new config.h.in contents.
2024 * config.h-vms: Ditto.
2025 * config.h.W32: Ditto.
2026 * configh.dos: Ditto.
2028 * dir.c (find_directory) [WINDOWS32]: Windows stat() fails if
2029 directory names end with `\' so strip it.
2031 1998-08-17 Paul D. Smith <psmith@gnu.org>
2033 * make.texinfo: Added copyright year to the printed copy. Removed
2034 the price from the manual. Change the top-level reference to
2035 running make to be "Invoking make" instead of "make Invocation",
2036 to comply with GNU doc standards.
2038 * make.h (__format__, __printf__): Added support for these in
2039 __attribute__ macro.
2040 (message, error, fatal): Use ... prototype form under __STDC__.
2041 Add __format__ attributes for printf-style functions.
2043 * configure.in (AC_FUNC_VPRINTF): Check for vprintf()/_doprnt().
2045 * misc.c (message, error, fatal): Add preprocessor stuff to enable
2046 creation of variable-argument functions with appropriate
2047 prototypes, that works with ANSI, pre-ANSI, varargs.h, stdarg.h,
2048 v*printf(), _doprnt(), or none of the above. Culled from GNU
2049 fileutils and slightly modified.
2050 (makefile_error, makefile_error): Removed (merged into error() and
2051 fatal(), respectively).
2052 * amiga.c: Use them.
2054 * arscan.c: Use them.
2055 * commands.c: Use them.
2056 * expand.c: Use them.
2058 * function.c: Use them.
2063 * remake.c: Use them.
2064 * remote-cstms.c: Use them.
2066 * variable.c: Use them.
2068 * make.h (struct floc): New structure to store file location
2070 * commands.h (struct commands): Use it.
2071 * variable.c (try_variable_definition): Use it.
2072 * commands.c: Use it.
2073 * default.c: Use it.
2075 * function.c: Use it.
2080 1998-08-16 Paul Eggert <eggert@twinsun.com>
2082 * filedef.h (FILE_TIMESTAMP_PRINT_LEN_BOUND): Add 10, for nanoseconds.
2084 1998-08-16 Paul Eggert <eggert@twinsun.com>
2086 * filedef.h (FLOOR_LOG2_SECONDS_PER_YEAR): New macro.
2087 (FILE_TIMESTAMP_PRINT_LEN_BOUND): Tighten bound, and try to
2088 make it easier to understand.
2090 1998-08-14 Paul D. Smith <psmith@gnu.org>
2092 * read.c (read_makefile): We've already unquoted any colon chars
2093 by the time we're done reading the targets, so arrange for
2094 parse_file_seq() on the target list to not do so again.
2096 1998-08-05 Paul D. Smith <psmith@gnu.org>
2098 * configure.in: Added glob/configure.in data. We'll have the glob
2099 code include the regular make config.h, rather than creating its
2102 * getloadavg.c (main): Change return type to int.
2104 1998-08-01 Paul Eggert <eggert@twinsun.com>
2106 * job.c (reap_children): Ignore unknown children.
2108 1998-07-31 Paul D. Smith <psmith@gnu.org>
2110 * make.h, filedef.h, dep.h, rule.h, commands.h, remake.c:
2111 Add prototypes for functions. Some prototypes needed to be moved
2112 in order to get #include order reasonable.
2114 1998-07-30 Paul D. Smith <psmith@gnu.org>
2116 * make.h: Added MIN/MAX.
2117 * filedef.h: Use them; remove FILE_TIMESTAMP_MIN.
2119 1998-07-30 Paul Eggert <eggert@twinsun.com>
2121 Add support for sub-second timestamp resolution on hosts that
2122 support it (just Solaris 2.6, so far).
2124 * acconfig.h (HAVE_ST_MTIM, uintmax_t): New undefs.
2125 * acinclude.m4 (jm_AC_HEADER_INTTYPES_H, AC_STRUCT_ST_MTIM,
2126 jm_AC_TYPE_UINTMAX_T): New defuns.
2127 * commands.c (delete_target): Convert file timestamp to
2128 seconds before comparing to archive timestamp. Extract mod
2129 time from struct stat using FILE_TIMESTAMP_STAT_MODTIME.
2130 * configure.in (C_STRUCT_ST_MTIM, jm_AC_TYPE_UINTMAX_T): Add.
2131 (AC_CHECK_LIB, AC_CHECK_FUNCS): Add clock_gettime.
2132 * file.c (snap_deps): Use FILE_TIMESTAMP, not time_t.
2133 (file_timestamp_now, file_timestamp_sprintf): New functions.
2134 (print_file): Print file timestamps as FILE_TIMESTAMP, not
2136 * filedef.h: Include <inttypes.h> if available and if HAVE_ST_MTIM.
2137 (FILE_TIMESTAMP, FILE_TIMESTAMP_STAT_MODTIME, FILE_TIMESTAMP_MIN,
2138 FILE_TIMESTAMPS_PER_S, FILE_TIMESTAMP_FROM_S_AND_NS,
2139 FILE_TIMESTAMP_DIV, FILE_TIMESTAMP_MOD, FILE_TIMESTAMP_S,
2140 FILE_TIMESTAMP_NS, FILE_TIMESTAMP_PRINT_LEN_BOUND): New macros.
2141 (file_timestamp_now, file_timestamp_sprintf): New decls.
2142 (struct file.last_mtime, f_mtime, file_mtime_1, NEW_MTIME):
2143 time_t -> FILE_TIMESTAMP.
2144 * implicit.c (pattern_search): Likewise.
2145 * vpath.c (vpath_search, selective_vpath_search): Likewise.
2146 * main.c (main): Likewise.
2147 * remake.c (check_dep, name_mtime, library_search, f_mtime): Likewise.
2148 (f_mtime): Use file_timestamp_now instead of `time'.
2149 Print file timestamp with file_timestamp_sprintf.
2150 * vpath.c (selective_vpath_search): Extract file time stamp from
2151 struct stat with FILE_TIMESTAMP_STAT_MODTIME.
2153 1998-07-28 Paul D. Smith <psmith@gnu.org>
2155 * Version 3.77 released.
2157 * dosbuild.bat: Change to DOS CRLF line terminators.
2159 * make-stds.texi: Update from latest version.
2161 * make.texinfo (Options Summary): Clarify that the -r option
2162 affects only rules, not builtin variables.
2164 1998-07-27 Paul D. Smith <psmith@gnu.org>
2166 * make.h: Make __attribute__ resolve to empty for non-GCC _and_
2169 * misc.c (log_access): Print UID/GID's as unsigned long int for
2170 maximum portability.
2172 * job.c (reap_children): Print PIDs as long int for maximum
2175 1998-07-24 Eli Zaretskii <eliz@is.elta.co.il>
2177 * Makefile.DOS (*_INSTALL, *_UNINSTALL): Replace `true' with `:'.
2179 1998-07-25 Paul D. Smith <psmith@gnu.org>
2181 * Version 3.76.94 released.
2183 1998-07-23 Paul D. Smith <psmith@gnu.org>
2185 * config.h.W32.template: Make sure all the #defines of macros here
2186 have a value (e.g., use ``#define HAVE_STRING_H 1'' instead of
2187 just ``#define HAVE_STRING_H''. Keeps the preprocessor happy in
2190 * make.h: Remove __attribute__((format...)) stuff; using it with
2191 un-prototyped functions causes older GCC's to fail.
2193 * Version 3.76.93 released.
2195 1998-07-22 Paul D. Smith <psmith@gnu.org>
2197 * file.c (print_file_data_base): Fix average calculation.
2199 1998-07-20 Paul D. Smith <psmith@gnu.org>
2201 * main.c (die): Postpone the chdir() until after
2202 remove_intermediates() so that intermediate targets with relative
2203 pathnames are removed properly.
2205 1998-07-17 Paul D. Smith <psmith@gnu.org>
2207 * filedef.h (struct file): New flag: did we print an error or not?
2209 * remake.c (no_rule_error): New function to print error messages,
2210 extraced from remake_file().
2212 * remake.c (remake_file): Invoke the new error print function.
2213 (update_file_1): Invoke the error print function if we see that we
2214 already tried this target and it failed, but that an error wasn't
2215 printed for it. This can happen if a file is included with
2216 -include or sinclude and couldn't be built, then later is also
2217 the dependency of another target. Without this change, make just
2220 1998-07-16 Paul D. Smith <psmith@gnu.org>
2222 * make.texinfo: Removed "beta" version designator.
2223 Updated ISBN for the next printing.
2225 1998-07-13 Paul Eggert <eggert@twinsun.com>
2227 * acinclude.m4: New AC_LFS macro to determine if special compiler
2228 flags are needed to allow access to large files (e.g., Solaris 2.6).
2229 * configure.in: Invoke it.
2231 1998-07-08 Eli Zaretskii <eliz@is.elta.co.il>
2233 * Makefile.DOS: track changes in Makefile.in.
2235 1998-07-07 Paul D. Smith <psmith@gnu.org>
2237 * remote-cstms.c (start_remote_job): Move gethostbyaddr() to the
2238 top so host is initialized early enough.
2240 * acinclude.m4: New file. Need some special autoconf macros to
2241 check for network libraries (-lsocket, -lnsl, etc.) when
2242 configuring Customs.
2244 * configure.in (make_try_customs): Invoke new network libs macro.
2246 1998-07-06 Paul D. Smith <psmith@gnu.org>
2248 * Version 3.76.92 released.
2250 * README.customs: Added to the distribution.
2252 * configure.in (make_try_customs): Rewrite to require an installed
2253 Customs library, rather than looking at the build directory.
2255 * Makefile.am (man_MANS): Install make.1.
2256 * make.1: Renamed from make.man.
2258 * make.texinfo (Bugs): New mailing list address for GNU make bug
2261 1998-07-02 Paul D. Smith <psmith@gnu.org>
2263 * Version 3.76.91 released.
2265 * default.c: Added default rule for new-style RCS master file
2266 storage; ``% :: RCS/%''.
2267 Added default rules for DOS-style C++ files with suffix ".cpp".
2268 They use the new LINK.cpp and COMPILE.cpp macros, which are set by
2269 default to be equal to LINK.cc and COMPILE.cc.
2271 1998-06-19 Eli Zaretskii <eliz@is.elta.co.il>
2273 * job.c (start_job_command): Reset execute_by_shell after an empty
2274 command was skipped.
2276 1998-06-09 Paul D. Smith <psmith@gnu.org>
2278 * main.c (main): Keep track of the temporary filename created when
2279 reading a makefile from stdin (-f-) and attempt to remove it
2280 as soon as we know we're not going to re-exec. If we are, add it
2281 to the exec'd make's cmd line with "-o" so the exec'd make doesn't
2282 try to rebuild it. We still have a hole: if make re-execs then
2283 the temporary file will never be removed. To fix this we'd need
2284 a brand new option that meant "really delete this".
2285 * AUTHORS, getopt.c, getopt1.c, getopt.h, main.c (print_version):
2286 Updated mailing addresses.
2288 1998-06-08 Paul D. Smith <psmith@gnu.org>
2290 * main.c (main): Andreas Luik <luik@isa.de> points out that the
2291 check for makefile :: rules with commands but no dependencies
2292 causing a loop terminates incorrectly.
2294 * maintMakefile: Make a template for README.DOS to update version
2297 1998-05-30 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2299 * remake.c (update_file_1): Don't free the memory for the
2300 dependency structure when dropping a circular dependency.
2302 1998-05-30 Eli Zaretskii <eliz@is.elta.co.il>
2304 * dir.c (file_exists_p, file_impossible_p, file_impossible)
2305 [__MSDOS__, WINDOWS32]: Retain trailing slash in "d:/", and make
2306 dirname of "d:foo" be "d:".
2308 1998-05-26 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2310 * read.c (read_makefile): Avoid running past EOS when scanning
2311 file name after `include'.
2313 1998-05-26 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2315 * make.texinfo (Flavors): Correct description of conditional
2316 assignment, which is not equivalent to ifndef.
2317 (Setting): Likewise.
2319 1998-05-24 Paul D. Smith <psmith@gnu.org>
2321 * arscan.c (ar_name_equal): strncmp() might be implemented as a
2322 macro, so don't put preprocessor conditions inside the arguments
2325 1998-05-23 Eli Zaretskii <eliz@is.elta.co.il>
2327 * read.c (read_makefile) [__MSDOS__, WINDOWS32]: Skip colons in
2328 drive specs when parsing targets, target-specific variables and
2329 static pattern rules. A colon can only be part of drive spec if
2330 it is after the first letter in a token.
2332 1998-05-22 Eli Zaretskii <eliz@is.elta.co.il>
2334 * remake.c (f_mtime) [__MSDOS__]: Allow up to 3 sec of skew before
2335 yelling bloody murder.
2337 * dosbuild.bat: Use -DINCLUDEDIR= and -DLIBDIR= where appropriate.
2339 * read.c (parse_file_seq): Combine the special file-handling code
2340 for WINDOWS32 and __MSDOS__ into a single snippet.
2341 (get_next_mword) [__MSDOS__, WINDOWS32]: Allow a word to include a
2342 colon as part of a drive spec.
2344 * job.c (batch_mode_shell) [__MSDOS__]: Declare.
2346 1998-05-20 Paul D. Smith <psmith@gnu.org>
2348 * Version 3.76.90 released.
2350 1998-05-19 Paul D. Smith <psmith@gnu.org>
2352 * make.texinfo (Make Errors): Added a new appendix describing
2353 common errors make might generate and how to resolve them (or at
2354 least more information on what they mean).
2356 * maintMakefile (NMAKEFILES): Use the new automake 1.3 feature
2357 to create a dependency file to construct Makefile.DOS, SMakefile,
2359 (.dep_segment): Generate the dependency fragment file.
2361 1998-05-14 Paul D. Smith <psmith@gnu.org>
2363 * make.man: Minor changes.
2365 1998-05-13 Paul D. Smith <psmith@gnu.org>
2367 * function.c (pattern_matches,expand_function): Change variables
2368 and types named "word" to something else, to avoid compilation
2369 problems on Cray C90 Unicos.
2370 * variable.h: Modify the function prototype.
2372 1998-05-11 Rob Tulloh <rob_tulloh@tivoli.com>
2374 * job.c (construct_command_argv_internal) [WINDOWS32]: Turn off
2375 echo when using a batch file, and make sure the command ends in a
2378 1998-05-03 Paul D. Smith <psmith@gnu.org>
2380 * configure.in (make_try_customs): Add some customs flags if the
2381 user configures custom support.
2383 * job.c, remote-cstms.c: Merge in changes for custom library.
2385 * remote-stub.c: Add option to stub start_remote_job_p().
2387 1998-05-01 Paul D. Smith <psmith@gnu.org>
2389 * remake.c (f_mtime): Install VPATH+ handling for archives; use
2390 the hname field instead of the name field, and rehash when
2393 1998-04-30 Paul D. Smith <psmith@gnu.org>
2395 * rule.c (print_rule_data_base): Print out any pattern-specific
2396 variable values into the rules database.
2398 * variable.c (print_variable_set): Make this variable extern, to
2399 be called by print_rule_data_base() for pattern-specific variables.
2401 * make.texinfo (Pattern-specific): Document pattern-specific
2404 1998-04-29 Paul D. Smith <psmith@gnu.org>
2406 * expand.c (variable_expand_for_file): Make static; its only
2407 called internally. Look up this target in the list of
2408 pattern-specific variables and insert the variable set into the
2409 queue to be searched.
2411 * filedef.h (struct file): Add a new field to hold the
2412 previously-found pattern-specific variable reference. Add a new
2413 flag to remember whether we already searched for this file.
2415 * rule.h (struct pattern_var): New structure for storing
2416 pattern-specific variable values. Define new function prototypes.
2418 * rule.c: New variables pattern_vars and last_pattern_var for
2419 storage and handling of pattern-specific variable values.
2420 (create_pattern_var): Create a new pattern-specific variable value
2422 (lookup_pattern_var): Try to match a target to one of the
2423 pattern-specific variable values.
2425 1998-04-22 Paul D. Smith <psmith@gnu.org>
2427 * make.texinfo (Target-specific): Document target-specific
2430 1998-04-21 Paul D. Smith <psmith@gnu.org>
2432 * variable.c (define_variable_in_set): Made globally visible.
2433 (lookup_variable_in_set): New function: like lookup_variable but
2434 look only in a specific variable set.
2435 (target_environment): Use lookup_variable_in_set() to get the
2436 correct export rules for a target-specific variable.
2437 (create_new_variable_set): Create a new variable set, and just
2438 return it without installing it anywhere.
2439 (push_new_variable_scope): Reimplement in terms of
2440 create_new_variable_set.
2442 * read.c (record_target_var): Like record_files, but instead of
2443 files create a target-specific variable value for each of the
2444 listed targets. Invoked from read_makefile() when the target line
2445 turns out to be a target-specific variable assignment.
2447 1998-04-19 Paul D. Smith <psmith@gnu.org>
2449 * read.c (read_makefile): Rewrite the entire target parsing
2450 section to implement target-specific variables. In particular, we
2451 cannot expand the entire line as soon as it's read in, since we
2452 may want to evaluate parts of it with different variable contexts
2453 active. Instead, start expanding from the beginning until we find
2454 the `:' (or `::'), then determine what kind of line this is and
2455 continue appropriately.
2457 * read.c (get_next_mword): New function to parse a makefile line
2458 by "words", considering an entire variable or function as one
2459 word. Return the type read in, along with its starting position
2461 (enum make_word_type): The types of words that are recognized by
2464 * variable.h (struct variable): Add a flag to specify a per-target
2467 * expand.c: Make variable_buffer global. We need this during the
2468 new parsing of the makefile.
2469 (variable_expand_string): New function. Like variable_expand(),
2470 but start at a specific point in the buffer, not the beginning.
2471 (variable_expand): Rewrite to simply call variable_expand_string().
2473 1998-04-13 Paul D. Smith <psmith@gnu.org>
2475 * remake.c (update_goal_chain): Allow the rebuilding makefiles
2476 step to use parallel jobs. Not sure why this was disabled:
2477 hopefully we won't find out :-/.
2479 1998-04-11 Paul D. Smith <psmith@gnu.org>
2481 * main.c (main): Set the CURDIR makefile variable.
2482 * make.texinfo (Recursion): Document it.
2484 1998-03-17 Paul D. Smith <psmith@gnu.org>
2486 * misc.c (makefile_fatal): If FILE is nil, invoke plain fatal().
2487 * variable.c (try_variable_definition): Use new feature.
2489 1998-03-10 Paul D. Smith <psmith@gnu.org>
2491 * main.c (main): Don't pass included, rebuilt makefiles to
2492 re-exec'd makes with -o. Reopens a possible loop, but it caused
2495 1998-03-02 Paul D. Smith <psmith@gnu.org>
2497 * variable.c (try_variable_definition): Implement ?=.
2498 * make.texinfo (Setting): Document it.
2500 1998-02-28 Eli Zaretskii <eliz@is.elta.co.il>
2502 * job.c (start_job_command): Reset execute_by_shell after an empty
2503 command, like ":", has been seen.
2505 Tue Oct 07 15:00:00 1997 Phil Brooks <phillip_brooks@hp.com>
2507 * make.h [WINDOWS32]: make case sensitivity configurable
2508 * dir.c [WINDOWS32]: make case sensitivity configurable
2509 * README.W32: Document case sensitivity
2510 * config.ami: Share case warping code with Windows
2512 Mon Oct 6 18:48:45 CDT 1997 Rob Tulloh <rob_tulloh@dev.tivoli.com>
2514 * w32/subproc/sub_proc.c: Added support for MKS toolkit shell
2515 (turn on HAVE_MKS_SHELL).
2516 * read.c [WINDOWS32]: Fixed a problem with multiple target rules
2517 reported by Gilbert Catipon (gcatipon@tibco.com). If multiple
2518 path tokens in a rule did not have drive letters, make would
2519 incorrectly concatenate the 2 tokens together.
2520 * main.c/variable.c [WINDOWS32]: changed SHELL detection code to
2521 follow what MSDOS did. In addition to watching for SHELL variable
2522 updates, make's main will attempt to default the value of SHELL
2523 before and after makefiles are parsed.
2524 * job.c/job.h [WINDOWS32]: The latest changes made to enable use
2525 of the GNUWIN32 shell from make could cause make to fail due to a
2526 concurrency condition between parent and child processes. Make
2527 now creates a batch file per job instead of trying to reuse the
2528 same singleton batch file.
2529 * job.c/job.h/function.c/config.h.W32 [WINDOWS32]: Renamed macro
2530 from HAVE_CYGNUS_GNUWIN32_TOOLS to BATCH_MODE_ONLY_SHELL. Reworked
2531 logic to reduce complexity. WINDOWS32 now uses the unixy_shell
2532 variable to detect Bourne-shell compatible environments. There is
2533 also a batch_mode_shell variable that determines whether not
2534 command lines should be executed via script files. A WINDOWS32
2535 system with no sh.exe installed would have unixy_shell set to
2536 FALSE and batch_mode_shell set to TRUE. If you have a unixy shell
2537 that does not behave well when invoking things via 'sh -c xxx',
2538 you may want to turn on BATCH_MODE_ONLY_SHELL and see if things
2540 * NMakefile: Added /D DEBUG to debug build flags so that unhandled
2541 exceptions could be debugged.
2543 Mon Oct 6 00:04:25 1997 Rob Tulloh <rob_tulloh@dev.tivoli.com>
2545 * main.c [WINDOWS32]: The function define_variable() does not
2546 handle NULL. Test before calling it to set Path.
2547 * main.c [WINDOWS32]: Search Path again after makefiles have been
2548 parsed to detect sh.exe.
2549 * job.c [WINDOWS32]: Added support for Cygnus GNU WIN32 tools.
2550 To use, turn on HAVE_CYGNUS_GNUWIN32_TOOLS in config.h.W32.
2551 * config.h.W32: Added HAVE_CYGNUS_GNUWIN32_TOOLS macro.
2553 Sun Oct 5 22:43:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
2555 * glob/glob.c (glob_in_dir) [VMS]: Globbing shouldn't be
2557 * job.c (child_execute_job) [VMS]: Use a VMS .com file if the
2558 command contains a newline (e.g. from a define/enddef block).
2559 * vmsify.c (vmsify): Return relative pathnames wherever possible.
2560 * vmsify.c (vmsify): An input string like "../.." returns "[--]".
2562 Wed Oct 1 15:45:09 1997 Rob Tulloh <rob_tulloh@tivoli.com>
2564 * NMakefile: Changed nmake to $(MAKE).
2565 * subproc.bat: Take the make command name from the command
2566 line. If no command name was given, default to nmake.
2567 * job.c [MSDOS, WINDOWS32]: Fix memory stomp: temporary file names
2568 are now always created in heap memory.
2569 * w32/subproc/sub_proc.c: New implementation of make_command_line()
2570 which is more compatible with different Bourne shell implementations.
2571 Deleted the now obsolete fix_command_line() function.
2572 * main.c [WINDOWS32]: Any arbitrary spelling of Path can be
2573 detected. Make will ensure that the special spelling `Path' is
2574 inserted into the environment when the path variable is propagated
2575 within itself and to make's children.
2576 * main.c [WINDOWS32]: Detection of sh.exe was occurring too
2577 soon. The 2nd check for the existence of sh.exe must come after
2578 the call to read_all_makefiles().
2580 Fri Sep 26 01:14:18 1997 <zinser@axp602.gsi.de>
2582 * makefile.com [VMS]: Fixed definition of sys.
2583 * readme.vms: Comments on what's changed lately.
2585 Fri Sep 26 01:14:18 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
2587 * read.c (read_all_makefiles): Allow make to find files named
2588 "MAKEFILE" with no extension on VMS.
2589 * file.c (lookup_file): Lowercase filenames on VMS.
2591 1997-09-29 Paul D. Smith <psmith@baynetworks.com>
2593 * read.c (read_makefile): Reworked target detection again; the old
2594 version had an obscure quirk.
2596 Fri Sep 19 09:20:49 1997 Paul D. Smith <psmith@baynetworks.com>
2598 * Version 3.76.1 released.
2600 * Makefile.am: Add loadavg files to clean rules.
2602 * configure.in (AC_OUTPUT): Remove stamp-config; no longer needed.
2603 * Makefile.ami (distclean): Ditto.
2604 * SMakefile (distclean): Ditto.
2606 * main.c (main): Arg count should be int, not char! Major braino.
2608 Tue Sep 16 10:18:22 1997 Paul D. Smith <psmith@baynetworks.com>
2610 * Version 3.76 released.
2612 Tue Sep 2 10:07:39 1997 Paul D. Smith <psmith@baynetworks.com>
2614 * function.c (expand_function): When processing $(shell...)
2615 translate a CRLF (\r\n) sequence as well as a newline (\n) to a
2616 space. Also remove an ending \r\n sequence.
2617 * make.texinfo (Shell Function): Document it.
2619 Fri Aug 29 12:59:06 1997 Rob Tulloh <rob_tulloh@tivoli.com>
2621 * w32/pathstuff.c (convert_Path_to_windows32): Fix problem where
2622 paths which contain single character entries like `.' are not
2625 * README.W32: Document path handling issues on Windows systems.
2627 Fri Aug 29 02:01:27 1997 Paul D. Smith <psmith@baynetworks.com>
2631 Thu Aug 28 19:39:06 1997 Rob Tulloh <rob_tulloh@tivoli.com>
2633 * job.c (exec_command) [WINDOWS32]: If exec_command() is invoked
2634 from main() to re-exec make, the call to execvp() would
2635 incorrectly return control to parent shell before the exec'ed
2636 command could run to completion. I believe this is a feature of
2637 the way that execvp() is implemented on top of WINDOWS32 APIs. To
2638 alleviate the problem, use the supplied process launch function in
2639 the sub_proc library and suspend the parent process until the
2640 child process has run. When the child exits, exit the parent make
2641 with the exit code of the child make.
2643 Thu Aug 28 17:04:47 1997 Paul D. Smith <psmith@baynetworks.com>
2645 * Makefile.DOS.template (distdir): Fix a line that got wrapped in
2648 * Makefile.am (loadavg): Give the necessary cmdline options when
2651 * configure.in: Check for pstat_getdynamic for getloadvg on HP.
2653 * job.c (start_job_command) [VMS, _AMIGA]: Don't perform empty
2654 command optimization on these systems; it doesn't make sense.
2656 Wed Aug 27 17:09:32 1997 Paul D. Smith <psmith@baynetworks.com>
2660 Tue Aug 26 11:59:15 1997 Paul D. Smith <psmith@baynetworks.com>
2662 * main.c (print_version): Add '97 to copyright years.
2664 * read.c (do_define): Check the length of the array before looking
2665 at a particular offset.
2667 * job.c (construct_command_argv_internal): Examine the last byte
2668 of the previous arg, not the byte after that.
2670 Sat Aug 23 1997 Eli Zaretskii <eliz@is.elta.co.il>
2672 * Makefile.DOS.template: New file (converted to Makefile.DOS in
2675 * configure.bat: Rewrite to use Makefile.DOS instead of editing
2676 Makefile.in. Add support for building from outside of the source
2677 directory. Fail if the environment block is too small.
2679 * configh.dos: Use <sys/config.h>.
2681 * README.DOS: Update instructions.
2683 Fri Aug 22 1997 Eli Zaretskii <eliz@is.elta.co.il>
2685 * job.c (start_job_command) [__MSDOS__]: Don't test for "/bin/sh"
2686 literally, use value of unixy_shell instead.
2688 * filedef.h (NEW_MTIME): Use 1 less than maximum possible value if
2691 Sat Aug 16 00:56:15 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
2693 * vmsify.c (vmsify, case 11): After translating `..' elements, set
2694 nstate to N_OPEN if there are still more elements to process.
2695 (vmsify, case 2): After translating `foo/bar' up to the slash,
2696 set nstate to N_OPEN, not N_DOT.
2698 Fri Aug 8 15:18:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
2700 * dir.c (vmsstat_dir): Leave name unmodified on exit.
2701 * make.h (PATH_SEPARATOR_CHAR): Set to comma for VMS.
2702 * vpath.c: Fix comments to refer to path separator, not colon.
2703 (selective_vpath_search): Avoid Unixy slash handling for VMS.
2705 Thu Aug 7 22:24:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
2707 * ar.c [VMS]: Don't declare ar_member_touch.
2708 Delete VMS version of ar_member_date.
2709 Enable non-VMS versions of ar_member_date and ar_member_date_1 for
2711 * arscan.c (VMS_get_member_info): New function.
2712 (ar_scan): Provide version for VMS systems.
2713 (ar_name_equal): Simply compare name and mem on VMS systems.
2714 Don't define ar_member_pos or ar_member_touch on VMS systems.
2716 * config.h-vms (pid_t, uid_t): Don't define.
2718 * remake.c: Delete declaration of vms_stat.
2719 (name_mtime): Don't call vms_stat.
2720 (f_mtime) [VMS]: Funky time value manipulation no longer necessary.
2722 * file.c (print_file): [VMS] Use ctime, not cvt_time.
2724 * make.h [VMS]: Don't define POSIX.
2726 * makefile.com (filelist): Include ar and arscan.
2727 Also include them in the link commands.
2728 Don't define NO_ARCHIVES in cc command.
2730 * makefile.vms (ARCHIVES, ARCHIVES_SRC): Uncomment.
2731 (defines): Delete NO_ARCHIVES from list.
2733 * remake.c (f_mtime): Only check to see if intermediate file is
2734 out of date if it also exists (i.e., mtime != (time_t) -1).
2736 * vmsdir.h (u_long, u_short): Skip typedefs if using DEC C.
2738 Fri Jun 20 23:02:07 1997 Rob Tulloh <rob_tulloh@tivoli.com>
2740 * w32/subproc/sub_proc.c: Get W32 sub_proc to handle shebang
2741 (#!/bin/sh) in script files correctly.
2742 Fixed a couple of memory leaks.
2743 Fixed search order in find_file() (w32/subproc/sub_proc.c) so that
2744 files with extensions are preferred over files without extensions.
2745 Added search for files with .cmd extension too.
2746 * w32/subproc/misc.c (arr2envblk): Fixed memory leak.
2748 Mon Aug 18 09:41:08 1997 Paul D. Smith <psmith@baynetworks.com>
2752 Fri Aug 15 13:50:54 1997 Paul D. Smith <psmith@baynetworks.com>
2754 * read.c (do_define): Remember to count the newline after the endef.
2756 Thu Aug 14 23:14:37 1997 Paul D. Smith <psmith@baynetworks.com>
2758 * many: Rewrote builds to use Automake 1.2.
2760 * AUTHORS: New file.
2761 * maintMakefile: Contains maintainer-only make snippets.
2762 * GNUmakefile: This now only runs the initial auto* tools.
2763 * COPYING,texinfo.tex,mkinstalldirs,install-sh: Removed (obtained
2764 automatically by automake).
2765 * compatMakefile: Removed (not needed anymore).
2766 * README,build.sh.in: Removed (built from templates).
2767 * config.h.in,Makefile.in: Removed (built by tools).
2769 Wed Aug 13 02:22:08 1997 Paul D. Smith <psmith@baynetworks.com>
2771 * make.texinfo: Updates for DOS/Windows information (Eli Zaretskii)
2772 * README,README.DOS: Ditto.
2774 * remake.c (update_file_1,f_mtime): Fix GPATH handling.
2775 * vpath.c (gpath_search): Ditto.
2777 * file.c (rename_file): New function: rehash, but also rename to
2779 * filedef.h: Declare it.
2781 * variable.c (merge_variable_set_lists): Remove free() of variable
2782 set; since various files can share variable sets we don't want to
2785 Tue Aug 12 10:51:54 1997 Paul D. Smith <psmith@baynetworks.com>
2787 * configure.in: Require autoconf 2.12
2789 * make.texinfo: Replace all "cd subdir; $(MAKE)" examples with a
2790 more stylistically correct "cd subdir && $(MAKE)".
2792 * main.c: Global variable `clock_skew_detected' defined.
2793 (main): Print final warning if it's set.
2794 * make.h: Declare it.
2795 * remake.c (f_mtime): Test and set it.
2797 * job.c (start_job_command): Add special optimizations for
2798 "do-nothing" rules, containing just the shell no-op ":". This is
2799 useful for timestamp files and can make a real difference if you
2800 have a lot of them (requested by Fergus Henderson <fjh@cs.mu.oz.au>).
2802 * configure.in,Makefile.in: Rewrote to use the new autoconf
2803 program_transform_name macro.
2805 * function.c (function_strip): Strip newlines as well as spaces
2808 Fri Jun 6 23:41:04 1997 Rob Tulloh <rob_tulloh@tivoli.com>
2810 * remake.c (f_mtime): Datestamps on FAT-based files are rounded to
2811 even seconds when stored, so if the date check fails on WINDOWS32
2812 systems, see if this "off-by-one" error is the problem.
2814 * General: If your TZ environment variable is not set correctly
2815 then all your timestamps will be off by hours. So, set it!
2817 Mon Apr 7 02:06:22 1997 Paul D. Smith <psmith@baynetworks.com>
2821 * compatMakefile (objs): Define & use the $(GLOB) variable so
2822 that it's removed correctly from build.sh.in when it's built.
2824 * configure.in: On Solaris we can use the kstat_*() functions to
2825 get load averages without needing special permissions. Add a
2826 check for -lkstat to see if we have it.
2828 * getloadavg.c (getloadavg): Use HAVE_LIBKSTAT instead of SUN5 as
2829 the test to enable kstat_open(), etc. processing.
2831 Fri Apr 4 20:21:18 1997 Eli Zaretskii <eliz@is.elta.co.il>
2833 * <lots>: Fixes to work in the DJGPP DOS environment.
2835 Mon Mar 31 02:42:52 1997 Paul D. Smith <psmith@baynetworks.com>
2837 * function.c (expand_function): Added new function $(wordlist).
2839 * make.texinfo (Filename Functions): Document $(wordlist) function.
2841 * vpath.c (build_vpath_lists): Construct the GPATH variable
2842 information in the same manner we used to construct VPATH.
2843 (gpath_search): New function to search GPATH.
2845 * make.h: Declare the new function.
2847 * remake.c (update_file_1): Call it, and keep VPATH if it's found.
2849 * make.texinfo (Search Algorithm): Document GPATH variable.
2851 Sun Mar 30 20:57:16 1997 Paul D. Smith <psmith@baynetworks.com>
2853 * main.c (handle_non_switch_argument): Defined the MAKECMDGOALS
2854 variable to contain the user options passed in on the cmd line.
2856 * make.texinfo (Goals): Document MAKECMDGOALS variable.
2858 * remake.c (f_mtime): Print a warning if we detect a clock skew
2859 error, rather than failing.
2861 * main.c (main): If we rebuild any makefiles and need to re-exec,
2862 add "-o<mkfile>" options for each makefile rebuilt to avoid
2865 Fri Mar 28 15:26:05 1997 Paul D. Smith <psmith@baynetworks.com>
2867 * job.c (construct_command_argv_internal): Track whether the last
2868 arg in the cmd string was empty or not (Roland).
2869 (construct_command_argv_internal): If the shell line is empty,
2870 don't do anything (Roland).
2872 * glob/glob.h,glob/glob.c,glob/fnmatch.c,glob/fnmatch.h: Install
2873 the latest changes from the GLIBC version of glob (Ulrich Drepper).
2875 * getloadavg.c,make-stds.texi: New version (Roland).
2877 * (ALL): Changed WIN32 to W32 or WINDOWS32 (RMS).
2879 Mon Mar 24 15:33:34 1997 Rob Tulloh <rob_tulloh@tivoli.com>
2881 * README.W32: Describe preliminary FAT support.
2883 * build_w32.bat: Use a variable for the final exe name.
2885 * dir.c (find_directory): W32: Find the filesystem type.
2886 (dir_contents_file_exists_p): W32: for FAT filesystems, always
2887 rehash since FAT doesn't change directory mtime on change.
2889 * main.c (handle_runtime_exceptions): W32: Add an
2890 UnhandledExceptionFilter so that when make bombs due to ^C or a
2891 bug, it won't cause a GUI requestor to pop up unless debug is
2895 Mon Mar 24 00:57:34 1997 Paul D. Smith <psmith@baynetworks.com>
2897 * configure.in, config.h.in, config.ami, config.h-vms, config.h.w32:
2898 Check for memmove() function.
2900 * make.h (bcopy): If memmove() available, define bcopy() to use it.
2901 Otherwise just use bcopy(). Don't use memcpy(); it's not guaranteed
2902 to handle overlapping moves.
2904 * read.c (read_makefile): Fix some uninitialized memory reads
2905 (reported by Purify).
2907 * job.c (construct_command_argv_internal): Use bcopy() not
2908 strcpy(); strcpy() isn't guaranteed to handle overlapping moves.
2910 * Makefile.in: Change install-info option ``--infodir'' to
2911 ``--info-dir'' for use with new texinfo.
2913 * function.c (expand_function): $(basename) and $(suffix) should
2914 only search for suffixes as far back as the last directory (e.g.,
2915 only the final filename in the path).
2917 Sun Mar 23 00:13:05 1997 Paul D. Smith <psmith@baynetworks.com>
2919 * make.texinfo: Add @dircategory/@direntry information.
2920 (Top): Remove previous reference to (dir) (from RMS).
2921 (Static Usage): Add "all:" rule to example.
2922 (Automatic Dependencies): fix .d file creation example.
2924 * Install VPATH+ patch:
2926 * filedef.h (struct file): Add in hname field to store the hashed
2927 filename, and a flag to remember if we're using the vpath filename
2928 or not. Renamed a few functions for more clarity.
2930 * file.c (lookup_file,enter_file,file_hash_enter): Store filenames
2931 in the hash table based on their "hash name". We can change this
2932 while keeping the original target in "name".
2933 (rehash_file): Renamed from "rename_file" to be more accurate.
2934 Changes the hash name, but not the target name.
2936 * remake.c (update_file_1): Modify -d output for more detailed
2937 VPATH info. If we don't need to rebuild, use the VPATH name.
2938 (f_mtime): Don't search for vpath if we're ignoring it. Call
2939 renamed function rehash_file. Call name_mtime instead of
2940 file_mtime, to avoid infinite recursion since the file wasn't
2943 * implicit.c (pattern_search): if we find an implicit file in
2944 VPATH, save the original name not the VPATH name.
2946 * make.texinfo (Directory Search): Add a section on the new VPATH
2949 Sun Dec 1 18:36:04 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2951 * dir.c (file_exists_p, file_impossible, file_impossible_p): If
2952 dirname is empty replace it by the name of the root directory.
2953 Note that this doesn't work (yet) for W32, Amiga, or VMS.
2955 Tue Oct 08 13:57:03 1996 Rob Tulloh <tulloh@tivoli.com>
2957 * main.c (main): W32 bug fix for PATH vars.
2959 Tue Sep 17 1996 Paul Eggert <eggert@twinsun.com>
2961 * filedef.h (NEW_MTIME): Don't assume that time_t is a signed
2964 * make.h: (CHAR_BIT, INTEGER_TYPE_SIGNED, INTEGER_TYPE_MAXIMUM,
2965 INTEGER_TYPE_MINIMUM): New macros.
2967 Tue Aug 27 01:06:34 1996 Roland McGrath <roland@baalperazim.frob.com>
2969 * Version 3.75 released.
2971 * main.c (print_version): Print out bug-reporting address.
2973 Mon Aug 26 19:55:47 1996 Roland McGrath <roland@baalperazim.frob.com>
2975 * main.c (print_data_base): Don't declare ctime; headers do it for us
2978 Sun Jul 28 15:37:09 1996 Rob Tulloh (tulloh@tivoli.com)
2980 * w32/pathstuff.c: Turned convert_vpath_to_w32() into a
2981 real function. This was done so that VPATH could contain
2982 white space separated pathnames. Please note that directory
2983 paths (in VPATH/vpath context) containing white space are not
2984 supported (just as they are not under Unix). See README.W32
2987 * w32/include/pathstuff.h: Added prototype for the new
2988 function convert_vpath_to_w32. Deleted macro for same.
2990 * README.W32: Added some notes about why I chose not to try
2991 and support pathnames which contain white space and some
2992 workaround suggestions.
2994 Thu Jul 25 19:53:31 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2996 * GNUmakefile (mkdep-nolib): Use -MM option unconditionally.
3000 * main.c (define_makeflags): Back up P to point at null terminator
3001 when killing final space and dash before setting MFLAGS.
3003 From Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>:
3004 * dir.c [__MSDOS__ && DJGPP > 1]: Include <libc/dosio.h> and defin
3005 `__opendir_flags' initialized to 0.
3006 (dosify) [__MSDOS__ && DJGPP > 1]: Return name unchanged if _USE_LFN.
3007 (find_directory) [__MSDOS__ && DJGPP > 1]: If _USE_LGN, set
3008 __opendir_flags to __OPENDIR_PRESERVE_CASE.
3010 * vmsfunctions.c (vms_stat): `sys$dassgn (DevChan);' added by kkaempf.
3012 * GNUmakefile (w32files): Add NMakefile.
3014 * NMakefile (LDFLAGS_debug): Value fixed by tulloh.
3016 Sat Jul 20 12:32:10 1996 Klaus Kämpf (kkaempf@progis.de)
3018 * remake.c (f_mtime) [VMS]: Add missing `if' conditional for future
3020 * config.h-vms, makefile.vms, readme.vms, vmsify.c: Update address.
3022 Sat Jul 20 05:29:43 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3024 * configure.in: Require autoconf 2.10 or later.
3026 Fri Jul 19 16:57:27 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3030 * GNUmakefile (w32files): New variable.
3031 (distfiles): Add it.
3032 * w32: Updated by Rob Tulloh.
3034 * makefile.vms (LOADLIBES): Fix typo.
3036 Sun Jul 14 12:59:27 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3038 * job.c (construct_command_argv_internal): Fix up #else, #endifs.
3040 * configh.dos: Define HAVE_DIRENT_H instead of DIRENT.
3042 * remake.c (f_mtime): Don't compare MTIME to NOW if MTIME == -1.
3046 * main.c (main): Exit with status 2 when update_goal_chain returns 2.
3048 Sat Jun 22 14:56:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3050 * configure.in: Don't check for _sys_siglist.
3051 * make.h [HAVE__SYS_SIGLIST]: Don't test this; just punt if there is
3052 no strsignal or sys_siglist.
3054 * read.c (conditional_line): Strip ws in `ifeq (a , b)' so it is the
3055 same as `ifeq (a, b)'.
3057 * job.c (reap_children): Don't call die if handling_fatal_signal.
3059 * file.c (file_hash_enter): Allow renaming :: to : when latter is
3060 non-target, or : to :: when former is non-target.
3062 * job.c (start_job_command): Call block_sigs.
3063 (block_sigs): New function, broken out of start_job_command.
3064 (reap_children): Block fatal signals around removing dead child from
3065 chain and adjusting job_slots_used.
3066 * job.h: Declare block_sigs.
3068 * remote-stub.c (remote_setup, remote_cleanup): New (empty) functions.
3069 * main.c (main): Call remote_setup.
3070 (die): Call remote_cleanup.
3072 * job.c (reap_children): Quiescent value of shell_function_pid is
3075 * main.c (print_version): Add 96 to copyright years.
3077 Sat Jun 15 20:30:01 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3079 * read.c (find_char_unquote): Avoid calling strlen on every call
3080 just to throw away the value most of the time.
3082 Sun Jun 2 12:24:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3084 * main.c (decode_env_switches): Prepend '-' to ARGV[1] if it contains
3085 no '=', regardless of ARGC.
3086 (define_makeflags): Elide leading '-' from MAKEFLAGS value if first
3087 word is short option, regardless of WORDS.
3089 Wed May 22 17:24:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3091 * makefile.vms: Set LOADLIBES.
3092 * makefile.com (link_using_library): Fix typo.
3094 Wed May 15 17:37:26 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3096 * dir.c (print_dir_data_base): Use %ld dev and ino and cast them to
3099 Wed May 15 10:14:14 CDT 1996 Rob Tulloh <tulloh@tivoli.com>
3101 * dir.c: W32 does not support inode. For now, fully qualified
3102 pathname along with st_mtime will be keys for files.
3103 Fixed problem where vpath can be confused when files
3104 are added to a directory after the directory has already been
3105 read in. The code now attempts to reread the directory if it
3106 discovers that the datestamp on the directory has changed since
3107 it was cached by make. This problem only seems to occur on W32
3108 right now so it is lumped under port #ifdef WINDOWS32.
3110 * function.c: W32: call subproc library (CreateProcess()) instead of
3113 * job.c: W32: Added the code to do fork/exec/waitpid style processing
3114 on W32 systems via calls to subproc library.
3116 * main.c: W32: Several things added here. First, there is code
3117 for dealing with PATH and SHELL defaults. Make tries to figure
3118 out if the user has %PATH% set in the environment and sets it to
3119 %Path% if it is not set already. Make also looks to see if sh.exe
3120 is anywhere to be found. Code path through job.c will change
3121 based on existence of a working Bourne shell. The checking for
3122 default shell is done twice: once before makefiles are read in
3123 and again after. Fall back to MSDOS style execution mode if no sh.exe
3124 is found. Also added some debug support that allows user to pause make
3125 with -D switch and attach a debugger. This is especially useful for
3126 debugging recursive calls to make where problems appear only in the
3129 * make.h: W32: A few macros and header files for W32 support.
3131 * misc.c: W32: Added a function end_of_token_w32() to assist
3132 in parsing code in read.c.
3134 * read.c: W32: Fixes similar to MSDOS which allow colon to
3135 appear in filenames. Use of colon in filenames would otherwise
3138 * remake.c: W32: Added include of io.h to eliminate compiler
3139 warnings. Added some code to default LIBDIR if it is not set
3142 * variable.c: W32: Added support for detecting Path/PATH
3143 and converting them to semicolon separated lists for make's
3144 internal use. New function sync_Path_environment()
3145 which is called in job.c and function.c before creating a new
3146 process. Caller must set Path in environment since we don't
3147 have fork() to do this for us.
3149 * vpath.c: W32: Added detection for filenames containing
3150 forward or backward slashes.
3152 * NMakefile: W32: Visual C compatible makefile for use with nmake.
3153 Use this to build GNU make the first time on Windows NT or Windows 95.
3155 * README.W32: W32: Contains some helpful notes.
3157 * build_w32.bat: W32: If you don't like nmake, use this the first
3158 time you build GNU make on Windows NT or Windows 95.
3160 * config.h.W32: W32 version of config.h
3162 * subproc.bat: W32: A bat file used to build the
3163 subproc library from the top-level NMakefile. Needed because
3164 WIndows 95 (nmake) doesn't allow you to cd in a make rule.
3166 * w32/include/dirent.h
3167 * w32/compat/dirent.c: W32: opendir, readdir, closedir, etc.
3169 * w32/include/pathstuff.h: W32: used by files needed functions
3170 defined in pathstuff.c (prototypes).
3172 * w32/include/sub_proc.h: W32: prototypes for subproc.lib functions.
3174 * w32/include/w32err.h: W32: prototypes for w32err.c.
3176 * w32/pathstuff.c: W32: File and Path/Path conversion functions.
3178 * w32/subproc/build.bat: W32: build script for subproc library
3179 if you don't wish to use nmake.
3181 * w32/subproc/NMakefile: W32: Visual C compatible makefile for use
3182 with nmake. Used to build subproc library.
3184 * w32/subproc/misc.c: W32: subproc library support code
3185 * w32/subproc/proc.h: W32: subproc library support code
3186 * w32/subproc/sub_proc.c: W32: subproc library source code
3187 * w32/subproc/w32err.c: W32: subproc library support code
3189 Mon May 13 14:37:42 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3193 * GNUmakefile (vmsfiles): Fix typo.
3195 * GNUmakefile (amigafiles): Add amiga.h.
3197 Sun May 12 19:19:43 1996 Aaron Digulla <digulla@fh-konstanz.de>
3199 * dir.c: New function: amigafy() to fold filenames
3200 Changes HASH() to HASHI() to fold filenames on Amiga.
3201 Stringcompares use strieq() instead of streq()
3202 The current directory on Amiga is "" instead of "."
3205 * amiga.c: New function wildcard_expansion(). Allows to use
3206 Amiga wildcards with $(wildcard )
3208 * amiga.h: New file. Prototypes for amiga.c
3210 * function.c: Use special function wildcard_expansion() for
3211 $(wildcard ) to allow Amiga wildcards
3212 The current directory on Amiga is "" instead of "."
3214 * job.c: No Pipes on Amiga, too
3215 (load_too_high) Neither on Amiga
3216 ENV variable on Amiga are in a special directory and are not
3217 passed as third argument to main().
3219 * job.h: No envp on Amiga
3221 * make.h: Added HASHI(). This is the same as HASH() but converts
3222 it's second parameter to lowercase on Amiga to fold filenames.
3224 * main.c: (main), variable.c Changed handling of ENV-vars. Make
3225 stores now the names of the variables only and reads their contents
3226 when they are accessed to reflect that these variables are really
3227 global (ie. they CAN change WHILE make runs !) This handling is
3228 made in lookup_variable()
3230 * Makefile.ami: renamed file.h to filedep.h
3231 Updated dependencies
3233 * read.c: "find_semicolon" is declared as static but never defined.
3234 No difference between Makefile and makefile on Amiga; added
3235 SMakefile to *default_makefiles[].
3236 (read_makefile) SAS/C want's two_colon and pattern_percent be set
3238 The current directory on Amiga is "" instead of "."
3239 Strange #endif moved.
3241 * README.Amiga: updated feature list
3243 * SMakefile: Updated dependencies
3245 * variable.c: Handling of ENV variable happens inside lookup_variable()
3247 Sat May 11 17:58:32 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3249 * variable.c (try_variable_definition): Count parens in lhs variable
3250 refs to avoid seeing =/:=/+= inside a ref.
3252 Thu May 9 13:54:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3254 * commands.c (fatal_error_signal) [SIGQUIT]: Make SIGQUIT check
3257 * main.c (main): Use unsigned for fread return.
3259 * read.c (parse_file_seq): Use `int' for char arg to avoid widening
3261 * dep.h: Fix prototype.
3263 * function.c (expand_function) [_AMIGA]: Fix some typos.
3264 (patsubst_expand): Make len vars unsigned.
3266 * GNUmakefile (globfiles): Add AmigaDOS support files.
3267 (distfiles): Add $(amigafiles).
3268 (amigafiles): New variable.
3270 Thu Nov 7 10:18:16 1995 Aaron Digulla <digulla@fh-konstanz.de>
3272 * Added Amiga support in commands.c, dir.c, function.c,
3273 job.c, main.c, make.h, read.c, remake.c
3274 * commands.c: Amiga has neither SIGHUP nor SIGQUIT
3275 * dir.c: Amiga has filenames with Upper- and Lowercase,
3276 but "FileName" is the same as "filename". Added strieq()
3277 which is use to compare filenames. This is like streq()
3278 on all other systems. Also there is no such thing as
3280 * function.c: On Amiga, the environment is not passed as envp,
3281 there are no pipes and Amiga can't fork. Use my own function
3282 to create a new child.
3283 * job.c: default_shell is "" (The system automatically chooses
3284 a shell for me). Have to use the same workaround as MSDOS for
3285 running batch commands. Added HAVE_SYS_PARAM_H. NOFILE isn't
3286 known on Amiga. Cloned code to run children from MSDOS. Own
3287 version of sh_chars[] and sh_cmds[]. No dup2() or dup() on Amiga.
3288 * main.c: Force stack to 20000 bytes. Read environment from ENV:
3289 device. On Amiga, exec_command() does return, so I exit()
3291 * make.h: Added strieq() to compare filenames.
3292 * read.c: Amiga needs special extension to have passwd. Only
3293 one include-dir. "Makefile" and "makefile" are the same.
3294 Added "SMakefile". Added special code to handle device names (xxx:)
3296 * remake.c: Only one lib-dir. Amiga link-libs are named "%s.lib"
3297 instead of "lib%s.a".
3298 * main.c, rule.c, variable.c: Avoid floats at all costs.
3299 * vpath.c: Get rid of as many alloca()s as possible.
3301 Thu May 9 13:20:43 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3303 * read.c (read_makefile): Grok `sinclude' as alias for `-include'.
3305 Wed Mar 20 09:52:27 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
3307 * GNUmakefile (vmsfiles): New variable.
3308 (distfiles): Include $(vmsfiles).
3310 Tue Mar 19 20:21:34 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
3312 Merged VMS port from Klaus Kaempf <kkaempf@didymus.rmi.de>.
3313 * make.h (PARAMS): New macro.
3314 * config.h-vms: New file.
3315 * makefile.com: New file.
3316 * makefile.vms: New file.
3317 * readme.vms: New file.
3318 * vmsdir.h: New file.
3319 * vmsfunctions.c: New file.
3320 * vmsify.c: New file.
3321 * file.h: Renamed to filedef.h to avoid conflict with VMS system hdr.
3322 * ar.c: Added prototypes and changes for VMS.
3323 * commands.c: Likewise.
3324 * commands.h: Likewise.
3325 * default.c: Likewise.
3328 * expand.c: Likewise.
3330 * function.c: Likewise.
3331 * implicit.c: Likewise.
3338 * remake.c: Likewise.
3339 * remote-stub.c: Likewise.
3342 * variable.c: Likewise.
3343 * variable.h: Likewise.
3344 * vpath.c: Likewise.
3345 * compatMakefile (srcs): Rename file.h to filedef.h.
3347 Sat Aug 19 23:11:00 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
3349 * remake.c (check_dep): For a secondary file, try implicit and
3350 default rules if appropriate.
3352 Wed Aug 2 04:29:42 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
3354 * remake.c (check_dep): If an intermediate file exists,
3355 do consider its actual date.
3357 Sun Jul 30 00:49:53 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
3359 * file.h (struct file): New field `secondary'.
3360 * file.c (snap_deps): Check for .INTERMEDIATE and .SECONDARY.
3361 (remove_intermediates): Don't delete .SECONDARY files.
3363 Sat Mar 2 16:26:52 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
3365 * compatMakefile (srcs): Add getopt.h; prepend $(srcdir)/ to getopt*.
3367 Fri Mar 1 12:04:47 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
3371 * remake.c (f_mtime): Move future modtime check before FILE is
3372 clobbered by :: loop.
3374 * dir.c: Use canonical code from autoconf manual for dirent include.
3375 [_D_NAMLEN]: Redefine NAMLEN using this.
3376 (dir_contents_file_exists_p): Use NAMLEN macro.
3377 (read_dirstream) [_DIRENT_HAVE_D_NAMLEN]: Only set d_namlen #if this.
3379 * compatMakefile (objs): Add missing backslash.
3381 Wed Feb 28 03:56:20 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
3383 * default.c (default_terminal_rules): Remove + prefix from RCS cmds.
3384 (default_variables): Put + prefix in $(CHECKOUT,v) value instead.
3386 * remake.c (f_mtime): Check for future timestamps; give error and mark
3387 file as "failed to update".
3389 Fri Jan 12 18:09:36 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3391 * job.c: Don't declare unblock_sigs; job.h already does.
3393 Sat Jan 6 16:24:44 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3395 * acconfig.h (HAVE_SYSCONF_OPEN_MAX): #undef removed.
3397 * job.c (NGROUPS_MAX): Don't try to define this macro.
3399 Fri Dec 22 18:44:44 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3401 * compatMakefile (GETOPT, GETOPT_SRC, GLOB): Variables removed.
3402 (objs, srcs): Include their values here instead of references.
3404 Thu Dec 14 06:21:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3408 * job.c (reap_children): Call unblock_sigs after start_job_command.
3410 Thu Dec 14 07:22:03 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
3412 * dir.c (dir_setup_glob): Don't use lstat; glob never calls it anyway.
3413 Avoid & before function names to silence bogus sunos4 compiler.
3415 * configure.in: Remove check for `sysconf (_SC_OPEN_MAX)'.
3417 Tue Dec 12 00:48:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3421 * dir.c (read_dirstream): Fix braino: fill in the buffer when not
3424 Mon Dec 11 22:26:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3426 * misc.c (collapse_continuations): Fix skipping of trailing \s so
3427 it can never dereference before the beginning of the array.
3429 * read.c (find_semicolon): Function removed.
3430 (read_makefile): Don't use find_semicolon or remove_comments for
3431 rule lines. Use find_char_unquote directly and handle quoted comments
3434 * default.c: Remove all [M_XENIX] code.
3436 * dir.c [HAVE_D_NAMLEN]: Define this for __GNU_LIBRARY__ > 1.
3437 (D_NAMLEN): Macro removed.
3438 (FAKE_DIR_ENTRY): New macro.
3439 (dir_contents_file_exists_p): Test HAVE_D_NAMLEN instead of using
3441 (read_dirstream): Return a struct dirent * for new glob interface.
3442 (init_dir): Function removed.
3443 (dir_setup_glob): New function.
3444 * main.c (main): Don't call init_dir.
3445 * read.c (multi_glob): Call dir_setup_glob on our glob_t and use
3446 GLOB_ALTDIRFUNC flag.
3448 * misc.c (safe_stat): Function removed.
3449 * read.c, commands.c, remake.c, vpath.c: Use plain stat instead of
3452 Sat Nov 25 20:35:18 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3454 * job.c [HAVE_UNION_WAIT]: Include sys/wait.h.
3456 * main.c (log_working_directory): Made global.
3457 Print entering msg only once.
3458 * make.h (log_working_directory): Declare it.
3459 * misc.c (message): Take new arg PREFIX. Print "make: " only if
3460 nonzero. Call log_working_directory.
3461 * remake.c: Pass new arg in `message' calls.
3462 * job.c (start_job_command): Pass new arg to `message'; fix
3463 inverted test in that call.
3465 Tue Nov 21 19:01:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3467 * job.c (start_job_command): Use `message' to print the command,
3468 and call it with null if the command is silent.
3469 * remake.c (touch_file): Use message instead of printf.
3471 Tue Oct 10 14:59:30 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3473 * main.c (enter_command_line_file): Barf if NAME is "".
3475 Sat Sep 9 06:33:20 1995 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
3477 * commands.c (delete_target): Ignore unlink failure if it is ENOENT.
3479 Thu Aug 17 15:08:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3481 * configure.in: Don't check for getdtablesize.
3482 * job.c (getdtablesize): Remove decls and macros.
3484 Thu Aug 10 19:10:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3486 * main.c (define_makeflags): Omit command line variable
3487 definitions from MFLAGS value.
3489 * arscan.c (ar_scan) [AIAMAG]: Check for zero MEMBER_OFFSET,
3490 indicating a valid, but empty, archive.
3492 Mon Aug 7 15:40:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3494 * dir.c (file_impossible_p): Correctly reset FILENAME to name
3495 within directory before hash search.
3497 * job.c (child_error): Do nothing if IGNORED under -s.
3499 * job.c (exec_command): Correctly use ARGV[0] for script name when
3500 running shell directly.
3502 Tue Aug 1 14:39:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3504 * job.c (child_execute_job): Close STDIN_FD and STDOUT_FD after
3505 dup'ing from them. Don't try to close all excess descriptors;
3506 getdtablesize might return a huge value. Any open descriptors in
3507 the parent should have FD_CLOEXEC set.
3508 (start_job_command): Set FD_CLOEXEC flag on BAD_STDIN descriptor.
3510 Tue Jun 20 03:47:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3512 * read.c (read_all_makefiles): Properly append default makefiles
3513 to the end of the `read_makefiles' chain.
3515 Fri May 19 16:36:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3517 * Version 3.74 released.
3519 Wed May 10 17:43:34 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3523 Tue May 9 17:15:23 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3525 * compatMakefile ($(infodir)/make.info): Make sure $$dir is set in
3528 Wed May 3 15:56:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3530 * file.c (print_file): Grok update_status of 1 for -q.
3532 Thu Apr 27 12:39:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3536 Wed Apr 26 17:15:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3538 * file.c (remove_intermediates): Fix inverted test to bail under
3539 -n for signal case. Bail under -q or -t.
3540 Skip files with update_status==-1.
3542 * job.c (job_next_command): Skip empty lines.
3543 (new_job): Don't test the return of job_next_command.
3544 Just let start_waiting_job handle the case of empty commands.
3546 Wed Apr 19 03:25:54 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3548 * function.c [__MSDOS__]: Include <fcntl.h>. From DJ Delorie.
3552 Sat Apr 8 14:53:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3554 * remake.c (notice_finished_file): Set FILE->update_status to zero
3557 Wed Apr 5 00:20:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3559 * Version 3.73 released.
3561 Tue Mar 28 13:25:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3563 * main.c (main): Fixed braino in assert.
3567 Mon Mar 27 05:29:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3569 * main.c: Avoid string in assert expression. Some systems are broken.
3571 Fri Mar 24 00:32:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3573 * main.c (main): Handle 1 and 2 returns from update_goal_chain
3574 makefile run properly.
3578 * main.c (handle_non_switch_argument): New function, broken out of
3580 (decode_switches): Set optind to 0 to reinitialize getopt, not to 1.
3581 When getopt_long returns EOF, break the loop and handle remaining args
3582 with a simple second loop.
3584 * remake.c (remake_file): Set update_status to 2 instead of 1 for
3585 no rule to make. Mention parent (dependent) in error message.
3586 (update_file_1): Handle FILE->update_status == 2 in -d printout.
3587 * job.c (start_job_command, reap_children): Set update_status to 2
3588 instead of 1 for failed commands.
3590 Tue Mar 21 16:23:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3592 * job.c (search_path): Function removed (was already #if 0'd out).
3593 * configure.in: Remove AC_TYPE_GETGROUPS; nothing needs it any more.
3595 Fri Mar 17 15:57:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3597 * configure.bat: Write @CPPFLAGS@ translation.
3599 Mon Mar 13 00:45:59 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3601 * read.c (parse_file_seq): Rearranged `l(a b)' -> `l(a) l(b)' loop
3602 to not skip the elt immediately preceding `l(...'.
3604 Fri Mar 10 13:56:49 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3608 * read.c (find_char_unquote): Make second arg a string of stop
3609 chars instead of a single stop char. Stop when any char in the
3610 string is hit. All callers changed.
3611 (find_semicolon): Pass stop chars "#;" to one find_char_unquote call,
3612 instead of using two calls. If the match is not a ; but a #,
3614 * misc.c: Changed find_char_unquote callers here too.
3618 * read.c (read_makefile, parse_file_seq): Fix typo __MS_DOS__ ->
3621 * GNUmakefile (globfiles): Add glob/configure.bat.
3622 (distfiles): Add configh.dos, configure.bat.
3624 Wed Mar 8 13:10:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3626 Fixes for MS-DOS from DJ Delorie.
3627 * read.c (read_makefile, parse_file_seq) [__MS_DOS__]: Don't see :
3628 as separator in "C:\...".
3629 * configh.dos (STDC_HEADERS): Define only if undefined.
3630 (HAVE_SYS_PARAM_H): Don't define this.
3631 (HAVE_STRERROR): Define this.
3632 * job.c (construct_command_argv_internal) [__MSDOS__]: Fix typos.
3636 * main.c (decode_switches): Reset optind to 1 instead of 0.
3638 Tue Mar 7 17:31:06 1995 Roland McGrath <roland@geech.gnu.ai.mit.edu>
3640 * main.c (decode_switches): If non-option arg is "-", ignore it.
3642 Mon Mar 6 23:57:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3646 Wed Feb 22 21:26:36 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3650 Tue Feb 21 22:10:43 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3652 * main.c (main): Pass missing arg to tmpnam.
3654 * configure.in: Check for strsignal.
3655 * job.c (child_error): Use strsignal.
3656 * main.c (main): Don't call signame_init #ifdef HAVE_STRSIGNAL.
3658 * misc.c (strerror): Fix swapped args in sprintf.
3660 Mon Feb 13 11:50:08 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3662 * configure.in (CFLAGS, LDFLAGS): Don't set these variables.
3664 Fri Feb 10 18:44:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3666 * main.c (print_version): Add 95 to copyright years.
3670 * job.c (start_job_command): Remember to call notice_finished_file
3671 under -n when not recursing. To do this, consolidate that code
3672 under the empty command case and goto there for the -n case.
3674 Tue Feb 7 13:36:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3676 * make.h [! STDC_HEADERS]: Don't declare qsort. Sun headers
3679 Mon Feb 6 17:37:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3681 * read.c (read_makefile): For bogus line starting with tab, ignore
3682 it if blank after removing comments.
3684 * main.c: Cast results of `alloca' to `char *'.
3685 * expand.c: Likewise.
3687 Sun Feb 5 18:35:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3691 * configure.in: Check for mktemp.
3692 * main.c (main) [! HAVE_MKTEMP]: Use tmpnam instead of mktemp.
3694 * configure.in (make_cv_sysconf_open_max): New check for `sysconf
3696 * acconfig.h: Added #undef HAVE_SYSCONF_OPEN_MAX.
3697 * job.c [HAVE_SYSCONF_OPEN_MAX] (getdtablesize): Define as macro
3700 Fri Jan 27 04:42:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3702 * remake.c (update_file_1): When !MUST_MAKE, don't set
3703 FILE->update_status to zero before calling notice_finished_file.
3704 (notice_finished_file): Touch only when FILE->update_status is zero.
3705 (remake_file): Set FILE->update_status to zero after not calling
3706 execute_file_command and deciding to touch instead.
3708 Thu Jan 26 01:29:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3710 * main.c (debug_signal_handler): New function; toggles debug_flag.
3711 (main): Handle SIGUSR1 with that.
3713 Mon Jan 16 15:46:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3715 * compatMakefile (realclean): Remove Info files.
3717 Sun Jan 15 08:23:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3721 * job.c (start_job_command): Save and restore environ around vfork
3723 (search_path): Function #if 0'd out.
3724 (exec_command): Use execvp instead of search_path.
3726 * expand.c (variable_expand): Rewrote computed variable name and
3727 substitution reference handling to be simpler. First expand the
3728 entire text between the parens if it contains any $s, then examine
3729 the result of that for subtitution references and do no further
3730 expansion while parsing them.
3732 * job.c (construct_command_argv_internal): Handle " quoting too,
3733 when no backslash, $ or ` characters appear inside the quotes.
3735 * configure.in (union wait check): If WEXITSTATUS and WTERMSIG are
3736 defined, just use int.
3738 Tue Jan 10 06:27:27 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3740 * default.c (default_variables) [__hpux]: Remove special
3741 definition of ARFLAGS. Existence of the `f' flag is not
3742 consistent across HPUX versions; and one might be using GNU ar
3745 * compatMakefile (clean): Don't remove Info files.
3747 * compatMakefile (check): Remove gratuitous target declaration.
3749 Sat Jan 7 11:38:23 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3751 * compatMakefile (ETAGS, CTAGS): Don't use -t.
3753 * arscan.c (ar_name_equal) [cray]: Subtract 1 like [__hpux].
3755 * main.c (decode_switches): For --help, print usage to stdout.
3757 Mon Dec 5 12:42:18 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3761 * remake.c (update_file_1): Do set_command_state (FILE,
3762 cs_not_started) only if old state was deps_running.
3764 Mon Nov 28 14:24:03 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3766 * job.c (start_waiting_job): Use set_command_state.
3768 * build.template (CPPFLAGS): New variable.
3769 (prefix, exec_prefix): Set from @...@.
3770 (compilation loop): Pass $CPPFLAGS to compiler.
3772 * GNUmakefile (build.sh.in): Make it executable.
3774 * GNUmakefile (globfiles): Add configure.in, configure.
3778 * configure.in (AC_OUTPUT): Don't write glob/Makefile.
3780 * configure.in (AC_CHECK_SYMBOL): Use AC_DEFINE_UNQUOTED.
3782 * configure.in: Don't check for ranlib.
3784 Tue Nov 22 22:42:40 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3786 * remake.c (notice_finished_file): Only mark also_make's as
3787 updated if really ran cmds.
3789 Tue Nov 15 06:32:46 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3791 * configure.in: Put dnls before random whitespace.
3793 Sun Nov 13 05:02:25 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3795 * compatMakefile (CPPFLAGS): New variable, set from @CPPFLAGS@.
3796 (RANLIB): Variable removed.
3797 (prefix, exec_prefix): Set these from @...@.
3798 (.c.o): Use $(CPPFLAGS).
3799 (glob/libglob.a): Don't pass down variables to sub-make.
3800 glob/Makefile should be configured properly by configure.
3801 (distclean): Remove config.log and config.cache (autoconf stuff).
3803 Mon Nov 7 13:58:06 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3805 * acconfig.h: Add #undef HAVE_UNION_WAIT.
3806 * configure.in: Converted to Autoconf v2.
3807 * dir.c: Test HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H instead
3808 of DIRENT, SYSDIR, NDIR.
3809 * build.sh.in (prefix, exec_prefix): Set these from @...@.
3810 (CPPFLAGS): New variable, set from @CPPFLAGS@.
3811 (compiling loop): Pass $CPPFLAGS before $CFLAGS.
3812 * install.sh: File renamed to install-sh.
3814 * main.c (define_makeflags): When no flags, set WORDS to zero.
3816 Sun Nov 6 18:34:01 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3820 * main.c (define_makeflags): Terminate properly when FLAGSTRING is
3823 Fri Nov 4 16:02:51 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3827 Tue Nov 1 01:18:10 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3831 * job.c (start_job_command): When ARGV is nil, only set
3832 update_state and call notice_finished_file if job_next_command
3835 * job.c (start_job_command): Call notice_finished_file for empty
3838 Thu Oct 27 02:02:45 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3840 * file.c (snap_deps): Set COMMANDS_SILENT for .SILENT, not
3843 Wed Oct 26 02:14:10 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3847 Tue Oct 25 22:49:24 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3849 * file.c (snap_deps): Set command_flags bits in all :: entries.
3851 Mon Oct 24 18:47:50 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3853 * make.h (posix_pedantic): Declare it.
3854 * main.c (main): Move checks .IGNORE, .SILENT, .POSIX to
3856 * file.c (snap_deps): Check .IGNORE, .SILENT, .POSIX here instead
3857 of in main. If .IGNORE has deps, OR COMMANDS_NOERROR into their
3858 command_flags and don't set -i. Likewise .SILENT.
3859 * job.c (start_job_command): In FLAGS initialization, OR in
3860 CHILD->file->command_flags.
3861 * file.h (struct file): New member `command_flags'.
3863 Sun Oct 16 01:01:51 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3865 * main.c (switches): Bump flag values for --no-print-directory and
3866 --warn-undefined-variables, so neither is 1 (which indicates a
3867 nonoption argument).
3869 Sat Oct 15 23:39:48 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3871 * main.c (main): Add missing code in .IGNORE test.
3873 Mon Oct 10 04:09:03 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3875 * variable.c (define_automatic_variables): Define +D and +F.
3877 Sat Oct 1 04:07:48 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3879 * main.c (main): Define hidden automatic variable with command
3880 vars, and MAKEOVERRIDES to a reference to that.
3881 (define_makeflags): If posix_pedantic, write a reference to that
3884 Thu Sep 29 00:14:26 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3886 * main.c (posix_pedantic): New variable.
3887 (main): Set posix_pedantic if .POSIX is a target.
3888 Fix .IGNORE and .SILENT checks to require is_target.
3890 * commands.c (set_file_variables): Define new automatic variable
3891 $+, like $^ but before calling uniquize_deps.
3893 * job.c (reap_children): Call delete_child_targets for non-signal
3894 error if .DELETE_ON_ERROR is a target.
3896 Tue Sep 27 01:57:14 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3900 Mon Sep 26 18:16:55 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3902 * job.c (reap_children): Don't change C->file->command_state when
3903 dying. Test it only after calling start_job_command for a new
3904 command line. When no more cmds, just set C->file->update_status.
3905 (start_job_command): When the last line is empty or under -n, set
3906 C->file->update_status.
3907 (start_waiting_job): Grok cs_not_started after start_job_command
3909 (new_job): Set C->file->update_status when there are no cmds.
3910 (job_next_command): When out of lines, don't set
3911 CHILD->file->update_status or CHILD->file->command_state.
3913 * main.c (quote_as_word): Renamed from shell_quote. Take new arg;
3914 if nonzero, also double $s.
3915 (main): Define MAKEOVERRIDES from command_variables here.
3916 (define_makeflags): Don't use command_variables here; instead write a
3917 reference $(MAKEOVERRIDES) in MAKEFLAGS. Make vars recursive.
3919 * dir.c [__MSDOS__]: Fixed typo.
3921 * vpath.c (selective_vpath_search): Reset EXISTS when stat fails.
3923 Sat Sep 10 03:01:35 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3925 * remake.c: Include <assert.h> and use assert instead of printfs
3928 * main.c (decode_switches): Loop until optind hits ARGC, not just
3929 until getopt_long returns EOF. Initialize C to zero before loop;
3930 in loop if C is EOF, set optarg from ARGV[optind++], else call
3932 (decode_env_switches): Use variable_expand instead of
3933 allocated_variable_expand. Allocate a fresh buffer to copy split
3934 words into; scan characters by hand to break words and
3936 (shell_quote): New function.
3937 (define_makeflags): Allocate doubled space for switch args, and command
3938 variable names and values; use shell_quote to quote those things.
3940 Fri Sep 9 01:37:47 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3944 * acconfig.h: Add HAVE_SYS_SIGLIST and HAVE__SYS_SIGLIST.
3946 * main.c (decode_switches): The non-option return from getopt is
3948 (command_variables): New type and variable.
3949 (decode_switches, decode_env_switches): After making a variable
3950 definition, record the struct variable pointer in the
3951 command_variables chain.
3952 (define_makeflags): If ALL, write variable definitions for
3955 * main.c (other_args): Variable removed.
3956 (goals, lastgoal): New static variables (moved from auto in main).
3957 (main): Don't process OTHER_ARGS at all.
3958 Don't set variable MAKEOVERRIDES at all; define MAKE to just
3960 (init_switches): Prepend a - {return in order} instead of a +
3962 (decode_switches): Don't set OTHER_ARGS at all.
3963 Grok '\0' return from getopt_long as non-option argument; try
3964 variable definition and (if !ENV) enter goal targets here.
3965 (decode_env_switches): Use allocated_variable_expand to store value.
3966 Use find_next_token to simplify word-splitting loop. Don't
3967 prepend a dash to uninterpreted value. Instead, if split into
3968 only one word, try variable definition and failing that prepend a
3969 dash to the word and pass it to decode_switches as a single arg.
3971 Wed Sep 7 03:02:46 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3973 * remake.c (notice_finished_file): Only recheck modtimes if
3974 FILE->command_state was cs_running on entry (meaning the commands
3976 (update_file_1): Whenever we set FILE->update_status, call
3977 notice_finished_file instead of just set_command_state.
3978 * job.c (start_job_command): Whenever we set
3979 CHILD->file->update_status, call notice_finished_file instead of
3980 just set_command_state.
3982 Tue Sep 6 19:13:54 1994 Roland McGrath <roland@geech.gnu.ai.mit.edu>
3984 * default.c: Add missing ".
3986 * job.c: Changed all assignments of command_state members to calls
3987 to set_command_state.
3988 * remake.c: Likewise.
3989 * file.c (set_command_state): New function.
3990 * file.h: Declare set_command_state.
3992 * main.c (init_switches): Put a + first in options.
3994 Mon Jul 25 18:07:46 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3996 Merge MSDOS/GO32 port from DJ Delorie <dj@ctron.com>.
3997 * vpath.c: Changed all uses of ':' to PATH_SEPARATOR_CHAR.
3998 * main.c (directory_before_chdir): New variable, moved out of main
4000 (main) [__MSDOS__]: Look for \ or : to delimit last component of
4001 PROGRAM. Don't frob ARGV[0] before setting MAKE_COMMAND variable.
4002 (die): Change back to `directory_before_chdir' before dying.
4003 * make.h (PATH_SEPARATOR_CHAR): New macro; differing defns for
4004 [__MSDOS__] and not.
4005 * job.c [__MSDOS__]: Include <process.h>.
4006 [__MSDOS__] (dos_pid, dos_status, dos_bname, dos_bename,
4007 dos_batch_file): New variables.
4008 (reap_children) [__MSDOS__]: Don't call wait; just examine those vars.
4009 (unblock_sigs) [__MSDOS__]: Do nothing.
4010 (start_job_command) [__MSDOS__]: Use spawnvpe instead of vfork & exec.
4011 (load_too_high) [__MSDOS__]: Always return true.
4012 (search_path) [__MSDOS__]: Check for : or / in FILE to punt.
4013 Use PATH_SEPARATOR_CHAR instead of ':'.
4014 (construct_command_argv_internal) [__MSDOS__]: Wholly different
4015 values for sh_chars and sh_cmds. Wholly new code to handle shell
4017 * function.c (expand_function: `shell') [__MSDOS__]: Wholly new
4019 * dir.c [__MSDOS__] (dosify): New function.
4020 (dir_contents_file_exists_p) [__MSDOS__]: Call it on FILENAME and
4021 process the result instead of FILENAME itself.
4022 (file_impossible_p) [__MSDOS__]: Likewise.
4023 * default.c [__MSDOS__]: Define GCC_IS_NATIVE.
4024 (default_suffix_rules) [__MSDOS__]: Use `y_tab.c' instead of `y.tab.c'.
4025 (default_variables) [GCC_IS_NATIVE]: Set CC and CXX to `gcc', YACC to
4026 `bison -y', and LEX to `flex'.
4027 * configure.bat, configh.dos: New files.
4028 * commands.c (fatal_error_signal) [__MSDOS__]: Just remove
4029 intermediates and exit.
4031 * commands.c (set_file_variables): Add parens in length
4032 computation in .SUFFIXES dep loop to quiet compiler warning. From
4035 * read.c (read_makefile): Free FILENAME if we allocated it. From
4038 Mon Jul 4 17:47:08 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4040 * misc.c (safe_stat): New function, EINTR-safe wrapper around stat.
4041 * vpath.c (selective_vpath_search): Use safe_stat in place of stat.
4042 * read.c (construct_include_path): Use safe_stat in place of stat.
4043 * job.c (search_path): Use safe_stat in place of stat.
4044 * dir.c (find_directory): Use safe_stat in place of stat.
4045 * commands.c (delete_target): Use safe_stat in place of stat.
4046 * arscan.c (ar_member_touch) [EINTR]: Do EINTR looping around fstat.
4047 * remake.c (name_mtime): Use safe_stat in place of stat.
4048 (touch_file) [EINTR]: Do EINTR looping around fstat.
4050 Fri Jun 24 05:40:24 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4052 * read.c (read_makefile): Check for a shell command first, and
4053 then strip leading tabs before further checking if it's not a
4056 * make.h [__arm]: Undefine POSIX.
4057 [!__GNU_LIBRARY__ && !POSIX && !_POSIX_VERSION]: Don't declare system
4058 functions that return int.
4060 * job.c (construct_command_argv_internal): After swallowing a
4061 backslash-newline combination, if INSTRING is set goto string_char
4062 (new label) for normal INSTRING handling code.
4064 Sat Jun 4 01:11:20 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4066 * configure.in: Don't check for sys_siglist and _sys_siglist with
4067 AC_HAVE_FUNCS. Instead use two AC_COMPILE_CHECKs.
4069 Mon May 23 18:20:38 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4071 * Version 3.71.1 released.
4073 * make.h [!__GNU_LIBRARY__ && !POSIX]: Also test #ifndef
4074 _POSIX_VERSION for these declarations.
4076 * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Remove bogus #ifndefs
4077 around #undefs of HAVE_SETREUID and HAVE_SETREGID.
4079 Sat May 21 16:26:38 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4081 * Version 3.71 released.
4083 * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Don't test [HAVE_SETUID]
4084 and [HAVE_SETGID]. Every system has those, and configure doesn't
4087 * make.h [_POSIX_VERSION]: Don't #define POSIX #ifdef ultrix.
4089 * compatMakefile (loadavg): Depend on and use loadavg.c instead of
4091 (loadavg.c): Link or copy it from getloadavg.c.
4092 (distclean): Remove loadavg.c.
4094 Mon May 16 22:59:04 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4098 * misc.c [GETLOADAVG_PRIVILEGED] [! POSIX]: Undefine HAVE_SETEUID
4101 * default.c (default_terminal_rules): In SCCS rules, put
4102 $(SCCS_OUTPUT_OPTION) before $<. On some systems -G is grokked
4103 only before the file name.
4104 * configure.in (SCCS_GET_MINUS_G check): Put -G flag before file name.
4106 Tue May 10 16:27:38 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4108 * job.c (construct_command_argv_internal): Swallow
4109 backslash-newline combinations inside '' strings too.
4111 Thu May 5 04:15:10 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4113 * read.c (do_define): Call collapse_continuations on each line
4116 Mon Apr 25 19:32:02 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4118 * job.c (construct_command_argv_internal): Notice newline inside
4119 '' string when RESTP is non-null.
4121 Fri Apr 22 17:33:30 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4125 * remake.c (update_goal_chain): Reset FILE to G->file after the
4126 double-colon loop so it is never null for following code.
4128 * read.c (read_makefile): Fix `override define' parsing to skip
4129 whitespace after `define' properly.
4131 * compatMakefile (srcdir): Define as @srcdir@; don't reference
4133 (glob/Makefile): New target.
4135 Thu Apr 21 16:16:55 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4139 * misc.c (remove_comments): Use find_char_unquote.
4140 * make.h (find_char_unquote): Declare it.
4141 * read.c (find_char_unquote): New function, generalized from
4143 (find_percent, find_semicolon, parse_file_seq): Use that.
4145 Wed Apr 20 18:42:39 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4147 * implicit.c (pattern_search): Always allocate new storage for
4148 FILE->stem. It is not safe to store STEM's address because it
4149 might be auto storage.
4151 * configure.in: Check for seteuid and setegid.
4152 * misc.c [HAVE_SETEUID]: Declare seteuid.
4153 [HAVE_SETEGID]: Declare setegid.
4154 (make_access, user_access) [HAVE_SETEUID]: Use seteuid.
4155 [HAVE_SETEGID]: Use setegid.
4157 * remake.c (update_goal_chain): Set STATUS to FILE->update_status,
4158 to preserve whether it's 2 for error or 1 for -q trigger. When
4159 STATUS gets nonzero and -q is set, always stop immediately.
4160 * main.c (main, decode_switches): Die with 2 for errors.
4161 (main): Accept 2 return from update_goal_chain and die with that.
4162 * misc.c (fatal, makefile_fatal): Die with 2; 1 is reserved for -q
4164 * job.c (reap_children): Die with 2 for error.
4165 (start_job_command): Set update_status to 2 for error. Set it to
4166 1 when we would run a command and question_flag is set.
4168 * read.c (read_makefile): Don't mark makefiles as precious. Just
4169 like other targets, they can be left inconsistent and in need of
4170 remaking by aborted commands.
4172 * read.c (read_makefile): Write no error msg for -include file.
4174 Tue Apr 5 05:22:19 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4176 * commands.c (fatal_error_signal): Don't unblock signals.
4178 * file.h (struct file): Change member `double_colon' from flag to
4180 * read.c (record_files): Set double_colon pointer instead of flag.
4181 * main.c (main): When disqualifying makefiles for updating, use
4182 double_colon pointer to find all entries for a file.
4183 * file.c (enter_file): If there is already a double-colon entry
4184 for the file, set NEW->double_colon to that pointer.
4185 (file_hash_enter): Use FILE->double_colon to find all entries to
4187 * remake.c (update_goal_chain): Do inner loop on double-colon entries.
4188 (update_file): Use FILE->double_colon pointer to find all entries.
4189 (f_mtime): Likewise.
4190 (notice_finished_file): Propagate mtime change to all entries.
4192 * variable.c (try_variable_definition): Return after abort.
4194 Fri Apr 1 18:44:15 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4196 * read.c (read_makefile): Remove unused variable.
4197 (parse_file_seq): When removing an elt that is just `)', properly
4198 fix up the previous elt's next pointer.
4200 Mon Mar 28 18:31:49 1994 Roland McGrath (roland@mole.gnu.ai.mit.edu)
4202 * configure.in: Do AC_SET_MAKE.
4203 * GNUmakefile (Makefile.in): Edit MAKE assignment into @SET_MAKE@.
4205 Fri Mar 4 00:02:32 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4207 * function.c (subst_expand): If BY_WORD or SUFFIX_ONLY is set and
4208 the search string is the empty string, find a match at the end of
4209 each word (using end_of_token in place of sindex).
4211 * misc.c (end_of_token): Don't treat backslashes specially; you
4212 can no longer escape blanks with backslashes in export, unexport,
4213 and vpath. This was never documented anyway.
4215 Thu Mar 3 23:53:46 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4217 * read.c (read_makefile): Variable name for `define' is not just
4218 first token; use whole rest of line and strip trailing blanks.
4220 Wed Feb 16 16:03:45 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4224 * read.c (read_makefile): Add -d msg stating args.
4226 * read.c (read_makefile): Use isspace to skip over leading
4227 whitespace, and explicitly avoid skipping over tabs. Don't want
4228 to skip just spaces though; formfeeds et al should be skipped.
4230 * default.c (default_variables) [__hpux]: Add f in ARFLAGS.
4232 * arscan.c (ar_name_equal) [__hpux]: Subtract 2 instead of 1 from
4233 sizeof ar_name for max length to compare.
4235 * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Undefine HAVE_SETREUID
4236 #ifdef HAVE_SETUID; likewise HAVE_SETREGID and HAVE_SETGID.
4238 * main.c (main): Call user_access after setting `program', in case
4239 it needs to use it in an error message.
4241 * read.c (read_makefile): Ignore an empty line starting with a tab.
4243 Thu Feb 10 21:45:31 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4245 * configure.in (AC_SYS_SIGLIST_DECLARED): Use this instead of
4246 AC_COMPILE_CHECK that is now its contents.
4248 Fri Feb 4 16:28:54 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4250 * make.h: #undef strerror after #include <string.h>.
4251 [! ANSI_STRING]: Declare strerror.
4253 Thu Feb 3 02:21:22 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4255 * misc.c (strerror): #undef any macro before function definition.
4257 Mon Jan 31 19:07:23 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4259 * variable.c (try_variable_definition): Calculate BEG before loop
4260 to strip blanks by decrementing END. Don't decr END to before BEG.
4262 * read.c (read_makefile): Skip over leading space characters, but
4263 not tabs, after removing continuations and comments (it used to
4266 Tue Jan 25 16:45:05 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4268 * variable.c (define_automatic_variables): In $(@D) et al, use
4269 patsubst to remove trailing slash.
4271 * commands.c (delete_target): New function, broken out of
4272 delete_child_targets. Check for archive members and give special msg.
4273 (delete_child_targets): Use delete_target.
4275 Mon Jan 17 17:03:22 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4277 * default.c (default_suffix_rules): Use $(TEXI2DVI_FLAGS) in
4278 texi2dvi rules. Use $(MAKEINFO_FLAGS) in makeinfo rules.
4280 Tue Jan 11 19:29:55 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4282 * GNUmakefile (tarfiles): Omit make-doc.
4283 (make-$(version).tar): Include make.info*.
4285 Fri Jan 7 16:27:00 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4287 * compatMakefile (configure, config.h.in): Comment out rules.
4289 Thu Jan 6 18:08:08 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4291 * compatMakefile (binprefix, manprefix): New variables.
4292 (instname): Variable removed.
4293 (install): Use $({bin,man}prefix)make in place of $(instname).
4294 File targets likewised renamed.
4296 Mon Jan 3 17:50:25 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4298 * Version 3.70 released.
4300 Thu Dec 23 14:46:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4304 * read.c (parse_file_seq): Inside multi-word archive ref
4305 translation loop, check NEW1==0 at end and break out of the loop.
4307 * GNUmakefile (make-$(version).tar): Distribute install.sh.
4308 * install.sh: New file.
4310 * configure.in (SCCS_GET_MINUS_G check): Put redirection for admin
4311 cmds outside subshell parens, to avoid "command not found" msgs
4314 Wed Dec 22 17:00:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4316 * configure.in (SCCS_GET_MINUS_G check): Put -G flag last in get cmd.
4317 Redirect output & error from get to /dev/null.
4318 Fix reversed sense of test.
4320 Fri Dec 17 15:31:36 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4322 * configure.in (SCCS_GET_MINUS_G check): Use parens instead of
4323 braces inside if condition command; some shells lose.
4325 Thu Dec 16 15:10:23 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4329 * arscan.c [M_UNIX]: Move #undef M_XENIX for PORTAR stuff.
4330 (PORTAR) [M_XENIX]: Define to 0 instead of 1.
4332 * main.c (define_makeflags): Only export MAKEFLAGS if !ALL.
4334 Wed Dec 15 17:47:48 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4336 * main.c (main): Cast result of pointer arith to unsigned int
4337 before passing to define_variable for envars. Matters when
4338 sizeof(unsigned)!=sizeof(ptrdiff_t).
4340 Tue Dec 14 14:21:16 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4342 * configure.in: Add new check for SCCS_GET_MINUS_G.
4343 * config.h.in: Add #undef SCCS_GET_MINUS_G.
4344 * default.c (default_terminal_rules): Use `$(SCCS_OUTPUT_OPTION)' in
4345 place of `-G $@' in SCCS commands.
4346 (default_variables) [SCCS_GET_MINUS_G]: Define SCCS_OUTPUT_OPTION
4349 * configure.in (AC_OUTPUT): Put touch stamp-config in second arg
4350 (so it goes in config.status), rather than afterward.
4352 * ar.c (ar_member_date): Don't call enter_file on the archive file
4353 if it doesn't exist (by file_exists_p).
4355 * compatMakefile ($(infodir)/make.info): Replace `$$d/foo.info'
4356 with `$$dir/make.info' in install-info invocation (oops).
4358 * vpath.c (construct_vpath_list): Only set LASTPATH set PATH when
4359 we do not unlink and free PATH.
4361 * file.c (print_file_data_base): Fix inverted calculation for
4362 average files per hash bucket.
4364 * read.c (readline): When we see a NUL, give only a warning and
4365 synthesize a newline to terminate the building line (used to
4366 fatal). Move fgets call into the loop condition, and after the
4367 loop test ferror (used to test !feof in the loop).
4369 Fri Dec 3 16:40:31 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4371 * configure.in: Check for strerror in AC_HAVE_FUNCS.
4373 Thu Dec 2 15:37:50 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4375 Differentiate different flavors of missing makefile error msgs,
4376 removing gratuitous `fopen: ' and giving caller for included makefiles.
4377 * misc.c [! HAVE_STRERROR]: Define our own strerror here.
4378 (perror_with_name, pfatal_with_name): Use strerror instead of
4379 replicating its functionality.
4380 * read.c (read_makefile): Return int instead of void.
4381 (read_all_makefiles, read_makefile): Change callers to notice zero
4382 return and give error msg.
4384 Thu Nov 11 11:47:36 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4388 * default.c: Put `-G $@' before $< in SCCS cmds.
4390 Wed Nov 10 06:06:14 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4392 * read.c (read_makefile): After trying a variable defn, notice if
4393 the line begins with a tab, and diagnose an error.
4395 Sun Nov 7 08:07:37 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4399 Wed Nov 3 06:54:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4403 * implicit.c (try_implicit_rule): Look for a normal rule before an
4406 Fri Oct 29 16:45:28 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4408 * function.c (expand_function: `sort'): Double NWORDS when it
4409 overflows, instead of adding five.
4411 * compatMakefile (clean): Remove loadavg.
4413 Wed Oct 27 17:58:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4417 * file.h (NEW_MTIME): Define new macro.
4418 * main.c (main): Set time of NEW_FILES to NEW_MTIME, not to
4419 current time returned from system. Removed variable NOW.
4420 * remake.c (notice_finished_file): Use NEW_MTIME in place of
4421 current time here too.
4423 Tue Oct 26 19:45:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4427 * remake.c (update_file_1): Don't clear MUST_MAKE when FILE has no
4428 cmds and !DEPS_CHANGED unless also !NOEXIST.
4430 Mon Oct 25 15:25:21 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4432 * read.c (parse_file_seq): When converting multi-word archive
4433 refs, ignore a word beginning with a '('.
4435 Fri Oct 22 02:53:38 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4437 * configure.in: Check for sys/timeb.h.
4438 * make.h [HAVE_SYS_TIMEB_H]: Test this before including it.
4440 Thu Oct 21 16:48:17 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4444 * rule.c (convert_suffix_rule): New local TARGPERCENT. Set it to
4445 TARGNAME+1 for "(%.o)", to TARGNAME for "%.?". Use it in place of
4446 TARGNAME to initialize PERCENTS[0].
4448 Mon Oct 18 06:49:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4450 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
4451 Remove AC_USG; it is no longer used.
4453 * file.c (print_file): New function, broken out of
4454 print_file_data_base.
4455 (print_file_data_base): Call it.
4456 * rule.c (print_rule): New function, broken out of
4457 print_rule_data_base.
4458 (print_rule_data_base): Call it.
4460 Thu Oct 14 14:54:03 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4462 * default.c (install_default_suffix_rules): New function, broken
4463 out of install_default_implicit_rules.
4464 (install_default_implicit_rules): Move suffix rule code there.
4465 * make.h: Declare install_default_suffix_rules.
4466 * main.c (main): Call install_default_suffix_rules before reading
4467 makefiles. Move convert_to_pattern call before
4468 install_default_implicit_rules.
4470 * job.h (struct child): Make `pid' member type `pid_t' instead of
4473 * compatMakefile (RANLIB): New variable, set by configure.
4474 (glob/libglob.a): Pass RANLIB value down to submake.
4476 Fixes for SCO 3.2 "devsys 4.2" from pss@tfn.com (Peter Salvitti).
4477 * make.h: Include <sys/timeb.h> before <time.h> for SCO lossage.
4478 * job.c [! getdtablesize] [! HAVE_GETDTABLESIZE]: If NOFILE is not
4479 defined but NOFILES_MAX is, define it to be that.
4481 Mon Oct 11 19:47:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4483 * GNUmakefile (make-$(version).tar): Depend on acconfig.h, so it
4486 Sun Oct 3 15:15:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4488 * default.c (default_terminal_rules): Add `-G $@' to SCCS get cmds.
4490 Tue Sep 28 14:18:20 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4492 * job.c (construct_command_argv_internal): Add ^ to SH_CHARS; it
4493 is another symbol for | in some shells.
4494 * main.c (main): Add it to CMD_DEFS quoting list as well.
4496 Mon Sep 20 18:05:24 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4498 * job.c (construct_command_argv_internal): Remove '=' from
4499 SH_CHARS. Only punt on '=' if it is unquoted in a word before the
4500 first word without an unquoted '='.
4502 * main.c (define_makeflags): Set v_export for MAKEFLAGS.
4504 Fri Sep 17 00:37:18 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4506 * remake.c (update_file_1): Use .DEFAULT cmds for phony targets.
4508 * make.h [_AIX && _POSIX_SOURCE]: Define POSIX.
4510 * commands.c (delete_child_targets): Don't delete phony files.
4512 * job.c (start_job_command): Set COMMANDS_RECURSE in FLAGS if we
4513 see a `+' at the beginning of the command line.
4515 Thu Sep 9 17:57:14 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4519 Wed Sep 8 20:14:21 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4521 * main.c (define_makeflags): Define MAKEFLAGS with o_file, not o_env.
4523 Mon Aug 30 12:31:58 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4525 * expand.c (variable_expand): Fatal on an unterminated reference.
4527 Thu Aug 19 16:27:53 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4531 * variable.c (define_automatic_variables): Define new o_default
4532 variable `MAKE_VERSION' from version_string and remote_description.
4534 * make.h (version_string, remote_description): Declare these here.
4535 * main.c: Don't declare version_string.
4536 (print_version): Don't declare remote_description.
4538 Wed Aug 18 15:01:24 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4540 * read.c (read_makefile): Free space pointed to by CONDITIONALS
4541 before restoring the old pointer.
4543 Mon Aug 16 17:33:36 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4545 * compatMakefile ($(objs)): Depend on config.h.
4547 * GNUmakefile (build.sh.in): Depend on compatMakefile.
4549 * configure.in: Touch stamp-config after AC_OUTPUT.
4551 Fri Aug 13 16:04:22 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4555 Thu Aug 12 17:18:57 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4557 * make.h: Include <config.h> instead of "config.h".
4559 Wed Aug 11 02:35:25 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4561 * main.c (main): Make all variables interned from ENVP be v_export.
4562 * variable.c (try_variable_definition): In v_default case, don't
4563 check for an o_file variable that `getenv' finds.
4565 * job.c (reap_children): New local variable ANY_LOCAL; set it
4566 while setting ANY_REMOTE. If !ANY_LOCAL, don't wait for local kids.
4568 * main.c (main): Don't call decode_env_switches on MFLAGS. DOC THIS.
4570 * function.c (expand_function): #if 0 out freeing of ENVP since it
4573 Mon Aug 9 17:37:20 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4577 * remote-stub.c (remote_status): Set errno to ECHILD before return.
4578 * job.c (reap_children): Scan the chain for remote children and
4579 never call remote_status if there are none.
4581 * function.c (expand_function: `shell'): #if 0 out calling
4582 target_environment; just set ENVP to environ instead.
4584 * job.c (reap_children): Check for negative return from
4585 remote_status and fatal for it.
4586 When blocking local child wait returns 0, then try a blocking call
4589 Tue Aug 3 00:19:00 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4591 * compatMakefile (clean): Delete make.info* and make.dvi here.
4592 (distclean): Not here.
4594 * dep.h (RM_*): Use #defines instead of enum to avoid lossage from
4595 compilers that don't like enum values used as ints.
4597 Mon Aug 2 16:46:34 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4599 * compatMakefile (loadavg): Add $(LOADLIBES).
4601 Sun Aug 1 16:01:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4605 * compatMakefile (loadavg, check-loadavg): New targets.
4606 (check): Depend on check-loadavg.
4608 * compatMakefile (glob/libglob.a): Depend on config.h.
4610 * misc.c (log_access): Write to stderr instead of stdout.
4612 Fri Jul 30 00:07:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4616 Thu Jul 29 23:26:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4618 * configure.in (SYS_SIGLIST_DECLARED): In test program include
4619 <unistd.h> #ifdef HAVE_UNISTD_H.
4621 * compatMakefile (.PHONY): Put after `all' et al.
4623 * configure.in: Add AC_IRIX_SUN.
4625 Wed Jul 28 17:41:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4629 Mon Jul 26 14:36:49 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4633 Sun Jul 25 22:09:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4637 * compatMakefile ($(infodir)/make.info): Don't use $(instname).
4638 Run install-info script if present.
4640 Fri Jul 23 16:03:50 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4642 * make.h [STAT_MACROS_BROKEN]: Test this instead of [uts].
4644 * configure.in: Add AC_STAT_MACROS_BROKEN.
4646 Wed Jul 14 18:48:11 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4650 * read.c (read_makefile): Recognize directive `-include', like
4651 `include' but sets RM_DONTCARE flag.
4653 * variable.c (target_environment): If FILE is nil, use
4654 current_variable_set_list in place of FILE->variables.
4655 * function.c (expand_function: `shell'): Get an environment for
4656 the child from target_environment instead of using environ.
4658 * dep.h: Declare read_all_makefiles here.
4659 (RM_*): Define new enum constants.
4660 * read.c (read_makefile): Second arg is FLAGS instead of TYPE.
4661 Treat it as a bit mask containing RM_*.
4662 (read_all_makefiles): For default makefiles, set D->changed to
4663 RM_DONTCARE instead of 1.
4664 * main.c: Don't declare read_all_makefiles here.
4665 (main): Check `changed' member of read_makefiles elts for RM_*
4666 flags instead of specific integer values.
4668 Mon Jul 12 22:42:17 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4670 * make.h [sequent && i386]: #undef POSIX. From trost@cse.ogi.edu.
4672 Thu Jul 8 19:51:23 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4674 * vpath.c (construct_vpath_list): If ELEM is zero 0, free PATTERN
4676 (build_vpath_lists): Empty `vpaths' around construct_vpath_list
4677 call for $(VPATH). Expand $(strip $(VPATH)), not just $(VPATH).
4679 * rule.c (convert_suffix_rule): Use alloca instead of xmalloc for
4680 PERCENTS, whose storage is not consumed by create_pattern_rule.
4682 * make.h [__mips && _SYSTYPE_SVR3]: #undef POSIX.
4684 Wed Jun 30 18:11:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4688 * rule.c (max_pattern_targets): New variable.
4689 (count_implicit_rule_limits): Compute its value.
4690 * rule.h: Declare it.
4691 * implicit.c (pattern_search): Make TRYRULES max_target_patterns
4692 times bigger. Move adding new TRYRULES elt inside the inner
4693 targets loop, so each matching target gets its own elt in MATCHES
4694 and CHECKED_LASTSLASH.
4696 * file.c (remove_intermediates): If SIG!=0 say `intermediate file'
4697 instead of just `file' in error msg.
4699 Fri Jun 25 14:55:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4701 * job.c (construct_command_argv): Turn off
4702 --warn-undefined-variables around expansion of SHELL and IFS.
4703 * read.c (tilde_expand): Likewise for HOME.
4704 (read_all_makefiles): Likewise for MAKEFILES.
4705 * vpath.c (build_vpath_lists): Likewise for VPATH.
4707 * main.c (warn_undefined_variables_flag): New flag variable.
4708 (switches): Add --warn-undefined-variables.
4709 * make.h (warn_undefined_variables_flag): Declare it.
4710 * expand.c (warn_undefined): New function.
4711 (reference_variable): Call it if the variable is undefined.
4712 (variable_expand): In substitution ref, call warn_undefined if the
4713 variable is undefined.
4715 * default.c (default_pattern_rules): Add `%.c: %.w %.ch' and
4716 `%.tex: %.w %.ch' rules.
4717 (default_suffix_rules: .w.c, .w.tex): Pass three args: $< - $@.
4718 (default_suffixes): Add `.ch'.
4720 Mon Jun 21 17:55:39 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4722 * default.c (default_suffixes): Replace `.cweb' with `.w'.
4723 (default_suffix_rules): Rename `.cweb.c' and `.cweb.tex' to `.w.c'
4726 Fri Jun 11 14:42:09 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4728 * compatMakefile ($(bindir)/$(instname)): Add missing backslash.
4730 Thu Jun 10 18:14:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4734 * read.c (multi_glob): Don't free OLD and OLD->name in the
4735 FOUND!=0 fork. Use new block-local variable F instead of
4738 * ar.c (glob_pattern_p): New function, snarfed from glob/glob.c.
4739 (ar_glob): Call it; return nil immediately if MEMBER_PATTERN
4740 contains no metacharacters.
4742 Wed Jun 9 16:25:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4744 * ar.c (ar_glob{_match,_alphacompare}): New function.
4746 * dep.h [! NO_ARCHIVES]: Declare it.
4747 * read.c (multi_glob) [! NO_ARCHIVES]: Use it on archive member elts.
4749 * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
4750 multi_glob (which doesn't take a 3rd arg).
4751 * rule.c (install_pattern_rule): Likewise.
4752 * default.c (set_default_suffixes): Here too.
4753 * function.c (string_glob): Don't pass gratuitous arg to multi_glob.
4755 * read.c (parse_file_seq) [! NO_ARCHIVES]: Add post-processing
4756 loop to translate archive refs "lib(a b)" into "lib(a) lib(b)".
4758 Mon Jun 7 19:26:51 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4760 * compatMakefile (installdirs): Actually pass directory names.
4761 ($(bindir)/$(instname)): Test chgrp&&chmod exit status with `if';
4762 if it fails, echo a warning msg, but don't make the rule fail.
4764 * read.c (tilde_expand): New function, broken out of tilde_expand.
4765 (multi_glob): Call it.
4766 (construct_include_path): Expand ~ in directory names.
4767 * dep.h: Declare tilde_expand.
4768 * main.c (enter_command_line_file): Expand ~ at the start of NAME.
4769 (main): Expand ~ in -C args.
4770 * read.c (read_makefile): Expand ~ in FILENAME unless TYPE==2.
4772 Fri Jun 4 13:34:47 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4774 * main.c (decode_env_switches): Use xmalloc instead of alloca for ARGS.
4776 * main.c (main): Put result of alloca in temporary variable with
4777 simple assignment, to make SGI compiler happy.
4779 Thu Jun 3 20:15:46 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4783 * main.c (main): Before re-execing, remove intermediate files, and
4784 print the data base under -p. Sexier debugging message.
4786 * implicit.c (pattern_search): Allocate an extra copy of the name
4787 of a winning intermediate file when putting it in FOUND_FILES.
4789 Wed Jun 2 16:38:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4791 * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
4792 multi_glob (which doesn't take a 3rd arg).
4794 * dir.c (dir_contents_file_exists_p): When reading dirents, ignore
4795 chars within D_NAMLEN that are NULs.
4797 * main.c (decode_switches): Don't savestring ARGV[0] to put it
4799 For string switch, don't savestring `optarg'.
4800 (main): Don't free elts of makefiles->list that are "-".
4801 Use alloca'd rather than savestring'd storage for elts of
4802 makefiles->list that are temporary file names.
4803 * read.c (read_all_makefiles): Don't free *MAKEFILES.
4804 * file.c (enter_file): Don't strip `./'s.
4805 * main.c (enter_command_line_file): New function.
4806 (main): Use it in place of enter_file for command-line goals from
4807 other_files, and for old_files and new_files.
4809 Mon May 31 18:41:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4813 * compatMakefile (.SUFFIXES): Add .info.
4814 ($(infodir)/$(instname).info): Find make.info* in cwd if there,
4815 else in $srcdir. Use basename to remove dir name from installed name.
4817 Thu May 27 17:35:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4819 * implicit.c (pattern_search): When interning FOUND_FILES, try
4820 lookup_file first; if found, free the storage for our copy of the name.
4822 Wed May 26 14:31:20 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4826 * main.c (decode_switches): In usage msg, write `--switch=ARG' or
4827 `--switch[=OPTARG]' rather than `--switch ARG' or `--switch [ARG]'.
4829 Mon May 24 16:17:31 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4831 * rule.c (convert_suffix_rule): New function.
4832 (convert_to_pattern): Use it instead of doing all the work here
4834 For target suffix `.a', generate both the archive magic rule and
4837 * compatMakefile (distclean): Remove stamp-config.
4839 Sat May 22 16:15:18 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4843 * file.c (remove_intermediates): Don't write extra space after `rm'.
4845 * main.c (struct command_switch.type): Remove `usage_and_exit'.
4846 (print_usage_flag): New variable.
4847 (switches: --help): Make type `flag', to set print_usage_flag.
4848 (init_switches): Remove `usage_and_exit' case.
4849 (decode_switches): Likewise.
4850 (decode_switches): Print usage if print_usage_flag is set.
4851 When printing usage, die with status of BAD.
4852 (main): Die with 0 if print_version_flag.
4854 Fri May 21 16:09:28 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4858 Wed May 19 21:30:44 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4860 * compatMakefile (installdirs): New target.
4861 (install): Depend on it.
4863 Sun May 16 20:15:07 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4867 Fri May 14 16:40:09 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4869 * vpath.c (construct_vpath_list): In removal loop for DIRPATH==0,
4870 set LASTPATH to PATH, not NEXT.
4872 * dir.c (read_dirstream): Break out of loop after incrementing
4873 DS->buckets such that it reaches DIRFILE_BUCKETS; avoid trying to
4874 dereference DS->contents->files[DIRFILE_BUCKETS].
4876 * read.c (read_makefile): Clear no_targets after reading a
4877 targetful rule line.
4879 * main.c (main): If print_version_flag is set, exit after printing
4881 (switches): Change --version docstring to say it exits.
4883 * make.h [butterfly]: #undef POSIX.
4885 Wed May 12 15:20:21 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4889 * arscan.c (ar_scan) [! AIAMAG]: Don't declare LONG_NAME.
4890 [AIAMAG]: Pass TRUNCATE flag arg to (*FUNCTION), always zero.
4892 * function.c (handle_function): Use fatal instead of
4893 makefile_fatal when reading_filename is nil.
4895 * configure.in: Add AC_GETGROUPS_T.
4896 * job.c (search_path): Use GETGROUPS_T in place of gid_t.
4898 Sun May 9 15:41:25 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4902 Fri May 7 18:34:56 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4904 * function.c (handle_function): Fatal for unmatched paren.
4906 Thu May 6 16:13:41 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4910 * commands.c (handling_fatal_signal): New variable.
4911 (fatal_error_signal): Set it.
4912 * job.c (reap_children): Avoid nonreentrant operations if that is set.
4913 * make.h: Declare handling_fatal_signal.
4915 * expand.c (reference_variable): New function, snippet of code
4916 broken out of simple-reference case of variable_expand.
4917 (variable_expand): Use it for simple refs.
4918 (variable_expand): When checking for a computed variable name,
4919 notice a colon that comes before the final CLOSEPAREN. Expand
4920 only up to the colon, and then replace the pending text with a
4921 copy containing the expanded name and fall through to subst ref
4923 (variable_expand): Don't bother expanding the name if a colon
4924 appears before the first $.
4925 (expand_argument): Use alloca instead of savestring.
4926 (variable_expand): For subst ref, expand both sides of = before
4927 passing to [pat]subst_expand. Use find_percent instead of lindex
4928 to check the lhs for a %.
4930 Wed May 5 14:45:52 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4934 Mon May 3 17:00:32 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4936 * arscan.c (ar_name_equal) [AIAMAG]: Abort if TRUNCATED is nonzero.
4938 * read.c (read_makefile): Pass extra arg of 1 to parse_file_seq,
4941 Thu Apr 29 19:47:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4945 * arscan.c (ar_scan): New local flag var LONG_NAME. Set it when
4946 we read the member name in any of the fashions that allow it to be
4947 arbitrarily long. Pass its negation to FUNCTION.
4948 (describe_member): Take TRUNCATED from ar_scan and print it.
4949 (ar_name_equal): Take new arg TRUNCATED; if nonzero, compare only
4950 the first sizeof (struct ar_hdr.ar_name) chars.
4951 (ar_member_pos): Take TRUNCATED from ar_scan, pass to ar_name_equal.
4952 * ar.c (ar_member_date_1): Likewise.
4954 Wed Apr 28 21:18:22 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4956 * job.c (reap_children): Before calling start_job_command to start
4957 the next command line, reset C->remote by calling start_remote_job_p.
4959 Mon Apr 26 15:56:15 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4961 * arscan.c (ar_scan): New local var NAMEMAP.
4962 In loop, rename NAME to NAMEBUF; new var NAME is a pointer; new
4963 flag IS_NAMEMAP. When extracting the member name, always put a
4964 null at its end first. If the name is "//" or "/ARFILENAMES", set
4965 IS_NAMEMAP. If we have already read in NAMEMAP, and NAME looks
4966 like " /N", get full name from NAMEMAP+N.
4967 Else if NAME looks like "#1/N", read N chars from the
4968 elt data to be the full name. At end of loop, if IS_NAMEMAP, read
4969 the elt's data into alloca'd NAMEMAP.
4970 (ar_name_equal): #if 0 truncating code.
4972 * make.h: Don't declare vfork at all. It returns int anyway,
4973 unless <unistd.h> declared it; and we conflicted with some systems.
4975 * main.c (define_makeflags): If FLAGSTRING[1] is '-', define
4976 MAKEFLAGS to all of FLAGSTRING, not &FLAGSTRING[1]. Don't want to
4977 define it to something like "-no-print-directory".
4978 Use %g format instead of %f for floating-valued things.
4980 Thu Apr 22 18:40:58 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4982 * GNUmakefile (Makefile.in): Use a substitution ref on nolib-deps
4983 to change remote-%.dep to remote-stub.dep.
4985 Wed Apr 21 15:17:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4989 Fri Apr 16 14:22:22 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4991 * compatMakefile (install): Remove - prefix from chgrp+chmod.
4995 Thu Apr 15 18:24:07 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4997 * acconfig.h: New file; contains "#undef SCCS_GET" for autoheader.
4998 * configure.in: If /usr/sccs/get exists, define SCCS_GET to that,
5000 * default.c (default_variables): Set GET to macro SCCS_GET.
5002 * read.c (parse_file_seq): Take extra arg STRIP; strip `./' only
5003 if nonzero. I hope this is the last time this argument is added
5005 (read_makefile): Pass it 1 when parsing include file names.
5006 Pass it 1 when parsing target file names.
5007 Pass it 1 when parsing static pattern target pattern names.
5008 * rule.c (install_pattern_rule): Pass it 1 when parsing rule deps.
5009 * default.c (set_default_suffixes): Pass it 1 when parsing
5011 * function.c (string_glob): Pass it 0 here.
5013 Wed Apr 14 11:32:05 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5015 * misc.c (log_access): New function.
5016 ({init,user,make,child}_access): Call it.
5017 (child_access): Abort if !access_inited.
5019 * main.c (switches: --no-print-directory): Use 1 instead of -1 for
5020 single-letter option.
5021 (init_switches, decode_switches, define_makeflags): An option with
5022 no single-letter version is no longer indicated by a value of -1;
5023 instead a value that is !isalnum.
5024 (init_switches): Don't put such switches into the string, only
5025 into the long_option table.
5027 * make.h [!NSIG] [!_NSIG]: #define NSIG 32.
5029 * job.c [HAVE_WAITPID]: Remove #undef HAVE_UNION_WAIT. AIX's
5030 bsdcc defined WIF* to use union wait.
5032 * main.c (struct command_switch): Change member `c' to type int.
5033 (switches): Make const.
5034 (decode_switches): Use `const struct command_switch *'.
5035 (define_makeflags): Likewise.
5037 * default.c (default_suffix_rules): Add `-o $@' to makeinfo rules.
5039 Mon Apr 12 12:30:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5043 * configure.in (AC_HAVE_HEADERS): Check for string.h and memory.h.
5044 Removed AC_MEMORY_H.
5045 * make.h [USG, NeXT]: Don't test these.
5046 [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
5047 [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
5048 [! ANSI_STRING]: Put decls of bcopy et al here.
5049 [sparc]: Don't test this for alloca.h; HAVE_ALLOCA_H is sufficient.
5050 [HAVE_SIGSETMASK]: Test this rather than USG.
5051 [__GNU_LIBRARY__ || POSIX]: Don't #include <unistd.h> again.
5052 * main.c (main): Handle SIGCHLD if defined, and SIGCLD if defined.
5053 It doesn't hurt to do both if they are both defined, and testing
5055 * dir.c: Rationalize directory header conditionals.
5056 * arscan.c [HAVE_FCNTL_H]: Test this rather than USG || POSIX.
5058 * default.c (default_suffixes): Add `.txinfo'.
5059 (default_suffix_rules): Add `.txinfo.info' and `.txinfo.dvi' rules.
5061 * variable.c (try_variable_definition): Replace RECURSIVE flag
5062 with enum FLAVOR, which can be simple, recursive, or append.
5063 Recognize += as append flavor. Set new variable VALUE in a switch
5064 on FLAVOR. For append flavor, prepend the variable's old value.
5065 If the variable was previously defined recursive, set FLAVOR to
5066 recursive; if it was defined simple, expand the new value before
5067 appending it to the old value. Pass RECURSIVE flag to
5068 define_variable iff FLAVOR == recursive.
5070 * variable.c (try_variable_definition): Use alloca and bcopy for
5071 NAME, instead of savestring. Might as well use stack storage
5072 since we free it immediately anyway.
5074 Thu Apr 8 18:04:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5076 * job.c (start_waiting_jobs): Move decl of JOB outside of loop.
5078 * main.c (define_makeflags): Rename `struct flag' member `switch'
5079 to `cs', which is not a reserved word.
5081 Wed Apr 7 15:30:51 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5083 * job.c (new_job): Call start_waiting_jobs first thing.
5084 (start_waiting_job): Changed return type from void to int.
5085 Return 0 when putting the child on the waiting_jobs chain.
5086 (start_waiting_jobs): Don't check load and job_slots here.
5087 Always take a job off the chain and call start_waiting_job on it;
5088 give up and return when start_waiting_job returns zero.
5090 * main.c (define_makeflags: struct flag): Change member `char c' to
5091 `struct command_switch *switch'.
5092 (ADD_FLAG): Set that to CS instead of CS->c.
5093 If CS->c is -1, increment FLAGSLEN for the long name.
5094 When writing out FLAGS, handle FLAGS->switch->c == -1 and write
5095 the long name instead.
5097 * compatMakefile (stamp-config): New target of old config.h rule.
5098 Touch stamp-config after running config.status.
5099 (config.h): Just depend on stamp-config, and have empty commands.
5101 Mon Apr 5 20:14:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5103 * job.c [HAVE_WAITPID]: #undef HAVE_UNION_WAIT.
5105 * configure.in (AC_HAVE_FUNCS): Check for psignal.
5107 Fri Apr 2 17:15:46 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5109 * main.c (long_option_aliases): Remove "new"; it is already an
5110 unambiguous prefix of "new-file".
5112 Sun Mar 28 16:57:17 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5116 Wed Mar 24 14:26:19 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5118 * vpath.c (selective_vpath_search): When adding the
5119 name-within-directory at the end of NAME, and we don't add a
5120 slash, don't copy FILENAME in one char too far into NAME.
5122 * variable.c (define_automatic_variables): Find default_shell's
5123 length with strlen, not numerology.
5125 Wed Mar 17 20:02:27 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5127 * main.c (define_makeflags): Add the elts of a string option in
5128 reverse order, so they come out right when reversed again.
5130 Fri Mar 12 15:38:45 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5132 * compatMakefile (make.info): Use `-o make.info'.
5134 Thu Mar 11 14:13:00 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5136 * compatMakefile (REMOTE): Set to @REMOTE@; change comments to
5138 (objs): Replace remote.o with remote-$(REMOTE).o.
5139 (srcs): Replace remote.c with remote-$(REMOTE).c.
5140 (remote.o): Rule removed.
5142 * configure.in (REMOTE): Subst this in Makefile et al; default "stub".
5143 Use AC_WITH to grok --with-customs arg to set REMOTE=cstms.
5144 * GNUmakefile (build.sh.in): Filter out remote-% from objs list.
5145 * build.template (REMOTE): New var; set to @REMOTE@.
5146 (objs): Add remote-${REMOTE}.o.
5148 Wed Mar 10 15:12:24 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5152 * implicit.c (pattern_search): Fix "dependent"->"dependency" in
5153 "Rejecting impossible" -d msg.
5155 * file.c (file_hash_enter): New local vars {OLD,NEW}BUCKET. Store
5156 mod'd values there; never mod {OLD,NEW}HASH.
5158 Mon Mar 8 13:32:48 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5160 * remake.c [eta10]: Include <fcntl.h> instead of <sys/file.h>.
5162 * compatMakefile (VPATH): Set this to @srcdir@.
5163 (srcdir): Set this to $(VPATH).
5165 * main.c (main): New local var DIRECTORY_BEFORE_CHDIR. Save in it
5166 a copy of CURRENT_DIRECTORY after the first getcwd. Use it
5167 instead of CURRENT_DIRECTORY when chdir'ing back before re-execing.
5169 * remake.c (notice_finished_file): Pass missing SEARCH arg to f_mtime.
5171 * read.c (read_makefile): Remove extraneous arg to parse_file_seq.
5173 Mon Feb 22 14:19:38 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5175 * compatMakefile ($(infodir)/$(instname).info): Use , instead of /
5176 as the sed delimiter char.
5178 Sun Feb 21 14:11:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5182 * rule.h (struct rule): Removed `subdir' member.
5183 * rule.c (new_pattern_rule): No need to clear it.
5184 (count_implicit_rule_limits): Set the `changed' flag in each dep
5185 that refers to a nonexistent directory. No longer set rule-global
5186 `subdir' flag with that information.
5187 (print_rule_data_base): Don't record info on `subdir' flags.
5189 * implicit.c (pattern_search): Check the DEP->changed flag rather
5190 than the (now gone) RULE->subdir flag. Also test CHECK_LASTSLASH;
5191 if it is set, the file might exist even though the DEP->changed
5194 * rule.c (count_implicit_rule_limits): Pass "", not ".", as file
5195 name arg to dir_file_exists_p to check for existence of directory.
5197 * implicit.c (pattern_search): Inside dep-finding loop, set
5198 CHECK_LASTSLASH from the value recorded in CHECKED_LASTSLASH[I],
5199 rather than computing it anew.
5201 * commands.c (set_file_variables): Must alloca space for PERCENT
5202 and copy it, to avoid leaving the trailing `)' in the value.
5204 * misc.c (remove_comments): Fixed backslash-checking loop
5205 condition to allow it to look at the first char on the line.
5206 P2 >= LINE, not P2 > LINE.
5208 * compatMakefile ($(bindir)/$(instname)): Before moving $@.new to
5209 $@, rm $@.old and mv $@ to $@.old.
5211 * variable.c (try_variable_definition): Take new args FILENAME and
5212 LINENO. Fatal if the variable name is empty.
5213 * read.c (read_makefile): Change callers.
5214 * main.c (main): Likewise.
5216 * compatMakefile (group): Define to @KMEM_GROUP@, autoconf magic
5217 that configure will replace with the group owning /dev/kmem.
5219 Mon Feb 8 14:26:43 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5221 * vpath.c (vpath_search): Take second arg MTIME_PTR, pass thru to
5222 selective_vpath_search.
5223 (selective_vpath_search): Take second arg MTIME_PTR.
5224 If the dir cache thinks a file exists, stat it to make sure, and
5225 put the modtime in *MTIME_PTR.
5226 * remake.c (library_search): Take second arg MTIME_PTR.
5227 When we find a match, record its mtime there.
5228 Pass MTIME_PTR through to vpath_search to do same.
5229 (f_mtime): Pass &MTIME as new 2nd arg to {vpath,library}_search;
5230 store it in FILE->last_mtime if set nonzero.
5231 * implicit.c (pattern_search): Pass nil 2nd arg to vpath_search.
5233 * compatMakefile (remote.o): Prepend `$(srcdir)/' to `remote-*.c',
5234 so globbing looks somewhere it will find things.
5236 * compatMakefile ($(infodir)/$(instname).info): Install `make.info*'
5237 not `$(srcdir)/make.info*'; no need to use basename.
5239 Fri Feb 5 12:52:43 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5243 * compatMakefile (install): Add missing ;\s.
5245 Make -, @, and + prefixes on a pre-expanded command line affect
5246 all lines in the expansion, not just the first.
5247 * commands.h (struct commands): Replace `lines_recurse' member
5249 (COMMANDS_{RECURSE,SILENT,NOERROR}): New macros, bits to set in
5251 * commands.c (chop_commands): Set `lines_flags' instead of
5252 `lines_recurse'. Record not only + but also @ and - prefixes.
5253 * remake.c (notice_finished_file): Check the COMMANDS_RECURSE bit
5254 in FILE->cmds->lines_flags, rather than FILE->cmds->lines_recurse.
5255 * job.c (start_job_command): Replaced RECURSIVE and NOPRINT local
5256 var with FLAGS; initialize it to the appropriate `lines_flags' byte.
5257 Set CHILD->noerror if the COMMANDS_NOERROR bit is set in FLAGS.
5258 Set the COMMANDS_SILENT bit in FLAGS for a @ prefix.
5260 * remake.c (update_goal_chain): Set G->file to its prev after
5261 checking for G being finished, since that check needs to examine
5264 * configure.in (union wait check) [HAVE_WAITPID]: Try using
5265 waitpid with a `union wait' STATUS arg. If waitpid and union wait
5266 don't work together, we should not use union wait.
5270 * remake.c (update_goal_chain): When G->file->updated, move
5271 G->file to its prev. We aren't finished until G->file is nil.
5273 Thu Feb 4 12:53:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5275 * main.c (starting_directory): New global variable.
5276 (main): Set it to cwd after doing -Cs.
5277 (log_working_directory): Use it, rather than computing each time.
5278 * make.h: Declare it.
5280 * compatMakefile (SHELL): Define to /bin/sh for losing Unix makes.
5282 * main.c (decode_env_switches): Allocate (1 + LEN + 1) words for
5283 ARGV, rather than LEN words plus one byte.
5285 Wed Feb 3 18:13:52 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5287 * compatMakefile ($(bindir)/$(instname)): Put - before
5288 install_setgid command line, so its failure won't be an error.
5289 (infodir): New variable.
5290 (install): Depend on $(infodir)/$(instname).info.
5291 ($(infodir)/$(instname).info): New target.
5293 * read.c (read_makefile): If FILENAMES is nil when we see a line
5294 starting with a tab, don't treat it as a command. Just fall
5295 through, rather than giving an error.
5297 * read.c (read_makefile): If the NO_TARGETS flag is set when we see a
5298 command line, don't clear it before continuing. We want
5299 subsequent command lines to be ignored as well.
5301 * job.c (new_job): Before expanding each command line, collapse
5302 backslash-newline combinations that are inside var or fn references.
5304 Mon Feb 1 16:00:13 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5306 * compatMakefile (exec_prefix): Default to $(prefix), not /usr/local.
5308 * compatMakefile (make.info): Pass -I$(srcdir) to makeinfo.
5310 * job.c [POSIX] (unblock_sigs): Made global.
5311 [!POSIX] (unblock_sigs): Move defns to job.h.
5312 * job.h [POSIX] (unblock_sigs): Declare.
5314 Sun Jan 31 19:11:05 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5316 * read.c (read_makefile): In vpath parsing, after finding the
5317 pattern token, take entire rest of line as the search path, not
5318 just the next token.
5320 * compatMakefile (remote.o): Depend on remote-*.c.
5322 Thu Jan 28 16:40:29 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5324 * commands.c (set_file_variables): Don't define any F or D versions.
5325 * variable.c (define_automatic_variables): Define them here as
5326 recursively-expanded variables that use the dir and notdir funcs.
5328 * variable.c (target_environment): In v_default case, don't export
5329 o_default or o_automatic variables.
5331 * configure.in (union wait check): Remove ` and ' inside C code;
5332 they confuse the shell script.
5334 Mon Jan 25 13:10:42 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5338 * vpath.c (construct_vpath_list): When skipping further processing
5339 of an elt that is ".", don't also skip the code that pushes P past
5342 * compatMakefile (distclean): Don't remove make-*.
5344 * configure.in (HAVE_UNION_WAIT): Try to use WEXITSTATUS if it's
5345 defined. If one cannot use WEXITSTATUS with a `union wait'
5346 argument, we don't want to believe the system has `union wait' at all.
5348 * remake.c (update_file): Do nothing to print "up to date" msgs.
5349 (update_goal_chain): Do it here instead.
5350 Use the `changed' flag of each goal's `struct dep' to keep track
5351 of whether files_remade (now commands_started) changed around a
5352 call to update_file for that goal.
5353 When a goal is finished, and its file's update_status is zero (i.e.,
5354 success or nothing done), test the `changed' flag and give an "up
5355 to date" msg iff it is clear.
5356 * make.h (files_remade): Renamed to commands_started.
5357 * remake.c: Changed defn.
5358 (update_goal_chain): Changed uses.
5359 * job.c (start_job_command): Increment commands_started here.
5360 (reap_children): Not here.
5362 * remake.c (update_goal_chain): Don't do anything with files'
5363 `prev' members. update_file now completely handles this.
5365 * variable.c (target_environment): Don't expand recursive
5366 variables if they came from the environment.
5368 * main.c (define_makeflags): For flags with omitted optional args,
5369 store {"", 0} with ADD_FLAG. When constructing FLAGSTRING, a flag
5370 so stored cannot have more flags appended to the same word.
5372 Fri Jan 22 14:46:16 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5374 * variable.c (print_variable_set): In vars/bucket calculation,
5375 don't spuriously multiply by 100.
5379 * job.c [!HAVE_UNION_WAIT] (WTERMSIG, WCOREDUMP, WEXITSTATUS):
5380 Don't define if already defined.
5382 * remake.c (update_file): Don't keep track of the command_state before
5383 calling update_file_1. Remove local variable COMMANDS_FINISHED,
5384 and don't test it to decide to print the "is up to date" msg.
5385 Testing for files_remade having changed should always be sufficient.
5386 The old method lost when we are called in the goal chain run on a
5387 makefile, because the makefile's command_state is already
5388 `cs_finished' from the makefile chain run.
5390 * misc.c [HAVE_SETRE[GU]ID]: Test these to decl setre[gu]id.
5392 * configure.in: Rewrote wait checking.
5393 Use AC_HAVE_HEADERS to check for <sys/wait.h>.
5394 Use AC_HAVE_FUNCS to check for waitpid and wait3.
5395 Use a compile check to test just for `union wait'.
5396 * job.c: Rewrote conditionals accordingly.
5397 [HAVE_WAITPID]: Test this only to define WAIT_NOHANG.
5398 [HAVE_WAIT3]: Likewise.
5399 [HAVE_UNION_WAIT]: Test this to define WAIT_T and W*.
5401 * configure.in: Set CFLAGS and LDFLAGS before all checks.
5403 * dir.c: Add static forward decls of {open,read}_dirstream.
5405 Thu Jan 21 17:18:00 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5409 * job.c [NGROUPS_MAX && NGROUPS_MAX==0]: #undef NGROUPS_MAX.
5411 * compatMakefile (CFLAGS, LDFLAGS): Set to @CFLAGS@/@LDFLAGS@.
5412 * build.template (CFLAGS, LDFLAGS): Same here.
5413 * configure.in: AC_SUBST(CFLAGS) and LDFLAGS.
5414 Set them to -g if not defined in the environment.
5416 * remake.c (library_search): Use LIBNAME consistently, setting it
5417 only once, to be the passed name sans `-l'.
5418 Pass new var FILE to be modified by vpath_search.
5420 Mon Jan 18 14:53:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5424 * job.c (start_waiting_jobs): Return when job_slots_used is equal to
5427 * configure.in: Add AC_CONST for the sake of getopt.
5429 * read.c (read_makefile): Continue after parsing `override'
5430 directive, rather than falling through to lossage.
5431 Check for EOL or blank after "override define".
5433 * compatMakefile (.c.o, remote.o): Put $(CFLAGS) after other switches.
5435 Fri Jan 15 12:52:52 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5439 * main.c (define_makeflags): After writing everything into
5440 FLAGSTRING, only back up two chars if [-1] is a dash, meaning we
5441 just wrote " -". Always terminate the string at *P.
5443 * remake.c (library_search): When constructing names in std dirs,
5444 use &(*LIB)[2] for the stem, not LIBNAME (which points at the
5445 buffer we are writing into!).
5447 Thu Jan 14 13:50:06 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5449 * read.c (read_makefile): Set IN_IGNORED_DEFINE for "override
5450 define" when IGNORING is true.
5452 * compatMakefile (distclean): Remove config.status and build.sh.
5454 Wed Jan 13 16:01:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5458 * misc.c (xmalloc, xrealloc): Cast result of malloc/realloc to
5461 * arscan.c (ar_scan) [AIAMAG]: Cast read arg to (char *).
5463 * variable.c (define_automatic_variables): Override SHELL value for
5464 origin o_env_override as well as o_env.
5466 * GNUmakefile (build.sh.in): Don't replace %globobjs%. Instead,
5467 add the names of the glob objects (w/subdir) to %objs%.
5468 * build.template (globobjs): Removed.
5469 Take basename of $objs before linking.
5471 Tue Jan 12 12:31:06 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5475 * configure.in (AC_OUTPUT): Also edit build.sh.
5476 * build.template: New file.
5477 * GNUmakefile (build.sh.in): New rule to create it from build.template.
5478 (make-$(version).tar.Z): Depend on build.sh.in.
5480 * main.c (die): Call print_data_base if -p.
5481 (main): Don't call it here.
5483 * compatMakefile (defines): Add @DEFS@. configure should turn this
5484 into -DHAVE_CONFIG_H.
5486 Mon Jan 11 14:39:23 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5490 * misc.c (init_access): Surround with #ifdef GETLOADAVG_PRIVILEGED.
5491 ({make,user,child}_access) [! GETLOADAVG_PRIVILEGED]: Make no-op.
5492 * compatMakefile (install_setgid): New var, set by configure.
5493 (install): Install setgid $(group) only if $(install_setgid) is true.
5495 Fri Jan 8 15:31:55 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5497 * job.c (load_too_high): If getloadavg fails with errno==0, give a
5498 message saying that load limits are not supported.
5500 * vpath.c (construct_vpath_list): Rewrote path deletion code to
5501 not try to use PATH's next link after freeing PATH.
5503 * main.c (define_makeflags): Rewritten; now handles string-valued
5504 option, and has no arbitrary limits.
5505 (switches): Set `toenv' flag for -I and -v.
5507 * main.c (decode_env_switches): Cast return value of alloca to char *.
5509 * misc.c (child_access) [HAVE_SETREUID, HAVE_SETREGID]: Use
5510 setre[gu]id in place of set[gu]id.
5512 Wed Jan 6 15:06:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5514 * main.c (main): Define MAKEOVERRIDES, MAKE, and MAKE_COMMAND with
5517 * make.h [POSIX]: Don't test this to use ANSI_STRING.
5518 Testing STDC_HEADERS should be sufficient.
5520 * job.h: Declare start_waiting_jobs.
5522 * read.c (read_makefile): Add missing parens in if stmt that find
5523 conditional directives.
5525 * main.c (main): Declare init_dir.
5526 * implicit.c (pattern_search): Always use two % specs in a
5527 DEBUGP2, and always pass two non-nil args.
5528 Cast field width args to int.
5529 Add missing parens in !RULE->subdir if stmt.
5530 * function.c (expand_function, patsubst_expand): Add parens around
5531 assignments inside `while' stmts.
5532 * commands.c (print_commands): Cast field width args to int.
5534 * read.c (do_define): Cast return value of alloca to (char *).
5536 * main.c (init_switches): New function, broken out of decode_switches.
5537 (decode_switches): Take new arg ENV. If set, ignore non-option
5538 args; print no error msgs; ignore options with clear `env' flags.
5539 (decode_env_switches): Rewritten to chop envar value into words
5540 and pass them to decode_switches.
5541 (switches): Set `env' flag for -I and -v.
5543 * dir.c (init_dir): Cast free to __glob_closedir_hook's type.
5545 Tue Jan 5 14:52:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5549 * job.c [HAVE_SYS_WAIT || !USG]: Don't #include <sys/time.h> and
5550 <sys/resource.h>. <sys/time.h> interacts badly with <time.h>, and
5551 we don't need these anyway.
5553 * configure.in (AC_HAVE_FUNCS): Check for setre[gu]id.
5554 * misc.c ({user,make}_access): Test #ifndef HAVE_SETRE[GU]ID, not
5555 #ifdef POSIX || USG. SunOS 4.1 is supposedly POSIX.1 compliant,
5556 but its set[gu]id functions aren't; its setre[gu]id functions work.
5558 * misc.c ({user,make,child}_access): Give name of caller in error msgs.
5560 * job.c (load_too_high): Say "cannot enforce load limit" in error msg.
5562 * configure.in: Call AC_PROG_CC.
5563 * compatMakefile (CC): Define to @CC@ (autoconf magic).
5565 * compatMakefile: Add .NOEXPORT magic target.
5567 Mon Jan 4 17:00:03 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5569 * main.c (print_version): Updated copyright to include 93.
5571 Thu Dec 31 12:26:15 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5573 * make.h [_AIX]: Don't declare alloca.
5575 Tue Dec 29 13:45:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5579 * compatMakefile (objs): Add signame.o.
5580 (srcs): Add signame.[ch].
5582 * compatMakefile (srcs): Add config.h.in.
5583 (remote.o): Add -I. before -I$(srcdir).
5585 Mon Dec 28 15:51:26 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5589 * read.c (readline): Fatal when LEN==0, indicating a line starting
5591 (readline): Take new arg LINENO, for use in error msg.
5592 (read_makefile, do_define): Pass it.
5594 * compatMakefile (glob/libglob.a): Pass -DHAVE_CONFIG_H in CPPFLAGS.
5595 (.c.o): Add -I. before -I$(srcdir).
5597 Wed Dec 23 12:12:04 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5599 * read.c (read_makefile): Accept and ignore a rule with no targets.
5601 * compatMakefile (ALLOCA_SRC): New variable.
5602 (srcs): Include its value.
5604 * read.c (struct conditional): Renamed member `max_ignoring' to
5605 `allocated'; added new member `seen_else'.
5606 (conditional_line): Initialize seen_else flag when starting an `if...';
5607 set it when we see an `else'; fatal if set when we see `else'.
5608 (read_makefile): Fatal "missing `endif'" if there are any pending
5609 conditionals, not just if we are still ignoring.
5611 Tue Dec 22 15:36:28 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5613 * compatMakefile (manext): Set to 1, not l.
5614 ($(mandir)/$(instname).$(manext)): Use $(srcdir) for make.man in cmds.
5616 * file.c (file_hash_enter): Don't call uniquize_deps here.
5617 * read.c (record_files): Likewise.
5618 * implicit.c (pattern_search): Likewise.
5619 * commands.c (set_file_variables): Call it only here.
5621 * default.c (default_variables) [__convex__]: FC=fc.
5623 * variable.c (target_environment): Expand the values of recursively
5624 expanded variables when putting them into the environment.
5625 * expand.c (recursively_expand): Made global.
5626 * make.h (recursively_expand): Declare it.
5628 * remake.c (check_dep): Set FILE->command_state to cs_deps_running
5629 when a dep's command_state is cs_running or cs_deps_running.
5631 * read.c (read_makefile): Changed error msg for spurious cmds to
5632 not say "first target".
5634 Sun Dec 20 17:56:09 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5636 * configure.in: Do AC_CONFIG_HEADER right after AC_INIT.
5637 * make.h (HAVE_CONFIG_H): #include "config.h", then #define this.
5638 * compatMakefile (config.h, configure, config.h.in): New rules.
5639 (defines): Removed @DEFS@.
5641 Thu Dec 17 16:11:40 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5643 * compatMakefile (realclean): Just depend on distclean; no cmds.
5644 (distclean): Do what realclean did before; also remove Makefile and
5645 config.h; don't remove configure.
5646 (info, dvi): New targets; depend on make.{info,dvi}.
5647 (doc): Removed target.
5648 (MAKEINFO, TEXI2DVI): New vars.
5649 (make.info, make.dvi): Use them instead of explicit cmds.
5651 Wed Dec 16 16:25:24 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5653 * configure.in: Added fcntl.h to AC_HAVE_HEADERS. getloadavg cares.
5655 Wed Dec 9 15:21:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5657 * main.c (long_option_aliases): Add --new-file alias for -W.
5659 * default.c (default_variables): Change all C++ to CXX and C++FLAGS
5662 * read.c (do_define): Expand the variable name before using it.
5664 * main.c (main): Define variable "MAKE_COMMAND" to argv[0];
5665 define "MAKE=$(MAKE_COMMAND) $(MAKEOVERRIDES)" always.
5667 * remake.c (library_search): Search for libNAME.a in cwd; look in
5668 vpath before looking in standard dirs, not after.
5669 Changed order of std dirs to: /lib, /usr/lib, ${prefix}/lib.
5671 Mon Nov 23 14:57:34 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5673 * default.c (default_pattern_rules, default_terminal_rules): Added
5674 brackets around initializers.
5676 * variable.c (try_variable_definition): Don't check for LINE[0]=='\t'.
5677 (try_variable_definition): Expand the name before defining the var.
5679 * job.c (init_siglist): Removed function.
5680 Removed decl of `sys_siglist'.
5681 * make.h [! HAVE_SYS_SIGLIST]: #include "signame.h".
5682 [HAVE_SYS_SIGLIST && !SYS_SIGLIST_DECLARED]: Declare sys_siglist
5683 only under these conditions.
5684 * main.c (main): Don't declare init_siglist.
5685 (main) [! HAVE_SYS_SIGLIST]: Call signame_init instead of init_siglist.
5687 Wed Nov 18 14:52:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5689 * read.c (record_files): Don't try to append to FIRSTDEPS if it's
5690 nil; instead just set it to MOREDEPS.
5692 Mon Nov 16 17:49:17 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5694 * vpath.c (construct_vpath_list): Initialize P to DIRPATH before
5695 loop that sets MAXELEM.
5697 Fri Nov 13 18:23:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5701 Thu Nov 12 15:45:31 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5703 * job.c (start_job_command): Under -n, increment files_remade after
5704 processing (i.e., printing) all command lines.
5706 Tue Nov 10 15:33:53 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5708 * read.c (record_files): Append new deps if this rule has no
5709 commands; prepend them to existing deps if this rule has no commands.
5711 * dir.c (open_dirstream): Return nil if DIR->contents->files is nil.
5713 * read.c (parse_file_seq): Removed last arg STRIP. Always strip `./'s.
5714 (read_makefile): Changed callers.
5715 * function.c (string_glob): Likewise.
5716 * rule.c (install_pattern_rule): Likewise.
5718 Mon Nov 9 17:50:16 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5720 * remake.c (files_remade): Made global.
5721 (notice_finished_file): Don't increment files_remade here; this
5722 function gets called in many situations where no remaking was in
5724 * job.c (reap_children): Do it here instead, when we know that
5725 actual commands have been run for the file.
5726 * make.h (files_remade): Declare it.
5728 Thu Nov 5 18:26:10 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5730 * vpath.c (construct_vpath_list): Allow blanks as well as colons to
5731 separate elts in the search path.
5733 * read.c (read_makefile): Don't fatal on extra tokens in `vpath'.
5734 The search path can contain spaces now.
5736 Tue Nov 3 20:44:32 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5738 * compatMakefile (check): New target; no-op.
5740 * file.c (file_hash_enter): Mod OLDHASH by FILE_BUCKETS after
5741 testing for OLDHASH==0 but before using the value.
5742 (rename_file): Don't mod OLDHASH by FILE_BUCKETS before passing it
5745 * file.c (rename_file): Notice when OLDFILE->cmds came from
5746 default.c, and don't try to print ->filename in that case.
5748 Sun Oct 25 01:48:23 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5750 * remake.c (update_file): Don't process F->also_make here.
5751 (notice_finished_file): Don't process FILE->also_make if no attempt
5752 to update FILE was actually made.
5753 Fixed to call f_mtime directly to refresh their modtimes.
5755 Sat Oct 24 22:08:59 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5757 * read.c (find_percent): Don't increment P again after skipping
5760 * expand.c (variable_expand): In call to patsubst_expand, don't
5761 find `%'s ourselves; let that function do it.
5763 * read.c (read_makefile: record_waiting_files): Don't call
5764 record_files if FILENAMES is nil.
5765 (read_makefile): All alternatives in the parsing, except for rule
5766 lines, fall through to the end of the loop. At the end of the
5767 loop, do record_waiting_files so we notice later spurious cmds.
5769 Fri Oct 23 15:57:37 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5771 * variable.c (define_automatic_variables): Free old value of SHELL
5772 before replacing it.
5774 Thu Oct 15 18:57:56 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5776 * compatMakefile (.c.o): Add -I$(srcdir)/glob to flags.
5778 * dir.c (open_dirstream): Cast return value to __ptr_t.
5780 * default.c (default_variables: "GET") [_IBMR2]: Use USG defn.
5782 * make.h (MAXPATHLEN): Moved out of #ifndef POSIX.
5783 (GET_PATH_MAX): Moved from #ifdef POSIX to #ifdef PATH_MAX #else.
5784 Define as (get_path_max ()).
5785 [! PATH_MAX] (NEED_GET_PATH_MAX): Define.
5786 [! PATH_MAX] (get_path_max): Declare fn.
5787 * misc.c [NEED_GET_PATH_MAX] (get_path_max): New function.
5789 Mon Oct 12 13:34:45 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5793 * job.c (sys_siglist): Only declare #ifndef SYS_SIGLIST_DECLARED.
5794 * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
5795 SYS_SIGLIST_DECLARED.
5797 * dir.c (file_impossible): When initializing DIR->contents, set
5798 DIR->contents->dirstream to nil.
5800 * compatMakefile (GLOB): Define new variable.
5801 (objs): Use it, rather than glob/libglob.a explicitly.
5803 * read.c (parse_file_seq): When stripping "./", handle cases like
5804 ".///foo" and "./////".
5805 * file.c (lookup_file, enter_file): Likewise.
5807 Sun Oct 11 17:00:35 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5809 * dir.c (struct dirstream, {open,read}_dirstream): New
5810 data type and functions to read a directory sequentially.
5811 (init_dir): New function to hook it into glob.
5812 * main.c (main): Call init_dir.
5814 * compatMakefile (objs): Added glob/libglob.a.
5815 * configure.in: Remove code to test for glob.
5817 Fri Oct 9 12:08:30 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5819 * read.c (record_files): Generalized test for NAME pointing
5820 somewhere into F->name.
5822 * variable.c (define_variable_in_set): Free old value when replacing.
5824 * read.c (do_define): Free the linebuffer before returning.
5825 (record_files): When clearing .SUFFIXES deps, free their data.
5826 (multi_glob): Free OLD and its data when replacing it with results
5829 * commands.c (set_file_variables): Use alloca in place of xmalloc
5830 for temp space for $^, $?, et al.
5832 * dir.c (struct directory): New member `contents' replaces `files'
5834 (struct directory_contents): New type.
5835 (directories_contents): New hash table.
5836 (dir_struct_file_exists_p): Take a struct directory_contents.
5837 (dir_file_exists_p): Pass it the `contents' member of the dir found.
5838 (dir_struct_file_exists_p): Renamed to dir_contents_file_exists_p;
5839 made static. Return 0 if DIR is nil (meaning it couldn't be stat'd).
5840 (dir_file_exists_p, find_directory): Change all callers.
5841 (file_impossible): Use DIR->contents, initializing it if nil.
5842 (print_dir_data_base): Use DIR->contents, and print out device and
5843 inode numbers with each directory.
5845 * Changes for performance win from John Gilmore <gnu@cygnus.com>:
5846 * dir.c (DIRECTORY_BUCKETS): Increase to 199.
5847 (DIRFILE_BUCKETS): Decrease to 107.
5848 (find_directory): Allocate and zero a multiple of
5849 sizeof (struct dirfile *), not of sizeof (struct dirfile).
5850 (dir_struct_file_exists_p): New function, nearly all code from
5852 (dir_file_exists_p): Just call find_directory+dir_struct_file_exists_p.
5853 * vpath.c (selective_vpath_search): Remove redundant
5854 dir_file_exists_p call.
5856 * configure.in: Comment out glob check; always use our code.
5858 Fri Oct 2 19:41:20 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5860 * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
5861 HAVE_SYS_SIGLIST; after doing #define sys_siglist _sys_siglist, we
5864 Wed Sep 30 19:21:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5866 * main.c (main): Don't do -w automatically if -s.
5868 Tue Sep 29 21:07:55 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5870 * main.c (printed_version): Move variable inside print_version.
5871 (print_version): Return immediately if printed_version is set.
5872 (die): Don't test printed_version here.
5873 (decode_switches): Under -v, do print_version before giving usage.
5874 (DESCRIPTION_COLUMN): New macro.
5875 (decode_switches): Use it when printing the usage message.
5876 Leave at least two spaces between options and their descriptions.
5878 Fri Sep 25 13:12:42 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5882 Wed Sep 16 16:15:22 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5884 * read.c (read_makefile): Save errno value from trying to open
5885 FILENAME, and restore it before erring; otherwise we get the errno
5886 value from the last elt of the search path.
5888 Tue Sep 15 15:12:47 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5890 * main.c (long_option_aliases): Add --stop for -S.
5892 * read.c (word1eq): Do strncmp before dereferencing someplace that
5893 may be out in space.
5895 Wed Sep 9 15:50:41 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5897 * remake.c (notice_finished_file): If all the command lines were
5898 recursive, don't do the touching.
5900 * job.c (start_job_command): Don't check for + here.
5901 * commands.c (chop_commands): Do it here instead.
5903 * default.c (default_terminal_rules): Prepend + to cmds for RCS.
5905 Wed Sep 2 17:53:08 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5907 * compatMakefile (objs): Include $(ALLOCA).
5909 * make.h [CRAY]: Move #define signal bsdsignal to before #includes.
5911 Thu Aug 27 17:45:43 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
5913 * read.c (default_include_directories): Add INCLUDEDIR first.
5914 * compatMakefile (includedir): Define.
5915 (defines): Add -D for INCLUDEDIR="$(includedir)".
5917 * read.c (read_makefile): Grok multiple files in `include';
5920 * remake.c (library_search): New function.
5921 (library_file_mtime): Remove function.
5922 (f_mtime): Use library_search instead of library_file_mtime.
5923 * compatMakefile (libdir): Define.
5924 (defines): Add -D for LIBDIR="$(libdir)".
5925 * make.texinfo (Libraries/Search): Document change.
5927 * file.c (rename_file): Fix file_hash_enter call with missing arg.
5929 Wed Aug 26 17:10:46 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5933 * main.c (main): Set command_state to cs_finished for temp files
5934 made for stdin makefiles.
5936 * main.c (decode_switches): Don't tell getopt to return non-option
5938 Ignore an argument of `-'.
5940 Thu Aug 20 13:36:04 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5942 * job.c (start_job_command): If (touch_flag && !RECURSIVE), ignore
5943 the command line and go to the next.
5944 (notice_finished_file): Under -t, touch FILE.
5945 * remake.c (remake_file): Don't touch it here.
5947 Wed Aug 19 16:06:09 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5949 * function.c (pattern_matches): Use temporary for strlen (WORD)
5950 instead of two function calls.
5952 * compatMakefile (LOAD_AVG): Remove variable and comments.
5954 Tue Aug 18 14:58:58 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5956 * make.texinfo (Running): Node renamed to `make Invocation'.
5958 Fri Aug 14 12:27:10 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5960 * arscan.c (ar_name_equal): Don't compare [MAX-3..MAX] if
5963 Thu Aug 13 17:50:09 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5967 * main.c: Don't #include <time.h>; make.h already does.
5969 Mon Aug 10 17:03:01 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5971 * implicit.c (pattern_search): Fixed copying of suffix when building
5974 * function.c (expand_function: `shell'): Make sure BUFFER is
5975 null-terminated before replacing newlines.
5977 * compatMakefile (mandir): Use man$(manext), not always manl.
5979 Sun Aug 2 01:42:50 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5981 * rule.c (new_pattern_rule): Not static.
5982 * rule.h: Declare it.
5984 * file.c (file_hash_enter): New function, most code from rename_file.
5985 (rename_file): Call it.
5986 * file.h (file_hash_enter): Declare it.
5990 Thu Jul 30 15:40:48 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5992 * main.c (decode_switches): Handle usage_and_exit when building
5993 long options vector.
5995 * default.c (default_terminal_rules): Make RCS rules use $(CHECKOUT,v).
5996 (default_variables): Define CHECKOUT,v (hairy).
5998 * make.h [!HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
5999 sys_siglist to _sys_siglist.
6001 Sun Jul 26 16:56:32 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6003 * NEWS: Add header and tail copyright info like Emacs NEWS.
6005 * make.h [ANSI_STRING]: Don't #define index, rindex, bcmp, bzero,
6006 bcopy if already #define'd.
6007 [STDC_HEADERS] (qsort, abort, exit): Declare here.
6008 [! __GNU_LIBRARY__ && !POSIX]: Not here.
6010 * make.h [_AIX]: #pragma alloca first thing.
6012 * job.c (start_waiting_job): Set the command_state to cs_running
6013 when we queue a job on waiting_jobs.
6015 Fri Jul 24 02:16:28 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6017 * variable.c (define_automatic_variables): Use "" instead of nil
6020 Thu Jul 23 22:31:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6024 * main.c (struct command_switch.type): Add alternative usage_and_exit.
6025 (command_switches): Add -h/--help.
6027 Thu Jul 16 14:27:50 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6029 * GNUmakefile (make-$(version).tar.Z): Include NEWS, not CHANGES.
6030 * README.template: Mention NEWS.
6031 * CHANGES: Renamed to NEWS.
6033 * main.c [! STDC_HEADERS] [sun]: Don't declare exit.
6035 Tue Jul 14 18:48:41 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6037 * main.c (main): Set -o files' command_states to cs_finished.
6039 * rule.c (count_implicit_rule_limits): Decrement num_pattern_rules
6040 when tossing a rule.
6042 * main.c (main): Use alloca only in simple local var assignment,
6043 for braindead SGI compiler.
6045 * rule.c (print_rule_data_base): Barf if num_pattern_rules is
6046 inconsistent with the number computed when listing them.
6048 Mon Jul 13 17:51:53 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6050 * commands.c (set_file_variables): For $? and $^ elts that are archive
6051 member refs, use member name only.
6053 Fri Jul 10 00:05:04 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6055 * variable.h (struct variable.export): Add new alternative v_ifset.
6056 * variable.c (target_environment): Check for it.
6057 (define_automatic_variables): Set it for MAKEFILES.
6059 Thu Jul 9 21:24:28 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6061 * compatMakefile (objs): Remove getloadavg.o; $(extras) gets it.
6062 (remote.o): Use $(srcdir)/remote.c, not $remote.c<.
6063 (distclean, mostlyclean): New targets.
6065 Tue Jul 7 19:12:49 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6069 * compatMakefile (config.status): Remove rule.
6071 * job.c (start_waiting_job): Free C after using C->file, not before.
6073 Sat Jul 4 20:51:49 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6075 * commands.c, job.c, main.c, make.h, remote-cstms.c: Use #ifdef
6076 HAVE_* instead of #ifndef *_MISSING.
6077 * configure.in: Use AC_HAVE_FUNCS instead of AC_MISSING_FUNCS (gone).
6079 Thu Jul 2 18:47:52 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6081 * main.c (main): makelevel>0 or -C implies -w.
6083 Tue Jun 30 20:50:17 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6085 * file.c, job.c, function.c: Don't #include <errno.h>.
6086 make.h: Do it here instead.
6087 * arscan.c (ar_member_touch): Don't declare errno.
6089 Thu Jun 25 17:06:55 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6091 * GNUmakefile (make-$(version).tar.Z): Depend on INSTALL, configure.in.
6093 * remake.c (update_file): If commands or deps are running after
6094 update_file_1 returns, break out of the :: rule (->prev) loop and
6097 * job.c (job_next_command): New function; code from start_job.
6098 (start_job_command): Renamed from start_job. Call job_next_command
6099 and recurse for empty command lines and -n.
6100 (start_waiting_job): Call start_job_command, not start_job.
6101 (new_job): Call job_next_command to prime the child structure, and
6102 then call start_waiting_job.
6103 (reap_children): Use job_next_command and start_job_command.
6104 (start_waiting_job): Call start_remote_job_p here, and store its
6105 result in C->remote. If zero, check the load average and
6106 maybe put C on waiting_jobs.
6107 (start_job_command): Test CHILD->remote rather than calling
6108 start_remote_job_p. Don't do load avg checking at all here.
6110 * main.c (main): Don't handle SIGILL, SIGIOT, SIGEMT, SIGBUS,
6111 SIGSEGV, SIGFPE or SIGTRAP.
6113 * compatMakefile (glob/libglob.a): Don't pass srcdir to sub-make.
6114 configure will set it in glob/Makefile.
6116 Wed Jun 24 19:40:34 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6118 * dir.c [DIRENT] (direct): Don't define to dirent.
6119 [! DIRENT] (direct): Define to dirent.
6120 (dir_file_exists_p): Use struct dirent instead of struct direct.
6122 * make.h (getcwd): No space between macro and ( for args!
6124 * job.c (start_job): Don't put the job on waiting_jobs if
6127 * make.texinfo (Missing): Shortened title.
6129 Tue Jun 23 18:42:21 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6131 * file.c (remove_intermediates): Print "rm" commands under -n.
6133 Mon Jun 22 16:20:02 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6137 Fri Jun 19 16:20:26 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6139 * arscan.c [M_UNIX]: #undef M_XENIX.
6141 Wed Jun 17 17:59:28 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6143 * default.c (default_terminal_rules): Put @ prefix on RCS cmds.
6145 Tue Jun 16 19:24:17 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6147 * compatMakefile (getloadavg.o): Removed special rule.
6148 (CFLAGS): Don't include $(defines).
6149 (.c.o): Define suffix rule.
6150 (glob/libglob.a): Pass CPPFLAGS=$(defines) to submake.
6151 (GETOPT_SRC, srcs, tagsrcs): Prefix files with $(srcdir)/.
6153 * arscan.c (ar_name_equal): Moved local vars inside #if'd block.
6155 * make.h (max): Removed.
6156 * expand.c (variable_buffer_output): Don't use it.
6158 * compatMakefile (INSTALL): Define.
6159 (Makefile): New rule to make from Makefile.in.
6162 (getloadavg.o, remote.o): Use autoconf $foo< hack.
6164 * commands.c (fatal_error_signal): Removed return.
6166 Mon Jun 15 17:42:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6170 * make.texinfo (Summary): New node.
6171 (Special Targets): Mention .EXPORT_ALL_VARIABLES here.
6173 * variable.c (max): Moved to make.h.
6175 * compatMakefile (objs, srcs): Added ar & arscan.
6177 * job.c (start_waiting_job): New function, 2nd half of new_job.
6179 (start_waiting_jobs): New function.
6180 * remake.c (update_goal_chain): Call start_waiting_jobs at the top
6182 * compatMakefile (objs, srcs): Removed load, added getloadavg.
6184 Fri Jun 12 19:33:16 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6186 * job.c (load_too_high): New function. Uses getloadavg.
6187 (waiting_jobs): New variable.
6188 (start_job): Don't call wait_to_start_job. Instead, if
6189 load_too_high returns nonzero, add the child to the
6190 `waiting_jobs' chain and return without starting the job.
6192 Thu Jun 11 00:05:28 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6194 * expand.c (variable_buffer_output): Made global again.
6195 * variable.h: And declare it.
6197 * arscan.c (PORTAR): Define for all systems if PORT5AR is not defined.
6198 (AR_NAMELEN, AR_TRAILING_SLASH): Removed.
6199 (ar_scan): Don't use it. Don't #ifdef AR_TRAILING_SLASH; just look
6200 for a slash in the archive at run time.
6201 (ar_name_equal): Rewrote .o hacking to not use AR_NAMELEN, and to
6202 cope with trailing-slash and non-trailing-slash archives.
6204 * main.c (main) [! SETVBUF_REVERSED]: Test this instead of USGr3 et al.
6205 [SETVBUF_REVERSED]: Always allocate a buffer ourselves.
6207 * load.c (load_average) [sgi]: Use sysmp call.
6209 * compatMakefile (INSTALL_DATA, INSTALL_PROGRAM): Define.
6210 ($(bindir)/$(instname), $(mandir)/make.$(manext)): Use them.
6212 * make.h [HAVE_VFORK_H]: #include <vfork.h>.
6213 (vfork, VFORK_NAME): Don't define.
6214 * job.c (start_job): Use "vfork" in place of VFORK_NAME.
6216 * make.h [HAVE_LIMITS_H, HAVE_SYS_PARAM_H]: If #define'd, #include
6217 the each file. Rearranged PATH_MAX hacking.
6218 * job.c: Rearranged NGROUPS_MAX hacking.
6220 * remake.c (fstat, time): Don't declare.
6222 * compatMakefile (defines): Value is @DEFS@.
6223 (LOADLIBES): Value is @LIBS@.
6224 (extras): Value is @LIBOBJS@.
6225 (ARCHIVES, ARCHIVES_SRC, ALLOCASRC): Removed.
6226 * arscan.c, ar.c: Surround body with #ifndef NO_ARCHIVES.
6228 * misc.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl get*id.
6230 * make.h [GETCWD_MISSING]: Test instead of !USG && !POSIX et al.
6231 (getcwd): Just declare if present. If not, declare as a macro
6232 using getwd, and declare getwd.
6233 [PATH_MAX] (GET_PATH_MAX): #define to PATH_MAX.
6234 * main.c (main, log_working_directory): Use getcwd instead of getwd.
6236 * main.c (main) [SETLINEBUF_MISSING]: Test this instead of USG.
6238 * make.h (SIGHANDLER, SIGNAL): Removed.
6239 (RETSIGTYPE): Define if not #define'd.
6240 * main.c (main): Use signal in place of SIGNAL.
6242 * main.c [SYS_SIGLIST_MISSING]: Test instead of USG.
6244 * job.c (search_path) [GETGROUPS_MISSING]: Test instead of USG.
6245 [HAVE_UNISTD_H]: Test instead of POSIX to not decl getgroups.
6247 * main.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl chdir.
6248 [! STDC_HEADERS]: Test instead of !POSIX to decl exit & atof.
6250 * job.c (child_handler), commands.c (fatal_error_signal): Return
6251 RETSIGTYPE instead of int.
6252 * main.c (main): Declare fatal_error_signal and child_handler here
6253 to return RETSIGTYPE; removed top-level decl of former.
6255 * commands.c (fatal_error_signal), job.c (unblock_sigs, start_job),
6256 main.c [SIGSETMASK_MISSING]: Test this instead of USG.
6258 Wed Jun 10 22:06:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6260 * job.c [HAVE_WAITPID]: Test this instead of USG.
6261 [! HAVE_UNISTD_H]: Test this instead of !POSIX to declare misc fns.
6262 (GID_T): Don't #define.
6263 (search_path): Use gid_t instead of GID_T.
6264 [GETDTABLESIZE_MISSING, SYS_SIGLIST_MISSING, DUP2_MISSING]: Test
6265 these individually instead of USG for all.
6266 * make.h (ctime): Don't declare. #include time.h instead.
6267 [HAVE_UNISTD_H]: #include <unistd.h> and #define POSIX #ifdef
6269 * dir.c [__GNU_LIBRARY__] (D_NAMLEN): Define to use d_namlen member.
6270 * make.h [NEED_MEMORY_H]: Only include memory.h #ifdef this.
6272 * arscan.c: Removed #ifdef mess about string.h et al.
6273 Just #include make.h instead.
6274 * make.h (fstat, atol): Declare.
6276 * commands.c (fatal_error_signal): Don't use sigmask to check for
6277 propagated signals; use ||s instead.
6278 (PROPAGATED_SIGNAL_MASK): Removed.
6279 (fatal_error_signal) [POSIX]: Use sigprocmask in place of sigsetmask.
6281 * variable.c (variable_buffer, variable_buffer_length,
6282 initialize_variable_output, variable_output): Moved to expand.c;
6284 (struct output_state, save_variable_output,
6285 restore_variable_output): Removed.
6286 * expand.c (initialize_variable_output): Put a NUL at the beginning
6287 of the new buffer after allocating it.
6288 (allocated_variable_expand_for_file): Don't use
6289 {save,restore}_variable_output. Do it by hand instead, keeping
6290 state on the stack instead of malloc'ing it.
6291 (allocated_variable_expand): Removed.
6292 * variable.h (allocated_variable_expand): Define here as macro.
6293 (variable_buffer_output, initialize_variable_output,
6294 save_variable_output, restore_variable_output): Removed decls.
6296 * read.c (conditional_line): For an if cmd, if any elt of the
6297 conditionals stack is ignoring, just push a new level that ignores
6298 and return 1; don't evaluate the condition.
6300 Thu Jun 4 21:01:20 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6302 * main.c (main): Put #ifdef's around frobbing SIGSYS and SIGBUS.
6304 * job.c (getdtablesize): Don't declare or #define if already #define'd.
6306 Wed Jun 3 23:42:36 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6308 * file.c (snap_deps): If `.EXPORT_ALL_VARIABLES' is a target, set
6309 export_all_variables.
6310 * make.texinfo (Variables/Recursion): Document .EXPORT_ALL_VARIABLES.
6312 Tue Jun 2 21:08:35 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6316 * commands.c (set_file_variables): Calculate length for ^D and ?D
6317 individually, making sure to give them at least enough space for "./".
6319 * make.h [CRAY]: #define signal to bsdsignal.
6321 * default.c (default_variables) [CRAY]: Define PC, SEGLDR,
6322 CF77PPFLAGS, CF77PP, CFT, CF, and FC.
6324 * arscan.c (AR_HDR_SIZE): Define to sizeof (struct ar_hdr), if it
6325 wasn't defined by <ar.h>.
6327 Thu May 28 00:56:53 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6331 Tue May 26 01:26:30 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6333 * rule.c (new_pattern_rule): Initialize LASTRULE to nil, not
6336 Mon May 25 19:02:15 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6338 * main.c (decode_switches): Initialize all the long_option elt members.
6340 Thu May 21 16:34:24 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6342 * make.texinfo (Text Functions): Correct filter-out description.
6344 Tue May 19 20:50:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6346 * compatMakefile (realclean): Don't remove backup files.
6348 * main.c (decode_switches): Allocate ARGC+1 elts in `other_args'.
6350 Sun May 17 16:38:48 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6354 Thu May 14 16:42:33 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6356 * job.c (reap_children): Don't die if wait returns EINTR.
6358 Wed May 13 18:28:25 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6360 * job.c (reap_children): Always run the next command for a
6361 successful target. If we are going to die, we don't want to leave
6362 the target partially made.
6364 Tue May 12 00:39:19 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6366 * job.c (construct_command_argv_internal): After loop, if we only
6367 have one word, check it for being a shell command.
6369 * main.c (decode_switches): Allocate ARGC slots in other_args to
6370 begin with, so we never need to worry about growing it.
6371 If we get a non-option arg and POSIXLY_CORRECT is in the
6372 environment, break out of the loop. After the loop, add all remaining
6373 args to other_args list.
6375 * main.c (decode_switches): For positive_int and floating switches
6376 when optarg is nil, use next arg if it looks right (start with a
6377 digit, or maybe decimal point for floating).
6379 * variable.c (define_automatic_variables): Always set SHELL to
6380 default if it comes from the environment. Set its export bit.
6381 * make.texinfo (Environment): Document change.
6383 Mon May 11 00:32:46 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6387 * compatMakefile (tags, TAGS): Use vars for cmds.
6388 (ETAGS, CTAGS): Define.
6390 * main.c (decode_switches): If a switches elt has a nil long_name,
6391 make the long option name elt be "".
6392 Fixed loop to not ignore all the options.
6394 * make.texinfo (Option Summary): Added long options.
6396 * main.c (switches): Changed -m's description to "-b".
6397 (decode_switches): When printing the usage message, don't print
6398 switches whose descriptions start with -.
6399 When constructing the list of names for switch -C, search the
6400 switches vector for switches whose descriptions are "-C".
6402 * main.c (switches): Call -S --no-keep-going, not --dont-keep-going.
6403 Call -I --include-dir, not --include-path.
6404 (long_option_aliases): Added --new == -W, --assume-new == -W,
6405 --assume-old == -o, --max-load == -l, --dry-run == -n, --recon == -n,
6408 * main.c (switches): Removed bogus "silent" elt.
6409 (long_option_aliases): Define new var.
6410 (decode_switches): Add long_option_aliases onto the end of the long
6411 options vector created for getopt_long.
6412 Look through long_option_aliases for extra names to list
6415 Sat May 9 00:21:05 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6417 * main.c (log_working_directory): Fixed to properly not print the
6418 leaving message when we haven't printed the entering message.
6420 Fri May 8 21:55:35 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6422 * main.c (struct command_switch): Added elts `long_name',
6423 `description', and `argdesc'.
6424 (switches): Added initializers for new members.
6425 (decode_switches): Rewritten to use getopt_long.
6426 * compatMakefile (GETOPT, GETOPT_SRC): Define.
6427 (objs, srcs): Include them.
6429 * job.c (child_died): Renamed to dead_children; made static.
6430 (child_handler): Increment dead_children instead of setting child_died.
6431 (reap_children): Decrement dead_children instead of clearing
6432 child_died. The point of all this is to avoid printing "waiting
6433 for unfinished jobs" when we don't actually need to block.
6434 This happened when multiple SIGCHLDs before reap_children was called.
6436 * job.c (reap_children): If ERR is set, so we don't call start_job
6437 on the child being reaped, instead set its command_state to
6439 (reap_children, child_handler, new_job): I added several
6440 debugging printf's while fixing this. I left them in if (debug_flag)
6441 because they may be useful for debugging this stuff again.
6443 Wed May 6 22:02:37 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6445 * read.c (read_makefile): v_export is not 1.
6447 Mon May 4 17:27:37 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6451 * variable.c (export_all_variables): New variable.
6452 (target_environment): Export variables whose `export' member is
6453 v_default if export_all_variables is set and their names are benign.
6454 * variable.h: Declare export_all_variables.
6455 * read.c (read_makefile): If export or unexport is given with no
6456 args, set or clear export_all_variables, respectively.
6458 * variable.c (target_environment): Exclude MAKELEVEL in the loop,
6459 so it isn't duplicated when we add it at the end.
6461 Sun May 3 17:44:48 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6465 * variable.h (struct variable): Added new member `export'.
6466 * variable.c (define_variable_in_set): Initialize it to v_default.
6467 (target_environment): Don't check for .NOEXPORT.
6468 Export variables whose `export' member is v_default and that would
6469 have been exported under .NOEXPORT, and variables whose `export'
6471 (try_variable_definition): Return the variable defined.
6472 * variable.h (try_variable_definition): Changed decl.
6473 * read.c (read_makefile): Recognize `export' and `unexport' directives.
6475 Fri May 1 11:39:38 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6477 * main.c (main) [POSIX]: Reversed args to sigaddset.
6479 Thu Apr 30 17:33:32 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6481 * job.c [POSIX || !USG] (unblock_sigs): New fn.
6482 (start_job): Block signals before forking.
6483 (new_job): Unblock signals after putting the new child on the chain.
6484 * main.c (main) [POSIX]: Use sigset_t fatal_signal_set instead of
6485 int fatal_signal_mask.
6487 * load.c [sgi] (LDAV_CVT): Define.
6489 Wed Apr 29 17:15:59 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6493 * load.c (load_average) [sgi]: Clear the high bit of the address
6494 from the symbol table before looking it up in kmem.
6496 * misc.c (fatal, makefile_fatal): Put *** in fatal error messages.
6497 (remake_file): No longer needed in message here.
6499 * main.c (die): Call reap_children with BLOCK==1.
6501 Tue Apr 28 20:44:35 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6503 * rule.c (freerule): Don't set LASTRULE->next if LASTRULE is nil.
6505 Sun Apr 26 15:09:51 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6507 * rule.c (count_implicit_rule_limits): Initialize LASTRULE to nil,
6508 not to head of chain. Extract next ptr before we might do
6509 freerule, and use that for next iteration.
6510 (freerule): Still do next ptr frobbing if LASTRULE is nil.
6512 Tue Apr 21 03:16:29 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6514 * job.c (child_error): Removed extra %s from error msg format.
6518 * job.c (reap_children): Don't start later commands in a sequence
6521 * job.c (new_job): Always call reap_children with BLOCK==0 first thing.
6523 * job.c (reap_children): New function; work that used to be done in
6525 (child_died): New global var.
6526 (child_handler): Now just sets child_died.
6527 (wait_for_children): Removed.
6528 (unknown_children_possible, block_signals, unblock_signals,
6529 push_signals_blocked_p, pop_signals_blocked_p): Removed.
6530 (child_execute_job): Removed call to unblock_signals.
6531 (new_job): Removed calls to push_signals_blocked_p and
6532 pop_signals_blocked_p.
6533 * job.h: Declare reap_children, not wait_for_children.
6534 * commands.c (fatal_error_signal), job.c (new_job),
6535 load.c [LDAV_BASED] (wait_to_start_job), main.c (die),
6536 remake.c (update_goal_chain), function.c (expand_function: `shell'):
6537 Changed wait_for_children calls to reap_children.
6538 Some needed to be loops to wait for all children to die.
6539 * commands.c (fatal_error_signal), main.c (main,
6540 log_working_directory), function.c (expand_function): Removed calls
6541 to push_signals_blocked_p and pop_signals_blocked_p.
6542 * job.h: Removed decls.
6544 * job.h: Added copyright notice.
6546 Wed Apr 15 02:02:40 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6548 * job.c (child_error): No *** for ignored error.
6550 Tue Apr 14 18:31:21 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6552 * implicit.c (DEBUGP2): Use do ... while (0) instead of if ... else to
6553 avoid compiler warnings.
6555 * read.c (parse_file_seq): Don't remove ./ when it is followed by a
6558 Mon Apr 13 21:56:15 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6560 * make.h (DEBUGPR): Use do ... while (0) instead of if ... else to
6561 avoid compiler warnings.
6563 * remake.c (notice_finished_file): Run file_mtime on the also_make
6564 files, so vpath_search can happen.
6566 * GNUmakefile (tests): Use perl test suite from csa@sw.stratus.com.
6567 (alpha-files): Include test suite tar file.
6569 Fri Apr 3 00:50:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6573 Wed Apr 1 05:31:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6575 * remake.c (update_file, update_file_1): Do check_renamed on elts
6576 of dep chains when traversing them. Something unrelated might have
6577 renamed one of the files the dep chain points to.
6579 * file.c (rename_file): If FILE has been renamed, follow its
6580 `renamed' ptr, so we get to the final real FILE. Using the renamed
6581 ones loses because they are not in the hash table, so the removal
6582 code loops infinitely.
6584 * read.c (read_all_makefiles): Clobber null terminator into
6585 MAKEFILES expansion, so string passed to read_makefile is properly
6588 Mon Mar 30 20:18:02 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6590 * commands.c (set_file_variables): $* for archive member with
6591 explicit cmds is stem of member, not of whole `lib(member)'.
6593 Thu Mar 26 15:24:38 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6597 Tue Mar 24 05:20:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6599 * rule.c (new_pattern_rule): Rules are identical only if all their
6600 targets match (regardless of order).
6602 Wed Mar 11 13:49:54 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6604 * remake.c (remake_file): Changed error "no way to make" to "no
6605 rule to make". Fiat Hugh.
6607 * make.texinfo (Last Resort): Describe %:: rules and new .DEFAULT
6610 * remake.c (update_file_1): Only use .DEFAULT cmds if FILE is not a
6613 Tue Mar 10 18:13:13 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6615 * remote-stub.c, remote-cstms.c (start_remote_job): Take new arg,
6616 environment to pass to child.
6617 * job.c (start_job): Pass it.
6619 Mon Mar 9 19:00:11 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6621 * file.c (enter_file): Also strip ./s here, to get command-line
6624 * remote-cstms.c: Add comment telling people to leave me alone.
6626 * compatMakefile (manpage install): Remove target before copying.
6628 Tue Mar 3 18:43:21 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6630 * make.texinfo (Missing): Renamed to "Incompatibilities and ...".
6631 Added paragraph describing $? incompatibility with Unix and POSIX.2.
6633 Sun Mar 1 15:50:54 1992 Roland McGrath (roland@nutrimat.gnu.ai.mit.edu)
6635 * function.c (expand_function: `shell'): Don't declare fork or pipe.
6636 Use vfork instead of fork.
6638 Tue Feb 25 22:05:32 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6640 * make.texinfo (Chained Rules): Clarify .PRECIOUS to save
6643 * load.c [sun] (LDAV_CVT): Define to divide by FSCALE.
6645 Sun Feb 16 02:05:16 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6649 Sat Feb 15 17:12:20 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6651 * compatMakefile (makeinfo): Use emacs batch-texinfo-format fn.
6653 Fri Feb 14 00:11:55 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6655 * read.c (read_makefile): Correctly handle define & endef in ifdefs.
6657 * read.c (record_files): Pass arg for %s in error msg.
6659 * main.c (main) [__IBMR2, POSIX]: Use correct (a la USGr3) setvbuf
6662 Wed Feb 12 12:07:39 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6664 * make.texinfo (Libraries/Search): Say it does /usr/local/lib too.
6666 Sun Feb 9 23:06:24 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6668 * read.c (read_makefile): Check for extraneous `endef' when ignoring.
6670 Thu Feb 6 16:15:48 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6674 Tue Feb 4 20:04:46 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6676 * job.c (construct_command_argv_internal): Correctly ignore
6677 whitespace after backslash-NL.
6679 Fri Jan 31 18:30:05 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6681 * compatMakefile: Ignore errors from chgrp and chmod when installing.
6683 Wed Jan 29 18:13:30 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6685 * main.c (main): When setting MAKELEVEL in the env to re-exec,
6686 allocate space so as not to clobber past the end of the old string.
6688 * make.h [HAVE_ALLOCA_H]: Include <alloca.h>
6689 * compatMakefile (defines): Document HAVE_ALLOCA_H.
6691 Mon Jan 20 13:40:05 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6693 * make.h [VFORK_MISSING]: Use fork instead.
6694 * compatMakefile (defines): Document same.
6696 * job.c (construct_command_argv_internal): Don't create an empty
6697 arg if backslash-NL is at beginning of word.
6699 Sun Jan 19 16:26:53 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6701 * main.c [DGUX]: Call setvbuf as for USGr3.
6703 * job.c (construct_command_argv_internal): Notice correctly that
6704 backslash-NL is the end of the arg (because it is replaced with a
6707 Thu Jan 16 18:42:38 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6709 * job.c (construct_command_argv_internal): If SHELL is nil, set it
6710 to default_shell before proceeding.
6712 * make.h [sgi]: No alloca.h, after all.
6714 Wed Jan 15 12:30:04 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6716 * read.c (multi_glob): Cons up the chain of the results of glob
6717 from back to front, so it comes out in forward order.
6719 * job.c (construct_command_argv_internal): Don't eat char following
6722 Mon Jan 13 19:16:56 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6726 * default.c (default_variables) [ultrix]: GET=get, like USG.
6728 * job.c (construct_command_argv_internal): Remove tabs following
6729 backslash-NL combos in the input line, so they don't show up when
6730 that line is printed.
6732 * read.c (read_makefile): Don't collapse_continuations the line on
6733 input; do it on the copy we do remove_comments on.
6734 For rule lines, collapse_continuations the line after chopping
6735 ";cmds" off the end, so we don't eat conts in the cmds.
6736 Give error for ";cmds" with no rule.
6737 * job.c (construct_command_argv_internal): Eat backslash-NL combos
6738 when constructing the line to recurse on for slow, too.
6740 Sat Jan 11 02:20:27 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6742 * file.c (enter_file): Don't strip leading `./'s.
6743 * read.c (parse_file_seq): Take new arg STRIP; if nonzero, do it here.
6744 * default.c (set_default_suffixes), function.c (string_glob),
6745 read.c (read_makefile), rule.c (install_pattern_rule): Change callers.
6747 * default.c (default_variables) [_IBMR2]: FC=xlf
6749 * job.c (construct_command_argv_internal): Turn backslash-NL and
6750 following whitespace into a single space, rather than just eating
6753 * make.texinfo (Copying): @include gpl.texinfo, rather than
6754 duplicating its contents.
6756 Fri Nov 8 20:06:03 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6758 * job.c (construct_command_argv_internal): Make sure not to bother
6759 processing an empty line.
6763 * job.c (construct_command_argv_internal): Always recurse for slow;
6764 simple case didn't handle finding newlines.
6766 Tue Nov 5 18:51:10 1991 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6768 * job.c (construct_command_argv_internal): Set RESTP properly when
6769 slow; don't \ify past a newline.
6771 Fri Nov 1 19:34:28 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6773 * make.h [sgi]: #include <alloca.h>.
6777 See ChangeLog.1 for earlier changes.