1 2002-05-09 Paul D. Smith <psmith@gnu.org>
3 * file.c (file_timestamp_now): Use K&R function declaration.
5 * getloadavg.c (getloadavg): Merge setlocale() fix from sh-utils
6 getloadavg.c. Autoconf thinks QNX is SVR4-like, but it isn't, so
7 #undef it. Remove predefined setup of NLIST_STRUCT. Decide
8 whether to include nlist.h based on HAVE_NLIST_H. Change obsolete
9 NLIST_NAME_UNION to new HAVE_STRUCT_NLIST_N_UN_N_NAME.
10 * configure.in (NLIST_STRUCT): Define this if we have nlist.h and
11 nlist.n_name is a pointer rather than an array.
13 * acinclude.m4 (make_FUNC_SETVBUF_REVERSED): Grab the latest
14 version of AC_FUNC_SETVBUF_REVERSED from autoconf CVS.
15 * configure.in: Use it instead of the old version.
17 * main.c (main): Prefer setvbuf() to setlinebuf().
19 2002-05-08 Paul D. Smith <psmith@gnu.org>
21 * Makefile.am (make_LDADD): Add GETLOADAVG_LIBS.
22 (loadavg_LDADD): Ditto.
24 2002-04-29 Paul D. Smith <psmith@gnu.org>
26 * expand.c (recursively_expand_for_file): Rename
27 recursively_expand() to recursively_expand_for_file() and provide
28 an extra argument, struct file. If the argument is provided, set
29 the variable scope to that of the file before expanding.
30 * variable.h (recursively_expand): Make this a macro that invokes
31 recursively_expand_for_file() with a NULL file pointer.
32 * variable.c (target_environment): Call the renamed function and
33 provide the current file context.
34 Fixes Debian bug #144306.
36 2002-04-28 Paul D. Smith <psmith@gnu.org>
38 Allow $(call ...) user-defined variables to be self-referencing
39 without throwing an error. Allows implementation of transitive
40 closures, among other possibly useful things.
41 Requested by: Philip Guenther <guenther@sendmail.com>
43 * variable.h (struct variable): Add a new field: exp_count, and
44 new macros to hold its size and maximum value.
45 (warn_undefined): Make this a macro.
46 * variable.c (define_variable_in_set): Initialize it.
47 * expand.c (recursively_expand): If we detect recursive expansion
48 of a variable, check the exp_count field. If it's greater than 0
49 allow the recursion and decrement the count.
50 (warn_undefined): Remove this (now a macro in variable.h).
51 * function.c (func_call): Before we expand the user-defined
52 function, modify its exp_count field to contain the maximum
53 number of recursive calls we'll allow. After the call, reset it
56 2002-04-21 Paul D. Smith <psmith@gnu.org>
58 Modified to use latest autoconf (2.53), automake (1.6.1), and
59 gettext (0.11.1). We're using gettext's new "external" support,
60 to avoid including libintl source with GNU make.
62 * README.cvs: New file. Explain how to build GNU make from CVS.
64 * configure.in: Modify checking for the system glob library.
65 Use AC_EGREP_CPP instead of AC_TRY_CPP. Remove the setting of
66 GLOBDIR (we will always put "glob" in SUBDIRS, so automake
67 etc. will manage it correctly). Set an automake conditional
68 USE_LOCAL_GLOB to decide whether to compile the glob library.
70 * getloadavg.c (main): Include make.h in the "TEST" program to
73 * Makefile.am: Remove special rules for loadavg. Replace them
74 with Automake capabilities for building extra programs.
76 * signame.c: This file does nothing if the system provide
77 strsignal(). If not, it implements strsignal(). If the system
78 doesn't define sys_siglist, then we make our own; otherwise we use
82 * main.c (main): No need to invoke signame_init(). Update copyright.
86 * gettext.h: Get a simplified copy from the gettext package.
88 * i18n/*.po: Moved to po/.
91 * config/*: Created. Contains package configuration helper files.
92 * config.guess, config.sub: Moved to config directory.
94 * configure.in (AC_CONFIG_FILES): Add po/Makefile.in, config/Makefile.
95 Rework to use new-style autoconf features. Use the "external"
96 mode for gettext. Make the build.sh config file conditional on
97 whether build.sh.in exists, to avoid autoconf errors.
98 * acinclude.m4: Removed almost all macros as being obsolete.
99 Rewrote remaining macros to use AC_DEFINE.
100 * acconfig.h: Removed.
102 * Makefile.am (EXTRA_DIST): Add config/config.rpath. Use a
103 conditional to handle customs support. Remove special handling
106 2002-04-20 Paul D. Smith <psmith@gnu.org>
108 * function.c (func_call): Don't mark the argument variables $1,
109 etc. as recursive. They've already been fully expanded so
110 there's no need to do it again, and doing so strips escaped $'s.
111 Reported by Sebastian Glita <glseba@yahoo.com>.
113 * remake.c (notice_finished_file): Walk through double-colon
114 entries via the prev field, not the next field!
115 Reported by Greg McGary <greg@mcgary.org>.
117 * main.c (main): If the user specifies -q and asks for a specific
118 target which is a makefile, we got an assert. In that case it
119 turns out we should continue normally instead.
121 * i18n/de.po, i18n/fr.po: Installed an updated translation.
123 * i18n/he.po: Installed a new translation.
125 2002-01-07 Paul D. Smith <psmith@gnu.org>
127 * i18n/es.po, i18n/ru.po: Installed an updated translation.
129 2001-12-04 Paul D. Smith <psmith@gnu.org>
131 * i18n/ja.po: Installed an updated translation.
133 2001-09-04 Paul D. Smith <psmith@gnu.org>
135 * i18n/da.po: Installed an updated translation.
137 2001-08-03 Paul D. Smith <psmith@gnu.org>
139 * i18n/fr.po: Installed an updated translation.
140 Resolves Debian bug #106720.
142 2001-06-13 Paul D. Smith <psmith@gnu.org>
144 * i18n/da.po, configure.in (ALL_LINGUAS): Installed a new
147 2001-06-11 Paul D. Smith <psmith@gnu.org>
149 * i18n/ko.po: Installed a new translation.
151 2001-05-06 Paul D. Smith <psmith@gnu.org>
153 Modify the EINTR handling.
155 * job.c (new_job): Reorganize the jobserver algorithm. Reorder
156 the way in which we manage the file descriptor/signal handler race
157 trap to be more efficient.
159 2001-05-06 Paul Eggert <eggert@twinsun.com>
161 Restart almost all system calls that are interrupted, instead
162 of worrying about EINTR. The lone exception is the read() for
165 * configure.in (HAVE_SA_RESTART): New macro.
166 (MAKE_JOBSERVER): Define to 1 only if HAVE_SA_RESTART.
167 * main.c (main): Use SA_RESTART instead of the old,
168 nonstandard SA_INTERRUPT.
170 * configure.in (AC_CHECK_FUNCS): Add bsd_signal.
171 * main.c (bsd_signal): New function or macro,
172 if the implementation doesn't supply it.
173 (The bsd_signal function will be in POSIX 1003.1-200x.)
175 (main, FATAL_SIG): Use bsd_signal instead of signal or HANDLESIG.
177 * make.h (EINTR_SET): Remove.
178 (SA_RESTART): New macro.
180 * arscan.c (ar_member_touch): Don't worry about EINTR.
181 * function.c (func_shell): Likewise.
182 * job.c (reap_children, free_child, new_job): Likewise.
183 * main.c (main): Likewise.
184 * remake.c (touch_file, name_mtime): Likewise.
186 * arscan.c (ar_member_touch): Fix bug uncovered by EINTR removal;
187 if fstat failed with errno!=EINTR, the error was ignored.
189 * job.c (set_child_handler_action_flags): New function.
190 (new_job): Use it to temporarily clear the SIGCHLD action flags
191 while reading the token.
193 2001-05-02 Paul D. Smith <psmith@gnu.org>
195 * job.c (start_job_command): Don't add define/endef per-line flags
196 to the top-level flags setting.
198 2001-04-03 Paul D. Smith <psmith@gnu.org>
200 * arscan.c (VMS_get_member_info,ar_scan) [VMS]: VMS sets the low
201 bit on error, so check for odd return values, not non-0 return
203 (VMS_get_member_info): Calculate the timezone differences correctly.
204 Reported by John Fowler <jfowler@nyx.net>.
207 2001-03-14 Paul D. Smith <psmith@gnu.org>
209 * variable.c (lookup_variable) [VMS]: Null-terminate the variable
210 value before invoking define_variable().
211 Reported by John Fowler <jfowler@nyx.net>.
213 2001-02-07 Paul D. Smith <psmith@gnu.org>
215 * read.c (record_target_var): If we reset the variable due to a
216 command-line variable setting overriding it, turn off the "append"
219 2001-01-17 Paul D. Smith <psmith@gnu.org>
221 * variable.c (lookup_variable) [VMS]: When getting values from the
222 environment, allocate enough space for the _value_ plus escapes,
223 not enough space for the name plus escapes :-/.
224 Reported by John Fowler <jfowler@nyx.net>.
226 * remake.c (f_mtime): Removed the "***" prefix from the mod time
227 warnings that make generates, so it doesn't look like an error.
228 Reported by Karl Berry <karl@gnu.org>.
231 Fix for PR/2020: Rework appended target-specific variables. I'm
232 fairly confident this algorithm is finally correct.
234 * expand.c (allocated_variable_append): Rewrite. Instead of
235 expanding each appended variable then adding all the expanded
236 strings together, we append all the unexpanded values going up
237 through the variable set contexts, then expand the final result.
238 This behaves just like non-target-specific appended variable
239 values, while the old way didn't in various corner cases.
240 (variable_append): New function: recursively append the unexpanded
241 value of a variable, walking from the outermost variable scope to
243 * variable.c (lookup_variable): Remove the code that looked up the
244 variable set list if the found variable was "append". We don't
246 (lookup_variable_in_set): Make this non-static so we can use it
248 (try_variable_definition): Use lookup_variable_in_set() rather
249 than faking out current_variable_set_list by hand (cleanup).
250 * variable.h: Add a prototype for the now non-static
251 lookup_variable_in_set().
253 2000-11-17 Paul D. Smith <psmith@gnu.org>
255 * remake.c (f_mtime) [WINDOWS32]: On various advice, I changed the
256 WINDOWS32 port to assume timestamps can be up to 3 seconds away
257 before throwing a fit.
259 2000-11-17 Paul D. Smith <psmith@gnu.org>
261 * read.c (readline): CRLF calculations had a hole, if you hit the
262 buffer grow scenario just right. Reworked the algorithm to avoid
263 the need for len or lastlen at all. Problem description with
264 sample code chages provided by Chris Faylor <cgf@redhat.com>.
266 2000-10-24 Paul D. Smith <psmith@gnu.org>
268 * gettext.c (SWAP): Declare this with the prototype, otherwise
269 some systems don't work (non-32-bit? Reported for Cray T3E).
270 Reported by Thorstein Thorsteinsson <thor@signe.teokem.lu.se>.
272 2000-10-05 Paul D. Smith <psmith@gnu.org>
274 * acinclude.m4 (AM_LC_MESSAGES): Remove undefined macro
275 AM_LC_MESSAGES; it doesn't seem to do anything anyway??
277 * i18n/gl.po, configure.in (ALL_LINGUAS): New Galician translation.
279 2000-09-22 Paul D. Smith <psmith@gnu.org>
281 * gettext.c: Don't #define _GETTEXT_H here; we only include some
282 parts of the real gettext.h here, and we expect to really include
283 the real gettext.h later. If we keep this #define, it's ignored.
285 2000-09-21 Paul D. Smith <psmith@gnu.org>
287 * main.c (log_working_directory): Rework the text to use complete
288 sentences, to make life simpler for the translators.
290 2000-08-29 Paul D. Smith <psmith@gnu.org>
292 * file.c (remove_intermediates): Print a debug message before we
293 remove intermediate files, so the user (if she uses -d) knows
296 2000-08-21 Paul D. Smith <psmith@gnu.org>
298 * variable.c (try_variable_definition): Change how we handle
299 target-specific append variable defns: instead of just setting the
300 value, expand it as an append _but_ only within the current
301 target's context. Otherwise we lose all but the last value if the
302 variable is appended more than once within the current target
303 context. Fixes PR/1831.
305 2000-08-16 Paul D. Smith <psmith@gnu.org>
307 * function.c (func_shell): Nul-terminate the buffer before
308 printing an exec error message (just in case it's not!).
309 Fixes PR/1860, reported by Joey Hess <joey@valinux.com>.
311 2000-07-25 Paul D. Smith <psmith@gnu.org>
313 * job.c (construct_command_argv_internal): Add "~" to the list of
314 sh_chars[] which disallow optimizing out the shell call.
316 2000-07-23 Paul Eggert <eggert@twinsun.com>
318 * NEWS, make.texinfo: Document .LOW_RESOLUTION_TIME, which
319 supersedes --disable-nsec-timestamps.
320 * make.texinfo: Consistently use "time stamp" instead of "timestamp".
321 * README: Remove --disable-nsec-timestamps.
323 * filedef.h (struct file.low_resolution_time): New member.
324 * file.c (snap_deps): Add support for .LOW_RESOLUTION_TIME.
325 * remake.c (update_file_1):
326 Avoid spurious rebuilds due to low resolution time stamps,
327 generalizing the earlier code that applied only to archive members.
328 (f_mtime): Archive members always have low resolution time stamps.
330 * configure.in: Remove --disable-nsec-timestamps, as this has
331 been superseded by .LOW_RESOLUTION_TIME.
333 2000-07-23 Paul Eggert <eggert@twinsun.com>
335 * configure.in (enable_nsec_timestamps): Renamed from
336 make_cv_nsec_timestamps, since enable/disable options
339 2000-07-23 Bruno Haible <haible@clisp.cons.org>
340 and Paul Eggert <eggert@twinsun.com>
342 * file.c (file_timestamp_now):
343 Use preprocessor-time check for FILE_TIMESTAMP_HI_RES
344 so that clock_gettime is not linked unless needed.
346 * filedef.h (FILE_TIMESTAMP_HI_RES):
347 Remove definition; "configure" now does this.
349 * configure.in (jm_AC_TYPE_UINTMAX_T): Move up,
350 to before high resolution file timestamp check,
351 since that check now uses uintmax_t.
352 (FILE_TIMESTAMP_HI_RES): Define to nonzero if the code should use
353 high resolution file timestamps.
354 (HAVE_CLOCK_GETTIME): Do not define if !FILE_TIMESTAMP_HI_RES,
355 so that we don't link in clock_gettime unnecessarily.
357 2000-07-17 Paul D. Smith <psmith@gnu.org>
359 * i18n/ja.po: New version of the translation file.
361 2000-07-07 Paul D. Smith <psmith@gnu.org>
363 * remake.c (f_mtime): If NO_FLOAT is defined, don't bother with
364 the offset calculation.
365 (name_mtime): Replace EINTR test with EINTR_SET macro.
367 2000-07-07 Paul Eggert <eggert@twinsun.com>
371 * remake.c (update_file_1):
372 Avoid spurious rebuilds of archive members due to their
373 timestamp resolution being only one second.
374 (f_mtime): Avoid spurious warnings of timestamps in the future due to
375 the clock's resolution being lower than file timestamps'.
376 When warning about future timestamps, report only the discrepancy,
377 not the absolute value of the timestamp and the current time.
379 * file.c (file_timestamp_now): New arg RESOLUTION.
380 * filedef.h (file_timestamp_now): Likewise.
381 (FILE_TIMESTAMP_NS): Now returns int. All uses changed.
383 2000-07-05 Paul D. Smith <psmith@gnu.org>
385 * variable.c (lookup_variable) [VMS]: Remove vestigial references
386 to listp. Fixes PR/1793.
388 2000-06-26 Paul Eggert <eggert@twinsun.com>
390 * Makefile.am (MAINTAINERCLEANFILES): New macro, with stamp-pot in it.
392 * dir.c (vms_hash): Ensure ctype macro args are nonnegative.
394 * remake.c (f_mtime): Remove unused var memtime.
396 2000-06-25 Martin Buchholz <martin@xemacs.org>
398 * make.texinfo, NEWS, TODO.private: Minor spelling corrections.
399 Ran spell-check on make.texinfo.
401 2000-06-23 Paul D. Smith <psmith@gnu.org>
403 * main.c (main): Replace EXIT_SUCCESS, EXIT_FAILURE, and
404 EXIT_TROUBLE with MAKE_SUCCESS, MAKE_FAILURE, and MAKE_TROUBLE.
405 * make.h: Define these macros.
407 * Version 3.79.1 released.
409 * configure.in: Add a new option, --disable-nsec-timestamps, to
410 avoid using sub-second timestamps on systems that support it. It
411 can lead to problems, e.g. if your makefile relies on "cp -p".
412 * README.template: Document the issue with "cp -p".
414 * config.guess, config.sub: Updated.
416 2000-06-22 Paul D. Smith <psmith@gnu.org>
418 * job.c (start_job_command): Increment commands_started before the
419 special check for ":" (empty command) to avoid spurious "is up to
420 date" messages. Also move the test for question_flag after we
421 expand arguments, and only stop if the expansion provided an
422 actual command to run, not just whitespace. This fixes PR/1780.
424 2000-06-21 Paul D. Smith <psmith@gnu.org>
426 * read.c (read_makefile): If we find a semicolon in the target
427 definition, remember where it was. If the line turns out to be a
428 target-specific variable, add back the semicolon and everything
429 after it. Fixes PR/1709.
431 2000-06-19 Paul D. Smith <psmith@gnu.org>
433 * config.h-vms.template: #define uintmax_t for this system.
434 * config.ami.template: Ditto.
435 * config.h.W32.template: Ditto.
437 * configure.in: We don't use select(2) anymore, so don't bother
440 * acinclude.m4: Ditto.
442 * file.c (all_secondary): New static global; if 1 it means
443 .SECONDARY with no prerequisites was seen in the makefile.
444 (snap_deps): Set it appropriately.
445 (remove_intermediates): Check it.
446 (num_intermediates): Remove this global, it's not used anywhere.
447 (considered): Move this to remake.c and make it static.
449 * NEWS: Document the change to .SECONDARY.
450 * make.texinfo (Special Targets): Document the change to .SECONDARY.
452 * implicit.c (pattern_search): Remove the increment of
453 num_intermediates; it's not used.
454 * filedef.h: Remove num_intermediates and considered.
456 * function.c (handle_function): If the last argument was empty, we
457 were pretending it didn't exist rather than providing an empty
458 value. Keep looking until we're past the end, not just at the end.
460 * implicit.c (pattern_search): Multi-target implicit rules weren't
461 expanding the "also made" targets correctly if the pattern didn't
462 contain a slash but the target did; in that case the directory
463 part wasn't being added back to the stem on the "also made"
464 targets. Reported by Seth M LaForge <sethml@newtonlabs.com>, with
467 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
469 * Makefile.DOS.template (DESTDIR, bindir, datadir, libdir)
470 (infodir, mandir, includedir): Support installation under a
473 * remake.c (f_mtime): Fix the spelling of __MSDOS__.
475 * configh.DOS.template (HAVE_FDOPEN, HAVE_MKSTEMP): Define.
477 2000-06-14 Paul D. Smith <psmith@gnu.org>
479 * acinclude.m4 (pds_WITH_GETTEXT): rewrite fp_WITH_GETTEXT and
480 rename it to avoid confusion. This version is very specific: it
481 won't accept any gettext that isn't GNU. If the user doesn't
482 explicitly ask for the included gettext, we look to see if the
483 system gettext is GNU (testing both the actual libintl library,
484 and the libintl.h header file). Only if the system gettext is
485 really GNU gettext will we allow it to be used.
486 (pds_CHECK_SYSTEM_GETTEXT): A helper function.
488 2000-06-13 Paul D. Smith <psmith@gnu.org>
490 * gettext.h: If we have libintl.h, use that instead of any of the
491 contents of gettext.h. We won't check for libintl.h unless we're
492 using the system gettext.
494 * function.c (func_word): Clarify error message.
496 2000-06-10 Paul Eggert <eggert@twinsun.com>
498 Support nanosecond resolution on hosts with 64-bit time_t and
499 uintmax_t (e.g. 64-bit Sparc Solaris), by splitting
500 FILE_TIMESTAMP into a 30-bit part for nanoseconds, with the
501 rest for seconds, if FILE_TIMESTAMP is at least 64 bits wide.
503 * make.h: Always define FILE_TIMESTAMP to be uintmax_t, for
506 * filedef.h (FILE_TIMESTAMP_HI_RES, FILE_TIMESTAMP_LO_BITS)
507 (UNKNOWN_MTIME, NONEXISTENT_MTIME, OLD_MTIME)
508 (ORDINARY_MTIME_MIN, ORDINARY_MTIME_MAX): New macros.
509 (FILE_TIMESTAMP_STAT_MODTIME): Now takes fname arg. All uses changed.
510 (FILE_TIMESTAMP_DIV, FILE_TIMESTAMP_MOD)
511 (FILE_TIMESTAMP_FROM_S_AND_NS): Remove.
512 (FILE_TIMESTAMP_S, FILE_TIMESTAMP_NS): Use shifts instead of
513 multiplication and division. Offset the timestamps by
515 (file_timestamp_cons): New decl.
516 (NEW_MTIME): Now just the maximal timestamp value, as we no longer use
517 -1 to refer to nonexistent files.
519 * file.c (snap_deps, print_file): Use NONEXISTENT_MTIME,
520 UNKNOWN_MTIME, and OLD_MTIME instead of magic constants.
521 * filedef.h (file_mtime_1): Likewise.
522 * main.c (main): Likewise.
523 * remake.c (update_file_1, notice_finished_file, check_dep)
524 (f_mtime, name_mtime, library_search): Likewise.
525 * vpath.c (selective_vpath_search): Likewise.
527 * remake.c (f_mtime): Do not assume that (time_t) -1 equals
528 NONEXISTENT_MTIME. When futzing with time stamps, adjust by
529 multiples of 2**30, not 10**9. Do not calculate timestamp
530 adjustments on DOS unless they are needed.
532 * commands.c (delete_target): Do not assume that
533 FILE_TIMESTAMP_S yields -1 for a nonexistent file, as that is
534 no longer true with the new representation.
536 * file.c (file_timestamp_cons): New function, replacing
537 FILE_TIMESTAMP_FROM_S_AND_NS. All uses changed.
538 (file_timestamp_now): Use FILE_TIMESTAMP_HI_RES instead of 1 <
539 FILE_TIMESTAMPS_PER_S to determine whether we're using hi-res
541 (print_file): Print OLD_MTIME values as "very old" instead of
544 2000-05-31 Paul Eggert <eggert@twinsun.com>
546 * remake.c (name_mtime): Check for stat failures. Retry if EINTR.
548 2000-05-24 Paul D. Smith <psmith@gnu.org>
550 * main.c (decode_switches): The "positive_int" switch uses atoi()
551 which succeeds for any input, and doesn't notice if extra,
552 non-digit text is after the number. This causes make to mis-parse
553 command lines like "make -j 5foo" as "make -j5" (ignoring "foo"
554 completely) instead of "make -j0 5foo" (where "5foo" is a
555 target). Fix this by checking the value by hand. We could use
556 strtol() if we were sure of having it; this is the only
557 questionable use of atoi() I found so we'll just stick with that.
560 * i18n/ja.po, i18n/nl.po, i18n/pt_BR.po: New translation files.
561 * configure.in (ALL_LINGUAS): Added pt_BR.
563 2000-05-22 Paul Eggert <eggert@twinsun.com>
565 * remake.c (f_mtime): Fix bug when handling future odd
566 timestamps in the WINDOWS32 case. Do not bother initializing
567 static var to zero. Simplify code that works around WINDOWS32
568 and __MSDOS__ time skew brain damage.
570 2000-05-22 Paul Eggert <eggert@twinsun.com>
572 * job.c: Don't include time.h, as make.h already does this.
574 2000-05-22 Paul Eggert <eggert@twinsun.com>
576 * configure.in (AC_CHECK_HEADERS): Add sys/time.h.
577 (AC_HEADER_TIME): Add.
578 (clock_gettime): Prefer -lrt to -lposix4, for Solaris 7.
579 (gettimeofday): Add check for standard version of gettimeofday.
580 This merges changes written by Paul D. Smith.
582 * file.c (file_timestamp_now): Use gettimeofday if available
583 and if clock_gettime does not work. Don't bother with
584 high-resolution clocks if file timestamps have only one-second
587 * make.h <sys/time.h>: Include, conditionally on the usual
588 TIME_WITH_SYS_TIME and HAVE_SYS_TIME_H macros. This is needed
591 2000-05-20 Paul D. Smith <psmith@gnu.org>
593 * read.c (read_makefile): We weren't keeping makefile names around
594 unless there was a rule defined in them; but now we need to keep
595 them for variables as well. Forget trying to be fancy: just keep
596 every makefile name we successfully open.
598 * remote-cstms.c (start_remote_job_p): Change DB_EXTRA (?) to DB_JOBS.
600 2000-05-17 Paul Eggert <eggert@twinsun.com>
602 * commands.c (chop_commands): Ensure ctype macro args are nonnegative.
603 * expand.c (variable_expand_string): Likewise.
604 * function.c (subst_expand, lookup_function, msdos_openpipe):
606 * job.c (vms_redirect, start_job_command, new_job, child_execute_job,
607 construct_command_argv_internal, construct_command_argv): Likewise.
608 * main.c (decode_env_switches, quote_for_env): Likewise.
609 * misc.c (collapse_continuations, end_of_token, end_of_token_w32,
610 next_token): Likewise.
611 * read.c (read_makefile, do_define, conditional_line,
612 find_char_unquote,get_next_mword): Likewise.
613 * variable.c (try_variable_definition): Likewise.
614 * vpath.c (construct_vpath_list): Likewise.
615 * w32/pathstuff.c (convert_vpath_to_windows32): Likewise.
617 2000-05-10 Eli Zaretskii <eliz@is.elta.co.il>
619 * main.c (main) [__MSDOS__]: Add SIGFPE to signals we block when
620 running child programs, to prevent Make from dying on Windows 9X
621 when the child triggers an FP exception.
623 2000-05-08 Paul D. Smith <psmith@gnu.org>
625 * dir.c (find_directory) [WINDOWS32]: If we strip a trailing "\"
626 from the directory name, remember to add it back. The argument
627 might really be inside a longer string (e.g. %Path%) and if you
628 don't restore the "\" it'll be truncated permanently. Fixes PR/1722.
629 Reported by <steven@surfcast.com>
631 2000-05-02 Paul D. Smith <psmith@gnu.org>
633 * job.c (construct_command_argv_internal) [WINDOWS32]: Added "rd"
634 and "rmdir" to the list of command.com commands.
635 Reported by Elod Horvath <Elod_Horvath@lnotes5.bankofny.com>
637 2000-04-24 Paul D. Smith <psmith@gnu.org>
639 * i18n/ja.po: New translation file from the Japanese language team.
641 2000-04-18 Paul D. Smith <psmith@gnu.org>
643 * remake.c (f_mtime): If ar_member_date() returns -1 (the member
644 doesn't exist), then return (FILE_TIMESTAMP)-1 rather than
645 returning the timestamp calculated from the value -1. Fixes PR/1696.
646 Reported by Gilles Bourhis <Gilles.Bourhis@univ-rennes1.fr>.
648 2000-04-17 Paul D. Smith <psmith@gnu.org>
650 * config.h.W32.template: Add LOCALEDIR macro resolving to "".
651 * w32/subproc/sub_proc.c (process_begin): Remove reference to
652 debug_flag; change it to a DB() call. Fixes PR/1700.
653 Reported by Jim Smith <jwksmith@attglobal.net>
655 2000-04-17 Bruno Haible <haible@clisp.cons.org>
657 * arscan.c [BeOS]: Add replacement for nonexistent <ar.h> from GNU
660 2000-04-11 Paul D. Smith <psmith@gnu.org>
662 * function.c (expand_builtin_function): If no arguments were
663 provided, just quit early rather than changing each function to
665 (function_table[]): Change the min # of arguments to 0 for all
666 those functions for which it makes sense (currently everything
667 that used to take a minimum of 1 argument, except $(call ...)).
670 2000-04-09 Eli Zaretskii <eliz@is.elta.co.il>
672 * README.DOS: Add instructions to install a binary distro.
673 Mention latest versions of Windows.
675 2000-04-07 Eli Zaretskii <eliz@is.elta.co.il>
677 * main.c (main): Rename TMP_TEMPLATE into DEFAULT_TMPDIR, and use
678 it for the directory of the temporary file. If P_tmpdir is
679 defined, use it in preference to "/tmp/". Try $TMPDIR, $TEMP, and
680 $TMP in the environment before defaulting to DEFAULT_TMPDIR.
681 (print_version): Add year 2000 to the Copyright line.
683 2000-04-04 Paul D. Smith <psmith@gnu.org>
685 * Version 3.79 released.
687 * make.texinfo: Update documentation with new features for 3.79.
689 * function.c (func_wordlist): Don't re-order arguments to
692 2000-04-03 Paul D. Smith <psmith@gnu.org>
694 * remake.c (f_mtime): Archive member timestamps are stored as
695 time_t, without nanoseconds. But, f_mtime() wants to return
696 nanosecond info on those systems that support it. So, convert the
697 return value of ar_member_date() into a FILE_TIMESTAMP, using 0 as
700 2000-03-28 Paul D. Smith <psmith@gnu.org>
702 * Version 3.78.92 released.
704 * build.template: Updates for gettext support; some bugs fixed.
706 2000-03-27 Paul D. Smith <psmith@gnu.org>
708 * config.guess, config.sub: Updated from config CVS archive at
709 :pserver:anoncvs@subversions.gnu.org:/home/cvs as of today.
711 * read.c (record_files): Check if expanding a static pattern
712 rule's prerequisite pattern leaves an empty string as the
713 prerequisite, and issue an error if so. Fixes PR/1670.
714 (read_makefile): Store the starting linenumber for a rule in
716 (record_waiting_files): Use the TGTS_STARTED value for the file
717 location passed to record_file() instead of the current
718 linenumber, so error messages list the line where the target was
719 defined instead of the line after the end of the rule definition.
721 * remake.c (start_updating, finish_updating, is_updating): Fix
722 PR/1671; circular dependencies in double-colon rules are not
723 diagnosed. These macros set the updating flag in the root
724 double-colon file instead of the current one, if it's part of a
725 double-colon list. This solution provided by Tim Magill
726 <magill@gate.net>; I just changed the macro names :).
727 (update_file_1): Call them.
728 (check_dep): Call them.
730 The change to not automatically evaluate the $(call ...)
731 function's arguments breaks recursive use of call. Although using
732 $(if ...) and $(foreach ...) in $(call ...) macros is important,
733 the error conditions generated are simply to obscure for me to
734 feel comfortable with. If a method is devised to get both
735 working, we'll revisit. For now, remove this change.
737 * function.c (function_table): Turn on the expand bit for func_call.
738 (func_call): Don't expand arguments for builtin functions; that
739 will have already been done.
741 2000-03-26 Paul D. Smith <psmith@gnu.org>
743 * file.c (remove_intermediates): Never remove targets explicitly
744 requested on the command-line by checking the cmd_target flag.
747 2000-03-23 Paul Eggert <eggert@twinsun.com>
749 * filedef.h (FILE_TIMESTAMP_STAT_MODTIME): Use st_mtime instead of
750 st_mtim.tv_sec; the latter doesn't work on Unixware.
752 2000-03-18 Paul D. Smith <psmith@gnu.org>
754 * file.c (file_hash_enter): If we're trying to change a file into
755 itself, just return. We used to assert this wasn't true, but
756 someone came up with a weird case involving archives. After
757 playing with it for a while I decided it was OK to ignore it.
759 * default.c: Define COFLAGS to empty to avoid spurious warnings.
761 * filedef.h: Change #if ST_MTIM_NSEC to #ifdef; this is a macro
762 containing the name of the nsec field, not true/false.
764 Reported by Marco Franzen <Marco.Franzen@Thyron.com>.
766 2000-03-08 Tim Magill <magill@gate.net>
768 * remake.c (update_file): Return the exit status of the pruned
769 file when pruning, not just 0. Fixes PR/1634.
771 2000-02-24 Paul D. Smith <psmith@gnu.org>
773 * configure.in: Close a minor potential security hole; if you're
774 reading makefiles from stdin (who does that?) you could run into a
775 race condition with the temp file using mktemp() or tmpnam(). Add
776 a check for mkstemp() and fdopen().
777 * main.c (open_tmpfile): New function to open a temporary file.
778 If we have mkstemp() (and fdopen()), use that. If not use
779 mktemp() or tmpnam(). If we have fdopen(), use open() to open the
780 file O_CREAT|O_EXCL. If not, fall back to normal fopen() (insecure).
782 * job.c (child_execute_job) [VMS]: Call it.
784 * variable.c (lookup_variable): If we find a variable which is
785 being expanded, then note it but keep looking through the rest of
786 the set list to see if we can find one that isn't. If we do,
787 return that. If we don't, return the original. Fix for PR/1610.
789 While implementing this I realized that it also solves PR/1380 in
790 a much more elegant way. I don't know what I was smoking before.
791 So, remove the hackage surrounding the original fix for that (see
792 below). Change this function back to lookup_variable and remove
793 the extra setlist argument.
794 * variable.h (recursively_expand_setlist): Remove the macro,
795 rename the prototype, and remove the extra setlist argument.
796 (lookup_variable): Ditto.
797 * expand.c (recursively_expand): Rename and remove the extra
799 (reference_variable): Use lookup_variable() again.
800 (allocated_variable_append): Remove the extra setlist argument.
802 2000-02-21 Paul D. Smith <psmith@gnu.org>
804 * README.template: A few updates.
806 * i18n/de.po: New version from the German translation team.
808 2000-02-09 Paul D. Smith <psmith@gnu.org>
810 * Version 3.78.91 released.
812 2000-02-07 Paul D. Smith <psmith@gnu.org>
814 * read.c (read_makefile): Reset *p2 to ':', not *colonp. If any
815 filenames contained backslashes the resulting output (without
816 backslashes) will be shorter, so setting *colonp doesn't change
817 the right character. Fix for PR/1586.
819 For += target-specific variables we need to remember which
820 variable set we found the variable in, so we can start looking
821 from there in the next iteration (otherwise we might see it again
822 in recursively_expand and fail!). This is turning into a hack; if
823 it gets any worse we'll have to rethink this entire algorithm...
824 implementing expansion of these references separately from the
825 "normal" expansion, say, instead of using the same codepath.
826 Actually, it's already "worse enough" :-/.
829 * variable.h (recursively_expand_setlist): Rename
830 recursively_expand to add a struct variable_set_list argument, and
831 make a macro for recursively_expand.
832 (lookup_variable_setlist): Rename lookup_variable to add a struct
833 variable_set_list argument, and make a macro for lookup_variable.
835 * expand.c (recursively_expand_setlist): Take an extra struct
836 variable_set_list argument and pass it to allocated_variable_append().
837 (reference_variable): Use lookup_variable_setlist() and pass the
838 returned variable_set_list to recursively_expand_setlist.
839 (allocated_variable_append): Take an extra setlist argument and
840 use this as the starting place when searching for the appended
841 expansion. If it's null, use current_variable_set_list as before.
843 * variable.c (lookup_variable_setlist): If the LISTP argument is
844 not nil, set it to the list containing the variable we found.
846 2000-02-04 Paul D. Smith <psmith@gnu.org>
848 * variable.c (print_variable): Write out filename/linenumber
849 information for the variable definition if present.
850 (define_variable_in_set): Store filename information if provided.
851 (define_variable, define_variable_for_file): Removed.
852 (try_variable_definition): Use define_variable_loc() to keep
853 variable definition location information.
854 * read.c (read_makefile): Keep variable definition location info.
856 (record_target_var): Ditto.
857 * variable.h (define_variable_in_set): New fileinfo argument.
858 (define_variable, define_variable_loc, define_variable_for_file):
863 * filedef.h (struct file): Rename patvar to pat_variables and make
864 it just a variable_set_list; we need our own copy of the pattern
865 variable's variable set list here to avoid overwriting the global
867 * variable.c (initialize_file_variables): Move the instantiation
868 of the pat_variables pointer here. Only do the search after we're
869 done reading the makefiles so we don't search too early. If
870 there's a pat_variables value, set up the variables next ptr.
871 * expand.c (variable_expand_for_file): Remove the setup of the
872 pat_variables info; it's done earlier now to ensure the parent's
873 pattern variables are set up correctly as well.
875 2000-02-03 Paul D. Smith <psmith@gnu.org>
877 * job.c (sh_chars_dos) [WINDOWS32]: Add "&" as a shell
878 metacharacter for the W32 DOS shell.
879 Reported by Warren Jones <wjones@tc.fluke.com>.
881 2000-02-02 Paul D. Smith <psmith@gnu.org>
883 Fixes for the OpenVMS port from Hartmut Becker <becker@rto.dec.com>
885 * config.h-vms [VMS]: Define LOCALEDIR to something; needed for
886 the expansion of bindtextdomain() even though it's a no-op.
887 * vmsfunctions.c (strcmpi): Remove duplicate definition of strcmpi().
888 (readdir): Use DB() instead of testing debug_flag.
889 * dir.c (file_impossible) [VMS]: Search "p" not "name".
890 * job.c [VMS]: Switch from debug_flag to the new DB macro. Add
891 some i18n _() macros (even though VMS doesn't yet support it).
893 * function.c (patsubst_expand): Change "len" to not be unsigned to
894 avoid type mismatches.
896 * main.c (main): Declare signame_init() if we're going to call it.
898 2000-01-29 Eli Zaretskii <eliz@is.elta.co.il>
900 * Makefile.DOS.template: Track changes in Makefile.in
901 (install-recursive, uninstall-recursive): Add missing targets.
903 (install-binPROGRAMS, uninstall-binPROGRAMS): Use $(DESTDIR).
905 * default.c (default_variables) [__MSDOS__]: Define CXX to gpp.
907 2000-01-27 Paul D. Smith <psmith@gnu.org>
909 * gettext.c: Some warning cleanups, and a fix for systems which
910 don't define HAVE_ALLOCA (the workaround code was included
913 2000-01-26 Paul D. Smith <psmith@gnu.org>
915 * Version 3.78.90 released.
917 2000-01-25 Paul D. Smith <psmith@gnu.org>
919 Change gettext support to use the simplified version in libit 0.7.
921 * getopt.c, make.h: Use gettext.h instead of libintl.h.
922 * ABOUT-NLS, gettext.h, gettext.c: New files from libit 0.7.
923 Modified to remove some static declarations which aren't defined.
924 * acconfig.h: Use new gettext #defines.
925 * acinclude.m4: Add fp_WITH_GETTEXT; remove AM_GNU_GETTEXT.
926 * configure.in: Call fp_WITH_GETTEXT instead.
927 * Makefile.am: New gettext stuff. Also force inclusion of glob
928 files for systems which have LIBC glob.
930 * i18n/Makefile.am, i18n/.cvsignore: New dir for translation files.
931 * i18n/de.po, i18n/es.po, i18n/fr.po, i18n/ko.po, i18n/nl.po:
932 * i18n/pl.po, i18n/ru.po: Import translations already done for
933 earlier versions of GNU make. Thanks for that work!!
935 * po/Makefile.in.in, po/POTFILES.in: Removed.
937 2000-01-23 Paul D. Smith <psmith@gnu.org>
939 * main.c (decode_debug_flags): If debug_flag is set, enable all
941 (debug_flag): Resurrect this flag variable.
942 (switches): Make -d give the old behavior of turning on all
943 debugging. Change --debug alone to emit basic debugging and take
944 optional arguments to expand debugging.
945 * NEWS: Document the new debugging options.
947 * remake.c (no_rule_error): Remove this function. This tries to
948 fix a real problem--see the description with the introduction of
949 this function below. However, the cure is worse than the disease
950 and this approach won't work.
951 (remake_file): Put the code from no_rule_error back here.
952 (update_file_1): Remove call to no_rule_error.
954 * filedef.h (struct file): Remove mfile_status field.
956 2000-01-22 Paul D. Smith <psmith@gnu.org>
958 Integrate GNU gettext support.
960 * configure.in: Add AM_GNU_GETTEXT.
961 * Makefile.am: Add options for setting LOCALEDIR, -Iintl, etc.
962 * acinclude.m4: Add gettext autoconf macros.
963 * acconfig.h: Add new gettext #defines.
964 * make.h: Include libintl.h. Make sure _() and N_() macros are
965 declared. Make gettext() an empty macro is NLS is disabled.
966 * main.c (struct command_switch switches[]): Can't initialize
967 static data with _() (gettext calls), so use N_() there then use
968 gettext() directly when printing the strings.
969 * remake.c (no_rule_error): The string constants can't be static
970 when initializing _() macros.
971 * file.c (print_file): Reformat a few strings to work better for
973 * po/POTFILES.in, po/Makefile.in.in: New files. Take
974 Makefile.in.in from the latest GNU tar distribution, as that
975 version works better than the one that comes with gettext.
976 * NEWS: Mention i18n ability.
978 2000-01-21 Paul D. Smith <psmith@gnu.org>
980 Installed patches for the VMS port.
981 Patches provided by: Hartmut Becker <Hartmut.Becker@compaq.com>
983 * readme.vms, arscan.c, config.h-vms, default.c, dir.c, file.c:
984 * implicit.c, job.c, make.h, makefile.com, makefile.vms, rule.c:
985 * variable.c, vmsdir.h, vmsfunctions.c, vmsify.c, glob/glob.c:
986 * glob/glob.h: Installed patches. See readme.vms for details.
988 2000-01-14 Andreas Schwab <schwab@suse.de>
990 * dir.c (read_dirstream): Initialize d_type if it exists.
992 2000-01-11 Paul D. Smith <psmith@gnu.org>
994 Resolve PR/xxxx: don't automatically evaluate the $(call ...)
995 function's arguments. While we're here, clean up argument passing
996 protocol to always use simple nul-terminated strings, instead of
997 sometimes using offset pointers to mark the end of arguments.
998 This change also fixes PR/1517.
999 Reported by Damien GIBOU <damien.gibou@st.com>.
1001 * function.c (struct function_table_entry): Remove the negative
1002 required_args hack; put in explicit min and max # of arguments.
1003 (function_table): Add in the max value. Turn off the expand bit
1005 (expand_builtin_function): Test against minimum_args instead of
1006 the obsolete required_args.
1007 (handle_function): Rewrite this. We don't try to be fancy and
1008 pass one style of arguments to expanded functions and another
1009 style to non-expanded functions: pass pointers to nul-terminated
1010 strings to all functions.
1011 (func_call): Rewrite this. If we are invoking a builtin function
1012 and it's supposed to have its arguments expanded, do that (since
1013 it's not done by handle_function for $(call ...) anymore). For
1014 non-builtins, just add the variables as before but mark them as
1015 recursive so they'll be expanded later, as needed.
1016 (func_if): All arguments are vanilla nul-terminated strings:
1017 remove trickery with "argv[1]-1".
1018 (func_foreach): Ditto.
1020 * expand.c (expand_argument): If the second arg is NULL, expand
1021 the entire first argument.
1023 * job.c (new_job): Zero the child struct. This change was just
1024 made to keep some heap checking software happy, not because there
1025 was an actual bug (the important memory was being cleared properly).
1027 1999-12-15 Paul D. Smith <psmith@gnu.org>
1029 * variable.c (print_variable): Print the variable with += if the
1032 * implicit.c (pattern_search): Remove the extra check of the
1033 implicit flag added on 8/24/1998. This causes problems and the
1034 reason for the change was better resolved by the change made to
1035 check_deps() on 1998-08-26. This fixes PR/1423.
1037 1999-12-08 Paul D. Smith <psmith@gnu.org>
1039 * dir.c (dir_setup_glob): On 64 bit ReliantUNIX (5.44 and above)
1040 in LFS mode, stat() is actually a macro for stat64(). Assignment
1041 doesn't work in that case. So, stat is a macro, make a local
1042 wrapper function to invoke it.
1043 (local_stat): Wrapper function, if needed.
1044 Reported by Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>.
1046 1999-12-02 Paul D. Smith <psmith@gnu.org>
1048 * remake.c (update_file): Move the considered test outside the
1049 double-colon loop, _but_ make sure we test the double_colon target
1050 not the "current" target. If we stop early because one
1051 double-colon target is running, mark all the rest considered and
1052 try to start their prerequisites (so they're marked considered).
1053 Fix for PR/1476 suggested by Tim Magill <tim.magill@telops.gte.com>.
1055 1999-11-22 Rob Tulloh <rob_tulloh@dev.tivoli.com>
1057 * function.c (windows32_openpipe, func_shell): Correct Windows32
1058 problem where $(shell nosuchfile) would incorrectly exit make. The
1059 fix is to print the error and let make continue.
1060 Reported by David Masterson <David.Masterson@kla-tencor.com>.
1062 * w32/subproc/misc.c (arr2envblk): Memory leak fix.
1064 1999-11-21 Paul D. Smith <psmith@gnu.org>
1066 Rework GNU make debugging to provide different levels of output.
1069 * debug.h: New file. Define various debugging levels and macros.
1070 * function.c, implicit.c, job.c, main.c, misc.c, read.c, remake.c
1071 * remote-cstms.c, vmsfunctions.c: Replace all code depending on
1072 debug_flag with invocations of debugging macros.
1073 * make.h: Remove debug_flag and DEBUGPR, add db_level.
1075 1999-11-18 Paul Eggert <eggert@twinsun.com>
1077 * acinclude.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a problem
1078 with the QNX 4.25 shell, which doesn't propagate exit status of
1079 failed commands inside shell assignments.
1081 1999-11-17 Paul D. Smith <psmith@gnu.org>
1083 * function.c (func_if): Find the end of the arg list by testing
1084 the next item for NULL; any other test is not correct.
1085 Reported by Graham Reed <grahamr@algorithmics.com> (PR/1429).
1087 Fix += when used in a target-specific variable context.
1089 * variable.h: New bitfield APPEND set if we have a +=
1090 target-specific variable.
1092 * variable.c (try_variable_definition): Add an argument to specify
1093 if we're trying a target-specific variable. If we are and it's an
1094 append style, don't append it, record it as normal recursive, but
1095 set the APPEND flag so it'll be expanded later.
1096 * main.c (handle_non_switch_argument): Use new
1097 try_variable_definition() signature.
1098 * read.c (read_makefile,record_target_var): Ditto.
1100 * expand.c (allocated_variable_append): New function: like
1101 allocated_variable_expand(), but we expand the same variable name
1102 in the context of the ``next'' variable set, then we append this
1104 (recursively_expand): Invoke it, if the APPEND bit is set.
1106 1999-11-10 Paul D. Smith <psmith@gnu.org>
1108 * file.c (snap_deps): If the .NOTPARALLEL target is defined, turn
1109 off parallel builds for this make only (still allow submakes to be
1111 * main.c: New variable, ``not_parallel''.
1112 * make.h: Add an extern for it.
1113 * job.c (new_job): Test NOT_PARALLEL as well as JOB_SLOTS.
1114 * NEWS: Add info on .NOTPARALLEL.
1115 * make.texinfo (Special Targets): Document it.
1117 * configure.in (GLOBDIR): Set to "glob" if we need to build the
1119 * Makefile.am (SUBDIRS): Use the GLOBDIR variable instead of
1120 "glob" so we don't try to build glob if we don't need to (if we
1121 have GLIBC glob). Reported by Lars Hecking <lhecking@nmrc.ucc.ie>.
1123 * main.c (main): Don't put "***" in the clock skew warning
1124 message. Reported by karl@gnu.org.
1126 * make.h: Remove unneeded signal setup.
1128 * signame.c: Remove extraneous #includes; some versions of Ultrix
1129 don't protect against multiple inclusions and it causes compile
1130 errors. Reported by Simon Burge <simonb@thistledown.com.au>.
1132 1999-10-15 Paul D. Smith <psmith@gnu.org>
1134 * main.c (quote_for_env): Rename from quote_as_word().
1136 * make.h, *.c: Prefer strchr() and strrchr() in the code
1137 rather than index() and rindex(). Define strchr/strrchr in terms
1138 of index/rindex if the former aren't supported.
1140 * default.c (CHECKOUT,v): Replace the fancy, complicated
1141 patsubst/filter expression with a simple $(if ...) expression.
1143 * main.c (print_usage): Add the bug reporting mailing address to
1144 the --help output, as per the GNU coding standards.
1145 Reported by Paul Eggert <eggert@twinsun.com>.
1147 * README.customs: Installed information on running Customs-ized
1148 GNU make and setuid root, collected by Ted Stern <stern@tera.com>.
1150 * read.c (read_all_makefiles): PR/1394: Mark the end of the next
1151 token in the MAKEFILES value string _before_ we dup it.
1153 1999-10-13 Paul D. Smith <psmith@gnu.org>
1155 * configure.in (make_cv_sys_gnu_glob): We used to add the -Iglob
1156 flag to CPPFLAGS, but that loses if the user specifies his own
1157 CPPFLAGS; this one gets added _after_ his and if he happens to
1158 have an old or broken glob.h--boom. Instead, put it in GLOBINC
1161 * Makefile.am (INCLUDES): Add @GLOBINC@ to the INCLUDES macro;
1162 these things get on the compile line well before the user's
1165 1999-10-12 Paul D. Smith <psmith@gnu.org>
1167 * remake.c (notice_finished_file): If we get here and -n is set,
1168 see if all the command lines are marked recursive. If so, then we
1169 ran every command there is, so check the mtime on this file just
1170 like we would normally. If not, we assume the command we didn't
1171 run would updates the target and set mtime of the target to "very new".
1173 * job.c (start_job_command): Update lines_flags in the file's cmds
1174 structure with any per-line tokens we found (`@', `-', `+').
1176 1999-10-08 Paul D. Smith <psmith@gnu.org>
1178 * variable.c (initialize_file_variables): Always recurse to
1179 initialize the parent's file variables: the parent might not have
1180 any rules to run so it might not have been initialized before
1181 this--we need this to set up the chain properly for
1182 target-specific variables.
1184 1999-09-29 Paul Eggert <eggert@twinsun.com>
1186 * main.c (quote_as_word): Always quote for decode_env_switches
1187 instead of for the shell, so that arguments with strange
1188 characters are are passed to submakes correctly. Remove
1189 double_dollars arg; we always double dollars now. All callers
1191 (decode_env_switches): Don't run off the end of an environment
1192 variable whose contents ends in a unescaped backslash.
1194 1999-09-23 Paul D. Smith <psmith@gnu.org>
1196 * commands.c, function.c, job.c, read.c: Cast arguments to
1197 ctype.h functions/macros to _unsigned_ char for portability.
1199 * remake.c, function.c: Compiler warning fixes: the second
1200 argument to find_next_token() should be an _unsigned_ int*.
1201 Reported by Han-Wen Nienhuys <hanwen@cs.uu.nl>.
1203 1999-09-23 Paul D. Smith <psmith@gnu.org>
1205 * Version 3.78.1 released.
1207 * make.texinfo: Update version/date stamp.
1209 * main.c (main): Argh. For some reason we were closing _all_ the
1210 jobserver pipes before we re-exec'd due to changed makefiles.
1211 This means that any re-exec got a "jobserver unavailable" error :-/.
1212 I can't believe we didn't notice this before.
1214 1999-09-22 Paul D. Smith <psmith@gnu.org>
1216 * Version 3.78 released.
1218 * main.c (main): Only fail on multiple --jobserver-fds options if
1219 they aren't all the same. Some makefiles use things like
1220 $(MAKE) $(MFLAGS) which will cause multiple, identical copies of
1221 --jobserver-fds to show up.
1223 1999-09-16 Paul D. Smith <psmith@gnu.org>
1225 * main.c (define_makeflags): Zero out FLAGSTRING to avoid
1226 uninitialized memory reads when checking *p != '-' in the loop.
1228 1999-09-15 Paul D. Smith <psmith@gnu.org>
1230 * Version 3.77.97 released.
1232 * configure.in (MAKE_HOST): AC_SUBST this so it will go into the
1234 * Makefile.am (check-local): Print a success banner if the check
1236 (check-regression): A bit of fine-tuning.
1238 1999-09-15 Eli Zaretskii <eliz@is.elta.co.il>
1240 * README.DOS.template: Document requirements for the test suite.
1241 * Makefile.DOS.template: Updates to allow the test suite to run
1244 * main.c (main): Handle it if argv[0] isn't an absolute path.
1246 1999-09-13 Paul D. Smith <psmith@gnu.org>
1248 * Version 3.77.96 released.
1250 * Makefile.am (loadavg): Use CPPFLAGS, etc. to make sure we get
1251 all the right #defines to compile.
1252 (check-regression): Look for the regression test suite in the make
1253 package itself. If we're building remotely, use symlinks to make
1255 (dist-hook): Put the test suite into the tar file.
1257 * configure.in: Look for perl for the test suite.
1259 1999-09-10 Paul Eggert <eggert@twinsun.com>
1261 * acinclude.m4 (AC_SYS_LARGEFILE_FLAGS): If on HP-UX 10.20 or
1262 later, and using GCC, define __STDC_EXT__; this works around a
1265 1999-09-08 Paul D. Smith <psmith@gnu.org>
1267 * main.c (print_version): Ugh. GLIBC's configure tries to check
1268 make version strings and is too aggressive with their matching
1269 expressions. I've struck a deal with them to leave the version
1270 output as-is for 3.78, and they'll change their configure checks
1271 so that I can change this back in the future.
1273 1999-09-07 Eli Zaretskii <eliz@is.elta.co.il>
1275 * job.c (construct_command_argv_internal) [__MSDOS__]: Add "echo"
1276 and "unset" to the list of builtin shell commands.
1278 * configh.DOS.template (MAKE_HOST): Define to "i386-pc-msdosdjgpp"
1279 which is the canonical name of the DJGPP host.
1281 1999-09-05 Paul D. Smith <psmith@gnu.org>
1283 * Version 3.77.95 released.
1285 * make.texinfo (Make Errors): Document some new jobserver error
1288 1999-09-04 Eli Zaretskii <eliz@is.elta.co.il>
1290 * make.texinfo (Make Errors): Document the hint about 8 spaces
1292 (Call Function, Quick Reference): Use @code{$(1)}, not @var.
1294 * main.c (main) [__MSDOS__]: Say "on this platform" instead of "on
1295 MS-DOS", since the MSDOS version could run on Windows.
1297 1999-09-03 Paul D. Smith <psmith@gnu.org>
1299 * remake.c (notice_finished_file): Always set mtime_before_update
1300 if it's not been set, not just if we ran some rules. Otherwise we
1301 may have a situation where a target's prerequisite was rebuilt but
1302 not changed, so this target's rules weren't run, then
1303 update_goal_chain() sees mtime_before_update != last_mtime and
1304 thinks that the top-level target changed when it really didn't.
1305 This can cause an infinite loop when remaking makefiles.
1306 (update_goal_chain): If we get back to the top and we don't know
1307 what the goal's last_mtime was, find it now. We need to know so
1308 we can compare it to mtime_before_update later (this is only
1309 crucial when remaking makefiles--should we only do it then?)
1311 1999-09-02 Paul D. Smith <psmith@gnu.org>
1313 * read.c (read_makefile): If "override" appears as the first
1314 prerequisite, look further to ensure this is really a
1315 target-specific variable definition, and not just some
1316 prerequisite named "override".
1318 1999-09-01 Paul D. Smith <psmith@gnu.org>
1320 * function.c (IS_PATHSEP) [WINDOWS32]: Allow backslash separators
1322 * read.c (record_files) [WINDOWS32]: Allow backslash separators
1324 * implicit.c (pattern_search) [WINDOWS32]: Allow backslash
1325 separators for W32 platforms.
1327 * configure.in (MAKE_HOST): Define it to be the canonical build
1328 host info, now that we need AC_CANONICAL_HOST anyway (for large
1330 * version.c (make_host): Define a variable to MAKE_HOST so we're
1331 sure to get it from the local config.h.
1332 * main.c (print_version): Use it in the version information.
1333 * config.ami.template: Add MAKE_HOST.
1334 * configh.dos.template: Ditto.
1335 * config.h.W32.template: Ditto.
1336 * config.h-vms.template: Ditto.
1338 * main.c (main): Close the jobserver file descriptors if we need
1339 to re-exec ourselves.
1340 Also print more reasonable error if users force -jN for submakes.
1341 This may be common for a while until people use the jobserver
1342 feature. If it happens, we ignore the existing jobserver stuff
1343 and use whatever they specified on the commandline.
1344 (define_makeflags): Fixed a long-standing bug: if a long name
1345 only option comes immediately after a single letter option with no
1346 argument, then the option string is constructed incorrectly. For
1347 example, with -w and --jobserver-fds you get "-w-jobserver-fds..."
1348 instead of "-w --jobserver-fds..."; add in an extra " -".
1350 * make.texinfo (Phony Targets): Add another example of using
1351 .PHONY with subdirectories/recursive make.
1353 1999-08-30 Paul D. Smith <psmith@gnu.org>
1355 * README.W32.template: Renamed from README.W32 so it's
1356 autogenerated during the dist. A few minor modifications.
1358 * configure.in: Check for kstat_open before AC_FUNC_GETLOADAVG
1359 since the latter needs to know whether the former exists to give
1362 1999-08-26 Rob Tulloh <rob_tulloh@dev.tivoli.com>
1364 * NMakefile [WINDOWS32]: Now more robust. If you change a file
1365 under w32/subproc, the make.exe will be relinked. Also added some
1366 tests to make sure erase commands won't fail when executed in a
1367 pristine build environment.
1369 * w32/subproc/sub_proc.c [WINDOWS32]: Added support for
1370 HAVE_CYGWIN_SHELL. If you are using the Cygwin B20.1 release, it
1371 is now possible to have have native support for this shell without
1372 having to rely on klutzy BATCH_MODE_ONLY_SHELL.
1374 * config.h.W32 [WINDOWS32]: Added HAVE_CYGWIN_SHELL macro which
1375 users can define if they want to build make to use this shell.
1377 * README.W32 [WINDOWS32]: Added informaton about
1378 HAVE_CYGWIN_SHELL. Cleaned up text a bit to make it more current.
1380 1999-08-26 Paul Eggert <eggert@twinsun.com>
1382 Support large files in AIX, HP-UX, and IRIX.
1384 * acinclude.m4 (AC_LFS): Remove. Superseded by AC_SYS_LARGEFILE.
1385 (AC_SYS_LARGEFILE_FLAGS, AC_SYS_LARGEFILE_SPACE_APPEND,
1386 AC_SYS_LARGEFILE_MACRO_VALUE, AC_SYS_LARGEFILE): New macros.
1387 (jm_AC_TYPE_UINTMAX_T): Check for busted compilers that can't
1388 shift or divide unsigned long long.
1389 (AM_PROG_CC_STDC): New macro; a temporary workaround of a bug in
1392 * configure.in (AC_CANONICAL_HOST): Add; required by new
1394 (AC_SYS_LARGEFILE): Renamed from AC_LFS.
1395 (AM_PROG_CC_STDC): Add.
1397 * config.guess, config.sub: New files, needed for AC_CANONICAL_HOST.
1399 1999-08-25 Paul Eggert <eggert@twinsun.com>
1401 * make.h (CHAR_MAX): New macro.
1402 * main.c (struct command_switch): c is now int,
1403 so that it can store values greater than CHAR_MAX.
1404 (switches): Replace small numbers N with CHAR_MAX+N-1,
1405 to avoid problems with non-ASCII character sets.
1406 (short_option): New macro.
1407 (init_switches, print_usage, define_makeflags): Use it instead of
1410 1999-08-25 Paul D. Smith <psmith@gnu.org>
1412 * Version 3.77.94 released.
1414 * main.c (main) [__MSDOS__]: If the user uses -j, warn that it's
1415 not supported and reset it.
1417 * make.h (ISDIGIT): Obtained this from the textutils distribution.
1418 * main.c (decode_switches): Use it.
1419 * function.c (is_numeric): Use it.
1421 * main.c (struct command_switch): Store the switch char in an
1422 unsigned char to shut up GCC about using it with ctype.h macros.
1423 Besides, it _is_ always unsigned.
1425 1999-08-24 Paul D. Smith <psmith@gnu.org>
1427 * make.texinfo: Change "dependency" to "prerequisite" and
1428 "dependencies" to "prerequisites". Various other cleanups related
1429 to the terminology change.
1430 * file.c: Change debugging and error messages to use
1431 "prerequisite" instead of "dependency".
1432 * implicit.c: Ditto.
1434 * NEWS: Document it.
1436 1999-08-23 Paul D. Smith <psmith@gnu.org>
1438 * remake.c (update_file): Move the considered check into the
1439 double-colon rule loop, so we consider double-colon rules
1440 individually (otherwise after the first is pruned, the rest won't
1443 * README.template: Minor changes.
1445 Remove the debugging features of the jobserver, so it no longer
1446 writes distinct tokens to the pipe. Thus, we don't need to store
1447 the token we get. A side effect of this is to remove a potential
1448 "unavailable token" situation: make-1 invokes make-2 with its
1449 special token and make-3 with a normal token; make-2 completes.
1450 Now we're waiting for make-3 but using 2 tokens; our special token
1451 is idle. In the new version we don't have special tokens per se,
1452 we merely decide if we already have a child or not. If we don't,
1453 we don't need a token. If we do, we have to get one to run the
1454 next child. Similar for putting tokens back: if we're cleaning up
1455 the last child, we don't put a token back. Otherwise, we do.
1457 * main.c: Add a new, internal flag --jobserver-fds instead of
1458 overloading the meaning of -j. Remove job_slots_str and add the
1459 stringlist jobserver_fds.
1460 (struct command_switch): We don't need the int_string type.
1461 (switches[]): Add a new option for --jobserver-fds and remove
1462 conditions around -j. Make the description for the former 0 so it
1463 doesn't print during "make --help".
1464 (main): Rework jobserver parsing. If we got --jobserver-fds
1465 make sure it's valid. We only get one and job_slots must be 0.
1466 If we're the toplevel make (-jN without --jobserver-fds) create
1467 the pipe and write generic tokens.
1468 Create the stringlist struct for the submakes.
1469 Clean up the stringlist where necessary.
1470 (init_switches): Remove int_string handling.
1471 (print_usage): Don't print internal flags (description ptr is 0).
1472 (decode_switches): Remove int_string handling.
1473 (define_makeflags): Remove int_string handling.
1475 * job.c: Remove my_job_token flag and all references to the
1476 child->job_token field.
1477 (free_job_token): Remove this and merge it into free_child().
1478 (reap_children): Rework the "reaped a child" logic slightly.
1479 Don't call defunct free_job_token anymore. Always call
1480 free_child, even if we're dying.
1481 (free_child): If we're not freeing the only child, put a token
1482 back in the pipe. Then, if we're dying, don't bother to free.
1483 (new_job): If we are using the jobserver, loop checking to see if
1484 a) there are no children or b) we get a token from the pipe.
1486 * job.h (struct child): Remove the job_token field.
1488 1999-08-20 Paul D. Smith <psmith@gnu.org>
1490 * variable.c (try_variable_definition): Allocate for variable
1491 expansion in f_append with a simple variable: if we're looking at
1492 target-specific variables we don't want to trash the buffer.
1493 Noticed by Reiner Beninga <Reiner.Beninga@mchp.siemens.de>.
1495 1999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
1497 * main.c (main) [__MSDOS__]: Mirror any backslashes in argv[0], to
1498 avoid problems in shell commands that use backslashes as escape
1501 1999-08-16 Paul D. Smith <psmith@gnu.org>
1503 * Version 3.77.93 released.
1505 1999-08-13 Paul D. Smith <psmith@gnu.org
1507 * function.c (func_if): New function $(if ...) based on the
1508 original by Han-Wen but reworked quite a bit.
1509 (function_table): Add it.
1510 * NEWS: Introduce it.
1511 * make.texinfo (If Function): Document it.
1513 * job.c (free_job_token): Check for EINTR when writing tokens to
1516 1999-08-12 Paul D. Smith <psmith@gnu.org>
1518 Another jobserver algorithm change. We conveniently forgot that
1519 the blocking bit is shared by all users of the pipe, it's not a
1520 per-process setting. Since we have many make processes all
1521 sharing the pipe we can't use the blocking bit as a signal handler
1522 flag. Instead, we'll dup the pipe's read FD and have the SIGCHLD
1523 handler close the dup'd FD. This will cause the read() to fail
1524 with EBADF the next time we invoke it, so we know we need to reap
1525 children. We then re-dup and reap.
1527 * main.c (main): Define the job_rfd variable to hold the dup'd FD.
1528 Actually dup the read side of the pipe. Don't bother setting the
1529 blocking bit on the file descriptor.
1530 * make.h: Declare the job_rfd variable.
1531 * job.c (child_handler): If the dup'd jobserver pipe is open,
1532 close it and assign -1 to job_rfd to notify the main program that
1534 (start_job_command): Close the dup'd FD before exec'ing children.
1535 Since we open and close this thing so often it doesn't seem
1536 worth it to use the close-on-exec bit.
1537 (new_job): Remove code for testing/setting the blocking bit.
1538 Instead of EAGAIN, test for EBADF. If the dup'd FD has been
1539 closed, re-dup it before we reap children.
1541 * function.c (func_shell): Be a little more accurate about the
1542 length of the error string to allocate.
1544 * expand.c (variable_expand_for_file): If there's no filenm info
1545 (say, from a builtin command) then reset reading_file to 0.
1547 1999-08-09 Paul D. Smith <psmith@gnu.org>
1549 * maintMakefile: Use g in sed (s///g) to replace >1 variable per
1552 * Makefile.DOS.template [__MSDOS__]: Fix mostlyclean-aminfo to
1553 remove the right files.
1555 1999-08-01 Eli Zaretskii <eliz@is.elta.co.il>
1557 * function.c (msdos_openpipe) [__MSDOS__]: *Really* return a FILE
1560 1999-08-01 Paul D. Smith <psmith@gnu.org>
1562 New jobserver algorithm to avoid a possible hole where we could
1563 miss SIGCHLDs and get into a deadlock. The original algorithm was
1564 suggested by Roland McGrath with a nice refinement by Paul Eggert.
1565 Many thanks as well to Tim Magill and Howard Chu, who also
1566 provided many viable ideas and critiques. We all had a fun week
1567 dreaming up interesting ways to use and abuse UNIX syscalls :).
1569 Previously we could miss a SIGCHLD if it happened after we reaped
1570 the children but before we re-entered the blocking read. If this
1571 happened to all makes and/or all children, make would never wake
1574 We avoid this by having the SIGCHLD handler reset the blocking bit
1575 on the jobserver pipe read FD (normally read does block in this
1576 algorithm). Now if the handler is called between the time we reap
1577 and the time we read(), and there are no tokens available, the
1578 read will merely return with EAGAIN instead of blocking.
1580 * main.c (main): Set the blocking bit explicitly here.
1581 * job.c (child_handler): If we have a jobserver pipe, set the
1582 non-blocking bit for it.
1583 (start_waiting_job): Move the token stuff back to new_job; if we
1584 do it here then we're not controlling the number of remote jobs
1586 (new_job): Move the check for job slots to _after_ we've created a
1587 child structure. If the read returns without getting a token, set
1588 the blocking bit then try to reap_children.
1590 * make.h (EINTR_SET): Define to test errno if EINTR is available,
1591 or 0 otherwise. Just some code cleanup.
1592 * arscan.c (ar_member_touch): Use it.
1593 * function.c (func_shell): Use it.
1594 * job.c (reap_children): Use it.
1595 * remake.c (touch_file): Use it.
1597 1999-07-28 Paul D. Smith <psmith@gnu.org>
1599 * make.h: Define _() and N_() macros as passthrough to initiate
1601 * <all>: Add _()/N_() around translatable strings.
1603 1999-07-27 Paul D. Smith <psmith@gnu.org>
1605 * read.c: Make sure make.h comes before other headers.
1607 1999-07-26 Paul D. Smith <psmith@gnu.org>
1609 * make.texinfo (Quick Reference): Update with the new features.
1611 1999-07-25 Eli Zaretskii <eliz@is.elta.co.il>
1613 * remake.c [__MSDOS__]: Don't include variables.h, it's already
1616 * function.c (msdos_openpipe) [__MSDOS__]: Return FILE ptr.
1617 (func_shell) [__MSDOS__]: Fix the argument list.
1619 * Makefile.DOS.template: Update from Makefile.in.
1621 * README.DOS.template: Configure command fixed.
1623 * configh.dos.template: Update to provide definitions for
1624 uintmax_t, fd_set_size_t, and HAVE_SELECT.
1626 1999-07-24 Paul D. Smith <psmith@gnu.org>
1628 * Version 3.77.91 released.
1630 * configure.in: Changes to the boostrapping code: if build.sh.in
1631 doesn't exist configure spits an error and generates an empty
1632 build.sh file which causes make to be confused.
1633 * maintMakefile: Don't build README early.
1635 1999-07-23 Paul D. Smith <psmith@gnu.org>
1637 * job.c (my_job_token): This variable controls whether we've
1638 handed our personal token to a subprocess or not. Note we could
1639 probably infer this from the value of job_slots_used, but it's
1640 clearer to just keep it separately. Job_slots_used isn't really
1641 relevant when running the job server.
1642 (free_job_token): New function: free a job token. If we don't
1643 have one, no-op. If we have the personal token, reclaim it. If
1644 we have another token, write it back to the pipe.
1645 (reap_children): Call free_job_token.
1646 (free_child): Call free_job_token.
1647 (start_job_command): Remove duplicate test for '+' in the command.
1648 If we don't appear to be running a recursive make, close the
1649 jobserver filedescriptors.
1650 (start_waiting_job): If our personal token is available, use that
1651 instead of going to the server pipe.
1652 (*): Add the token value to many debugging statements, and print
1653 the child target name in addition to the ptr hex value.
1654 Change the default "no token" value from '\0' to '-' so it looks
1655 better in the output.
1657 * main.c (main): Install the child_handler with sigaction()
1658 instead of signal() if we have it. On SysV systems, signal() uses
1659 SysV semantics which are a pain. But sigaction() always does what
1661 (main): If we got job server FDs from the environment, test them
1662 to see if they're open. If not, the parent make closed them
1663 because it didn't think we were a submake. Print a warning and
1664 suggestion to use "+" on the submake invocation, and hard-set to
1665 -j1 for this instance of make.
1666 (main): Change the algorithm for assigning slots to be more
1667 robust. Previously make checked to see if it thought a subprocess
1668 was a submake and if so, didn't give it a token. Since make's
1669 don't consume tokens we could spawn many of makes fighting for a
1670 small number of tokens. Plus this is unreliable because submakes
1671 might not be recognized by the parent (see above) then all the
1672 tokens could be used up by unrecognized makes, and no one could
1673 run. Now every make consumes a token from its parent. However,
1674 the make can also use this token to spawn a child. If the make
1675 wants more than one, it goes to the jobserver pipe. Thus there
1676 will never be more than N makes running for -jN, and N*2 processes
1677 (N makes and their N children). Every make can always run at
1678 least one job, and we'll never deadlock. (Note the closing of the
1679 pipe for non-submakes also solves this, but this is still a better
1680 algorithm.) So! Only put N-1 tokens into the pipe, since the
1681 topmost make keeps one for itself.
1683 * configure.in: Find sigaction. Disable job server support unless
1684 the system provides it, in addition to either waitpid() or
1687 1999-07-22 Rob Tulloh <rob_tulloh@dev.tivoli.com>
1689 * arscan.c (ar_member_touch) [WINDOWS32]: The ar_date field is a
1690 string on Windows, not a timestamp.
1692 1999-07-21 Paul D. Smith <psmith@gnu.org>
1694 * Version 3.77.90 released.
1696 * Makefile.am (AUTOMAKE_OPTIONS): Require automake 1.4.
1698 * function.c: Rearrange so we don't need to predeclare the
1699 function_table array; K&R C compilers don't like that.
1701 * acinclude.m4 (AC_FUNC_SELECT): Ouch; this requires an ANSI C
1702 compiler! Change to work with K&R compilers as well.
1704 * configure.in (AC_OUTPUT): Put build.sh back. I don't know how I
1705 thought it would work this way :-/. We'll have to think of
1707 * Makefile.am: Remove rule to create build.sh.
1709 * default.c (default_suffix_rules): Rearrange the default command
1710 lines to conform to POSIX rules (put the filename argument $<
1711 _after_ the OUTPUT_OPTION, not before it).
1713 * various: Changed !strncmp() calls to strneq() macros.
1715 * misc.c (sindex): Make slightly more efficient.
1717 * dir.c (file_impossible): Change savestring(X,strlen(X)) to xstrdup().
1718 * implicit.c (pattern_search): Ditto.
1719 * main.c (enter_command_line_file): Ditto.
1721 * misc.c (copy_dep_chain): Ditto.
1722 * read.c (read_makefile): Ditto.
1723 (parse_file_seq): Ditto.
1724 (tilde_expand): Ditto.
1725 (multi_glob): Ditto.
1726 * rule.c (install_pattern_rule): Ditto.
1727 * variable.c (define_variable_in_set): Ditto.
1728 (define_automatic_variables): Ditto.
1729 * vpath.c (construct_vpath_list): Ditto.
1731 * misc.c (xrealloc): Some reallocs are non-standard: work around
1732 them in xrealloc by calling malloc if PTR is NULL.
1733 * main.c (main): Call xrealloc() directly instead of testing for
1736 * function.c (func_sort): Don't try to free NULL; some older,
1737 non-standard versions of free() don't like it.
1739 * configure.in (--enable-dmalloc): Install some support for using
1740 dmalloc (http://www.dmalloc.com/) with make. Use --enable-dmalloc
1741 with configure to enable it.
1743 * function.c (function_table_entry): Whoops! The function.c
1744 rewrite breaks backward compatibility: all text to a function is
1745 broken into arguments, and extras are ignored. So $(sort a,b,c)
1746 returns "a"! Etc. Ouch. Fix it by making a positive value in
1747 the REQUIRED_ARGS field mean exactly that many arguments to the
1748 function; any "extras" are considered part of the last argument as
1749 before. A negative value means at least that many, but may be
1750 more: in this case all text is broken on commas.
1751 (handle_function): Stop when we've seen REQUIRED_ARGS args, if >0.
1752 (expand_builtin_function): Compare number of args to the absolute
1753 value of REQUIRED_ARGS.
1755 1999-07-20 Paul D. Smith <psmith@gnu.org>
1757 * job.c (start_job_command): Ensure that the state of the target
1758 is cs_running. It might not be if we skipped all the lines due to
1761 * commands.c (execute_file_commands): If we discover that the
1762 command script is empty and succeed early, set cs_running so the
1763 modtime of the target is still rechecked.
1765 * rule.c (freerule): Free the dependency list for the rule.
1767 * implicit.c (pattern_search): When turning an intermediate file
1768 into a real target, keep the also_make list.
1769 Free the dep->name if we didn't use it during enter_file().
1771 1999-07-16 Paul D. Smith <psmith@gnu.org>
1773 * read.c (read_makefile): Don't allocate the commands buffer until
1774 we're sure we found a makefile and won't return early (mem leak).
1776 * job.c (start_job_command): Broken #ifdef test: look for F_SETFD,
1777 not FD_SETFD. Close-on-exec isn't getting set on the bad_stdin
1778 file descriptor and it's leaking :-/.
1779 * getloadavg.c (getloadavg): Ditto.
1781 1999-07-15 Paul D. Smith <psmith@gnu.org>
1783 * read.c (read_makefile): Fix some potential memory stomps parsing
1784 `define' directives where no variable name is given.
1786 * function.c (func_call): Rename from func_apply. Various code
1787 cleanup and tightening.
1788 (function_table): Add "call" as a valid builtin function.
1790 * make.texinfo (Call Function): Document it.
1792 * NEWS: Announce it.
1794 1999-07-09 Eli Zaretskii <eliz@is.elta.co.il>
1796 * variable.c (try_variable_definition) [__MSDOS__, WINDOWS32]:
1797 Treat "override SHELL=" the same as just "SHELL=".
1799 1999-07-09 Paul D. Smith <psmith@gnu.org>
1801 * job.c (start_waiting_job): Don't get a second job token if we
1802 already have one; if we're waiting on the load to go down
1803 start_waiting_job() might get called twice on the same file.
1805 * filedef.h (struct file): Add new field, mtime_before_update.
1806 When notice_finished_file runs it assigns the cached last_mtime to
1808 * remake.c (update_goal_chain): Notice that a file wasn't updated
1809 by asking if it changed (g->changed) and comparing the current
1810 cached time (last_mtime) with the previous one, stored in
1811 mtime_before_update. The previous check ("did last_mtime changed
1812 during the run of update_file?") fails for parallel builds because
1813 last_mtime is set during reap_children, before update_file is run.
1814 This causes update_goal_chain to always return -1 (nothing
1815 rebuilt) when running parallel (-jN). This is OK during "normal"
1816 builds since our caller (main) treats these cases identically in
1817 that case, but if when rebuilding makefiles the difference is very
1818 important, as it controls whether we re-exec or not.
1819 * file.c (file_hash_enter): Copy the mtime_before_update field.
1820 (snap_deps): Initialize mtime_before_update to -1.
1821 * main.c (main): Initialize mtime_before_update on old (-o) and
1824 1999-07-08 Paul D. Smith <psmith@gnu.org>
1826 * main.c (switches): Define a new switch -R (or
1827 --no-builtin-variables). This option disables the defining of all
1828 the GNU make builtin variables.
1829 (main): If -R was given, force -r as well.
1830 * default.c (define_default_variables): Test the new flag.
1831 * make.h: Declare global flag.
1832 * make.texinfo (Options Summary): Document the new option.
1833 (Implicit Variables): Ditto.
1835 1999-07-06 Paul D. Smith <psmith@gnu.org>
1837 * make.texinfo (Options Summary): Correct examples in
1838 --print-data-base option summary (problem reported by David Morse
1839 <morse@nichimen.com>).
1841 * arscan.c: Add support for archives in Windows (VC++). Frank
1842 Libbrecht <frankl@abzx.belgium.hp.com> provided info on how to do
1844 * NMakefile.template (CFLAGS_any): Remove NO_ARCHIVES from the
1846 * build_w32.bat: Ditto.
1848 * remake.c (no_rule_error): Fix -include/sinclude so it doesn't
1849 give errors if you try to -include the same file twice.
1850 (updating_makefiles): New variable: we need to know this info in
1851 no_rule_error() so we know whether to print an error or not.
1852 (update_file_1): Unconditionally call no_rule_error(), don't try
1853 to play games with the dontcare flag.
1855 1999-06-14 Paul D. Smith <psmith@gnu.org>
1857 * make.texinfo (Remaking Makefiles): Add a description of how to
1858 prevent implicit rule searches for makefiles.
1860 * make.1: Remove statement that make continues processing when -v
1863 1999-06-14 Paul D. Smith <psmith@gnu.org>
1865 * read.c (read_makefile): Cast -1 arguments to
1866 variable_expand_string() to long. Alexandre Sauve
1867 <Alexandre.SAUVE@ifp.fr> reports that without casts, this breaks
1868 on a NEC SUPER-UX SX-4 system (and it's wrong without a cast
1869 anyway). Of course, (a) I'd really love to start using function
1870 prototypes, and (b) there's a whole slew of issues related to int
1871 vs. long and signed vs. unsigned in the length handling of
1872 variable buffers, etc. Gross. Needs a complete mucking-out.
1873 * expand.c (variable_expand): Ditto.
1875 * acinclude.m4 (AC_FUNC_SELECT): Slight enhancement for AIX 3.2 by
1876 Lars Hecking <lhecking@nmrc.ucc.ie>.
1878 * read.c (get_next_mword): Allow colons to be escaped in target
1879 names: fix for regression failure.
1881 1999-04-26 Paul D. Smith <psmith@gnu.org>
1883 * main.c (main): Reset read_makefiles to empty after processing so
1884 we get the right error message.
1886 1999-04-25 Paul D. Smith <psmith@gnu.org>
1888 * make.texinfo: Updates to @dircategory and @direntry suggested by
1889 Karl Berry <karl@cs.umb.edu>.
1891 1999-04-23 Eli Zaretskii <eliz@is.elta.co.il>
1893 * job.c (start_job_command) [__MSDOS__]: Call unblock_sigs before
1894 turning off dos_command_running, so child's signals produce the
1897 * commands.c (fatal_error_signal) [__MSDOS__]: Use EXIT_FAILURE
1900 1999-04-18 Eli Zaretskii <eliz@is.elta.co.il>
1902 * configh.dos.template: Update to recognize that version 2.02 of
1903 DJGPP contains sys_siglist stuff.
1905 1999-04-14 Paul D. Smith <psmith@gnu.org>
1907 * make.texinfo (Options/Recursion): Document the job server.
1910 1999-04-13 Paul D. Smith <psmith@gnu.org>
1912 Implement a new "job server" feature; the implementation was
1913 suggested by Howard Chu <hyc@highlandsun.com>.
1915 * configure.in (job-server): New disable option for job server
1916 support--it's enabled by default. If it works well this will go
1919 * NEWS: Summarize the new feature.
1921 * acconfig.h: New definition MAKE_JOBSERVER if job server support
1923 * config.h-vms.template: Undef MAKE_JOBSERVER for this port.
1924 * config.h.W32.template: Ditto.
1925 * config.ami.template: Ditto.
1927 * main.c (struct command_switch): Add a new type: int_string.
1928 (switches[]) Use int_string for -j if MAKE_JOBSERVER.
1929 (init_switches): Initialize the new int_string switch type.
1930 (print_usage): New function, extracted from decode_switches().
1931 (decode_switches): Call it. Decode the new int_string switch type.
1932 (define_makeflags): Add new int_string switch data to MAKEFLAGS.
1933 (job_fds[]) Array to contain the pipe file descriptors.
1934 (main): Parse the job_slots_str option results. If necessary,
1935 create the pipe and seed it with tokens. Set the non-blocking bit
1936 for the read fd. Enable the signal handler for SIGCHLD even if we
1937 have a non-hanging wait; it's needed to interrupt the select() in
1938 job.c:start_waiting_job().
1940 * make.h: Declare job_fds[].
1942 * job.h (struct child): Add job_token field to store the token for
1945 * job.c (reap_children): When a child is fully reaped, release the
1946 token back into the pipe.
1947 (free_child): If the child to be freed still has a token, put it
1949 (new_job): Initialize the job_token member.
1950 (start_waiting_job): For local jobs, if we're using the pipe, get
1951 a token before we check the load, etc. We do this by performing a
1952 non-blocking read in a loop. If the read fails, no token is
1953 available. Do a select on the fd to wait for a token. We need to
1954 re-enable the signal handler for SIGCHLD even if we have a
1955 non-hanging waitpid() or wait3(), so that the signal will
1956 interrupt the select() and we can wake up to reap children.
1957 (child_handler): Re-enable the signal handler. The count is still
1958 kept although it's not needed or used unless you don't have
1959 waitpid() or wait3().
1961 1999-04-10 Paul D. Smith <psmith@gnu.org>
1963 * main.c (main): Reset the considered bit on all the makefiles if
1964 something failed to update; we need to examine them again if they
1965 appear as normal targets in order to get the proper error message.
1967 1999-04-09 Paul D. Smith <psmith@gnu.org>
1969 Performance enhancement from Tim Magill <tim.magill@telops.gte.com>.
1971 * remake.c (update_file): If you have large numbers of
1972 dependencies and you run in parallel, make can spend considerable
1973 time each pass through the graph looking at branches it has
1974 already seen. Since we only reap_children() when starting a pass,
1975 not in the middle, if a branch has been seen already in that pass
1976 nothing interesting can happen until the next pass. So, we toggle
1977 a bit saying whether we've seen this target in this pass or not.
1978 (update_goal_chain): Initially set the global considered toggle to
1979 1, since all targets initialize their boolean to 0. At the end of
1980 each pass, toggle the global considered variable.
1981 * filedef.h (struct file): Per-file considered toggle bit.
1982 * file.c: New global toggle variable considered.
1984 1999-04-05 Paul D. Smith <psmith@gnu.org>
1986 * arscan.c (ar_scan): Added support for ARFZMAG (compressed
1987 archives?) for Digital UNIX C++. Information provided by
1988 Patrick E. Krogel <pekrogel@mtu.edu>.
1989 (ar_member_touch): Ditto.
1991 1999-04-03 Paul D. Smith <psmith@gnu.org>
1993 * remake.c (f_mtime): If: a) we found a file and b) we didn't
1994 create it and c) it's not marked as an implicit target and d) it
1995 is marked as an intermediate target, then it was so marked due to
1996 an .INTERMEDIATE special target, but it already existed in the
1997 directory. In this case, unset the intermediate flag so we won't
1998 delete it when make is done. It feels like it would be cleaner to
1999 put this check in update_file_1() but I worry it'll get missed...
2001 1999-04-01 Paul D. Smith <psmith@gnu.org>
2003 * job.c (construct_command_argv_internal): Use bcopy() to copy
2004 overlapping strings, rather than strcpy(). ISO C says the latter
2005 is undefined. Found this in a bug report from 1996! Ouch!
2007 1999-03-31 Paul D. Smith <psmith@gnu.org>
2009 * read.c (readline): Ignore carriage returns at the end of the
2010 line, to allow Windows-y CRLF line terminators.
2012 1999-03-30 Paul D. Smith <psmith@gnu.org>
2014 * configure.in: Don't put build.sh here, since build.sh.in doesn't
2015 exist initially. This cause autoreconf and automake to fail when
2016 run on a clean CVS checkout. Instead, we create build.sh in the
2017 Makefile (see below).
2019 * Makefile.am: Remove BUILT_SOURCES; this is no longer relevant.
2020 Put those files directly into EXTRA_DIST so they're distributed.
2021 Create a local build rule to create build.sh.
2022 Create a local maintainer-clean rule to delete all the funky
2025 * maintMakefile: Makefile.in depends on README, since automake
2026 fails if it doesn't exist. Also don't remove glob/Makefile.in
2027 here, as it causes problems.
2029 1999-03-26 Paul D. Smith <psmith@gnu.org>
2031 * configure.in: Substitute GLOBLIB if we need the link the
2032 glob/libglob.a library.
2033 * Makefile.am (make_LDADD): Use the subst variable GLOBLIB so we
2034 don't link the local libglob.a at all if we don't need it.
2035 * build.template: Don't compile glob/*.o unless we want globlib.
2036 * maintMakefile (build.sh.in): Substitute the glob/*.o files
2039 1999-03-25 Paul D. Smith <psmith@gnu.org>
2041 * make.texinfo: Various typos and additions, pointed out by James
2042 G. Sack <jsack@dornfeld.com>.
2044 1999-03-22 Paul D. Smith <psmith@gnu.org>
2046 * make.texinfo (Functions): Add a new section documenting the new
2047 $(error ...) and $(warning ...) functions. Also updated copyright
2049 * NEWS: Updated for the new functions.
2050 * function.c (func_error): Implement the new $(error ...) and
2051 $(warning ...) functions.
2052 (function_table): Insert new functions into the table.
2053 (func_firstword): Don't call find_next_token() with argv[0]
2054 itself, since that function modifies the pointer.
2055 * function.c: Cleanups and slight changes to the new method of
2058 1999-03-20 Han-Wen Nienhuys <hanwen@cs.uu.nl>
2060 * function.c: Rewrite to use one C function per make function,
2061 instead of a huge switch statement. Also allows some cleanup of
2062 multi-architecture issues, and a cleaner API which makes things
2063 like func_apply() simple.
2065 * function.c (func_apply): Initial implementation. Expand either
2066 a builtin function or a make variable in the context of some
2067 arguments, provided as $1, $2, ... $N.
2069 1999-03-19 Eli Zaretskii <eliz@is.elta.co.il>
2070 1999-03-19 Rob Tulloh <rob_tulloh@dev.tivoli.com>
2072 * job.c (construct_command_argv_internal): Don't treat _all_
2073 backslashes as escapes, only those which really escape a special
2074 character. This allows most normal "\" directory separators to be
2077 1999-03-05 Paul D. Smith <psmith@gnu.org>
2079 * configure.in: Check for a system strdup().
2080 * misc.c (xstrdup): Created. Suggestion by Han-Wen Nienhuys
2082 * make.h: Prototype xstrdup().
2083 * remake.c (library_search): Use it.
2084 * main.c (main): Use it.
2085 (find_and_set_default_shell): Use it.
2086 * job.c (construct_command_argv_internal): Use it.
2087 * dir.c (find_directory): Use it.
2089 * Makefile.am, configure.in: Use AC_SUBST_FILE to insert the
2090 maintMakefile instead of "include", to avoid automake 1.4
2093 1999-03-04 Paul D. Smith <psmith@gnu.org>
2095 * amiga.c, amiga.h, ar.c, arscan.c, commands.c, commands.h,
2096 * default.c, dep.h, dir.c, expand.c, file.c, filedef.h, function.c,
2097 * implicit.c, job.c, job.h, main.c, make.h, misc.c, read.c, remake.c
2098 * remote-cstms.c, remote-stub.c, rule.h, variable.c, variable.h,
2099 * vpath.c, Makefile.ami, NMakefile.template, build.template,
2100 * makefile.vms: Updated FSF address in the copyright notice.
2102 * variable.c (try_variable_definition): If we see a conditional
2103 variable and we decide to set it, re-type it as recursive so it
2104 will be expanded properly later.
2106 1999-02-22 Paul D. Smith <psmith@gnu.org>
2108 * NEWS: Mention new .LIBPATTERNS feature.
2110 * make.texinfo (Libraries/Search): Describe the use and
2111 ramifications of the new .LIBPATTERNS variable.
2113 * remake.c (library_search): Instead of searching only for the
2114 hardcoded expansion "libX.a" for a library reference "-lX", we
2115 obtain a list of patterns from the .LIBPATTERNS variable and
2116 search those in order.
2118 * default.c: Added a new default variable .LIBPATTERNS. The
2119 default for UNIX is "lib%.so lib%.a". Amiga and DOS values are
2122 * read.c: Remove bogus HAVE_GLOB_H references; always include
2125 1999-02-21 Paul D. Smith <psmith@gnu.org>
2127 * function.c (expand_function): Set value to 0 to avoid freeing it.
2128 * variable.c (pop_variable_scope): Free the value of the variable.
2129 (try_variable_definition): For simple variables, use
2130 allocated_variable_expand() to avoid stomping on the variable
2131 buffer when we still need it for other things.
2133 * arscan.c: Modified to support AIX 4.3 big archives. The changes
2134 are based on information provided by Phil Adams
2135 <padams@austin.ibm.com>.
2137 1999-02-19 Paul D. Smith <psmith@gnu.org>
2139 * configure.in: Check to see if the GNU glob library is already
2140 installed on the system. If so, _don't_ add -I./glob to the
2141 compile line. Using the system glob code with the local headers
2143 Rewrite SCCS macros to use more autoconf facilities.
2145 * Makefile.am: Move -Iglob out of INCLUDES; it'll get added to
2146 CPPFLAGS by configure now.
2147 Automake 1.4 introduced its own "include" feature which conflicts
2148 with the maintMakefile stuff. A hack that seems to work is add a
2149 space before the include :-/.
2151 * build.template: Move -Iglob out of the compile line; it'll get
2152 added to CPPFLAGS by configure now.
2154 1999-02-16 Glenn D. Wolf <Glenn_Wolf@email.sps.mot.com>
2156 * arscan.c (ar_scan) [VMS]: Initialized VMS_member_date before
2157 calling lbr$get_index since if the archive is empty,
2158 VMS_get_member_info won't get called at all, and any leftover date
2159 will be used. This bug shows up if any member of any archive is
2160 made, followed by a dependency check on a different, empty
2163 1998-12-13 Martin Zinser <zinser@decus.decus.de>
2165 * config.h-vms [VMS]: Set _POSIX_C_SOURCE. Redefine the getopt
2166 functions so we don't use the broken VMS versions.
2167 * makefile.com [VMS]: Allow debugging.
2168 * dir.c (dir_setup_glob) [VMS]: Don't extern stat() on VMS.
2170 1998-11-30 Paul D. Smith <psmith@gnu.org>
2172 * signame.c (init_sig): Check the sizes of signals being set up to
2173 avoid array overwrites (if the system headers have problems).
2175 1998-11-17 Paul D. Smith <psmith@gnu.org>
2177 * read.c (record_files): Clean up some indentation.
2179 1998-11-08 Han-Wen Nienhuys <hanwen@cs.uu.nl>
2181 * rule.c (print_rule_data_base): Fix arguments to fatal() call.
2183 1998-10-13 Paul D. Smith <psmith@gnu.org>
2185 * job.c (start_job_command): If the command list resolves to no
2186 chars at all (e.g.: "foo:;$(empty)") then command_ptr is NULL;
2189 1998-10-12 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2191 * rule.c (print_rule_data_base): Ignore num_pattern_rules if it is
2194 1998-10-09 Paul D. Smith <psmith@gnu.org>
2196 * read.c (read_makefile): Allow non-empty lines to expand to the
2197 empty string after variable, etc., expansion, and be ignored.
2199 1998-09-21 Paul D. Smith <psmith@gnu.org>
2201 * job.c (construct_command_argv_internal): Only add COMMAND.COM
2202 "@echo off" line for non-UNIXy shells.
2204 1998-09-09 Paul D. Smith <psmith@gnu.org>
2206 * w32/subproc/sub_proc.c: Add in missing HAVE_MKS_SHELL tests.
2208 1998-09-04 Paul D. Smith <psmith@gnu.org>
2210 * read.c (read_makefile): If we hit the "missing separator" error,
2211 check for the common case of 8 spaces instead of a TAB and give an
2212 extra comment to help people out.
2214 1998-08-29 Paul Eggert <eggert@twinsun.com>
2216 * configure.in (AC_STRUCT_ST_MTIM_NSEC):
2217 Renamed from AC_STRUCT_ST_MTIM.
2219 * acinclude.m4 (AC_STRUCT_ST_MTIM_NSEC): Likewise.
2220 Port to UnixWare 2.1.2 and pedantic Solaris 2.6.
2222 * acconfig.h (ST_MTIM_NSEC):
2223 Renamed from HAVE_ST_MTIM, with a new meaning.
2225 * filedef.h (FILE_TIMESTAMP_FROM_S_AND_NS):
2226 Use new ST_MTIM_NSEC macro.
2228 1998-08-26 Paul D. Smith <psmith@gnu.org>
2230 * remake.c (check_dep): For any intermediate file, not just
2231 secondary ones, try implicit and default rules if no explicit
2232 rules are given. I'm not sure why this was restricted to
2233 secondary rules in the first place.
2235 1998-08-24 Paul D. Smith <psmith@gnu.org>
2237 * make.texinfo (Special Targets): Update documentation for
2238 .INTERMEDIATE: if used with no dependencies, then it does nothing;
2239 old docs said it marked all targets as intermediate, which it
2240 didn't... and which would be silly :).
2242 * implicit.c (pattern_search): If we find a dependency in our
2243 internal tables, make sure it's not marked intermediate before
2244 accepting it as a found_file[].
2246 1998-08-20 Paul D. Smith <psmith@gnu.org>
2248 * ar.c (ar_glob): Use existing alpha_compare() with qsort.
2249 (ar_glob_alphacompare): Remove it.
2251 Modify Paul Eggert's patch so we don't abandon older systems:
2253 * configure.in: Warn the user if neither waitpid() nor wait3() is
2256 * job.c (WAIT_NOHANG): Don't syntax error on ancient hosts.
2257 (child_handler, dead_children): Define these if WAIT_NOHANG is not
2259 (reap_children): Only track the dead_children count if no
2260 WAIT_NOHANG. Otherwise, it's a boolean.
2262 * main.c (main): Add back signal handler if no WAIT_NOHANG is
2263 available; only use default signal handler if it is.
2265 1998-08-20 Paul Eggert <eggert@twinsun.com>
2267 Install a more robust signal handling mechanism for systems which
2270 * job.c (WAIT_NOHANG): Define to a syntax error if our host
2271 is truly ancient; this should never happen.
2272 (child_handler, dead_children): Remove.
2273 (reap_children): Don't try to keep separate track of how many
2274 dead children we have, as this is too bug-prone.
2275 Just ask the OS instead.
2276 (vmsHandleChildTerm): Fix typo in error message; don't mention
2279 * main.c (main): Make sure we're not ignoring SIGCHLD/SIGCLD;
2280 do this early, before we could possibly create a subprocess.
2281 Just use the default behavior; don't have our own handler.
2283 1998-08-18 Eli Zaretskii <eliz@is.elta.co.il>
2285 * read.c (read_makefile) [__MSDOS__, WINDOWS32]: Add code to
2286 recognize library archive members when dealing with drive spec
2287 mess. Discovery and initial fix by George Racz <gracz@mincom.com>.
2289 1998-08-18 Paul D. Smith <psmith@gnu.org>
2291 * configure.in: Check for stdlib.h explicitly (some hosts have it
2292 but don't have STDC_HEADERS).
2293 * make.h: Use HAVE_STDLIB_H. Clean up some #defines.
2294 * config.ami: Re-compute based on new config.h.in contents.
2295 * config.h-vms: Ditto.
2296 * config.h.W32: Ditto.
2297 * configh.dos: Ditto.
2299 * dir.c (find_directory) [WINDOWS32]: Windows stat() fails if
2300 directory names end with `\' so strip it.
2302 1998-08-17 Paul D. Smith <psmith@gnu.org>
2304 * make.texinfo: Added copyright year to the printed copy. Removed
2305 the price from the manual. Change the top-level reference to
2306 running make to be "Invoking make" instead of "make Invocation",
2307 to comply with GNU doc standards.
2309 * make.h (__format__, __printf__): Added support for these in
2310 __attribute__ macro.
2311 (message, error, fatal): Use ... prototype form under __STDC__.
2312 Add __format__ attributes for printf-style functions.
2314 * configure.in (AC_FUNC_VPRINTF): Check for vprintf()/_doprnt().
2316 * misc.c (message, error, fatal): Add preprocessor stuff to enable
2317 creation of variable-argument functions with appropriate
2318 prototypes, that works with ANSI, pre-ANSI, varargs.h, stdarg.h,
2319 v*printf(), _doprnt(), or none of the above. Culled from GNU
2320 fileutils and slightly modified.
2321 (makefile_error, makefile_error): Removed (merged into error() and
2322 fatal(), respectively).
2323 * amiga.c: Use them.
2325 * arscan.c: Use them.
2326 * commands.c: Use them.
2327 * expand.c: Use them.
2329 * function.c: Use them.
2334 * remake.c: Use them.
2335 * remote-cstms.c: Use them.
2337 * variable.c: Use them.
2339 * make.h (struct floc): New structure to store file location
2341 * commands.h (struct commands): Use it.
2342 * variable.c (try_variable_definition): Use it.
2343 * commands.c: Use it.
2344 * default.c: Use it.
2346 * function.c: Use it.
2351 1998-08-16 Paul Eggert <eggert@twinsun.com>
2353 * filedef.h (FILE_TIMESTAMP_PRINT_LEN_BOUND): Add 10, for nanoseconds.
2355 1998-08-16 Paul Eggert <eggert@twinsun.com>
2357 * filedef.h (FLOOR_LOG2_SECONDS_PER_YEAR): New macro.
2358 (FILE_TIMESTAMP_PRINT_LEN_BOUND): Tighten bound, and try to
2359 make it easier to understand.
2361 1998-08-14 Paul D. Smith <psmith@gnu.org>
2363 * read.c (read_makefile): We've already unquoted any colon chars
2364 by the time we're done reading the targets, so arrange for
2365 parse_file_seq() on the target list to not do so again.
2367 1998-08-05 Paul D. Smith <psmith@gnu.org>
2369 * configure.in: Added glob/configure.in data. We'll have the glob
2370 code include the regular make config.h, rather than creating its
2373 * getloadavg.c (main): Change return type to int.
2375 1998-08-01 Paul Eggert <eggert@twinsun.com>
2377 * job.c (reap_children): Ignore unknown children.
2379 1998-07-31 Paul D. Smith <psmith@gnu.org>
2381 * make.h, filedef.h, dep.h, rule.h, commands.h, remake.c:
2382 Add prototypes for functions. Some prototypes needed to be moved
2383 in order to get #include order reasonable.
2385 1998-07-30 Paul D. Smith <psmith@gnu.org>
2387 * make.h: Added MIN/MAX.
2388 * filedef.h: Use them; remove FILE_TIMESTAMP_MIN.
2390 1998-07-30 Paul Eggert <eggert@twinsun.com>
2392 Add support for sub-second timestamp resolution on hosts that
2393 support it (just Solaris 2.6, so far).
2395 * acconfig.h (HAVE_ST_MTIM, uintmax_t): New undefs.
2396 * acinclude.m4 (jm_AC_HEADER_INTTYPES_H, AC_STRUCT_ST_MTIM,
2397 jm_AC_TYPE_UINTMAX_T): New defuns.
2398 * commands.c (delete_target): Convert file timestamp to
2399 seconds before comparing to archive timestamp. Extract mod
2400 time from struct stat using FILE_TIMESTAMP_STAT_MODTIME.
2401 * configure.in (C_STRUCT_ST_MTIM, jm_AC_TYPE_UINTMAX_T): Add.
2402 (AC_CHECK_LIB, AC_CHECK_FUNCS): Add clock_gettime.
2403 * file.c (snap_deps): Use FILE_TIMESTAMP, not time_t.
2404 (file_timestamp_now, file_timestamp_sprintf): New functions.
2405 (print_file): Print file timestamps as FILE_TIMESTAMP, not
2407 * filedef.h: Include <inttypes.h> if available and if HAVE_ST_MTIM.
2408 (FILE_TIMESTAMP, FILE_TIMESTAMP_STAT_MODTIME, FILE_TIMESTAMP_MIN,
2409 FILE_TIMESTAMPS_PER_S, FILE_TIMESTAMP_FROM_S_AND_NS,
2410 FILE_TIMESTAMP_DIV, FILE_TIMESTAMP_MOD, FILE_TIMESTAMP_S,
2411 FILE_TIMESTAMP_NS, FILE_TIMESTAMP_PRINT_LEN_BOUND): New macros.
2412 (file_timestamp_now, file_timestamp_sprintf): New decls.
2413 (struct file.last_mtime, f_mtime, file_mtime_1, NEW_MTIME):
2414 time_t -> FILE_TIMESTAMP.
2415 * implicit.c (pattern_search): Likewise.
2416 * vpath.c (vpath_search, selective_vpath_search): Likewise.
2417 * main.c (main): Likewise.
2418 * remake.c (check_dep, name_mtime, library_search, f_mtime): Likewise.
2419 (f_mtime): Use file_timestamp_now instead of `time'.
2420 Print file timestamp with file_timestamp_sprintf.
2421 * vpath.c (selective_vpath_search): Extract file time stamp from
2422 struct stat with FILE_TIMESTAMP_STAT_MODTIME.
2424 1998-07-28 Paul D. Smith <psmith@gnu.org>
2426 * Version 3.77 released.
2428 * dosbuild.bat: Change to DOS CRLF line terminators.
2430 * make-stds.texi: Update from latest version.
2432 * make.texinfo (Options Summary): Clarify that the -r option
2433 affects only rules, not builtin variables.
2435 1998-07-27 Paul D. Smith <psmith@gnu.org>
2437 * make.h: Make __attribute__ resolve to empty for non-GCC _and_
2440 * misc.c (log_access): Print UID/GID's as unsigned long int for
2441 maximum portability.
2443 * job.c (reap_children): Print PIDs as long int for maximum
2446 1998-07-24 Eli Zaretskii <eliz@is.elta.co.il>
2448 * Makefile.DOS (*_INSTALL, *_UNINSTALL): Replace `true' with `:'.
2450 1998-07-25 Paul D. Smith <psmith@gnu.org>
2452 * Version 3.76.94 released.
2454 1998-07-23 Paul D. Smith <psmith@gnu.org>
2456 * config.h.W32.template: Make sure all the #defines of macros here
2457 have a value (e.g., use ``#define HAVE_STRING_H 1'' instead of
2458 just ``#define HAVE_STRING_H''. Keeps the preprocessor happy in
2461 * make.h: Remove __attribute__((format...)) stuff; using it with
2462 un-prototyped functions causes older GCC's to fail.
2464 * Version 3.76.93 released.
2466 1998-07-22 Paul D. Smith <psmith@gnu.org>
2468 * file.c (print_file_data_base): Fix average calculation.
2470 1998-07-20 Paul D. Smith <psmith@gnu.org>
2472 * main.c (die): Postpone the chdir() until after
2473 remove_intermediates() so that intermediate targets with relative
2474 pathnames are removed properly.
2476 1998-07-17 Paul D. Smith <psmith@gnu.org>
2478 * filedef.h (struct file): New flag: did we print an error or not?
2480 * remake.c (no_rule_error): New function to print error messages,
2481 extraced from remake_file().
2483 * remake.c (remake_file): Invoke the new error print function.
2484 (update_file_1): Invoke the error print function if we see that we
2485 already tried this target and it failed, but that an error wasn't
2486 printed for it. This can happen if a file is included with
2487 -include or sinclude and couldn't be built, then later is also
2488 the dependency of another target. Without this change, make just
2491 1998-07-16 Paul D. Smith <psmith@gnu.org>
2493 * make.texinfo: Removed "beta" version designator.
2494 Updated ISBN for the next printing.
2496 1998-07-13 Paul Eggert <eggert@twinsun.com>
2498 * acinclude.m4: New AC_LFS macro to determine if special compiler
2499 flags are needed to allow access to large files (e.g., Solaris 2.6).
2500 * configure.in: Invoke it.
2502 1998-07-08 Eli Zaretskii <eliz@is.elta.co.il>
2504 * Makefile.DOS: track changes in Makefile.in.
2506 1998-07-07 Paul D. Smith <psmith@gnu.org>
2508 * remote-cstms.c (start_remote_job): Move gethostbyaddr() to the
2509 top so host is initialized early enough.
2511 * acinclude.m4: New file. Need some special autoconf macros to
2512 check for network libraries (-lsocket, -lnsl, etc.) when
2513 configuring Customs.
2515 * configure.in (make_try_customs): Invoke new network libs macro.
2517 1998-07-06 Paul D. Smith <psmith@gnu.org>
2519 * Version 3.76.92 released.
2521 * README.customs: Added to the distribution.
2523 * configure.in (make_try_customs): Rewrite to require an installed
2524 Customs library, rather than looking at the build directory.
2526 * Makefile.am (man_MANS): Install make.1.
2527 * make.1: Renamed from make.man.
2529 * make.texinfo (Bugs): New mailing list address for GNU make bug
2532 1998-07-02 Paul D. Smith <psmith@gnu.org>
2534 * Version 3.76.91 released.
2536 * default.c: Added default rule for new-style RCS master file
2537 storage; ``% :: RCS/%''.
2538 Added default rules for DOS-style C++ files with suffix ".cpp".
2539 They use the new LINK.cpp and COMPILE.cpp macros, which are set by
2540 default to be equal to LINK.cc and COMPILE.cc.
2542 1998-06-19 Eli Zaretskii <eliz@is.elta.co.il>
2544 * job.c (start_job_command): Reset execute_by_shell after an empty
2545 command was skipped.
2547 1998-06-09 Paul D. Smith <psmith@gnu.org>
2549 * main.c (main): Keep track of the temporary filename created when
2550 reading a makefile from stdin (-f-) and attempt to remove it
2551 as soon as we know we're not going to re-exec. If we are, add it
2552 to the exec'd make's cmd line with "-o" so the exec'd make doesn't
2553 try to rebuild it. We still have a hole: if make re-execs then
2554 the temporary file will never be removed. To fix this we'd need
2555 a brand new option that meant "really delete this".
2556 * AUTHORS, getopt.c, getopt1.c, getopt.h, main.c (print_version):
2557 Updated mailing addresses.
2559 1998-06-08 Paul D. Smith <psmith@gnu.org>
2561 * main.c (main): Andreas Luik <luik@isa.de> points out that the
2562 check for makefile :: rules with commands but no dependencies
2563 causing a loop terminates incorrectly.
2565 * maintMakefile: Make a template for README.DOS to update version
2568 1998-05-30 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2570 * remake.c (update_file_1): Don't free the memory for the
2571 dependency structure when dropping a circular dependency.
2573 1998-05-30 Eli Zaretskii <eliz@is.elta.co.il>
2575 * dir.c (file_exists_p, file_impossible_p, file_impossible)
2576 [__MSDOS__, WINDOWS32]: Retain trailing slash in "d:/", and make
2577 dirname of "d:foo" be "d:".
2579 1998-05-26 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2581 * read.c (read_makefile): Avoid running past EOS when scanning
2582 file name after `include'.
2584 1998-05-26 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2586 * make.texinfo (Flavors): Correct description of conditional
2587 assignment, which is not equivalent to ifndef.
2588 (Setting): Likewise.
2590 1998-05-24 Paul D. Smith <psmith@gnu.org>
2592 * arscan.c (ar_name_equal): strncmp() might be implemented as a
2593 macro, so don't put preprocessor conditions inside the arguments
2596 1998-05-23 Eli Zaretskii <eliz@is.elta.co.il>
2598 * read.c (read_makefile) [__MSDOS__, WINDOWS32]: Skip colons in
2599 drive specs when parsing targets, target-specific variables and
2600 static pattern rules. A colon can only be part of drive spec if
2601 it is after the first letter in a token.
2603 1998-05-22 Eli Zaretskii <eliz@is.elta.co.il>
2605 * remake.c (f_mtime) [__MSDOS__]: Allow up to 3 sec of skew before
2606 yelling bloody murder.
2608 * dosbuild.bat: Use -DINCLUDEDIR= and -DLIBDIR= where appropriate.
2610 * read.c (parse_file_seq): Combine the special file-handling code
2611 for WINDOWS32 and __MSDOS__ into a single snippet.
2612 (get_next_mword) [__MSDOS__, WINDOWS32]: Allow a word to include a
2613 colon as part of a drive spec.
2615 * job.c (batch_mode_shell) [__MSDOS__]: Declare.
2617 1998-05-20 Paul D. Smith <psmith@gnu.org>
2619 * Version 3.76.90 released.
2621 1998-05-19 Paul D. Smith <psmith@gnu.org>
2623 * make.texinfo (Make Errors): Added a new appendix describing
2624 common errors make might generate and how to resolve them (or at
2625 least more information on what they mean).
2627 * maintMakefile (NMAKEFILES): Use the new automake 1.3 feature
2628 to create a dependency file to construct Makefile.DOS, SMakefile,
2630 (.dep_segment): Generate the dependency fragment file.
2632 1998-05-14 Paul D. Smith <psmith@gnu.org>
2634 * make.man: Minor changes.
2636 1998-05-13 Paul D. Smith <psmith@gnu.org>
2638 * function.c (pattern_matches,expand_function): Change variables
2639 and types named "word" to something else, to avoid compilation
2640 problems on Cray C90 Unicos.
2641 * variable.h: Modify the function prototype.
2643 1998-05-11 Rob Tulloh <rob_tulloh@tivoli.com>
2645 * job.c (construct_command_argv_internal) [WINDOWS32]: Turn off
2646 echo when using a batch file, and make sure the command ends in a
2649 1998-05-03 Paul D. Smith <psmith@gnu.org>
2651 * configure.in (make_try_customs): Add some customs flags if the
2652 user configures custom support.
2654 * job.c, remote-cstms.c: Merge in changes for custom library.
2656 * remote-stub.c: Add option to stub start_remote_job_p().
2658 1998-05-01 Paul D. Smith <psmith@gnu.org>
2660 * remake.c (f_mtime): Install VPATH+ handling for archives; use
2661 the hname field instead of the name field, and rehash when
2664 1998-04-30 Paul D. Smith <psmith@gnu.org>
2666 * rule.c (print_rule_data_base): Print out any pattern-specific
2667 variable values into the rules database.
2669 * variable.c (print_variable_set): Make this variable extern, to
2670 be called by print_rule_data_base() for pattern-specific variables.
2672 * make.texinfo (Pattern-specific): Document pattern-specific
2675 1998-04-29 Paul D. Smith <psmith@gnu.org>
2677 * expand.c (variable_expand_for_file): Make static; its only
2678 called internally. Look up this target in the list of
2679 pattern-specific variables and insert the variable set into the
2680 queue to be searched.
2682 * filedef.h (struct file): Add a new field to hold the
2683 previously-found pattern-specific variable reference. Add a new
2684 flag to remember whether we already searched for this file.
2686 * rule.h (struct pattern_var): New structure for storing
2687 pattern-specific variable values. Define new function prototypes.
2689 * rule.c: New variables pattern_vars and last_pattern_var for
2690 storage and handling of pattern-specific variable values.
2691 (create_pattern_var): Create a new pattern-specific variable value
2693 (lookup_pattern_var): Try to match a target to one of the
2694 pattern-specific variable values.
2696 1998-04-22 Paul D. Smith <psmith@gnu.org>
2698 * make.texinfo (Target-specific): Document target-specific
2701 1998-04-21 Paul D. Smith <psmith@gnu.org>
2703 * variable.c (define_variable_in_set): Made globally visible.
2704 (lookup_variable_in_set): New function: like lookup_variable but
2705 look only in a specific variable set.
2706 (target_environment): Use lookup_variable_in_set() to get the
2707 correct export rules for a target-specific variable.
2708 (create_new_variable_set): Create a new variable set, and just
2709 return it without installing it anywhere.
2710 (push_new_variable_scope): Reimplement in terms of
2711 create_new_variable_set.
2713 * read.c (record_target_var): Like record_files, but instead of
2714 files create a target-specific variable value for each of the
2715 listed targets. Invoked from read_makefile() when the target line
2716 turns out to be a target-specific variable assignment.
2718 1998-04-19 Paul D. Smith <psmith@gnu.org>
2720 * read.c (read_makefile): Rewrite the entire target parsing
2721 section to implement target-specific variables. In particular, we
2722 cannot expand the entire line as soon as it's read in, since we
2723 may want to evaluate parts of it with different variable contexts
2724 active. Instead, start expanding from the beginning until we find
2725 the `:' (or `::'), then determine what kind of line this is and
2726 continue appropriately.
2728 * read.c (get_next_mword): New function to parse a makefile line
2729 by "words", considering an entire variable or function as one
2730 word. Return the type read in, along with its starting position
2732 (enum make_word_type): The types of words that are recognized by
2735 * variable.h (struct variable): Add a flag to specify a per-target
2738 * expand.c: Make variable_buffer global. We need this during the
2739 new parsing of the makefile.
2740 (variable_expand_string): New function. Like variable_expand(),
2741 but start at a specific point in the buffer, not the beginning.
2742 (variable_expand): Rewrite to simply call variable_expand_string().
2744 1998-04-13 Paul D. Smith <psmith@gnu.org>
2746 * remake.c (update_goal_chain): Allow the rebuilding makefiles
2747 step to use parallel jobs. Not sure why this was disabled:
2748 hopefully we won't find out :-/.
2750 1998-04-11 Paul D. Smith <psmith@gnu.org>
2752 * main.c (main): Set the CURDIR makefile variable.
2753 * make.texinfo (Recursion): Document it.
2755 1998-03-17 Paul D. Smith <psmith@gnu.org>
2757 * misc.c (makefile_fatal): If FILE is nil, invoke plain fatal().
2758 * variable.c (try_variable_definition): Use new feature.
2760 1998-03-10 Paul D. Smith <psmith@gnu.org>
2762 * main.c (main): Don't pass included, rebuilt makefiles to
2763 re-exec'd makes with -o. Reopens a possible loop, but it caused
2766 1998-03-02 Paul D. Smith <psmith@gnu.org>
2768 * variable.c (try_variable_definition): Implement ?=.
2769 * make.texinfo (Setting): Document it.
2771 1998-02-28 Eli Zaretskii <eliz@is.elta.co.il>
2773 * job.c (start_job_command): Reset execute_by_shell after an empty
2774 command, like ":", has been seen.
2776 Tue Oct 07 15:00:00 1997 Phil Brooks <phillip_brooks@hp.com>
2778 * make.h [WINDOWS32]: make case sensitivity configurable
2779 * dir.c [WINDOWS32]: make case sensitivity configurable
2780 * README.W32: Document case sensitivity
2781 * config.ami: Share case warping code with Windows
2783 Mon Oct 6 18:48:45 CDT 1997 Rob Tulloh <rob_tulloh@dev.tivoli.com>
2785 * w32/subproc/sub_proc.c: Added support for MKS toolkit shell
2786 (turn on HAVE_MKS_SHELL).
2787 * read.c [WINDOWS32]: Fixed a problem with multiple target rules
2788 reported by Gilbert Catipon (gcatipon@tibco.com). If multiple
2789 path tokens in a rule did not have drive letters, make would
2790 incorrectly concatenate the 2 tokens together.
2791 * main.c/variable.c [WINDOWS32]: changed SHELL detection code to
2792 follow what MSDOS did. In addition to watching for SHELL variable
2793 updates, make's main will attempt to default the value of SHELL
2794 before and after makefiles are parsed.
2795 * job.c/job.h [WINDOWS32]: The latest changes made to enable use
2796 of the GNUWIN32 shell from make could cause make to fail due to a
2797 concurrency condition between parent and child processes. Make
2798 now creates a batch file per job instead of trying to reuse the
2799 same singleton batch file.
2800 * job.c/job.h/function.c/config.h.W32 [WINDOWS32]: Renamed macro
2801 from HAVE_CYGNUS_GNUWIN32_TOOLS to BATCH_MODE_ONLY_SHELL. Reworked
2802 logic to reduce complexity. WINDOWS32 now uses the unixy_shell
2803 variable to detect Bourne-shell compatible environments. There is
2804 also a batch_mode_shell variable that determines whether not
2805 command lines should be executed via script files. A WINDOWS32
2806 system with no sh.exe installed would have unixy_shell set to
2807 FALSE and batch_mode_shell set to TRUE. If you have a unixy shell
2808 that does not behave well when invoking things via 'sh -c xxx',
2809 you may want to turn on BATCH_MODE_ONLY_SHELL and see if things
2811 * NMakefile: Added /D DEBUG to debug build flags so that unhandled
2812 exceptions could be debugged.
2814 Mon Oct 6 00:04:25 1997 Rob Tulloh <rob_tulloh@dev.tivoli.com>
2816 * main.c [WINDOWS32]: The function define_variable() does not
2817 handle NULL. Test before calling it to set Path.
2818 * main.c [WINDOWS32]: Search Path again after makefiles have been
2819 parsed to detect sh.exe.
2820 * job.c [WINDOWS32]: Added support for Cygnus GNU WIN32 tools.
2821 To use, turn on HAVE_CYGNUS_GNUWIN32_TOOLS in config.h.W32.
2822 * config.h.W32: Added HAVE_CYGNUS_GNUWIN32_TOOLS macro.
2824 Sun Oct 5 22:43:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
2826 * glob/glob.c (glob_in_dir) [VMS]: Globbing shouldn't be
2828 * job.c (child_execute_job) [VMS]: Use a VMS .com file if the
2829 command contains a newline (e.g. from a define/enddef block).
2830 * vmsify.c (vmsify): Return relative pathnames wherever possible.
2831 * vmsify.c (vmsify): An input string like "../.." returns "[--]".
2833 Wed Oct 1 15:45:09 1997 Rob Tulloh <rob_tulloh@tivoli.com>
2835 * NMakefile: Changed nmake to $(MAKE).
2836 * subproc.bat: Take the make command name from the command
2837 line. If no command name was given, default to nmake.
2838 * job.c [MSDOS, WINDOWS32]: Fix memory stomp: temporary file names
2839 are now always created in heap memory.
2840 * w32/subproc/sub_proc.c: New implementation of make_command_line()
2841 which is more compatible with different Bourne shell implementations.
2842 Deleted the now obsolete fix_command_line() function.
2843 * main.c [WINDOWS32]: Any arbitrary spelling of Path can be
2844 detected. Make will ensure that the special spelling `Path' is
2845 inserted into the environment when the path variable is propagated
2846 within itself and to make's children.
2847 * main.c [WINDOWS32]: Detection of sh.exe was occurring too
2848 soon. The 2nd check for the existence of sh.exe must come after
2849 the call to read_all_makefiles().
2851 Fri Sep 26 01:14:18 1997 <zinser@axp602.gsi.de>
2853 * makefile.com [VMS]: Fixed definition of sys.
2854 * readme.vms: Comments on what's changed lately.
2856 Fri Sep 26 01:14:18 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
2858 * read.c (read_all_makefiles): Allow make to find files named
2859 "MAKEFILE" with no extension on VMS.
2860 * file.c (lookup_file): Lowercase filenames on VMS.
2862 1997-09-29 Paul D. Smith <psmith@baynetworks.com>
2864 * read.c (read_makefile): Reworked target detection again; the old
2865 version had an obscure quirk.
2867 Fri Sep 19 09:20:49 1997 Paul D. Smith <psmith@baynetworks.com>
2869 * Version 3.76.1 released.
2871 * Makefile.am: Add loadavg files to clean rules.
2873 * configure.in (AC_OUTPUT): Remove stamp-config; no longer needed.
2874 * Makefile.ami (distclean): Ditto.
2875 * SMakefile (distclean): Ditto.
2877 * main.c (main): Arg count should be int, not char! Major braino.
2879 Tue Sep 16 10:18:22 1997 Paul D. Smith <psmith@baynetworks.com>
2881 * Version 3.76 released.
2883 Tue Sep 2 10:07:39 1997 Paul D. Smith <psmith@baynetworks.com>
2885 * function.c (expand_function): When processing $(shell...)
2886 translate a CRLF (\r\n) sequence as well as a newline (\n) to a
2887 space. Also remove an ending \r\n sequence.
2888 * make.texinfo (Shell Function): Document it.
2890 Fri Aug 29 12:59:06 1997 Rob Tulloh <rob_tulloh@tivoli.com>
2892 * w32/pathstuff.c (convert_Path_to_windows32): Fix problem where
2893 paths which contain single character entries like `.' are not
2896 * README.W32: Document path handling issues on Windows systems.
2898 Fri Aug 29 02:01:27 1997 Paul D. Smith <psmith@baynetworks.com>
2902 Thu Aug 28 19:39:06 1997 Rob Tulloh <rob_tulloh@tivoli.com>
2904 * job.c (exec_command) [WINDOWS32]: If exec_command() is invoked
2905 from main() to re-exec make, the call to execvp() would
2906 incorrectly return control to parent shell before the exec'ed
2907 command could run to completion. I believe this is a feature of
2908 the way that execvp() is implemented on top of WINDOWS32 APIs. To
2909 alleviate the problem, use the supplied process launch function in
2910 the sub_proc library and suspend the parent process until the
2911 child process has run. When the child exits, exit the parent make
2912 with the exit code of the child make.
2914 Thu Aug 28 17:04:47 1997 Paul D. Smith <psmith@baynetworks.com>
2916 * Makefile.DOS.template (distdir): Fix a line that got wrapped in
2919 * Makefile.am (loadavg): Give the necessary cmdline options when
2922 * configure.in: Check for pstat_getdynamic for getloadvg on HP.
2924 * job.c (start_job_command) [VMS, _AMIGA]: Don't perform empty
2925 command optimization on these systems; it doesn't make sense.
2927 Wed Aug 27 17:09:32 1997 Paul D. Smith <psmith@baynetworks.com>
2931 Tue Aug 26 11:59:15 1997 Paul D. Smith <psmith@baynetworks.com>
2933 * main.c (print_version): Add '97 to copyright years.
2935 * read.c (do_define): Check the length of the array before looking
2936 at a particular offset.
2938 * job.c (construct_command_argv_internal): Examine the last byte
2939 of the previous arg, not the byte after that.
2941 Sat Aug 23 1997 Eli Zaretskii <eliz@is.elta.co.il>
2943 * Makefile.DOS.template: New file (converted to Makefile.DOS in
2946 * configure.bat: Rewrite to use Makefile.DOS instead of editing
2947 Makefile.in. Add support for building from outside of the source
2948 directory. Fail if the environment block is too small.
2950 * configh.dos: Use <sys/config.h>.
2952 * README.DOS: Update instructions.
2954 Fri Aug 22 1997 Eli Zaretskii <eliz@is.elta.co.il>
2956 * job.c (start_job_command) [__MSDOS__]: Don't test for "/bin/sh"
2957 literally, use value of unixy_shell instead.
2959 * filedef.h (NEW_MTIME): Use 1 less than maximum possible value if
2962 Sat Aug 16 00:56:15 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
2964 * vmsify.c (vmsify, case 11): After translating `..' elements, set
2965 nstate to N_OPEN if there are still more elements to process.
2966 (vmsify, case 2): After translating `foo/bar' up to the slash,
2967 set nstate to N_OPEN, not N_DOT.
2969 Fri Aug 8 15:18:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
2971 * dir.c (vmsstat_dir): Leave name unmodified on exit.
2972 * make.h (PATH_SEPARATOR_CHAR): Set to comma for VMS.
2973 * vpath.c: Fix comments to refer to path separator, not colon.
2974 (selective_vpath_search): Avoid Unixy slash handling for VMS.
2976 Thu Aug 7 22:24:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
2978 * ar.c [VMS]: Don't declare ar_member_touch.
2979 Delete VMS version of ar_member_date.
2980 Enable non-VMS versions of ar_member_date and ar_member_date_1 for
2982 * arscan.c (VMS_get_member_info): New function.
2983 (ar_scan): Provide version for VMS systems.
2984 (ar_name_equal): Simply compare name and mem on VMS systems.
2985 Don't define ar_member_pos or ar_member_touch on VMS systems.
2987 * config.h-vms (pid_t, uid_t): Don't define.
2989 * remake.c: Delete declaration of vms_stat.
2990 (name_mtime): Don't call vms_stat.
2991 (f_mtime) [VMS]: Funky time value manipulation no longer necessary.
2993 * file.c (print_file): [VMS] Use ctime, not cvt_time.
2995 * make.h [VMS]: Don't define POSIX.
2997 * makefile.com (filelist): Include ar and arscan.
2998 Also include them in the link commands.
2999 Don't define NO_ARCHIVES in cc command.
3001 * makefile.vms (ARCHIVES, ARCHIVES_SRC): Uncomment.
3002 (defines): Delete NO_ARCHIVES from list.
3004 * remake.c (f_mtime): Only check to see if intermediate file is
3005 out of date if it also exists (i.e., mtime != (time_t) -1).
3007 * vmsdir.h (u_long, u_short): Skip typedefs if using DEC C.
3009 Fri Jun 20 23:02:07 1997 Rob Tulloh <rob_tulloh@tivoli.com>
3011 * w32/subproc/sub_proc.c: Get W32 sub_proc to handle shebang
3012 (#!/bin/sh) in script files correctly.
3013 Fixed a couple of memory leaks.
3014 Fixed search order in find_file() (w32/subproc/sub_proc.c) so that
3015 files with extensions are preferred over files without extensions.
3016 Added search for files with .cmd extension too.
3017 * w32/subproc/misc.c (arr2envblk): Fixed memory leak.
3019 Mon Aug 18 09:41:08 1997 Paul D. Smith <psmith@baynetworks.com>
3023 Fri Aug 15 13:50:54 1997 Paul D. Smith <psmith@baynetworks.com>
3025 * read.c (do_define): Remember to count the newline after the endef.
3027 Thu Aug 14 23:14:37 1997 Paul D. Smith <psmith@baynetworks.com>
3029 * many: Rewrote builds to use Automake 1.2.
3031 * AUTHORS: New file.
3032 * maintMakefile: Contains maintainer-only make snippets.
3033 * GNUmakefile: This now only runs the initial auto* tools.
3034 * COPYING,texinfo.tex,mkinstalldirs,install-sh: Removed (obtained
3035 automatically by automake).
3036 * compatMakefile: Removed (not needed anymore).
3037 * README,build.sh.in: Removed (built from templates).
3038 * config.h.in,Makefile.in: Removed (built by tools).
3040 Wed Aug 13 02:22:08 1997 Paul D. Smith <psmith@baynetworks.com>
3042 * make.texinfo: Updates for DOS/Windows information (Eli Zaretskii)
3043 * README,README.DOS: Ditto.
3045 * remake.c (update_file_1,f_mtime): Fix GPATH handling.
3046 * vpath.c (gpath_search): Ditto.
3048 * file.c (rename_file): New function: rehash, but also rename to
3050 * filedef.h: Declare it.
3052 * variable.c (merge_variable_set_lists): Remove free() of variable
3053 set; since various files can share variable sets we don't want to
3056 Tue Aug 12 10:51:54 1997 Paul D. Smith <psmith@baynetworks.com>
3058 * configure.in: Require autoconf 2.12
3060 * make.texinfo: Replace all "cd subdir; $(MAKE)" examples with a
3061 more stylistically correct "cd subdir && $(MAKE)".
3063 * main.c: Global variable `clock_skew_detected' defined.
3064 (main): Print final warning if it's set.
3065 * make.h: Declare it.
3066 * remake.c (f_mtime): Test and set it.
3068 * job.c (start_job_command): Add special optimizations for
3069 "do-nothing" rules, containing just the shell no-op ":". This is
3070 useful for timestamp files and can make a real difference if you
3071 have a lot of them (requested by Fergus Henderson <fjh@cs.mu.oz.au>).
3073 * configure.in,Makefile.in: Rewrote to use the new autoconf
3074 program_transform_name macro.
3076 * function.c (function_strip): Strip newlines as well as spaces
3079 Fri Jun 6 23:41:04 1997 Rob Tulloh <rob_tulloh@tivoli.com>
3081 * remake.c (f_mtime): Datestamps on FAT-based files are rounded to
3082 even seconds when stored, so if the date check fails on WINDOWS32
3083 systems, see if this "off-by-one" error is the problem.
3085 * General: If your TZ environment variable is not set correctly
3086 then all your timestamps will be off by hours. So, set it!
3088 Mon Apr 7 02:06:22 1997 Paul D. Smith <psmith@baynetworks.com>
3092 * compatMakefile (objs): Define & use the $(GLOB) variable so
3093 that it's removed correctly from build.sh.in when it's built.
3095 * configure.in: On Solaris we can use the kstat_*() functions to
3096 get load averages without needing special permissions. Add a
3097 check for -lkstat to see if we have it.
3099 * getloadavg.c (getloadavg): Use HAVE_LIBKSTAT instead of SUN5 as
3100 the test to enable kstat_open(), etc. processing.
3102 Fri Apr 4 20:21:18 1997 Eli Zaretskii <eliz@is.elta.co.il>
3104 * <lots>: Fixes to work in the DJGPP DOS environment.
3106 Mon Mar 31 02:42:52 1997 Paul D. Smith <psmith@baynetworks.com>
3108 * function.c (expand_function): Added new function $(wordlist).
3110 * make.texinfo (Filename Functions): Document $(wordlist) function.
3112 * vpath.c (build_vpath_lists): Construct the GPATH variable
3113 information in the same manner we used to construct VPATH.
3114 (gpath_search): New function to search GPATH.
3116 * make.h: Declare the new function.
3118 * remake.c (update_file_1): Call it, and keep VPATH if it's found.
3120 * make.texinfo (Search Algorithm): Document GPATH variable.
3122 Sun Mar 30 20:57:16 1997 Paul D. Smith <psmith@baynetworks.com>
3124 * main.c (handle_non_switch_argument): Defined the MAKECMDGOALS
3125 variable to contain the user options passed in on the cmd line.
3127 * make.texinfo (Goals): Document MAKECMDGOALS variable.
3129 * remake.c (f_mtime): Print a warning if we detect a clock skew
3130 error, rather than failing.
3132 * main.c (main): If we rebuild any makefiles and need to re-exec,
3133 add "-o<mkfile>" options for each makefile rebuilt to avoid
3136 Fri Mar 28 15:26:05 1997 Paul D. Smith <psmith@baynetworks.com>
3138 * job.c (construct_command_argv_internal): Track whether the last
3139 arg in the cmd string was empty or not (Roland).
3140 (construct_command_argv_internal): If the shell line is empty,
3141 don't do anything (Roland).
3143 * glob/glob.h,glob/glob.c,glob/fnmatch.c,glob/fnmatch.h: Install
3144 the latest changes from the GLIBC version of glob (Ulrich Drepper).
3146 * getloadavg.c,make-stds.texi: New version (Roland).
3148 * (ALL): Changed WIN32 to W32 or WINDOWS32 (RMS).
3150 Mon Mar 24 15:33:34 1997 Rob Tulloh <rob_tulloh@tivoli.com>
3152 * README.W32: Describe preliminary FAT support.
3154 * build_w32.bat: Use a variable for the final exe name.
3156 * dir.c (find_directory): W32: Find the filesystem type.
3157 (dir_contents_file_exists_p): W32: for FAT filesystems, always
3158 rehash since FAT doesn't change directory mtime on change.
3160 * main.c (handle_runtime_exceptions): W32: Add an
3161 UnhandledExceptionFilter so that when make bombs due to ^C or a
3162 bug, it won't cause a GUI requestor to pop up unless debug is
3166 Mon Mar 24 00:57:34 1997 Paul D. Smith <psmith@baynetworks.com>
3168 * configure.in, config.h.in, config.ami, config.h-vms, config.h.w32:
3169 Check for memmove() function.
3171 * make.h (bcopy): If memmove() available, define bcopy() to use it.
3172 Otherwise just use bcopy(). Don't use memcpy(); it's not guaranteed
3173 to handle overlapping moves.
3175 * read.c (read_makefile): Fix some uninitialized memory reads
3176 (reported by Purify).
3178 * job.c (construct_command_argv_internal): Use bcopy() not
3179 strcpy(); strcpy() isn't guaranteed to handle overlapping moves.
3181 * Makefile.in: Change install-info option ``--infodir'' to
3182 ``--info-dir'' for use with new texinfo.
3184 * function.c (expand_function): $(basename) and $(suffix) should
3185 only search for suffixes as far back as the last directory (e.g.,
3186 only the final filename in the path).
3188 Sun Mar 23 00:13:05 1997 Paul D. Smith <psmith@baynetworks.com>
3190 * make.texinfo: Add @dircategory/@direntry information.
3191 (Top): Remove previous reference to (dir) (from RMS).
3192 (Static Usage): Add "all:" rule to example.
3193 (Automatic Dependencies): fix .d file creation example.
3195 * Install VPATH+ patch:
3197 * filedef.h (struct file): Add in hname field to store the hashed
3198 filename, and a flag to remember if we're using the vpath filename
3199 or not. Renamed a few functions for more clarity.
3201 * file.c (lookup_file,enter_file,file_hash_enter): Store filenames
3202 in the hash table based on their "hash name". We can change this
3203 while keeping the original target in "name".
3204 (rehash_file): Renamed from "rename_file" to be more accurate.
3205 Changes the hash name, but not the target name.
3207 * remake.c (update_file_1): Modify -d output for more detailed
3208 VPATH info. If we don't need to rebuild, use the VPATH name.
3209 (f_mtime): Don't search for vpath if we're ignoring it. Call
3210 renamed function rehash_file. Call name_mtime instead of
3211 file_mtime, to avoid infinite recursion since the file wasn't
3214 * implicit.c (pattern_search): if we find an implicit file in
3215 VPATH, save the original name not the VPATH name.
3217 * make.texinfo (Directory Search): Add a section on the new VPATH
3220 Sun Dec 1 18:36:04 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3222 * dir.c (file_exists_p, file_impossible, file_impossible_p): If
3223 dirname is empty replace it by the name of the root directory.
3224 Note that this doesn't work (yet) for W32, Amiga, or VMS.
3226 Tue Oct 08 13:57:03 1996 Rob Tulloh <tulloh@tivoli.com>
3228 * main.c (main): W32 bug fix for PATH vars.
3230 Tue Sep 17 1996 Paul Eggert <eggert@twinsun.com>
3232 * filedef.h (NEW_MTIME): Don't assume that time_t is a signed
3235 * make.h: (CHAR_BIT, INTEGER_TYPE_SIGNED, INTEGER_TYPE_MAXIMUM,
3236 INTEGER_TYPE_MINIMUM): New macros.
3238 Tue Aug 27 01:06:34 1996 Roland McGrath <roland@baalperazim.frob.com>
3240 * Version 3.75 released.
3242 * main.c (print_version): Print out bug-reporting address.
3244 Mon Aug 26 19:55:47 1996 Roland McGrath <roland@baalperazim.frob.com>
3246 * main.c (print_data_base): Don't declare ctime; headers do it for us
3249 Sun Jul 28 15:37:09 1996 Rob Tulloh (tulloh@tivoli.com)
3251 * w32/pathstuff.c: Turned convert_vpath_to_w32() into a
3252 real function. This was done so that VPATH could contain
3253 white space separated pathnames. Please note that directory
3254 paths (in VPATH/vpath context) containing white space are not
3255 supported (just as they are not under Unix). See README.W32
3258 * w32/include/pathstuff.h: Added prototype for the new
3259 function convert_vpath_to_w32. Deleted macro for same.
3261 * README.W32: Added some notes about why I chose not to try
3262 and support pathnames which contain white space and some
3263 workaround suggestions.
3265 Thu Jul 25 19:53:31 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3267 * GNUmakefile (mkdep-nolib): Use -MM option unconditionally.
3271 * main.c (define_makeflags): Back up P to point at null terminator
3272 when killing final space and dash before setting MFLAGS.
3274 From Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>:
3275 * dir.c [__MSDOS__ && DJGPP > 1]: Include <libc/dosio.h> and defin
3276 `__opendir_flags' initialized to 0.
3277 (dosify) [__MSDOS__ && DJGPP > 1]: Return name unchanged if _USE_LFN.
3278 (find_directory) [__MSDOS__ && DJGPP > 1]: If _USE_LGN, set
3279 __opendir_flags to __OPENDIR_PRESERVE_CASE.
3281 * vmsfunctions.c (vms_stat): `sys$dassgn (DevChan);' added by kkaempf.
3283 * GNUmakefile (w32files): Add NMakefile.
3285 * NMakefile (LDFLAGS_debug): Value fixed by tulloh.
3287 Sat Jul 20 12:32:10 1996 Klaus Kämpf (kkaempf@progis.de)
3289 * remake.c (f_mtime) [VMS]: Add missing `if' conditional for future
3291 * config.h-vms, makefile.vms, readme.vms, vmsify.c: Update address.
3293 Sat Jul 20 05:29:43 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3295 * configure.in: Require autoconf 2.10 or later.
3297 Fri Jul 19 16:57:27 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3301 * GNUmakefile (w32files): New variable.
3302 (distfiles): Add it.
3303 * w32: Updated by Rob Tulloh.
3305 * makefile.vms (LOADLIBES): Fix typo.
3307 Sun Jul 14 12:59:27 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3309 * job.c (construct_command_argv_internal): Fix up #else, #endifs.
3311 * configh.dos: Define HAVE_DIRENT_H instead of DIRENT.
3313 * remake.c (f_mtime): Don't compare MTIME to NOW if MTIME == -1.
3317 * main.c (main): Exit with status 2 when update_goal_chain returns 2.
3319 Sat Jun 22 14:56:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3321 * configure.in: Don't check for _sys_siglist.
3322 * make.h [HAVE__SYS_SIGLIST]: Don't test this; just punt if there is
3323 no strsignal or sys_siglist.
3325 * read.c (conditional_line): Strip ws in `ifeq (a , b)' so it is the
3326 same as `ifeq (a, b)'.
3328 * job.c (reap_children): Don't call die if handling_fatal_signal.
3330 * file.c (file_hash_enter): Allow renaming :: to : when latter is
3331 non-target, or : to :: when former is non-target.
3333 * job.c (start_job_command): Call block_sigs.
3334 (block_sigs): New function, broken out of start_job_command.
3335 (reap_children): Block fatal signals around removing dead child from
3336 chain and adjusting job_slots_used.
3337 * job.h: Declare block_sigs.
3339 * remote-stub.c (remote_setup, remote_cleanup): New (empty) functions.
3340 * main.c (main): Call remote_setup.
3341 (die): Call remote_cleanup.
3343 * job.c (reap_children): Quiescent value of shell_function_pid is
3346 * main.c (print_version): Add 96 to copyright years.
3348 Sat Jun 15 20:30:01 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3350 * read.c (find_char_unquote): Avoid calling strlen on every call
3351 just to throw away the value most of the time.
3353 Sun Jun 2 12:24:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3355 * main.c (decode_env_switches): Prepend '-' to ARGV[1] if it contains
3356 no '=', regardless of ARGC.
3357 (define_makeflags): Elide leading '-' from MAKEFLAGS value if first
3358 word is short option, regardless of WORDS.
3360 Wed May 22 17:24:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3362 * makefile.vms: Set LOADLIBES.
3363 * makefile.com (link_using_library): Fix typo.
3365 Wed May 15 17:37:26 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3367 * dir.c (print_dir_data_base): Use %ld dev and ino and cast them to
3370 Wed May 15 10:14:14 CDT 1996 Rob Tulloh <tulloh@tivoli.com>
3372 * dir.c: W32 does not support inode. For now, fully qualified
3373 pathname along with st_mtime will be keys for files.
3374 Fixed problem where vpath can be confused when files
3375 are added to a directory after the directory has already been
3376 read in. The code now attempts to reread the directory if it
3377 discovers that the datestamp on the directory has changed since
3378 it was cached by make. This problem only seems to occur on W32
3379 right now so it is lumped under port #ifdef WINDOWS32.
3381 * function.c: W32: call subproc library (CreateProcess()) instead of
3384 * job.c: W32: Added the code to do fork/exec/waitpid style processing
3385 on W32 systems via calls to subproc library.
3387 * main.c: W32: Several things added here. First, there is code
3388 for dealing with PATH and SHELL defaults. Make tries to figure
3389 out if the user has %PATH% set in the environment and sets it to
3390 %Path% if it is not set already. Make also looks to see if sh.exe
3391 is anywhere to be found. Code path through job.c will change
3392 based on existence of a working Bourne shell. The checking for
3393 default shell is done twice: once before makefiles are read in
3394 and again after. Fall back to MSDOS style execution mode if no sh.exe
3395 is found. Also added some debug support that allows user to pause make
3396 with -D switch and attach a debugger. This is especially useful for
3397 debugging recursive calls to make where problems appear only in the
3400 * make.h: W32: A few macros and header files for W32 support.
3402 * misc.c: W32: Added a function end_of_token_w32() to assist
3403 in parsing code in read.c.
3405 * read.c: W32: Fixes similar to MSDOS which allow colon to
3406 appear in filenames. Use of colon in filenames would otherwise
3409 * remake.c: W32: Added include of io.h to eliminate compiler
3410 warnings. Added some code to default LIBDIR if it is not set
3413 * variable.c: W32: Added support for detecting Path/PATH
3414 and converting them to semicolon separated lists for make's
3415 internal use. New function sync_Path_environment()
3416 which is called in job.c and function.c before creating a new
3417 process. Caller must set Path in environment since we don't
3418 have fork() to do this for us.
3420 * vpath.c: W32: Added detection for filenames containing
3421 forward or backward slashes.
3423 * NMakefile: W32: Visual C compatible makefile for use with nmake.
3424 Use this to build GNU make the first time on Windows NT or Windows 95.
3426 * README.W32: W32: Contains some helpful notes.
3428 * build_w32.bat: W32: If you don't like nmake, use this the first
3429 time you build GNU make on Windows NT or Windows 95.
3431 * config.h.W32: W32 version of config.h
3433 * subproc.bat: W32: A bat file used to build the
3434 subproc library from the top-level NMakefile. Needed because
3435 WIndows 95 (nmake) doesn't allow you to cd in a make rule.
3437 * w32/include/dirent.h
3438 * w32/compat/dirent.c: W32: opendir, readdir, closedir, etc.
3440 * w32/include/pathstuff.h: W32: used by files needed functions
3441 defined in pathstuff.c (prototypes).
3443 * w32/include/sub_proc.h: W32: prototypes for subproc.lib functions.
3445 * w32/include/w32err.h: W32: prototypes for w32err.c.
3447 * w32/pathstuff.c: W32: File and Path/Path conversion functions.
3449 * w32/subproc/build.bat: W32: build script for subproc library
3450 if you don't wish to use nmake.
3452 * w32/subproc/NMakefile: W32: Visual C compatible makefile for use
3453 with nmake. Used to build subproc library.
3455 * w32/subproc/misc.c: W32: subproc library support code
3456 * w32/subproc/proc.h: W32: subproc library support code
3457 * w32/subproc/sub_proc.c: W32: subproc library source code
3458 * w32/subproc/w32err.c: W32: subproc library support code
3460 Mon May 13 14:37:42 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3464 * GNUmakefile (vmsfiles): Fix typo.
3466 * GNUmakefile (amigafiles): Add amiga.h.
3468 Sun May 12 19:19:43 1996 Aaron Digulla <digulla@fh-konstanz.de>
3470 * dir.c: New function: amigafy() to fold filenames
3471 Changes HASH() to HASHI() to fold filenames on Amiga.
3472 Stringcompares use strieq() instead of streq()
3473 The current directory on Amiga is "" instead of "."
3476 * amiga.c: New function wildcard_expansion(). Allows to use
3477 Amiga wildcards with $(wildcard )
3479 * amiga.h: New file. Prototypes for amiga.c
3481 * function.c: Use special function wildcard_expansion() for
3482 $(wildcard ) to allow Amiga wildcards
3483 The current directory on Amiga is "" instead of "."
3485 * job.c: No Pipes on Amiga, too
3486 (load_too_high) Neither on Amiga
3487 ENV variable on Amiga are in a special directory and are not
3488 passed as third argument to main().
3490 * job.h: No envp on Amiga
3492 * make.h: Added HASHI(). This is the same as HASH() but converts
3493 it's second parameter to lowercase on Amiga to fold filenames.
3495 * main.c: (main), variable.c Changed handling of ENV-vars. Make
3496 stores now the names of the variables only and reads their contents
3497 when they are accessed to reflect that these variables are really
3498 global (ie. they CAN change WHILE make runs !) This handling is
3499 made in lookup_variable()
3501 * Makefile.ami: renamed file.h to filedep.h
3502 Updated dependencies
3504 * read.c: "find_semicolon" is declared as static but never defined.
3505 No difference between Makefile and makefile on Amiga; added
3506 SMakefile to *default_makefiles[].
3507 (read_makefile) SAS/C want's two_colon and pattern_percent be set
3509 The current directory on Amiga is "" instead of "."
3510 Strange #endif moved.
3512 * README.Amiga: updated feature list
3514 * SMakefile: Updated dependencies
3516 * variable.c: Handling of ENV variable happens inside lookup_variable()
3518 Sat May 11 17:58:32 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3520 * variable.c (try_variable_definition): Count parens in lhs variable
3521 refs to avoid seeing =/:=/+= inside a ref.
3523 Thu May 9 13:54:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3525 * commands.c (fatal_error_signal) [SIGQUIT]: Make SIGQUIT check
3528 * main.c (main): Use unsigned for fread return.
3530 * read.c (parse_file_seq): Use `int' for char arg to avoid widening
3532 * dep.h: Fix prototype.
3534 * function.c (expand_function) [_AMIGA]: Fix some typos.
3535 (patsubst_expand): Make len vars unsigned.
3537 * GNUmakefile (globfiles): Add AmigaDOS support files.
3538 (distfiles): Add $(amigafiles).
3539 (amigafiles): New variable.
3541 Thu Nov 7 10:18:16 1995 Aaron Digulla <digulla@fh-konstanz.de>
3543 * Added Amiga support in commands.c, dir.c, function.c,
3544 job.c, main.c, make.h, read.c, remake.c
3545 * commands.c: Amiga has neither SIGHUP nor SIGQUIT
3546 * dir.c: Amiga has filenames with Upper- and Lowercase,
3547 but "FileName" is the same as "filename". Added strieq()
3548 which is use to compare filenames. This is like streq()
3549 on all other systems. Also there is no such thing as
3551 * function.c: On Amiga, the environment is not passed as envp,
3552 there are no pipes and Amiga can't fork. Use my own function
3553 to create a new child.
3554 * job.c: default_shell is "" (The system automatically chooses
3555 a shell for me). Have to use the same workaround as MSDOS for
3556 running batch commands. Added HAVE_SYS_PARAM_H. NOFILE isn't
3557 known on Amiga. Cloned code to run children from MSDOS. Own
3558 version of sh_chars[] and sh_cmds[]. No dup2() or dup() on Amiga.
3559 * main.c: Force stack to 20000 bytes. Read environment from ENV:
3560 device. On Amiga, exec_command() does return, so I exit()
3562 * make.h: Added strieq() to compare filenames.
3563 * read.c: Amiga needs special extension to have passwd. Only
3564 one include-dir. "Makefile" and "makefile" are the same.
3565 Added "SMakefile". Added special code to handle device names (xxx:)
3567 * remake.c: Only one lib-dir. Amiga link-libs are named "%s.lib"
3568 instead of "lib%s.a".
3569 * main.c, rule.c, variable.c: Avoid floats at all costs.
3570 * vpath.c: Get rid of as many alloca()s as possible.
3572 Thu May 9 13:20:43 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3574 * read.c (read_makefile): Grok `sinclude' as alias for `-include'.
3576 Wed Mar 20 09:52:27 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
3578 * GNUmakefile (vmsfiles): New variable.
3579 (distfiles): Include $(vmsfiles).
3581 Tue Mar 19 20:21:34 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
3583 Merged VMS port from Klaus Kaempf <kkaempf@didymus.rmi.de>.
3584 * make.h (PARAMS): New macro.
3585 * config.h-vms: New file.
3586 * makefile.com: New file.
3587 * makefile.vms: New file.
3588 * readme.vms: New file.
3589 * vmsdir.h: New file.
3590 * vmsfunctions.c: New file.
3591 * vmsify.c: New file.
3592 * file.h: Renamed to filedef.h to avoid conflict with VMS system hdr.
3593 * ar.c: Added prototypes and changes for VMS.
3594 * commands.c: Likewise.
3595 * commands.h: Likewise.
3596 * default.c: Likewise.
3599 * expand.c: Likewise.
3601 * function.c: Likewise.
3602 * implicit.c: Likewise.
3609 * remake.c: Likewise.
3610 * remote-stub.c: Likewise.
3613 * variable.c: Likewise.
3614 * variable.h: Likewise.
3615 * vpath.c: Likewise.
3616 * compatMakefile (srcs): Rename file.h to filedef.h.
3618 Sat Aug 19 23:11:00 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
3620 * remake.c (check_dep): For a secondary file, try implicit and
3621 default rules if appropriate.
3623 Wed Aug 2 04:29:42 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
3625 * remake.c (check_dep): If an intermediate file exists,
3626 do consider its actual date.
3628 Sun Jul 30 00:49:53 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
3630 * file.h (struct file): New field `secondary'.
3631 * file.c (snap_deps): Check for .INTERMEDIATE and .SECONDARY.
3632 (remove_intermediates): Don't delete .SECONDARY files.
3634 Sat Mar 2 16:26:52 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
3636 * compatMakefile (srcs): Add getopt.h; prepend $(srcdir)/ to getopt*.
3638 Fri Mar 1 12:04:47 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
3642 * remake.c (f_mtime): Move future modtime check before FILE is
3643 clobbered by :: loop.
3645 * dir.c: Use canonical code from autoconf manual for dirent include.
3646 [_D_NAMLEN]: Redefine NAMLEN using this.
3647 (dir_contents_file_exists_p): Use NAMLEN macro.
3648 (read_dirstream) [_DIRENT_HAVE_D_NAMLEN]: Only set d_namlen #if this.
3650 * compatMakefile (objs): Add missing backslash.
3652 Wed Feb 28 03:56:20 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
3654 * default.c (default_terminal_rules): Remove + prefix from RCS cmds.
3655 (default_variables): Put + prefix in $(CHECKOUT,v) value instead.
3657 * remake.c (f_mtime): Check for future timestamps; give error and mark
3658 file as "failed to update".
3660 Fri Jan 12 18:09:36 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3662 * job.c: Don't declare unblock_sigs; job.h already does.
3664 Sat Jan 6 16:24:44 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3666 * acconfig.h (HAVE_SYSCONF_OPEN_MAX): #undef removed.
3668 * job.c (NGROUPS_MAX): Don't try to define this macro.
3670 Fri Dec 22 18:44:44 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3672 * compatMakefile (GETOPT, GETOPT_SRC, GLOB): Variables removed.
3673 (objs, srcs): Include their values here instead of references.
3675 Thu Dec 14 06:21:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3679 * job.c (reap_children): Call unblock_sigs after start_job_command.
3681 Thu Dec 14 07:22:03 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
3683 * dir.c (dir_setup_glob): Don't use lstat; glob never calls it anyway.
3684 Avoid & before function names to silence bogus sunos4 compiler.
3686 * configure.in: Remove check for `sysconf (_SC_OPEN_MAX)'.
3688 Tue Dec 12 00:48:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3692 * dir.c (read_dirstream): Fix braino: fill in the buffer when not
3695 Mon Dec 11 22:26:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3697 * misc.c (collapse_continuations): Fix skipping of trailing \s so
3698 it can never dereference before the beginning of the array.
3700 * read.c (find_semicolon): Function removed.
3701 (read_makefile): Don't use find_semicolon or remove_comments for
3702 rule lines. Use find_char_unquote directly and handle quoted comments
3705 * default.c: Remove all [M_XENIX] code.
3707 * dir.c [HAVE_D_NAMLEN]: Define this for __GNU_LIBRARY__ > 1.
3708 (D_NAMLEN): Macro removed.
3709 (FAKE_DIR_ENTRY): New macro.
3710 (dir_contents_file_exists_p): Test HAVE_D_NAMLEN instead of using
3712 (read_dirstream): Return a struct dirent * for new glob interface.
3713 (init_dir): Function removed.
3714 (dir_setup_glob): New function.
3715 * main.c (main): Don't call init_dir.
3716 * read.c (multi_glob): Call dir_setup_glob on our glob_t and use
3717 GLOB_ALTDIRFUNC flag.
3719 * misc.c (safe_stat): Function removed.
3720 * read.c, commands.c, remake.c, vpath.c: Use plain stat instead of
3723 Sat Nov 25 20:35:18 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3725 * job.c [HAVE_UNION_WAIT]: Include sys/wait.h.
3727 * main.c (log_working_directory): Made global.
3728 Print entering msg only once.
3729 * make.h (log_working_directory): Declare it.
3730 * misc.c (message): Take new arg PREFIX. Print "make: " only if
3731 nonzero. Call log_working_directory.
3732 * remake.c: Pass new arg in `message' calls.
3733 * job.c (start_job_command): Pass new arg to `message'; fix
3734 inverted test in that call.
3736 Tue Nov 21 19:01:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3738 * job.c (start_job_command): Use `message' to print the command,
3739 and call it with null if the command is silent.
3740 * remake.c (touch_file): Use message instead of printf.
3742 Tue Oct 10 14:59:30 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3744 * main.c (enter_command_line_file): Barf if NAME is "".
3746 Sat Sep 9 06:33:20 1995 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
3748 * commands.c (delete_target): Ignore unlink failure if it is ENOENT.
3750 Thu Aug 17 15:08:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3752 * configure.in: Don't check for getdtablesize.
3753 * job.c (getdtablesize): Remove decls and macros.
3755 Thu Aug 10 19:10:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3757 * main.c (define_makeflags): Omit command line variable
3758 definitions from MFLAGS value.
3760 * arscan.c (ar_scan) [AIAMAG]: Check for zero MEMBER_OFFSET,
3761 indicating a valid, but empty, archive.
3763 Mon Aug 7 15:40:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3765 * dir.c (file_impossible_p): Correctly reset FILENAME to name
3766 within directory before hash search.
3768 * job.c (child_error): Do nothing if IGNORED under -s.
3770 * job.c (exec_command): Correctly use ARGV[0] for script name when
3771 running shell directly.
3773 Tue Aug 1 14:39:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3775 * job.c (child_execute_job): Close STDIN_FD and STDOUT_FD after
3776 dup'ing from them. Don't try to close all excess descriptors;
3777 getdtablesize might return a huge value. Any open descriptors in
3778 the parent should have FD_CLOEXEC set.
3779 (start_job_command): Set FD_CLOEXEC flag on BAD_STDIN descriptor.
3781 Tue Jun 20 03:47:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3783 * read.c (read_all_makefiles): Properly append default makefiles
3784 to the end of the `read_makefiles' chain.
3786 Fri May 19 16:36:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3788 * Version 3.74 released.
3790 Wed May 10 17:43:34 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3794 Tue May 9 17:15:23 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3796 * compatMakefile ($(infodir)/make.info): Make sure $$dir is set in
3799 Wed May 3 15:56:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3801 * file.c (print_file): Grok update_status of 1 for -q.
3803 Thu Apr 27 12:39:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3807 Wed Apr 26 17:15:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3809 * file.c (remove_intermediates): Fix inverted test to bail under
3810 -n for signal case. Bail under -q or -t.
3811 Skip files with update_status==-1.
3813 * job.c (job_next_command): Skip empty lines.
3814 (new_job): Don't test the return of job_next_command.
3815 Just let start_waiting_job handle the case of empty commands.
3817 Wed Apr 19 03:25:54 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3819 * function.c [__MSDOS__]: Include <fcntl.h>. From DJ Delorie.
3823 Sat Apr 8 14:53:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3825 * remake.c (notice_finished_file): Set FILE->update_status to zero
3828 Wed Apr 5 00:20:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3830 * Version 3.73 released.
3832 Tue Mar 28 13:25:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3834 * main.c (main): Fixed braino in assert.
3838 Mon Mar 27 05:29:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3840 * main.c: Avoid string in assert expression. Some systems are broken.
3842 Fri Mar 24 00:32:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3844 * main.c (main): Handle 1 and 2 returns from update_goal_chain
3845 makefile run properly.
3849 * main.c (handle_non_switch_argument): New function, broken out of
3851 (decode_switches): Set optind to 0 to reinitialize getopt, not to 1.
3852 When getopt_long returns EOF, break the loop and handle remaining args
3853 with a simple second loop.
3855 * remake.c (remake_file): Set update_status to 2 instead of 1 for
3856 no rule to make. Mention parent (dependent) in error message.
3857 (update_file_1): Handle FILE->update_status == 2 in -d printout.
3858 * job.c (start_job_command, reap_children): Set update_status to 2
3859 instead of 1 for failed commands.
3861 Tue Mar 21 16:23:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3863 * job.c (search_path): Function removed (was already #if 0'd out).
3864 * configure.in: Remove AC_TYPE_GETGROUPS; nothing needs it any more.
3866 Fri Mar 17 15:57:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3868 * configure.bat: Write @CPPFLAGS@ translation.
3870 Mon Mar 13 00:45:59 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3872 * read.c (parse_file_seq): Rearranged `l(a b)' -> `l(a) l(b)' loop
3873 to not skip the elt immediately preceding `l(...'.
3875 Fri Mar 10 13:56:49 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3879 * read.c (find_char_unquote): Make second arg a string of stop
3880 chars instead of a single stop char. Stop when any char in the
3881 string is hit. All callers changed.
3882 (find_semicolon): Pass stop chars "#;" to one find_char_unquote call,
3883 instead of using two calls. If the match is not a ; but a #,
3885 * misc.c: Changed find_char_unquote callers here too.
3889 * read.c (read_makefile, parse_file_seq): Fix typo __MS_DOS__ ->
3892 * GNUmakefile (globfiles): Add glob/configure.bat.
3893 (distfiles): Add configh.dos, configure.bat.
3895 Wed Mar 8 13:10:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3897 Fixes for MS-DOS from DJ Delorie.
3898 * read.c (read_makefile, parse_file_seq) [__MS_DOS__]: Don't see :
3899 as separator in "C:\...".
3900 * configh.dos (STDC_HEADERS): Define only if undefined.
3901 (HAVE_SYS_PARAM_H): Don't define this.
3902 (HAVE_STRERROR): Define this.
3903 * job.c (construct_command_argv_internal) [__MSDOS__]: Fix typos.
3907 * main.c (decode_switches): Reset optind to 1 instead of 0.
3909 Tue Mar 7 17:31:06 1995 Roland McGrath <roland@geech.gnu.ai.mit.edu>
3911 * main.c (decode_switches): If non-option arg is "-", ignore it.
3913 Mon Mar 6 23:57:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3917 Wed Feb 22 21:26:36 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3921 Tue Feb 21 22:10:43 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3923 * main.c (main): Pass missing arg to tmpnam.
3925 * configure.in: Check for strsignal.
3926 * job.c (child_error): Use strsignal.
3927 * main.c (main): Don't call signame_init #ifdef HAVE_STRSIGNAL.
3929 * misc.c (strerror): Fix swapped args in sprintf.
3931 Mon Feb 13 11:50:08 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3933 * configure.in (CFLAGS, LDFLAGS): Don't set these variables.
3935 Fri Feb 10 18:44:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3937 * main.c (print_version): Add 95 to copyright years.
3941 * job.c (start_job_command): Remember to call notice_finished_file
3942 under -n when not recursing. To do this, consolidate that code
3943 under the empty command case and goto there for the -n case.
3945 Tue Feb 7 13:36:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3947 * make.h [! STDC_HEADERS]: Don't declare qsort. Sun headers
3950 Mon Feb 6 17:37:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3952 * read.c (read_makefile): For bogus line starting with tab, ignore
3953 it if blank after removing comments.
3955 * main.c: Cast results of `alloca' to `char *'.
3956 * expand.c: Likewise.
3958 Sun Feb 5 18:35:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3962 * configure.in: Check for mktemp.
3963 * main.c (main) [! HAVE_MKTEMP]: Use tmpnam instead of mktemp.
3965 * configure.in (make_cv_sysconf_open_max): New check for `sysconf
3967 * acconfig.h: Added #undef HAVE_SYSCONF_OPEN_MAX.
3968 * job.c [HAVE_SYSCONF_OPEN_MAX] (getdtablesize): Define as macro
3971 Fri Jan 27 04:42:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3973 * remake.c (update_file_1): When !MUST_MAKE, don't set
3974 FILE->update_status to zero before calling notice_finished_file.
3975 (notice_finished_file): Touch only when FILE->update_status is zero.
3976 (remake_file): Set FILE->update_status to zero after not calling
3977 execute_file_command and deciding to touch instead.
3979 Thu Jan 26 01:29:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3981 * main.c (debug_signal_handler): New function; toggles debug_flag.
3982 (main): Handle SIGUSR1 with that.
3984 Mon Jan 16 15:46:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3986 * compatMakefile (realclean): Remove Info files.
3988 Sun Jan 15 08:23:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3992 * job.c (start_job_command): Save and restore environ around vfork
3994 (search_path): Function #if 0'd out.
3995 (exec_command): Use execvp instead of search_path.
3997 * expand.c (variable_expand): Rewrote computed variable name and
3998 substitution reference handling to be simpler. First expand the
3999 entire text between the parens if it contains any $s, then examine
4000 the result of that for subtitution references and do no further
4001 expansion while parsing them.
4003 * job.c (construct_command_argv_internal): Handle " quoting too,
4004 when no backslash, $ or ` characters appear inside the quotes.
4006 * configure.in (union wait check): If WEXITSTATUS and WTERMSIG are
4007 defined, just use int.
4009 Tue Jan 10 06:27:27 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4011 * default.c (default_variables) [__hpux]: Remove special
4012 definition of ARFLAGS. Existence of the `f' flag is not
4013 consistent across HPUX versions; and one might be using GNU ar
4016 * compatMakefile (clean): Don't remove Info files.
4018 * compatMakefile (check): Remove gratuitous target declaration.
4020 Sat Jan 7 11:38:23 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4022 * compatMakefile (ETAGS, CTAGS): Don't use -t.
4024 * arscan.c (ar_name_equal) [cray]: Subtract 1 like [__hpux].
4026 * main.c (decode_switches): For --help, print usage to stdout.
4028 Mon Dec 5 12:42:18 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4032 * remake.c (update_file_1): Do set_command_state (FILE,
4033 cs_not_started) only if old state was deps_running.
4035 Mon Nov 28 14:24:03 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4037 * job.c (start_waiting_job): Use set_command_state.
4039 * build.template (CPPFLAGS): New variable.
4040 (prefix, exec_prefix): Set from @...@.
4041 (compilation loop): Pass $CPPFLAGS to compiler.
4043 * GNUmakefile (build.sh.in): Make it executable.
4045 * GNUmakefile (globfiles): Add configure.in, configure.
4049 * configure.in (AC_OUTPUT): Don't write glob/Makefile.
4051 * configure.in (AC_CHECK_SYMBOL): Use AC_DEFINE_UNQUOTED.
4053 * configure.in: Don't check for ranlib.
4055 Tue Nov 22 22:42:40 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4057 * remake.c (notice_finished_file): Only mark also_make's as
4058 updated if really ran cmds.
4060 Tue Nov 15 06:32:46 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4062 * configure.in: Put dnls before random whitespace.
4064 Sun Nov 13 05:02:25 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4066 * compatMakefile (CPPFLAGS): New variable, set from @CPPFLAGS@.
4067 (RANLIB): Variable removed.
4068 (prefix, exec_prefix): Set these from @...@.
4069 (.c.o): Use $(CPPFLAGS).
4070 (glob/libglob.a): Don't pass down variables to sub-make.
4071 glob/Makefile should be configured properly by configure.
4072 (distclean): Remove config.log and config.cache (autoconf stuff).
4074 Mon Nov 7 13:58:06 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4076 * acconfig.h: Add #undef HAVE_UNION_WAIT.
4077 * configure.in: Converted to Autoconf v2.
4078 * dir.c: Test HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H instead
4079 of DIRENT, SYSDIR, NDIR.
4080 * build.sh.in (prefix, exec_prefix): Set these from @...@.
4081 (CPPFLAGS): New variable, set from @CPPFLAGS@.
4082 (compiling loop): Pass $CPPFLAGS before $CFLAGS.
4083 * install.sh: File renamed to install-sh.
4085 * main.c (define_makeflags): When no flags, set WORDS to zero.
4087 Sun Nov 6 18:34:01 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4091 * main.c (define_makeflags): Terminate properly when FLAGSTRING is
4094 Fri Nov 4 16:02:51 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4098 Tue Nov 1 01:18:10 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4102 * job.c (start_job_command): When ARGV is nil, only set
4103 update_state and call notice_finished_file if job_next_command
4106 * job.c (start_job_command): Call notice_finished_file for empty
4109 Thu Oct 27 02:02:45 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4111 * file.c (snap_deps): Set COMMANDS_SILENT for .SILENT, not
4114 Wed Oct 26 02:14:10 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4118 Tue Oct 25 22:49:24 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4120 * file.c (snap_deps): Set command_flags bits in all :: entries.
4122 Mon Oct 24 18:47:50 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4124 * make.h (posix_pedantic): Declare it.
4125 * main.c (main): Move checks .IGNORE, .SILENT, .POSIX to
4127 * file.c (snap_deps): Check .IGNORE, .SILENT, .POSIX here instead
4128 of in main. If .IGNORE has deps, OR COMMANDS_NOERROR into their
4129 command_flags and don't set -i. Likewise .SILENT.
4130 * job.c (start_job_command): In FLAGS initialization, OR in
4131 CHILD->file->command_flags.
4132 * file.h (struct file): New member `command_flags'.
4134 Sun Oct 16 01:01:51 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4136 * main.c (switches): Bump flag values for --no-print-directory and
4137 --warn-undefined-variables, so neither is 1 (which indicates a
4138 nonoption argument).
4140 Sat Oct 15 23:39:48 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4142 * main.c (main): Add missing code in .IGNORE test.
4144 Mon Oct 10 04:09:03 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4146 * variable.c (define_automatic_variables): Define +D and +F.
4148 Sat Oct 1 04:07:48 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4150 * main.c (main): Define hidden automatic variable with command
4151 vars, and MAKEOVERRIDES to a reference to that.
4152 (define_makeflags): If posix_pedantic, write a reference to that
4155 Thu Sep 29 00:14:26 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4157 * main.c (posix_pedantic): New variable.
4158 (main): Set posix_pedantic if .POSIX is a target.
4159 Fix .IGNORE and .SILENT checks to require is_target.
4161 * commands.c (set_file_variables): Define new automatic variable
4162 $+, like $^ but before calling uniquize_deps.
4164 * job.c (reap_children): Call delete_child_targets for non-signal
4165 error if .DELETE_ON_ERROR is a target.
4167 Tue Sep 27 01:57:14 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4171 Mon Sep 26 18:16:55 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4173 * job.c (reap_children): Don't change C->file->command_state when
4174 dying. Test it only after calling start_job_command for a new
4175 command line. When no more cmds, just set C->file->update_status.
4176 (start_job_command): When the last line is empty or under -n, set
4177 C->file->update_status.
4178 (start_waiting_job): Grok cs_not_started after start_job_command
4180 (new_job): Set C->file->update_status when there are no cmds.
4181 (job_next_command): When out of lines, don't set
4182 CHILD->file->update_status or CHILD->file->command_state.
4184 * main.c (quote_as_word): Renamed from shell_quote. Take new arg;
4185 if nonzero, also double $s.
4186 (main): Define MAKEOVERRIDES from command_variables here.
4187 (define_makeflags): Don't use command_variables here; instead write a
4188 reference $(MAKEOVERRIDES) in MAKEFLAGS. Make vars recursive.
4190 * dir.c [__MSDOS__]: Fixed typo.
4192 * vpath.c (selective_vpath_search): Reset EXISTS when stat fails.
4194 Sat Sep 10 03:01:35 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4196 * remake.c: Include <assert.h> and use assert instead of printfs
4199 * main.c (decode_switches): Loop until optind hits ARGC, not just
4200 until getopt_long returns EOF. Initialize C to zero before loop;
4201 in loop if C is EOF, set optarg from ARGV[optind++], else call
4203 (decode_env_switches): Use variable_expand instead of
4204 allocated_variable_expand. Allocate a fresh buffer to copy split
4205 words into; scan characters by hand to break words and
4207 (shell_quote): New function.
4208 (define_makeflags): Allocate doubled space for switch args, and command
4209 variable names and values; use shell_quote to quote those things.
4211 Fri Sep 9 01:37:47 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4215 * acconfig.h: Add HAVE_SYS_SIGLIST and HAVE__SYS_SIGLIST.
4217 * main.c (decode_switches): The non-option return from getopt is
4219 (command_variables): New type and variable.
4220 (decode_switches, decode_env_switches): After making a variable
4221 definition, record the struct variable pointer in the
4222 command_variables chain.
4223 (define_makeflags): If ALL, write variable definitions for
4226 * main.c (other_args): Variable removed.
4227 (goals, lastgoal): New static variables (moved from auto in main).
4228 (main): Don't process OTHER_ARGS at all.
4229 Don't set variable MAKEOVERRIDES at all; define MAKE to just
4231 (init_switches): Prepend a - {return in order} instead of a +
4233 (decode_switches): Don't set OTHER_ARGS at all.
4234 Grok '\0' return from getopt_long as non-option argument; try
4235 variable definition and (if !ENV) enter goal targets here.
4236 (decode_env_switches): Use allocated_variable_expand to store value.
4237 Use find_next_token to simplify word-splitting loop. Don't
4238 prepend a dash to uninterpreted value. Instead, if split into
4239 only one word, try variable definition and failing that prepend a
4240 dash to the word and pass it to decode_switches as a single arg.
4242 Wed Sep 7 03:02:46 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4244 * remake.c (notice_finished_file): Only recheck modtimes if
4245 FILE->command_state was cs_running on entry (meaning the commands
4247 (update_file_1): Whenever we set FILE->update_status, call
4248 notice_finished_file instead of just set_command_state.
4249 * job.c (start_job_command): Whenever we set
4250 CHILD->file->update_status, call notice_finished_file instead of
4251 just set_command_state.
4253 Tue Sep 6 19:13:54 1994 Roland McGrath <roland@geech.gnu.ai.mit.edu>
4255 * default.c: Add missing ".
4257 * job.c: Changed all assignments of command_state members to calls
4258 to set_command_state.
4259 * remake.c: Likewise.
4260 * file.c (set_command_state): New function.
4261 * file.h: Declare set_command_state.
4263 * main.c (init_switches): Put a + first in options.
4265 Mon Jul 25 18:07:46 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4267 Merge MSDOS/GO32 port from DJ Delorie <dj@ctron.com>.
4268 * vpath.c: Changed all uses of ':' to PATH_SEPARATOR_CHAR.
4269 * main.c (directory_before_chdir): New variable, moved out of main
4271 (main) [__MSDOS__]: Look for \ or : to delimit last component of
4272 PROGRAM. Don't frob ARGV[0] before setting MAKE_COMMAND variable.
4273 (die): Change back to `directory_before_chdir' before dying.
4274 * make.h (PATH_SEPARATOR_CHAR): New macro; differing defns for
4275 [__MSDOS__] and not.
4276 * job.c [__MSDOS__]: Include <process.h>.
4277 [__MSDOS__] (dos_pid, dos_status, dos_bname, dos_bename,
4278 dos_batch_file): New variables.
4279 (reap_children) [__MSDOS__]: Don't call wait; just examine those vars.
4280 (unblock_sigs) [__MSDOS__]: Do nothing.
4281 (start_job_command) [__MSDOS__]: Use spawnvpe instead of vfork & exec.
4282 (load_too_high) [__MSDOS__]: Always return true.
4283 (search_path) [__MSDOS__]: Check for : or / in FILE to punt.
4284 Use PATH_SEPARATOR_CHAR instead of ':'.
4285 (construct_command_argv_internal) [__MSDOS__]: Wholly different
4286 values for sh_chars and sh_cmds. Wholly new code to handle shell
4288 * function.c (expand_function: `shell') [__MSDOS__]: Wholly new
4290 * dir.c [__MSDOS__] (dosify): New function.
4291 (dir_contents_file_exists_p) [__MSDOS__]: Call it on FILENAME and
4292 process the result instead of FILENAME itself.
4293 (file_impossible_p) [__MSDOS__]: Likewise.
4294 * default.c [__MSDOS__]: Define GCC_IS_NATIVE.
4295 (default_suffix_rules) [__MSDOS__]: Use `y_tab.c' instead of `y.tab.c'.
4296 (default_variables) [GCC_IS_NATIVE]: Set CC and CXX to `gcc', YACC to
4297 `bison -y', and LEX to `flex'.
4298 * configure.bat, configh.dos: New files.
4299 * commands.c (fatal_error_signal) [__MSDOS__]: Just remove
4300 intermediates and exit.
4302 * commands.c (set_file_variables): Add parens in length
4303 computation in .SUFFIXES dep loop to quiet compiler warning. From
4306 * read.c (read_makefile): Free FILENAME if we allocated it. From
4309 Mon Jul 4 17:47:08 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4311 * misc.c (safe_stat): New function, EINTR-safe wrapper around stat.
4312 * vpath.c (selective_vpath_search): Use safe_stat in place of stat.
4313 * read.c (construct_include_path): Use safe_stat in place of stat.
4314 * job.c (search_path): Use safe_stat in place of stat.
4315 * dir.c (find_directory): Use safe_stat in place of stat.
4316 * commands.c (delete_target): Use safe_stat in place of stat.
4317 * arscan.c (ar_member_touch) [EINTR]: Do EINTR looping around fstat.
4318 * remake.c (name_mtime): Use safe_stat in place of stat.
4319 (touch_file) [EINTR]: Do EINTR looping around fstat.
4321 Fri Jun 24 05:40:24 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4323 * read.c (read_makefile): Check for a shell command first, and
4324 then strip leading tabs before further checking if it's not a
4327 * make.h [__arm]: Undefine POSIX.
4328 [!__GNU_LIBRARY__ && !POSIX && !_POSIX_VERSION]: Don't declare system
4329 functions that return int.
4331 * job.c (construct_command_argv_internal): After swallowing a
4332 backslash-newline combination, if INSTRING is set goto string_char
4333 (new label) for normal INSTRING handling code.
4335 Sat Jun 4 01:11:20 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4337 * configure.in: Don't check for sys_siglist and _sys_siglist with
4338 AC_HAVE_FUNCS. Instead use two AC_COMPILE_CHECKs.
4340 Mon May 23 18:20:38 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4342 * Version 3.71.1 released.
4344 * make.h [!__GNU_LIBRARY__ && !POSIX]: Also test #ifndef
4345 _POSIX_VERSION for these declarations.
4347 * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Remove bogus #ifndefs
4348 around #undefs of HAVE_SETREUID and HAVE_SETREGID.
4350 Sat May 21 16:26:38 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4352 * Version 3.71 released.
4354 * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Don't test [HAVE_SETUID]
4355 and [HAVE_SETGID]. Every system has those, and configure doesn't
4358 * make.h [_POSIX_VERSION]: Don't #define POSIX #ifdef ultrix.
4360 * compatMakefile (loadavg): Depend on and use loadavg.c instead of
4362 (loadavg.c): Link or copy it from getloadavg.c.
4363 (distclean): Remove loadavg.c.
4365 Mon May 16 22:59:04 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4369 * misc.c [GETLOADAVG_PRIVILEGED] [! POSIX]: Undefine HAVE_SETEUID
4372 * default.c (default_terminal_rules): In SCCS rules, put
4373 $(SCCS_OUTPUT_OPTION) before $<. On some systems -G is grokked
4374 only before the file name.
4375 * configure.in (SCCS_GET_MINUS_G check): Put -G flag before file name.
4377 Tue May 10 16:27:38 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4379 * job.c (construct_command_argv_internal): Swallow
4380 backslash-newline combinations inside '' strings too.
4382 Thu May 5 04:15:10 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4384 * read.c (do_define): Call collapse_continuations on each line
4387 Mon Apr 25 19:32:02 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4389 * job.c (construct_command_argv_internal): Notice newline inside
4390 '' string when RESTP is non-null.
4392 Fri Apr 22 17:33:30 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4396 * remake.c (update_goal_chain): Reset FILE to G->file after the
4397 double-colon loop so it is never null for following code.
4399 * read.c (read_makefile): Fix `override define' parsing to skip
4400 whitespace after `define' properly.
4402 * compatMakefile (srcdir): Define as @srcdir@; don't reference
4404 (glob/Makefile): New target.
4406 Thu Apr 21 16:16:55 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4410 * misc.c (remove_comments): Use find_char_unquote.
4411 * make.h (find_char_unquote): Declare it.
4412 * read.c (find_char_unquote): New function, generalized from
4414 (find_percent, find_semicolon, parse_file_seq): Use that.
4416 Wed Apr 20 18:42:39 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4418 * implicit.c (pattern_search): Always allocate new storage for
4419 FILE->stem. It is not safe to store STEM's address because it
4420 might be auto storage.
4422 * configure.in: Check for seteuid and setegid.
4423 * misc.c [HAVE_SETEUID]: Declare seteuid.
4424 [HAVE_SETEGID]: Declare setegid.
4425 (make_access, user_access) [HAVE_SETEUID]: Use seteuid.
4426 [HAVE_SETEGID]: Use setegid.
4428 * remake.c (update_goal_chain): Set STATUS to FILE->update_status,
4429 to preserve whether it's 2 for error or 1 for -q trigger. When
4430 STATUS gets nonzero and -q is set, always stop immediately.
4431 * main.c (main, decode_switches): Die with 2 for errors.
4432 (main): Accept 2 return from update_goal_chain and die with that.
4433 * misc.c (fatal, makefile_fatal): Die with 2; 1 is reserved for -q
4435 * job.c (reap_children): Die with 2 for error.
4436 (start_job_command): Set update_status to 2 for error. Set it to
4437 1 when we would run a command and question_flag is set.
4439 * read.c (read_makefile): Don't mark makefiles as precious. Just
4440 like other targets, they can be left inconsistent and in need of
4441 remaking by aborted commands.
4443 * read.c (read_makefile): Write no error msg for -include file.
4445 Tue Apr 5 05:22:19 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4447 * commands.c (fatal_error_signal): Don't unblock signals.
4449 * file.h (struct file): Change member `double_colon' from flag to
4451 * read.c (record_files): Set double_colon pointer instead of flag.
4452 * main.c (main): When disqualifying makefiles for updating, use
4453 double_colon pointer to find all entries for a file.
4454 * file.c (enter_file): If there is already a double-colon entry
4455 for the file, set NEW->double_colon to that pointer.
4456 (file_hash_enter): Use FILE->double_colon to find all entries to
4458 * remake.c (update_goal_chain): Do inner loop on double-colon entries.
4459 (update_file): Use FILE->double_colon pointer to find all entries.
4460 (f_mtime): Likewise.
4461 (notice_finished_file): Propagate mtime change to all entries.
4463 * variable.c (try_variable_definition): Return after abort.
4465 Fri Apr 1 18:44:15 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4467 * read.c (read_makefile): Remove unused variable.
4468 (parse_file_seq): When removing an elt that is just `)', properly
4469 fix up the previous elt's next pointer.
4471 Mon Mar 28 18:31:49 1994 Roland McGrath (roland@mole.gnu.ai.mit.edu)
4473 * configure.in: Do AC_SET_MAKE.
4474 * GNUmakefile (Makefile.in): Edit MAKE assignment into @SET_MAKE@.
4476 Fri Mar 4 00:02:32 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4478 * function.c (subst_expand): If BY_WORD or SUFFIX_ONLY is set and
4479 the search string is the empty string, find a match at the end of
4480 each word (using end_of_token in place of sindex).
4482 * misc.c (end_of_token): Don't treat backslashes specially; you
4483 can no longer escape blanks with backslashes in export, unexport,
4484 and vpath. This was never documented anyway.
4486 Thu Mar 3 23:53:46 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4488 * read.c (read_makefile): Variable name for `define' is not just
4489 first token; use whole rest of line and strip trailing blanks.
4491 Wed Feb 16 16:03:45 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4495 * read.c (read_makefile): Add -d msg stating args.
4497 * read.c (read_makefile): Use isspace to skip over leading
4498 whitespace, and explicitly avoid skipping over tabs. Don't want
4499 to skip just spaces though; formfeeds et al should be skipped.
4501 * default.c (default_variables) [__hpux]: Add f in ARFLAGS.
4503 * arscan.c (ar_name_equal) [__hpux]: Subtract 2 instead of 1 from
4504 sizeof ar_name for max length to compare.
4506 * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Undefine HAVE_SETREUID
4507 #ifdef HAVE_SETUID; likewise HAVE_SETREGID and HAVE_SETGID.
4509 * main.c (main): Call user_access after setting `program', in case
4510 it needs to use it in an error message.
4512 * read.c (read_makefile): Ignore an empty line starting with a tab.
4514 Thu Feb 10 21:45:31 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4516 * configure.in (AC_SYS_SIGLIST_DECLARED): Use this instead of
4517 AC_COMPILE_CHECK that is now its contents.
4519 Fri Feb 4 16:28:54 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4521 * make.h: #undef strerror after #include <string.h>.
4522 [! ANSI_STRING]: Declare strerror.
4524 Thu Feb 3 02:21:22 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4526 * misc.c (strerror): #undef any macro before function definition.
4528 Mon Jan 31 19:07:23 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4530 * variable.c (try_variable_definition): Calculate BEG before loop
4531 to strip blanks by decrementing END. Don't decr END to before BEG.
4533 * read.c (read_makefile): Skip over leading space characters, but
4534 not tabs, after removing continuations and comments (it used to
4537 Tue Jan 25 16:45:05 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4539 * variable.c (define_automatic_variables): In $(@D) et al, use
4540 patsubst to remove trailing slash.
4542 * commands.c (delete_target): New function, broken out of
4543 delete_child_targets. Check for archive members and give special msg.
4544 (delete_child_targets): Use delete_target.
4546 Mon Jan 17 17:03:22 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4548 * default.c (default_suffix_rules): Use $(TEXI2DVI_FLAGS) in
4549 texi2dvi rules. Use $(MAKEINFO_FLAGS) in makeinfo rules.
4551 Tue Jan 11 19:29:55 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4553 * GNUmakefile (tarfiles): Omit make-doc.
4554 (make-$(version).tar): Include make.info*.
4556 Fri Jan 7 16:27:00 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4558 * compatMakefile (configure, config.h.in): Comment out rules.
4560 Thu Jan 6 18:08:08 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4562 * compatMakefile (binprefix, manprefix): New variables.
4563 (instname): Variable removed.
4564 (install): Use $({bin,man}prefix)make in place of $(instname).
4565 File targets likewised renamed.
4567 Mon Jan 3 17:50:25 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4569 * Version 3.70 released.
4571 Thu Dec 23 14:46:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4575 * read.c (parse_file_seq): Inside multi-word archive ref
4576 translation loop, check NEW1==0 at end and break out of the loop.
4578 * GNUmakefile (make-$(version).tar): Distribute install.sh.
4579 * install.sh: New file.
4581 * configure.in (SCCS_GET_MINUS_G check): Put redirection for admin
4582 cmds outside subshell parens, to avoid "command not found" msgs
4585 Wed Dec 22 17:00:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4587 * configure.in (SCCS_GET_MINUS_G check): Put -G flag last in get cmd.
4588 Redirect output & error from get to /dev/null.
4589 Fix reversed sense of test.
4591 Fri Dec 17 15:31:36 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4593 * configure.in (SCCS_GET_MINUS_G check): Use parens instead of
4594 braces inside if condition command; some shells lose.
4596 Thu Dec 16 15:10:23 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4600 * arscan.c [M_UNIX]: Move #undef M_XENIX for PORTAR stuff.
4601 (PORTAR) [M_XENIX]: Define to 0 instead of 1.
4603 * main.c (define_makeflags): Only export MAKEFLAGS if !ALL.
4605 Wed Dec 15 17:47:48 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4607 * main.c (main): Cast result of pointer arith to unsigned int
4608 before passing to define_variable for envars. Matters when
4609 sizeof(unsigned)!=sizeof(ptrdiff_t).
4611 Tue Dec 14 14:21:16 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4613 * configure.in: Add new check for SCCS_GET_MINUS_G.
4614 * config.h.in: Add #undef SCCS_GET_MINUS_G.
4615 * default.c (default_terminal_rules): Use `$(SCCS_OUTPUT_OPTION)' in
4616 place of `-G $@' in SCCS commands.
4617 (default_variables) [SCCS_GET_MINUS_G]: Define SCCS_OUTPUT_OPTION
4620 * configure.in (AC_OUTPUT): Put touch stamp-config in second arg
4621 (so it goes in config.status), rather than afterward.
4623 * ar.c (ar_member_date): Don't call enter_file on the archive file
4624 if it doesn't exist (by file_exists_p).
4626 * compatMakefile ($(infodir)/make.info): Replace `$$d/foo.info'
4627 with `$$dir/make.info' in install-info invocation (oops).
4629 * vpath.c (construct_vpath_list): Only set LASTPATH set PATH when
4630 we do not unlink and free PATH.
4632 * file.c (print_file_data_base): Fix inverted calculation for
4633 average files per hash bucket.
4635 * read.c (readline): When we see a NUL, give only a warning and
4636 synthesize a newline to terminate the building line (used to
4637 fatal). Move fgets call into the loop condition, and after the
4638 loop test ferror (used to test !feof in the loop).
4640 Fri Dec 3 16:40:31 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4642 * configure.in: Check for strerror in AC_HAVE_FUNCS.
4644 Thu Dec 2 15:37:50 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4646 Differentiate different flavors of missing makefile error msgs,
4647 removing gratuitous `fopen: ' and giving caller for included makefiles.
4648 * misc.c [! HAVE_STRERROR]: Define our own strerror here.
4649 (perror_with_name, pfatal_with_name): Use strerror instead of
4650 replicating its functionality.
4651 * read.c (read_makefile): Return int instead of void.
4652 (read_all_makefiles, read_makefile): Change callers to notice zero
4653 return and give error msg.
4655 Thu Nov 11 11:47:36 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4659 * default.c: Put `-G $@' before $< in SCCS cmds.
4661 Wed Nov 10 06:06:14 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4663 * read.c (read_makefile): After trying a variable defn, notice if
4664 the line begins with a tab, and diagnose an error.
4666 Sun Nov 7 08:07:37 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4670 Wed Nov 3 06:54:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4674 * implicit.c (try_implicit_rule): Look for a normal rule before an
4677 Fri Oct 29 16:45:28 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4679 * function.c (expand_function: `sort'): Double NWORDS when it
4680 overflows, instead of adding five.
4682 * compatMakefile (clean): Remove loadavg.
4684 Wed Oct 27 17:58:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4688 * file.h (NEW_MTIME): Define new macro.
4689 * main.c (main): Set time of NEW_FILES to NEW_MTIME, not to
4690 current time returned from system. Removed variable NOW.
4691 * remake.c (notice_finished_file): Use NEW_MTIME in place of
4692 current time here too.
4694 Tue Oct 26 19:45:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4698 * remake.c (update_file_1): Don't clear MUST_MAKE when FILE has no
4699 cmds and !DEPS_CHANGED unless also !NOEXIST.
4701 Mon Oct 25 15:25:21 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4703 * read.c (parse_file_seq): When converting multi-word archive
4704 refs, ignore a word beginning with a '('.
4706 Fri Oct 22 02:53:38 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4708 * configure.in: Check for sys/timeb.h.
4709 * make.h [HAVE_SYS_TIMEB_H]: Test this before including it.
4711 Thu Oct 21 16:48:17 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4715 * rule.c (convert_suffix_rule): New local TARGPERCENT. Set it to
4716 TARGNAME+1 for "(%.o)", to TARGNAME for "%.?". Use it in place of
4717 TARGNAME to initialize PERCENTS[0].
4719 Mon Oct 18 06:49:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4721 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
4722 Remove AC_USG; it is no longer used.
4724 * file.c (print_file): New function, broken out of
4725 print_file_data_base.
4726 (print_file_data_base): Call it.
4727 * rule.c (print_rule): New function, broken out of
4728 print_rule_data_base.
4729 (print_rule_data_base): Call it.
4731 Thu Oct 14 14:54:03 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4733 * default.c (install_default_suffix_rules): New function, broken
4734 out of install_default_implicit_rules.
4735 (install_default_implicit_rules): Move suffix rule code there.
4736 * make.h: Declare install_default_suffix_rules.
4737 * main.c (main): Call install_default_suffix_rules before reading
4738 makefiles. Move convert_to_pattern call before
4739 install_default_implicit_rules.
4741 * job.h (struct child): Make `pid' member type `pid_t' instead of
4744 * compatMakefile (RANLIB): New variable, set by configure.
4745 (glob/libglob.a): Pass RANLIB value down to submake.
4747 Fixes for SCO 3.2 "devsys 4.2" from pss@tfn.com (Peter Salvitti).
4748 * make.h: Include <sys/timeb.h> before <time.h> for SCO lossage.
4749 * job.c [! getdtablesize] [! HAVE_GETDTABLESIZE]: If NOFILE is not
4750 defined but NOFILES_MAX is, define it to be that.
4752 Mon Oct 11 19:47:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4754 * GNUmakefile (make-$(version).tar): Depend on acconfig.h, so it
4757 Sun Oct 3 15:15:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4759 * default.c (default_terminal_rules): Add `-G $@' to SCCS get cmds.
4761 Tue Sep 28 14:18:20 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4763 * job.c (construct_command_argv_internal): Add ^ to SH_CHARS; it
4764 is another symbol for | in some shells.
4765 * main.c (main): Add it to CMD_DEFS quoting list as well.
4767 Mon Sep 20 18:05:24 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4769 * job.c (construct_command_argv_internal): Remove '=' from
4770 SH_CHARS. Only punt on '=' if it is unquoted in a word before the
4771 first word without an unquoted '='.
4773 * main.c (define_makeflags): Set v_export for MAKEFLAGS.
4775 Fri Sep 17 00:37:18 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4777 * remake.c (update_file_1): Use .DEFAULT cmds for phony targets.
4779 * make.h [_AIX && _POSIX_SOURCE]: Define POSIX.
4781 * commands.c (delete_child_targets): Don't delete phony files.
4783 * job.c (start_job_command): Set COMMANDS_RECURSE in FLAGS if we
4784 see a `+' at the beginning of the command line.
4786 Thu Sep 9 17:57:14 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4790 Wed Sep 8 20:14:21 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4792 * main.c (define_makeflags): Define MAKEFLAGS with o_file, not o_env.
4794 Mon Aug 30 12:31:58 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4796 * expand.c (variable_expand): Fatal on an unterminated reference.
4798 Thu Aug 19 16:27:53 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4802 * variable.c (define_automatic_variables): Define new o_default
4803 variable `MAKE_VERSION' from version_string and remote_description.
4805 * make.h (version_string, remote_description): Declare these here.
4806 * main.c: Don't declare version_string.
4807 (print_version): Don't declare remote_description.
4809 Wed Aug 18 15:01:24 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4811 * read.c (read_makefile): Free space pointed to by CONDITIONALS
4812 before restoring the old pointer.
4814 Mon Aug 16 17:33:36 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4816 * compatMakefile ($(objs)): Depend on config.h.
4818 * GNUmakefile (build.sh.in): Depend on compatMakefile.
4820 * configure.in: Touch stamp-config after AC_OUTPUT.
4822 Fri Aug 13 16:04:22 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4826 Thu Aug 12 17:18:57 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4828 * make.h: Include <config.h> instead of "config.h".
4830 Wed Aug 11 02:35:25 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4832 * main.c (main): Make all variables interned from ENVP be v_export.
4833 * variable.c (try_variable_definition): In v_default case, don't
4834 check for an o_file variable that `getenv' finds.
4836 * job.c (reap_children): New local variable ANY_LOCAL; set it
4837 while setting ANY_REMOTE. If !ANY_LOCAL, don't wait for local kids.
4839 * main.c (main): Don't call decode_env_switches on MFLAGS. DOC THIS.
4841 * function.c (expand_function): #if 0 out freeing of ENVP since it
4844 Mon Aug 9 17:37:20 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4848 * remote-stub.c (remote_status): Set errno to ECHILD before return.
4849 * job.c (reap_children): Scan the chain for remote children and
4850 never call remote_status if there are none.
4852 * function.c (expand_function: `shell'): #if 0 out calling
4853 target_environment; just set ENVP to environ instead.
4855 * job.c (reap_children): Check for negative return from
4856 remote_status and fatal for it.
4857 When blocking local child wait returns 0, then try a blocking call
4860 Tue Aug 3 00:19:00 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4862 * compatMakefile (clean): Delete make.info* and make.dvi here.
4863 (distclean): Not here.
4865 * dep.h (RM_*): Use #defines instead of enum to avoid lossage from
4866 compilers that don't like enum values used as ints.
4868 Mon Aug 2 16:46:34 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4870 * compatMakefile (loadavg): Add $(LOADLIBES).
4872 Sun Aug 1 16:01:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4876 * compatMakefile (loadavg, check-loadavg): New targets.
4877 (check): Depend on check-loadavg.
4879 * compatMakefile (glob/libglob.a): Depend on config.h.
4881 * misc.c (log_access): Write to stderr instead of stdout.
4883 Fri Jul 30 00:07:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4887 Thu Jul 29 23:26:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4889 * configure.in (SYS_SIGLIST_DECLARED): In test program include
4890 <unistd.h> #ifdef HAVE_UNISTD_H.
4892 * compatMakefile (.PHONY): Put after `all' et al.
4894 * configure.in: Add AC_IRIX_SUN.
4896 Wed Jul 28 17:41:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4900 Mon Jul 26 14:36:49 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4904 Sun Jul 25 22:09:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4908 * compatMakefile ($(infodir)/make.info): Don't use $(instname).
4909 Run install-info script if present.
4911 Fri Jul 23 16:03:50 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4913 * make.h [STAT_MACROS_BROKEN]: Test this instead of [uts].
4915 * configure.in: Add AC_STAT_MACROS_BROKEN.
4917 Wed Jul 14 18:48:11 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4921 * read.c (read_makefile): Recognize directive `-include', like
4922 `include' but sets RM_DONTCARE flag.
4924 * variable.c (target_environment): If FILE is nil, use
4925 current_variable_set_list in place of FILE->variables.
4926 * function.c (expand_function: `shell'): Get an environment for
4927 the child from target_environment instead of using environ.
4929 * dep.h: Declare read_all_makefiles here.
4930 (RM_*): Define new enum constants.
4931 * read.c (read_makefile): Second arg is FLAGS instead of TYPE.
4932 Treat it as a bit mask containing RM_*.
4933 (read_all_makefiles): For default makefiles, set D->changed to
4934 RM_DONTCARE instead of 1.
4935 * main.c: Don't declare read_all_makefiles here.
4936 (main): Check `changed' member of read_makefiles elts for RM_*
4937 flags instead of specific integer values.
4939 Mon Jul 12 22:42:17 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4941 * make.h [sequent && i386]: #undef POSIX. From trost@cse.ogi.edu.
4943 Thu Jul 8 19:51:23 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4945 * vpath.c (construct_vpath_list): If ELEM is zero 0, free PATTERN
4947 (build_vpath_lists): Empty `vpaths' around construct_vpath_list
4948 call for $(VPATH). Expand $(strip $(VPATH)), not just $(VPATH).
4950 * rule.c (convert_suffix_rule): Use alloca instead of xmalloc for
4951 PERCENTS, whose storage is not consumed by create_pattern_rule.
4953 * make.h [__mips && _SYSTYPE_SVR3]: #undef POSIX.
4955 Wed Jun 30 18:11:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4959 * rule.c (max_pattern_targets): New variable.
4960 (count_implicit_rule_limits): Compute its value.
4961 * rule.h: Declare it.
4962 * implicit.c (pattern_search): Make TRYRULES max_target_patterns
4963 times bigger. Move adding new TRYRULES elt inside the inner
4964 targets loop, so each matching target gets its own elt in MATCHES
4965 and CHECKED_LASTSLASH.
4967 * file.c (remove_intermediates): If SIG!=0 say `intermediate file'
4968 instead of just `file' in error msg.
4970 Fri Jun 25 14:55:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4972 * job.c (construct_command_argv): Turn off
4973 --warn-undefined-variables around expansion of SHELL and IFS.
4974 * read.c (tilde_expand): Likewise for HOME.
4975 (read_all_makefiles): Likewise for MAKEFILES.
4976 * vpath.c (build_vpath_lists): Likewise for VPATH.
4978 * main.c (warn_undefined_variables_flag): New flag variable.
4979 (switches): Add --warn-undefined-variables.
4980 * make.h (warn_undefined_variables_flag): Declare it.
4981 * expand.c (warn_undefined): New function.
4982 (reference_variable): Call it if the variable is undefined.
4983 (variable_expand): In substitution ref, call warn_undefined if the
4984 variable is undefined.
4986 * default.c (default_pattern_rules): Add `%.c: %.w %.ch' and
4987 `%.tex: %.w %.ch' rules.
4988 (default_suffix_rules: .w.c, .w.tex): Pass three args: $< - $@.
4989 (default_suffixes): Add `.ch'.
4991 Mon Jun 21 17:55:39 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4993 * default.c (default_suffixes): Replace `.cweb' with `.w'.
4994 (default_suffix_rules): Rename `.cweb.c' and `.cweb.tex' to `.w.c'
4997 Fri Jun 11 14:42:09 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4999 * compatMakefile ($(bindir)/$(instname)): Add missing backslash.
5001 Thu Jun 10 18:14:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5005 * read.c (multi_glob): Don't free OLD and OLD->name in the
5006 FOUND!=0 fork. Use new block-local variable F instead of
5009 * ar.c (glob_pattern_p): New function, snarfed from glob/glob.c.
5010 (ar_glob): Call it; return nil immediately if MEMBER_PATTERN
5011 contains no metacharacters.
5013 Wed Jun 9 16:25:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5015 * ar.c (ar_glob{_match,_alphacompare}): New function.
5017 * dep.h [! NO_ARCHIVES]: Declare it.
5018 * read.c (multi_glob) [! NO_ARCHIVES]: Use it on archive member elts.
5020 * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
5021 multi_glob (which doesn't take a 3rd arg).
5022 * rule.c (install_pattern_rule): Likewise.
5023 * default.c (set_default_suffixes): Here too.
5024 * function.c (string_glob): Don't pass gratuitous arg to multi_glob.
5026 * read.c (parse_file_seq) [! NO_ARCHIVES]: Add post-processing
5027 loop to translate archive refs "lib(a b)" into "lib(a) lib(b)".
5029 Mon Jun 7 19:26:51 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5031 * compatMakefile (installdirs): Actually pass directory names.
5032 ($(bindir)/$(instname)): Test chgrp&&chmod exit status with `if';
5033 if it fails, echo a warning msg, but don't make the rule fail.
5035 * read.c (tilde_expand): New function, broken out of tilde_expand.
5036 (multi_glob): Call it.
5037 (construct_include_path): Expand ~ in directory names.
5038 * dep.h: Declare tilde_expand.
5039 * main.c (enter_command_line_file): Expand ~ at the start of NAME.
5040 (main): Expand ~ in -C args.
5041 * read.c (read_makefile): Expand ~ in FILENAME unless TYPE==2.
5043 Fri Jun 4 13:34:47 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5045 * main.c (decode_env_switches): Use xmalloc instead of alloca for ARGS.
5047 * main.c (main): Put result of alloca in temporary variable with
5048 simple assignment, to make SGI compiler happy.
5050 Thu Jun 3 20:15:46 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5054 * main.c (main): Before re-execing, remove intermediate files, and
5055 print the data base under -p. Sexier debugging message.
5057 * implicit.c (pattern_search): Allocate an extra copy of the name
5058 of a winning intermediate file when putting it in FOUND_FILES.
5060 Wed Jun 2 16:38:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5062 * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
5063 multi_glob (which doesn't take a 3rd arg).
5065 * dir.c (dir_contents_file_exists_p): When reading dirents, ignore
5066 chars within D_NAMLEN that are NULs.
5068 * main.c (decode_switches): Don't savestring ARGV[0] to put it
5070 For string switch, don't savestring `optarg'.
5071 (main): Don't free elts of makefiles->list that are "-".
5072 Use alloca'd rather than savestring'd storage for elts of
5073 makefiles->list that are temporary file names.
5074 * read.c (read_all_makefiles): Don't free *MAKEFILES.
5075 * file.c (enter_file): Don't strip `./'s.
5076 * main.c (enter_command_line_file): New function.
5077 (main): Use it in place of enter_file for command-line goals from
5078 other_files, and for old_files and new_files.
5080 Mon May 31 18:41:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5084 * compatMakefile (.SUFFIXES): Add .info.
5085 ($(infodir)/$(instname).info): Find make.info* in cwd if there,
5086 else in $srcdir. Use basename to remove dir name from installed name.
5088 Thu May 27 17:35:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5090 * implicit.c (pattern_search): When interning FOUND_FILES, try
5091 lookup_file first; if found, free the storage for our copy of the name.
5093 Wed May 26 14:31:20 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5097 * main.c (decode_switches): In usage msg, write `--switch=ARG' or
5098 `--switch[=OPTARG]' rather than `--switch ARG' or `--switch [ARG]'.
5100 Mon May 24 16:17:31 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5102 * rule.c (convert_suffix_rule): New function.
5103 (convert_to_pattern): Use it instead of doing all the work here
5105 For target suffix `.a', generate both the archive magic rule and
5108 * compatMakefile (distclean): Remove stamp-config.
5110 Sat May 22 16:15:18 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5114 * file.c (remove_intermediates): Don't write extra space after `rm'.
5116 * main.c (struct command_switch.type): Remove `usage_and_exit'.
5117 (print_usage_flag): New variable.
5118 (switches: --help): Make type `flag', to set print_usage_flag.
5119 (init_switches): Remove `usage_and_exit' case.
5120 (decode_switches): Likewise.
5121 (decode_switches): Print usage if print_usage_flag is set.
5122 When printing usage, die with status of BAD.
5123 (main): Die with 0 if print_version_flag.
5125 Fri May 21 16:09:28 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5129 Wed May 19 21:30:44 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5131 * compatMakefile (installdirs): New target.
5132 (install): Depend on it.
5134 Sun May 16 20:15:07 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5138 Fri May 14 16:40:09 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5140 * vpath.c (construct_vpath_list): In removal loop for DIRPATH==0,
5141 set LASTPATH to PATH, not NEXT.
5143 * dir.c (read_dirstream): Break out of loop after incrementing
5144 DS->buckets such that it reaches DIRFILE_BUCKETS; avoid trying to
5145 dereference DS->contents->files[DIRFILE_BUCKETS].
5147 * read.c (read_makefile): Clear no_targets after reading a
5148 targetful rule line.
5150 * main.c (main): If print_version_flag is set, exit after printing
5152 (switches): Change --version docstring to say it exits.
5154 * make.h [butterfly]: #undef POSIX.
5156 Wed May 12 15:20:21 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5160 * arscan.c (ar_scan) [! AIAMAG]: Don't declare LONG_NAME.
5161 [AIAMAG]: Pass TRUNCATE flag arg to (*FUNCTION), always zero.
5163 * function.c (handle_function): Use fatal instead of
5164 makefile_fatal when reading_filename is nil.
5166 * configure.in: Add AC_GETGROUPS_T.
5167 * job.c (search_path): Use GETGROUPS_T in place of gid_t.
5169 Sun May 9 15:41:25 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5173 Fri May 7 18:34:56 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5175 * function.c (handle_function): Fatal for unmatched paren.
5177 Thu May 6 16:13:41 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5181 * commands.c (handling_fatal_signal): New variable.
5182 (fatal_error_signal): Set it.
5183 * job.c (reap_children): Avoid nonreentrant operations if that is set.
5184 * make.h: Declare handling_fatal_signal.
5186 * expand.c (reference_variable): New function, snippet of code
5187 broken out of simple-reference case of variable_expand.
5188 (variable_expand): Use it for simple refs.
5189 (variable_expand): When checking for a computed variable name,
5190 notice a colon that comes before the final CLOSEPAREN. Expand
5191 only up to the colon, and then replace the pending text with a
5192 copy containing the expanded name and fall through to subst ref
5194 (variable_expand): Don't bother expanding the name if a colon
5195 appears before the first $.
5196 (expand_argument): Use alloca instead of savestring.
5197 (variable_expand): For subst ref, expand both sides of = before
5198 passing to [pat]subst_expand. Use find_percent instead of lindex
5199 to check the lhs for a %.
5201 Wed May 5 14:45:52 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5205 Mon May 3 17:00:32 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5207 * arscan.c (ar_name_equal) [AIAMAG]: Abort if TRUNCATED is nonzero.
5209 * read.c (read_makefile): Pass extra arg of 1 to parse_file_seq,
5212 Thu Apr 29 19:47:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5216 * arscan.c (ar_scan): New local flag var LONG_NAME. Set it when
5217 we read the member name in any of the fashions that allow it to be
5218 arbitrarily long. Pass its negation to FUNCTION.
5219 (describe_member): Take TRUNCATED from ar_scan and print it.
5220 (ar_name_equal): Take new arg TRUNCATED; if nonzero, compare only
5221 the first sizeof (struct ar_hdr.ar_name) chars.
5222 (ar_member_pos): Take TRUNCATED from ar_scan, pass to ar_name_equal.
5223 * ar.c (ar_member_date_1): Likewise.
5225 Wed Apr 28 21:18:22 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5227 * job.c (reap_children): Before calling start_job_command to start
5228 the next command line, reset C->remote by calling start_remote_job_p.
5230 Mon Apr 26 15:56:15 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5232 * arscan.c (ar_scan): New local var NAMEMAP.
5233 In loop, rename NAME to NAMEBUF; new var NAME is a pointer; new
5234 flag IS_NAMEMAP. When extracting the member name, always put a
5235 null at its end first. If the name is "//" or "/ARFILENAMES", set
5236 IS_NAMEMAP. If we have already read in NAMEMAP, and NAME looks
5237 like " /N", get full name from NAMEMAP+N.
5238 Else if NAME looks like "#1/N", read N chars from the
5239 elt data to be the full name. At end of loop, if IS_NAMEMAP, read
5240 the elt's data into alloca'd NAMEMAP.
5241 (ar_name_equal): #if 0 truncating code.
5243 * make.h: Don't declare vfork at all. It returns int anyway,
5244 unless <unistd.h> declared it; and we conflicted with some systems.
5246 * main.c (define_makeflags): If FLAGSTRING[1] is '-', define
5247 MAKEFLAGS to all of FLAGSTRING, not &FLAGSTRING[1]. Don't want to
5248 define it to something like "-no-print-directory".
5249 Use %g format instead of %f for floating-valued things.
5251 Thu Apr 22 18:40:58 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5253 * GNUmakefile (Makefile.in): Use a substitution ref on nolib-deps
5254 to change remote-%.dep to remote-stub.dep.
5256 Wed Apr 21 15:17:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5260 Fri Apr 16 14:22:22 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5262 * compatMakefile (install): Remove - prefix from chgrp+chmod.
5266 Thu Apr 15 18:24:07 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5268 * acconfig.h: New file; contains "#undef SCCS_GET" for autoheader.
5269 * configure.in: If /usr/sccs/get exists, define SCCS_GET to that,
5271 * default.c (default_variables): Set GET to macro SCCS_GET.
5273 * read.c (parse_file_seq): Take extra arg STRIP; strip `./' only
5274 if nonzero. I hope this is the last time this argument is added
5276 (read_makefile): Pass it 1 when parsing include file names.
5277 Pass it 1 when parsing target file names.
5278 Pass it 1 when parsing static pattern target pattern names.
5279 * rule.c (install_pattern_rule): Pass it 1 when parsing rule deps.
5280 * default.c (set_default_suffixes): Pass it 1 when parsing
5282 * function.c (string_glob): Pass it 0 here.
5284 Wed Apr 14 11:32:05 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5286 * misc.c (log_access): New function.
5287 ({init,user,make,child}_access): Call it.
5288 (child_access): Abort if !access_inited.
5290 * main.c (switches: --no-print-directory): Use 1 instead of -1 for
5291 single-letter option.
5292 (init_switches, decode_switches, define_makeflags): An option with
5293 no single-letter version is no longer indicated by a value of -1;
5294 instead a value that is !isalnum.
5295 (init_switches): Don't put such switches into the string, only
5296 into the long_option table.
5298 * make.h [!NSIG] [!_NSIG]: #define NSIG 32.
5300 * job.c [HAVE_WAITPID]: Remove #undef HAVE_UNION_WAIT. AIX's
5301 bsdcc defined WIF* to use union wait.
5303 * main.c (struct command_switch): Change member `c' to type int.
5304 (switches): Make const.
5305 (decode_switches): Use `const struct command_switch *'.
5306 (define_makeflags): Likewise.
5308 * default.c (default_suffix_rules): Add `-o $@' to makeinfo rules.
5310 Mon Apr 12 12:30:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5314 * configure.in (AC_HAVE_HEADERS): Check for string.h and memory.h.
5315 Removed AC_MEMORY_H.
5316 * make.h [USG, NeXT]: Don't test these.
5317 [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
5318 [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
5319 [! ANSI_STRING]: Put decls of bcopy et al here.
5320 [sparc]: Don't test this for alloca.h; HAVE_ALLOCA_H is sufficient.
5321 [HAVE_SIGSETMASK]: Test this rather than USG.
5322 [__GNU_LIBRARY__ || POSIX]: Don't #include <unistd.h> again.
5323 * main.c (main): Handle SIGCHLD if defined, and SIGCLD if defined.
5324 It doesn't hurt to do both if they are both defined, and testing
5326 * dir.c: Rationalize directory header conditionals.
5327 * arscan.c [HAVE_FCNTL_H]: Test this rather than USG || POSIX.
5329 * default.c (default_suffixes): Add `.txinfo'.
5330 (default_suffix_rules): Add `.txinfo.info' and `.txinfo.dvi' rules.
5332 * variable.c (try_variable_definition): Replace RECURSIVE flag
5333 with enum FLAVOR, which can be simple, recursive, or append.
5334 Recognize += as append flavor. Set new variable VALUE in a switch
5335 on FLAVOR. For append flavor, prepend the variable's old value.
5336 If the variable was previously defined recursive, set FLAVOR to
5337 recursive; if it was defined simple, expand the new value before
5338 appending it to the old value. Pass RECURSIVE flag to
5339 define_variable iff FLAVOR == recursive.
5341 * variable.c (try_variable_definition): Use alloca and bcopy for
5342 NAME, instead of savestring. Might as well use stack storage
5343 since we free it immediately anyway.
5345 Thu Apr 8 18:04:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5347 * job.c (start_waiting_jobs): Move decl of JOB outside of loop.
5349 * main.c (define_makeflags): Rename `struct flag' member `switch'
5350 to `cs', which is not a reserved word.
5352 Wed Apr 7 15:30:51 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5354 * job.c (new_job): Call start_waiting_jobs first thing.
5355 (start_waiting_job): Changed return type from void to int.
5356 Return 0 when putting the child on the waiting_jobs chain.
5357 (start_waiting_jobs): Don't check load and job_slots here.
5358 Always take a job off the chain and call start_waiting_job on it;
5359 give up and return when start_waiting_job returns zero.
5361 * main.c (define_makeflags: struct flag): Change member `char c' to
5362 `struct command_switch *switch'.
5363 (ADD_FLAG): Set that to CS instead of CS->c.
5364 If CS->c is -1, increment FLAGSLEN for the long name.
5365 When writing out FLAGS, handle FLAGS->switch->c == -1 and write
5366 the long name instead.
5368 * compatMakefile (stamp-config): New target of old config.h rule.
5369 Touch stamp-config after running config.status.
5370 (config.h): Just depend on stamp-config, and have empty commands.
5372 Mon Apr 5 20:14:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5374 * job.c [HAVE_WAITPID]: #undef HAVE_UNION_WAIT.
5376 * configure.in (AC_HAVE_FUNCS): Check for psignal.
5378 Fri Apr 2 17:15:46 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5380 * main.c (long_option_aliases): Remove "new"; it is already an
5381 unambiguous prefix of "new-file".
5383 Sun Mar 28 16:57:17 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5387 Wed Mar 24 14:26:19 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5389 * vpath.c (selective_vpath_search): When adding the
5390 name-within-directory at the end of NAME, and we don't add a
5391 slash, don't copy FILENAME in one char too far into NAME.
5393 * variable.c (define_automatic_variables): Find default_shell's
5394 length with strlen, not numerology.
5396 Wed Mar 17 20:02:27 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5398 * main.c (define_makeflags): Add the elts of a string option in
5399 reverse order, so they come out right when reversed again.
5401 Fri Mar 12 15:38:45 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5403 * compatMakefile (make.info): Use `-o make.info'.
5405 Thu Mar 11 14:13:00 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5407 * compatMakefile (REMOTE): Set to @REMOTE@; change comments to
5409 (objs): Replace remote.o with remote-$(REMOTE).o.
5410 (srcs): Replace remote.c with remote-$(REMOTE).c.
5411 (remote.o): Rule removed.
5413 * configure.in (REMOTE): Subst this in Makefile et al; default "stub".
5414 Use AC_WITH to grok --with-customs arg to set REMOTE=cstms.
5415 * GNUmakefile (build.sh.in): Filter out remote-% from objs list.
5416 * build.template (REMOTE): New var; set to @REMOTE@.
5417 (objs): Add remote-${REMOTE}.o.
5419 Wed Mar 10 15:12:24 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5423 * implicit.c (pattern_search): Fix "dependent"->"dependency" in
5424 "Rejecting impossible" -d msg.
5426 * file.c (file_hash_enter): New local vars {OLD,NEW}BUCKET. Store
5427 mod'd values there; never mod {OLD,NEW}HASH.
5429 Mon Mar 8 13:32:48 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5431 * remake.c [eta10]: Include <fcntl.h> instead of <sys/file.h>.
5433 * compatMakefile (VPATH): Set this to @srcdir@.
5434 (srcdir): Set this to $(VPATH).
5436 * main.c (main): New local var DIRECTORY_BEFORE_CHDIR. Save in it
5437 a copy of CURRENT_DIRECTORY after the first getcwd. Use it
5438 instead of CURRENT_DIRECTORY when chdir'ing back before re-execing.
5440 * remake.c (notice_finished_file): Pass missing SEARCH arg to f_mtime.
5442 * read.c (read_makefile): Remove extraneous arg to parse_file_seq.
5444 Mon Feb 22 14:19:38 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5446 * compatMakefile ($(infodir)/$(instname).info): Use , instead of /
5447 as the sed delimiter char.
5449 Sun Feb 21 14:11:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5453 * rule.h (struct rule): Removed `subdir' member.
5454 * rule.c (new_pattern_rule): No need to clear it.
5455 (count_implicit_rule_limits): Set the `changed' flag in each dep
5456 that refers to a nonexistent directory. No longer set rule-global
5457 `subdir' flag with that information.
5458 (print_rule_data_base): Don't record info on `subdir' flags.
5460 * implicit.c (pattern_search): Check the DEP->changed flag rather
5461 than the (now gone) RULE->subdir flag. Also test CHECK_LASTSLASH;
5462 if it is set, the file might exist even though the DEP->changed
5465 * rule.c (count_implicit_rule_limits): Pass "", not ".", as file
5466 name arg to dir_file_exists_p to check for existence of directory.
5468 * implicit.c (pattern_search): Inside dep-finding loop, set
5469 CHECK_LASTSLASH from the value recorded in CHECKED_LASTSLASH[I],
5470 rather than computing it anew.
5472 * commands.c (set_file_variables): Must alloca space for PERCENT
5473 and copy it, to avoid leaving the trailing `)' in the value.
5475 * misc.c (remove_comments): Fixed backslash-checking loop
5476 condition to allow it to look at the first char on the line.
5477 P2 >= LINE, not P2 > LINE.
5479 * compatMakefile ($(bindir)/$(instname)): Before moving $@.new to
5480 $@, rm $@.old and mv $@ to $@.old.
5482 * variable.c (try_variable_definition): Take new args FILENAME and
5483 LINENO. Fatal if the variable name is empty.
5484 * read.c (read_makefile): Change callers.
5485 * main.c (main): Likewise.
5487 * compatMakefile (group): Define to @KMEM_GROUP@, autoconf magic
5488 that configure will replace with the group owning /dev/kmem.
5490 Mon Feb 8 14:26:43 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5492 * vpath.c (vpath_search): Take second arg MTIME_PTR, pass thru to
5493 selective_vpath_search.
5494 (selective_vpath_search): Take second arg MTIME_PTR.
5495 If the dir cache thinks a file exists, stat it to make sure, and
5496 put the modtime in *MTIME_PTR.
5497 * remake.c (library_search): Take second arg MTIME_PTR.
5498 When we find a match, record its mtime there.
5499 Pass MTIME_PTR through to vpath_search to do same.
5500 (f_mtime): Pass &MTIME as new 2nd arg to {vpath,library}_search;
5501 store it in FILE->last_mtime if set nonzero.
5502 * implicit.c (pattern_search): Pass nil 2nd arg to vpath_search.
5504 * compatMakefile (remote.o): Prepend `$(srcdir)/' to `remote-*.c',
5505 so globbing looks somewhere it will find things.
5507 * compatMakefile ($(infodir)/$(instname).info): Install `make.info*'
5508 not `$(srcdir)/make.info*'; no need to use basename.
5510 Fri Feb 5 12:52:43 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5514 * compatMakefile (install): Add missing ;\s.
5516 Make -, @, and + prefixes on a pre-expanded command line affect
5517 all lines in the expansion, not just the first.
5518 * commands.h (struct commands): Replace `lines_recurse' member
5520 (COMMANDS_{RECURSE,SILENT,NOERROR}): New macros, bits to set in
5522 * commands.c (chop_commands): Set `lines_flags' instead of
5523 `lines_recurse'. Record not only + but also @ and - prefixes.
5524 * remake.c (notice_finished_file): Check the COMMANDS_RECURSE bit
5525 in FILE->cmds->lines_flags, rather than FILE->cmds->lines_recurse.
5526 * job.c (start_job_command): Replaced RECURSIVE and NOPRINT local
5527 var with FLAGS; initialize it to the appropriate `lines_flags' byte.
5528 Set CHILD->noerror if the COMMANDS_NOERROR bit is set in FLAGS.
5529 Set the COMMANDS_SILENT bit in FLAGS for a @ prefix.
5531 * remake.c (update_goal_chain): Set G->file to its prev after
5532 checking for G being finished, since that check needs to examine
5535 * configure.in (union wait check) [HAVE_WAITPID]: Try using
5536 waitpid with a `union wait' STATUS arg. If waitpid and union wait
5537 don't work together, we should not use union wait.
5541 * remake.c (update_goal_chain): When G->file->updated, move
5542 G->file to its prev. We aren't finished until G->file is nil.
5544 Thu Feb 4 12:53:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5546 * main.c (starting_directory): New global variable.
5547 (main): Set it to cwd after doing -Cs.
5548 (log_working_directory): Use it, rather than computing each time.
5549 * make.h: Declare it.
5551 * compatMakefile (SHELL): Define to /bin/sh for losing Unix makes.
5553 * main.c (decode_env_switches): Allocate (1 + LEN + 1) words for
5554 ARGV, rather than LEN words plus one byte.
5556 Wed Feb 3 18:13:52 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5558 * compatMakefile ($(bindir)/$(instname)): Put - before
5559 install_setgid command line, so its failure won't be an error.
5560 (infodir): New variable.
5561 (install): Depend on $(infodir)/$(instname).info.
5562 ($(infodir)/$(instname).info): New target.
5564 * read.c (read_makefile): If FILENAMES is nil when we see a line
5565 starting with a tab, don't treat it as a command. Just fall
5566 through, rather than giving an error.
5568 * read.c (read_makefile): If the NO_TARGETS flag is set when we see a
5569 command line, don't clear it before continuing. We want
5570 subsequent command lines to be ignored as well.
5572 * job.c (new_job): Before expanding each command line, collapse
5573 backslash-newline combinations that are inside var or fn references.
5575 Mon Feb 1 16:00:13 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5577 * compatMakefile (exec_prefix): Default to $(prefix), not /usr/local.
5579 * compatMakefile (make.info): Pass -I$(srcdir) to makeinfo.
5581 * job.c [POSIX] (unblock_sigs): Made global.
5582 [!POSIX] (unblock_sigs): Move defns to job.h.
5583 * job.h [POSIX] (unblock_sigs): Declare.
5585 Sun Jan 31 19:11:05 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5587 * read.c (read_makefile): In vpath parsing, after finding the
5588 pattern token, take entire rest of line as the search path, not
5589 just the next token.
5591 * compatMakefile (remote.o): Depend on remote-*.c.
5593 Thu Jan 28 16:40:29 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5595 * commands.c (set_file_variables): Don't define any F or D versions.
5596 * variable.c (define_automatic_variables): Define them here as
5597 recursively-expanded variables that use the dir and notdir funcs.
5599 * variable.c (target_environment): In v_default case, don't export
5600 o_default or o_automatic variables.
5602 * configure.in (union wait check): Remove ` and ' inside C code;
5603 they confuse the shell script.
5605 Mon Jan 25 13:10:42 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5609 * vpath.c (construct_vpath_list): When skipping further processing
5610 of an elt that is ".", don't also skip the code that pushes P past
5613 * compatMakefile (distclean): Don't remove make-*.
5615 * configure.in (HAVE_UNION_WAIT): Try to use WEXITSTATUS if it's
5616 defined. If one cannot use WEXITSTATUS with a `union wait'
5617 argument, we don't want to believe the system has `union wait' at all.
5619 * remake.c (update_file): Do nothing to print "up to date" msgs.
5620 (update_goal_chain): Do it here instead.
5621 Use the `changed' flag of each goal's `struct dep' to keep track
5622 of whether files_remade (now commands_started) changed around a
5623 call to update_file for that goal.
5624 When a goal is finished, and its file's update_status is zero (i.e.,
5625 success or nothing done), test the `changed' flag and give an "up
5626 to date" msg iff it is clear.
5627 * make.h (files_remade): Renamed to commands_started.
5628 * remake.c: Changed defn.
5629 (update_goal_chain): Changed uses.
5630 * job.c (start_job_command): Increment commands_started here.
5631 (reap_children): Not here.
5633 * remake.c (update_goal_chain): Don't do anything with files'
5634 `prev' members. update_file now completely handles this.
5636 * variable.c (target_environment): Don't expand recursive
5637 variables if they came from the environment.
5639 * main.c (define_makeflags): For flags with omitted optional args,
5640 store {"", 0} with ADD_FLAG. When constructing FLAGSTRING, a flag
5641 so stored cannot have more flags appended to the same word.
5643 Fri Jan 22 14:46:16 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5645 * variable.c (print_variable_set): In vars/bucket calculation,
5646 don't spuriously multiply by 100.
5650 * job.c [!HAVE_UNION_WAIT] (WTERMSIG, WCOREDUMP, WEXITSTATUS):
5651 Don't define if already defined.
5653 * remake.c (update_file): Don't keep track of the command_state before
5654 calling update_file_1. Remove local variable COMMANDS_FINISHED,
5655 and don't test it to decide to print the "is up to date" msg.
5656 Testing for files_remade having changed should always be sufficient.
5657 The old method lost when we are called in the goal chain run on a
5658 makefile, because the makefile's command_state is already
5659 `cs_finished' from the makefile chain run.
5661 * misc.c [HAVE_SETRE[GU]ID]: Test these to decl setre[gu]id.
5663 * configure.in: Rewrote wait checking.
5664 Use AC_HAVE_HEADERS to check for <sys/wait.h>.
5665 Use AC_HAVE_FUNCS to check for waitpid and wait3.
5666 Use a compile check to test just for `union wait'.
5667 * job.c: Rewrote conditionals accordingly.
5668 [HAVE_WAITPID]: Test this only to define WAIT_NOHANG.
5669 [HAVE_WAIT3]: Likewise.
5670 [HAVE_UNION_WAIT]: Test this to define WAIT_T and W*.
5672 * configure.in: Set CFLAGS and LDFLAGS before all checks.
5674 * dir.c: Add static forward decls of {open,read}_dirstream.
5676 Thu Jan 21 17:18:00 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5680 * job.c [NGROUPS_MAX && NGROUPS_MAX==0]: #undef NGROUPS_MAX.
5682 * compatMakefile (CFLAGS, LDFLAGS): Set to @CFLAGS@/@LDFLAGS@.
5683 * build.template (CFLAGS, LDFLAGS): Same here.
5684 * configure.in: AC_SUBST(CFLAGS) and LDFLAGS.
5685 Set them to -g if not defined in the environment.
5687 * remake.c (library_search): Use LIBNAME consistently, setting it
5688 only once, to be the passed name sans `-l'.
5689 Pass new var FILE to be modified by vpath_search.
5691 Mon Jan 18 14:53:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5695 * job.c (start_waiting_jobs): Return when job_slots_used is equal to
5698 * configure.in: Add AC_CONST for the sake of getopt.
5700 * read.c (read_makefile): Continue after parsing `override'
5701 directive, rather than falling through to lossage.
5702 Check for EOL or blank after "override define".
5704 * compatMakefile (.c.o, remote.o): Put $(CFLAGS) after other switches.
5706 Fri Jan 15 12:52:52 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5710 * main.c (define_makeflags): After writing everything into
5711 FLAGSTRING, only back up two chars if [-1] is a dash, meaning we
5712 just wrote " -". Always terminate the string at *P.
5714 * remake.c (library_search): When constructing names in std dirs,
5715 use &(*LIB)[2] for the stem, not LIBNAME (which points at the
5716 buffer we are writing into!).
5718 Thu Jan 14 13:50:06 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5720 * read.c (read_makefile): Set IN_IGNORED_DEFINE for "override
5721 define" when IGNORING is true.
5723 * compatMakefile (distclean): Remove config.status and build.sh.
5725 Wed Jan 13 16:01:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5729 * misc.c (xmalloc, xrealloc): Cast result of malloc/realloc to
5732 * arscan.c (ar_scan) [AIAMAG]: Cast read arg to (char *).
5734 * variable.c (define_automatic_variables): Override SHELL value for
5735 origin o_env_override as well as o_env.
5737 * GNUmakefile (build.sh.in): Don't replace %globobjs%. Instead,
5738 add the names of the glob objects (w/subdir) to %objs%.
5739 * build.template (globobjs): Removed.
5740 Take basename of $objs before linking.
5742 Tue Jan 12 12:31:06 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5746 * configure.in (AC_OUTPUT): Also edit build.sh.
5747 * build.template: New file.
5748 * GNUmakefile (build.sh.in): New rule to create it from build.template.
5749 (make-$(version).tar.Z): Depend on build.sh.in.
5751 * main.c (die): Call print_data_base if -p.
5752 (main): Don't call it here.
5754 * compatMakefile (defines): Add @DEFS@. configure should turn this
5755 into -DHAVE_CONFIG_H.
5757 Mon Jan 11 14:39:23 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5761 * misc.c (init_access): Surround with #ifdef GETLOADAVG_PRIVILEGED.
5762 ({make,user,child}_access) [! GETLOADAVG_PRIVILEGED]: Make no-op.
5763 * compatMakefile (install_setgid): New var, set by configure.
5764 (install): Install setgid $(group) only if $(install_setgid) is true.
5766 Fri Jan 8 15:31:55 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5768 * job.c (load_too_high): If getloadavg fails with errno==0, give a
5769 message saying that load limits are not supported.
5771 * vpath.c (construct_vpath_list): Rewrote path deletion code to
5772 not try to use PATH's next link after freeing PATH.
5774 * main.c (define_makeflags): Rewritten; now handles string-valued
5775 option, and has no arbitrary limits.
5776 (switches): Set `toenv' flag for -I and -v.
5778 * main.c (decode_env_switches): Cast return value of alloca to char *.
5780 * misc.c (child_access) [HAVE_SETREUID, HAVE_SETREGID]: Use
5781 setre[gu]id in place of set[gu]id.
5783 Wed Jan 6 15:06:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5785 * main.c (main): Define MAKEOVERRIDES, MAKE, and MAKE_COMMAND with
5788 * make.h [POSIX]: Don't test this to use ANSI_STRING.
5789 Testing STDC_HEADERS should be sufficient.
5791 * job.h: Declare start_waiting_jobs.
5793 * read.c (read_makefile): Add missing parens in if stmt that find
5794 conditional directives.
5796 * main.c (main): Declare init_dir.
5797 * implicit.c (pattern_search): Always use two % specs in a
5798 DEBUGP2, and always pass two non-nil args.
5799 Cast field width args to int.
5800 Add missing parens in !RULE->subdir if stmt.
5801 * function.c (expand_function, patsubst_expand): Add parens around
5802 assignments inside `while' stmts.
5803 * commands.c (print_commands): Cast field width args to int.
5805 * read.c (do_define): Cast return value of alloca to (char *).
5807 * main.c (init_switches): New function, broken out of decode_switches.
5808 (decode_switches): Take new arg ENV. If set, ignore non-option
5809 args; print no error msgs; ignore options with clear `env' flags.
5810 (decode_env_switches): Rewritten to chop envar value into words
5811 and pass them to decode_switches.
5812 (switches): Set `env' flag for -I and -v.
5814 * dir.c (init_dir): Cast free to __glob_closedir_hook's type.
5816 Tue Jan 5 14:52:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5820 * job.c [HAVE_SYS_WAIT || !USG]: Don't #include <sys/time.h> and
5821 <sys/resource.h>. <sys/time.h> interacts badly with <time.h>, and
5822 we don't need these anyway.
5824 * configure.in (AC_HAVE_FUNCS): Check for setre[gu]id.
5825 * misc.c ({user,make}_access): Test #ifndef HAVE_SETRE[GU]ID, not
5826 #ifdef POSIX || USG. SunOS 4.1 is supposedly POSIX.1 compliant,
5827 but its set[gu]id functions aren't; its setre[gu]id functions work.
5829 * misc.c ({user,make,child}_access): Give name of caller in error msgs.
5831 * job.c (load_too_high): Say "cannot enforce load limit" in error msg.
5833 * configure.in: Call AC_PROG_CC.
5834 * compatMakefile (CC): Define to @CC@ (autoconf magic).
5836 * compatMakefile: Add .NOEXPORT magic target.
5838 Mon Jan 4 17:00:03 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5840 * main.c (print_version): Updated copyright to include 93.
5842 Thu Dec 31 12:26:15 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5844 * make.h [_AIX]: Don't declare alloca.
5846 Tue Dec 29 13:45:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5850 * compatMakefile (objs): Add signame.o.
5851 (srcs): Add signame.[ch].
5853 * compatMakefile (srcs): Add config.h.in.
5854 (remote.o): Add -I. before -I$(srcdir).
5856 Mon Dec 28 15:51:26 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5860 * read.c (readline): Fatal when LEN==0, indicating a line starting
5862 (readline): Take new arg LINENO, for use in error msg.
5863 (read_makefile, do_define): Pass it.
5865 * compatMakefile (glob/libglob.a): Pass -DHAVE_CONFIG_H in CPPFLAGS.
5866 (.c.o): Add -I. before -I$(srcdir).
5868 Wed Dec 23 12:12:04 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5870 * read.c (read_makefile): Accept and ignore a rule with no targets.
5872 * compatMakefile (ALLOCA_SRC): New variable.
5873 (srcs): Include its value.
5875 * read.c (struct conditional): Renamed member `max_ignoring' to
5876 `allocated'; added new member `seen_else'.
5877 (conditional_line): Initialize seen_else flag when starting an `if...';
5878 set it when we see an `else'; fatal if set when we see `else'.
5879 (read_makefile): Fatal "missing `endif'" if there are any pending
5880 conditionals, not just if we are still ignoring.
5882 Tue Dec 22 15:36:28 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5884 * compatMakefile (manext): Set to 1, not l.
5885 ($(mandir)/$(instname).$(manext)): Use $(srcdir) for make.man in cmds.
5887 * file.c (file_hash_enter): Don't call uniquize_deps here.
5888 * read.c (record_files): Likewise.
5889 * implicit.c (pattern_search): Likewise.
5890 * commands.c (set_file_variables): Call it only here.
5892 * default.c (default_variables) [__convex__]: FC=fc.
5894 * variable.c (target_environment): Expand the values of recursively
5895 expanded variables when putting them into the environment.
5896 * expand.c (recursively_expand): Made global.
5897 * make.h (recursively_expand): Declare it.
5899 * remake.c (check_dep): Set FILE->command_state to cs_deps_running
5900 when a dep's command_state is cs_running or cs_deps_running.
5902 * read.c (read_makefile): Changed error msg for spurious cmds to
5903 not say "first target".
5905 Sun Dec 20 17:56:09 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5907 * configure.in: Do AC_CONFIG_HEADER right after AC_INIT.
5908 * make.h (HAVE_CONFIG_H): #include "config.h", then #define this.
5909 * compatMakefile (config.h, configure, config.h.in): New rules.
5910 (defines): Removed @DEFS@.
5912 Thu Dec 17 16:11:40 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5914 * compatMakefile (realclean): Just depend on distclean; no cmds.
5915 (distclean): Do what realclean did before; also remove Makefile and
5916 config.h; don't remove configure.
5917 (info, dvi): New targets; depend on make.{info,dvi}.
5918 (doc): Removed target.
5919 (MAKEINFO, TEXI2DVI): New vars.
5920 (make.info, make.dvi): Use them instead of explicit cmds.
5922 Wed Dec 16 16:25:24 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5924 * configure.in: Added fcntl.h to AC_HAVE_HEADERS. getloadavg cares.
5926 Wed Dec 9 15:21:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5928 * main.c (long_option_aliases): Add --new-file alias for -W.
5930 * default.c (default_variables): Change all C++ to CXX and C++FLAGS
5933 * read.c (do_define): Expand the variable name before using it.
5935 * main.c (main): Define variable "MAKE_COMMAND" to argv[0];
5936 define "MAKE=$(MAKE_COMMAND) $(MAKEOVERRIDES)" always.
5938 * remake.c (library_search): Search for libNAME.a in cwd; look in
5939 vpath before looking in standard dirs, not after.
5940 Changed order of std dirs to: /lib, /usr/lib, ${prefix}/lib.
5942 Mon Nov 23 14:57:34 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5944 * default.c (default_pattern_rules, default_terminal_rules): Added
5945 brackets around initializers.
5947 * variable.c (try_variable_definition): Don't check for LINE[0]=='\t'.
5948 (try_variable_definition): Expand the name before defining the var.
5950 * job.c (init_siglist): Removed function.
5951 Removed decl of `sys_siglist'.
5952 * make.h [! HAVE_SYS_SIGLIST]: #include "signame.h".
5953 [HAVE_SYS_SIGLIST && !SYS_SIGLIST_DECLARED]: Declare sys_siglist
5954 only under these conditions.
5955 * main.c (main): Don't declare init_siglist.
5956 (main) [! HAVE_SYS_SIGLIST]: Call signame_init instead of init_siglist.
5958 Wed Nov 18 14:52:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5960 * read.c (record_files): Don't try to append to FIRSTDEPS if it's
5961 nil; instead just set it to MOREDEPS.
5963 Mon Nov 16 17:49:17 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5965 * vpath.c (construct_vpath_list): Initialize P to DIRPATH before
5966 loop that sets MAXELEM.
5968 Fri Nov 13 18:23:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5972 Thu Nov 12 15:45:31 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5974 * job.c (start_job_command): Under -n, increment files_remade after
5975 processing (i.e., printing) all command lines.
5977 Tue Nov 10 15:33:53 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5979 * read.c (record_files): Append new deps if this rule has no
5980 commands; prepend them to existing deps if this rule has no commands.
5982 * dir.c (open_dirstream): Return nil if DIR->contents->files is nil.
5984 * read.c (parse_file_seq): Removed last arg STRIP. Always strip `./'s.
5985 (read_makefile): Changed callers.
5986 * function.c (string_glob): Likewise.
5987 * rule.c (install_pattern_rule): Likewise.
5989 Mon Nov 9 17:50:16 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5991 * remake.c (files_remade): Made global.
5992 (notice_finished_file): Don't increment files_remade here; this
5993 function gets called in many situations where no remaking was in
5995 * job.c (reap_children): Do it here instead, when we know that
5996 actual commands have been run for the file.
5997 * make.h (files_remade): Declare it.
5999 Thu Nov 5 18:26:10 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6001 * vpath.c (construct_vpath_list): Allow blanks as well as colons to
6002 separate elts in the search path.
6004 * read.c (read_makefile): Don't fatal on extra tokens in `vpath'.
6005 The search path can contain spaces now.
6007 Tue Nov 3 20:44:32 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6009 * compatMakefile (check): New target; no-op.
6011 * file.c (file_hash_enter): Mod OLDHASH by FILE_BUCKETS after
6012 testing for OLDHASH==0 but before using the value.
6013 (rename_file): Don't mod OLDHASH by FILE_BUCKETS before passing it
6016 * file.c (rename_file): Notice when OLDFILE->cmds came from
6017 default.c, and don't try to print ->filename in that case.
6019 Sun Oct 25 01:48:23 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6021 * remake.c (update_file): Don't process F->also_make here.
6022 (notice_finished_file): Don't process FILE->also_make if no attempt
6023 to update FILE was actually made.
6024 Fixed to call f_mtime directly to refresh their modtimes.
6026 Sat Oct 24 22:08:59 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6028 * read.c (find_percent): Don't increment P again after skipping
6031 * expand.c (variable_expand): In call to patsubst_expand, don't
6032 find `%'s ourselves; let that function do it.
6034 * read.c (read_makefile: record_waiting_files): Don't call
6035 record_files if FILENAMES is nil.
6036 (read_makefile): All alternatives in the parsing, except for rule
6037 lines, fall through to the end of the loop. At the end of the
6038 loop, do record_waiting_files so we notice later spurious cmds.
6040 Fri Oct 23 15:57:37 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6042 * variable.c (define_automatic_variables): Free old value of SHELL
6043 before replacing it.
6045 Thu Oct 15 18:57:56 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6047 * compatMakefile (.c.o): Add -I$(srcdir)/glob to flags.
6049 * dir.c (open_dirstream): Cast return value to __ptr_t.
6051 * default.c (default_variables: "GET") [_IBMR2]: Use USG defn.
6053 * make.h (MAXPATHLEN): Moved out of #ifndef POSIX.
6054 (GET_PATH_MAX): Moved from #ifdef POSIX to #ifdef PATH_MAX #else.
6055 Define as (get_path_max ()).
6056 [! PATH_MAX] (NEED_GET_PATH_MAX): Define.
6057 [! PATH_MAX] (get_path_max): Declare fn.
6058 * misc.c [NEED_GET_PATH_MAX] (get_path_max): New function.
6060 Mon Oct 12 13:34:45 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6064 * job.c (sys_siglist): Only declare #ifndef SYS_SIGLIST_DECLARED.
6065 * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
6066 SYS_SIGLIST_DECLARED.
6068 * dir.c (file_impossible): When initializing DIR->contents, set
6069 DIR->contents->dirstream to nil.
6071 * compatMakefile (GLOB): Define new variable.
6072 (objs): Use it, rather than glob/libglob.a explicitly.
6074 * read.c (parse_file_seq): When stripping "./", handle cases like
6075 ".///foo" and "./////".
6076 * file.c (lookup_file, enter_file): Likewise.
6078 Sun Oct 11 17:00:35 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6080 * dir.c (struct dirstream, {open,read}_dirstream): New
6081 data type and functions to read a directory sequentially.
6082 (init_dir): New function to hook it into glob.
6083 * main.c (main): Call init_dir.
6085 * compatMakefile (objs): Added glob/libglob.a.
6086 * configure.in: Remove code to test for glob.
6088 Fri Oct 9 12:08:30 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6090 * read.c (record_files): Generalized test for NAME pointing
6091 somewhere into F->name.
6093 * variable.c (define_variable_in_set): Free old value when replacing.
6095 * read.c (do_define): Free the linebuffer before returning.
6096 (record_files): When clearing .SUFFIXES deps, free their data.
6097 (multi_glob): Free OLD and its data when replacing it with results
6100 * commands.c (set_file_variables): Use alloca in place of xmalloc
6101 for temp space for $^, $?, et al.
6103 * dir.c (struct directory): New member `contents' replaces `files'
6105 (struct directory_contents): New type.
6106 (directories_contents): New hash table.
6107 (dir_struct_file_exists_p): Take a struct directory_contents.
6108 (dir_file_exists_p): Pass it the `contents' member of the dir found.
6109 (dir_struct_file_exists_p): Renamed to dir_contents_file_exists_p;
6110 made static. Return 0 if DIR is nil (meaning it couldn't be stat'd).
6111 (dir_file_exists_p, find_directory): Change all callers.
6112 (file_impossible): Use DIR->contents, initializing it if nil.
6113 (print_dir_data_base): Use DIR->contents, and print out device and
6114 inode numbers with each directory.
6116 * Changes for performance win from John Gilmore <gnu@cygnus.com>:
6117 * dir.c (DIRECTORY_BUCKETS): Increase to 199.
6118 (DIRFILE_BUCKETS): Decrease to 107.
6119 (find_directory): Allocate and zero a multiple of
6120 sizeof (struct dirfile *), not of sizeof (struct dirfile).
6121 (dir_struct_file_exists_p): New function, nearly all code from
6123 (dir_file_exists_p): Just call find_directory+dir_struct_file_exists_p.
6124 * vpath.c (selective_vpath_search): Remove redundant
6125 dir_file_exists_p call.
6127 * configure.in: Comment out glob check; always use our code.
6129 Fri Oct 2 19:41:20 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6131 * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
6132 HAVE_SYS_SIGLIST; after doing #define sys_siglist _sys_siglist, we
6135 Wed Sep 30 19:21:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6137 * main.c (main): Don't do -w automatically if -s.
6139 Tue Sep 29 21:07:55 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6141 * main.c (printed_version): Move variable inside print_version.
6142 (print_version): Return immediately if printed_version is set.
6143 (die): Don't test printed_version here.
6144 (decode_switches): Under -v, do print_version before giving usage.
6145 (DESCRIPTION_COLUMN): New macro.
6146 (decode_switches): Use it when printing the usage message.
6147 Leave at least two spaces between options and their descriptions.
6149 Fri Sep 25 13:12:42 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6153 Wed Sep 16 16:15:22 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6155 * read.c (read_makefile): Save errno value from trying to open
6156 FILENAME, and restore it before erring; otherwise we get the errno
6157 value from the last elt of the search path.
6159 Tue Sep 15 15:12:47 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6161 * main.c (long_option_aliases): Add --stop for -S.
6163 * read.c (word1eq): Do strncmp before dereferencing someplace that
6164 may be out in space.
6166 Wed Sep 9 15:50:41 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6168 * remake.c (notice_finished_file): If all the command lines were
6169 recursive, don't do the touching.
6171 * job.c (start_job_command): Don't check for + here.
6172 * commands.c (chop_commands): Do it here instead.
6174 * default.c (default_terminal_rules): Prepend + to cmds for RCS.
6176 Wed Sep 2 17:53:08 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6178 * compatMakefile (objs): Include $(ALLOCA).
6180 * make.h [CRAY]: Move #define signal bsdsignal to before #includes.
6182 Thu Aug 27 17:45:43 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6184 * read.c (default_include_directories): Add INCLUDEDIR first.
6185 * compatMakefile (includedir): Define.
6186 (defines): Add -D for INCLUDEDIR="$(includedir)".
6188 * read.c (read_makefile): Grok multiple files in `include';
6191 * remake.c (library_search): New function.
6192 (library_file_mtime): Remove function.
6193 (f_mtime): Use library_search instead of library_file_mtime.
6194 * compatMakefile (libdir): Define.
6195 (defines): Add -D for LIBDIR="$(libdir)".
6196 * make.texinfo (Libraries/Search): Document change.
6198 * file.c (rename_file): Fix file_hash_enter call with missing arg.
6200 Wed Aug 26 17:10:46 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6204 * main.c (main): Set command_state to cs_finished for temp files
6205 made for stdin makefiles.
6207 * main.c (decode_switches): Don't tell getopt to return non-option
6209 Ignore an argument of `-'.
6211 Thu Aug 20 13:36:04 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6213 * job.c (start_job_command): If (touch_flag && !RECURSIVE), ignore
6214 the command line and go to the next.
6215 (notice_finished_file): Under -t, touch FILE.
6216 * remake.c (remake_file): Don't touch it here.
6218 Wed Aug 19 16:06:09 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6220 * function.c (pattern_matches): Use temporary for strlen (WORD)
6221 instead of two function calls.
6223 * compatMakefile (LOAD_AVG): Remove variable and comments.
6225 Tue Aug 18 14:58:58 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6227 * make.texinfo (Running): Node renamed to `make Invocation'.
6229 Fri Aug 14 12:27:10 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6231 * arscan.c (ar_name_equal): Don't compare [MAX-3..MAX] if
6234 Thu Aug 13 17:50:09 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6238 * main.c: Don't #include <time.h>; make.h already does.
6240 Mon Aug 10 17:03:01 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6242 * implicit.c (pattern_search): Fixed copying of suffix when building
6245 * function.c (expand_function: `shell'): Make sure BUFFER is
6246 null-terminated before replacing newlines.
6248 * compatMakefile (mandir): Use man$(manext), not always manl.
6250 Sun Aug 2 01:42:50 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6252 * rule.c (new_pattern_rule): Not static.
6253 * rule.h: Declare it.
6255 * file.c (file_hash_enter): New function, most code from rename_file.
6256 (rename_file): Call it.
6257 * file.h (file_hash_enter): Declare it.
6261 Thu Jul 30 15:40:48 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6263 * main.c (decode_switches): Handle usage_and_exit when building
6264 long options vector.
6266 * default.c (default_terminal_rules): Make RCS rules use $(CHECKOUT,v).
6267 (default_variables): Define CHECKOUT,v (hairy).
6269 * make.h [!HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
6270 sys_siglist to _sys_siglist.
6272 Sun Jul 26 16:56:32 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6274 * NEWS: Add header and tail copyright info like Emacs NEWS.
6276 * make.h [ANSI_STRING]: Don't #define index, rindex, bcmp, bzero,
6277 bcopy if already #define'd.
6278 [STDC_HEADERS] (qsort, abort, exit): Declare here.
6279 [! __GNU_LIBRARY__ && !POSIX]: Not here.
6281 * make.h [_AIX]: #pragma alloca first thing.
6283 * job.c (start_waiting_job): Set the command_state to cs_running
6284 when we queue a job on waiting_jobs.
6286 Fri Jul 24 02:16:28 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6288 * variable.c (define_automatic_variables): Use "" instead of nil
6291 Thu Jul 23 22:31:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6295 * main.c (struct command_switch.type): Add alternative usage_and_exit.
6296 (command_switches): Add -h/--help.
6298 Thu Jul 16 14:27:50 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6300 * GNUmakefile (make-$(version).tar.Z): Include NEWS, not CHANGES.
6301 * README.template: Mention NEWS.
6302 * CHANGES: Renamed to NEWS.
6304 * main.c [! STDC_HEADERS] [sun]: Don't declare exit.
6306 Tue Jul 14 18:48:41 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6308 * main.c (main): Set -o files' command_states to cs_finished.
6310 * rule.c (count_implicit_rule_limits): Decrement num_pattern_rules
6311 when tossing a rule.
6313 * main.c (main): Use alloca only in simple local var assignment,
6314 for braindead SGI compiler.
6316 * rule.c (print_rule_data_base): Barf if num_pattern_rules is
6317 inconsistent with the number computed when listing them.
6319 Mon Jul 13 17:51:53 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6321 * commands.c (set_file_variables): For $? and $^ elts that are archive
6322 member refs, use member name only.
6324 Fri Jul 10 00:05:04 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6326 * variable.h (struct variable.export): Add new alternative v_ifset.
6327 * variable.c (target_environment): Check for it.
6328 (define_automatic_variables): Set it for MAKEFILES.
6330 Thu Jul 9 21:24:28 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6332 * compatMakefile (objs): Remove getloadavg.o; $(extras) gets it.
6333 (remote.o): Use $(srcdir)/remote.c, not $remote.c<.
6334 (distclean, mostlyclean): New targets.
6336 Tue Jul 7 19:12:49 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6340 * compatMakefile (config.status): Remove rule.
6342 * job.c (start_waiting_job): Free C after using C->file, not before.
6344 Sat Jul 4 20:51:49 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6346 * commands.c, job.c, main.c, make.h, remote-cstms.c: Use #ifdef
6347 HAVE_* instead of #ifndef *_MISSING.
6348 * configure.in: Use AC_HAVE_FUNCS instead of AC_MISSING_FUNCS (gone).
6350 Thu Jul 2 18:47:52 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6352 * main.c (main): makelevel>0 or -C implies -w.
6354 Tue Jun 30 20:50:17 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6356 * file.c, job.c, function.c: Don't #include <errno.h>.
6357 make.h: Do it here instead.
6358 * arscan.c (ar_member_touch): Don't declare errno.
6360 Thu Jun 25 17:06:55 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6362 * GNUmakefile (make-$(version).tar.Z): Depend on INSTALL, configure.in.
6364 * remake.c (update_file): If commands or deps are running after
6365 update_file_1 returns, break out of the :: rule (->prev) loop and
6368 * job.c (job_next_command): New function; code from start_job.
6369 (start_job_command): Renamed from start_job. Call job_next_command
6370 and recurse for empty command lines and -n.
6371 (start_waiting_job): Call start_job_command, not start_job.
6372 (new_job): Call job_next_command to prime the child structure, and
6373 then call start_waiting_job.
6374 (reap_children): Use job_next_command and start_job_command.
6375 (start_waiting_job): Call start_remote_job_p here, and store its
6376 result in C->remote. If zero, check the load average and
6377 maybe put C on waiting_jobs.
6378 (start_job_command): Test CHILD->remote rather than calling
6379 start_remote_job_p. Don't do load avg checking at all here.
6381 * main.c (main): Don't handle SIGILL, SIGIOT, SIGEMT, SIGBUS,
6382 SIGSEGV, SIGFPE or SIGTRAP.
6384 * compatMakefile (glob/libglob.a): Don't pass srcdir to sub-make.
6385 configure will set it in glob/Makefile.
6387 Wed Jun 24 19:40:34 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6389 * dir.c [DIRENT] (direct): Don't define to dirent.
6390 [! DIRENT] (direct): Define to dirent.
6391 (dir_file_exists_p): Use struct dirent instead of struct direct.
6393 * make.h (getcwd): No space between macro and ( for args!
6395 * job.c (start_job): Don't put the job on waiting_jobs if
6398 * make.texinfo (Missing): Shortened title.
6400 Tue Jun 23 18:42:21 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6402 * file.c (remove_intermediates): Print "rm" commands under -n.
6404 Mon Jun 22 16:20:02 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6408 Fri Jun 19 16:20:26 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6410 * arscan.c [M_UNIX]: #undef M_XENIX.
6412 Wed Jun 17 17:59:28 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6414 * default.c (default_terminal_rules): Put @ prefix on RCS cmds.
6416 Tue Jun 16 19:24:17 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6418 * compatMakefile (getloadavg.o): Removed special rule.
6419 (CFLAGS): Don't include $(defines).
6420 (.c.o): Define suffix rule.
6421 (glob/libglob.a): Pass CPPFLAGS=$(defines) to submake.
6422 (GETOPT_SRC, srcs, tagsrcs): Prefix files with $(srcdir)/.
6424 * arscan.c (ar_name_equal): Moved local vars inside #if'd block.
6426 * make.h (max): Removed.
6427 * expand.c (variable_buffer_output): Don't use it.
6429 * compatMakefile (INSTALL): Define.
6430 (Makefile): New rule to make from Makefile.in.
6433 (getloadavg.o, remote.o): Use autoconf $foo< hack.
6435 * commands.c (fatal_error_signal): Removed return.
6437 Mon Jun 15 17:42:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6441 * make.texinfo (Summary): New node.
6442 (Special Targets): Mention .EXPORT_ALL_VARIABLES here.
6444 * variable.c (max): Moved to make.h.
6446 * compatMakefile (objs, srcs): Added ar & arscan.
6448 * job.c (start_waiting_job): New function, 2nd half of new_job.
6450 (start_waiting_jobs): New function.
6451 * remake.c (update_goal_chain): Call start_waiting_jobs at the top
6453 * compatMakefile (objs, srcs): Removed load, added getloadavg.
6455 Fri Jun 12 19:33:16 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6457 * job.c (load_too_high): New function. Uses getloadavg.
6458 (waiting_jobs): New variable.
6459 (start_job): Don't call wait_to_start_job. Instead, if
6460 load_too_high returns nonzero, add the child to the
6461 `waiting_jobs' chain and return without starting the job.
6463 Thu Jun 11 00:05:28 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6465 * expand.c (variable_buffer_output): Made global again.
6466 * variable.h: And declare it.
6468 * arscan.c (PORTAR): Define for all systems if PORT5AR is not defined.
6469 (AR_NAMELEN, AR_TRAILING_SLASH): Removed.
6470 (ar_scan): Don't use it. Don't #ifdef AR_TRAILING_SLASH; just look
6471 for a slash in the archive at run time.
6472 (ar_name_equal): Rewrote .o hacking to not use AR_NAMELEN, and to
6473 cope with trailing-slash and non-trailing-slash archives.
6475 * main.c (main) [! SETVBUF_REVERSED]: Test this instead of USGr3 et al.
6476 [SETVBUF_REVERSED]: Always allocate a buffer ourselves.
6478 * load.c (load_average) [sgi]: Use sysmp call.
6480 * compatMakefile (INSTALL_DATA, INSTALL_PROGRAM): Define.
6481 ($(bindir)/$(instname), $(mandir)/make.$(manext)): Use them.
6483 * make.h [HAVE_VFORK_H]: #include <vfork.h>.
6484 (vfork, VFORK_NAME): Don't define.
6485 * job.c (start_job): Use "vfork" in place of VFORK_NAME.
6487 * make.h [HAVE_LIMITS_H, HAVE_SYS_PARAM_H]: If #define'd, #include
6488 the each file. Rearranged PATH_MAX hacking.
6489 * job.c: Rearranged NGROUPS_MAX hacking.
6491 * remake.c (fstat, time): Don't declare.
6493 * compatMakefile (defines): Value is @DEFS@.
6494 (LOADLIBES): Value is @LIBS@.
6495 (extras): Value is @LIBOBJS@.
6496 (ARCHIVES, ARCHIVES_SRC, ALLOCASRC): Removed.
6497 * arscan.c, ar.c: Surround body with #ifndef NO_ARCHIVES.
6499 * misc.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl get*id.
6501 * make.h [GETCWD_MISSING]: Test instead of !USG && !POSIX et al.
6502 (getcwd): Just declare if present. If not, declare as a macro
6503 using getwd, and declare getwd.
6504 [PATH_MAX] (GET_PATH_MAX): #define to PATH_MAX.
6505 * main.c (main, log_working_directory): Use getcwd instead of getwd.
6507 * main.c (main) [SETLINEBUF_MISSING]: Test this instead of USG.
6509 * make.h (SIGHANDLER, SIGNAL): Removed.
6510 (RETSIGTYPE): Define if not #define'd.
6511 * main.c (main): Use signal in place of SIGNAL.
6513 * main.c [SYS_SIGLIST_MISSING]: Test instead of USG.
6515 * job.c (search_path) [GETGROUPS_MISSING]: Test instead of USG.
6516 [HAVE_UNISTD_H]: Test instead of POSIX to not decl getgroups.
6518 * main.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl chdir.
6519 [! STDC_HEADERS]: Test instead of !POSIX to decl exit & atof.
6521 * job.c (child_handler), commands.c (fatal_error_signal): Return
6522 RETSIGTYPE instead of int.
6523 * main.c (main): Declare fatal_error_signal and child_handler here
6524 to return RETSIGTYPE; removed top-level decl of former.
6526 * commands.c (fatal_error_signal), job.c (unblock_sigs, start_job),
6527 main.c [SIGSETMASK_MISSING]: Test this instead of USG.
6529 Wed Jun 10 22:06:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6531 * job.c [HAVE_WAITPID]: Test this instead of USG.
6532 [! HAVE_UNISTD_H]: Test this instead of !POSIX to declare misc fns.
6533 (GID_T): Don't #define.
6534 (search_path): Use gid_t instead of GID_T.
6535 [GETDTABLESIZE_MISSING, SYS_SIGLIST_MISSING, DUP2_MISSING]: Test
6536 these individually instead of USG for all.
6537 * make.h (ctime): Don't declare. #include time.h instead.
6538 [HAVE_UNISTD_H]: #include <unistd.h> and #define POSIX #ifdef
6540 * dir.c [__GNU_LIBRARY__] (D_NAMLEN): Define to use d_namlen member.
6541 * make.h [NEED_MEMORY_H]: Only include memory.h #ifdef this.
6543 * arscan.c: Removed #ifdef mess about string.h et al.
6544 Just #include make.h instead.
6545 * make.h (fstat, atol): Declare.
6547 * commands.c (fatal_error_signal): Don't use sigmask to check for
6548 propagated signals; use ||s instead.
6549 (PROPAGATED_SIGNAL_MASK): Removed.
6550 (fatal_error_signal) [POSIX]: Use sigprocmask in place of sigsetmask.
6552 * variable.c (variable_buffer, variable_buffer_length,
6553 initialize_variable_output, variable_output): Moved to expand.c;
6555 (struct output_state, save_variable_output,
6556 restore_variable_output): Removed.
6557 * expand.c (initialize_variable_output): Put a NUL at the beginning
6558 of the new buffer after allocating it.
6559 (allocated_variable_expand_for_file): Don't use
6560 {save,restore}_variable_output. Do it by hand instead, keeping
6561 state on the stack instead of malloc'ing it.
6562 (allocated_variable_expand): Removed.
6563 * variable.h (allocated_variable_expand): Define here as macro.
6564 (variable_buffer_output, initialize_variable_output,
6565 save_variable_output, restore_variable_output): Removed decls.
6567 * read.c (conditional_line): For an if cmd, if any elt of the
6568 conditionals stack is ignoring, just push a new level that ignores
6569 and return 1; don't evaluate the condition.
6571 Thu Jun 4 21:01:20 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6573 * main.c (main): Put #ifdef's around frobbing SIGSYS and SIGBUS.
6575 * job.c (getdtablesize): Don't declare or #define if already #define'd.
6577 Wed Jun 3 23:42:36 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6579 * file.c (snap_deps): If `.EXPORT_ALL_VARIABLES' is a target, set
6580 export_all_variables.
6581 * make.texinfo (Variables/Recursion): Document .EXPORT_ALL_VARIABLES.
6583 Tue Jun 2 21:08:35 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6587 * commands.c (set_file_variables): Calculate length for ^D and ?D
6588 individually, making sure to give them at least enough space for "./".
6590 * make.h [CRAY]: #define signal to bsdsignal.
6592 * default.c (default_variables) [CRAY]: Define PC, SEGLDR,
6593 CF77PPFLAGS, CF77PP, CFT, CF, and FC.
6595 * arscan.c (AR_HDR_SIZE): Define to sizeof (struct ar_hdr), if it
6596 wasn't defined by <ar.h>.
6598 Thu May 28 00:56:53 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6602 Tue May 26 01:26:30 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6604 * rule.c (new_pattern_rule): Initialize LASTRULE to nil, not
6607 Mon May 25 19:02:15 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6609 * main.c (decode_switches): Initialize all the long_option elt members.
6611 Thu May 21 16:34:24 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6613 * make.texinfo (Text Functions): Correct filter-out description.
6615 Tue May 19 20:50:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6617 * compatMakefile (realclean): Don't remove backup files.
6619 * main.c (decode_switches): Allocate ARGC+1 elts in `other_args'.
6621 Sun May 17 16:38:48 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6625 Thu May 14 16:42:33 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6627 * job.c (reap_children): Don't die if wait returns EINTR.
6629 Wed May 13 18:28:25 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6631 * job.c (reap_children): Always run the next command for a
6632 successful target. If we are going to die, we don't want to leave
6633 the target partially made.
6635 Tue May 12 00:39:19 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6637 * job.c (construct_command_argv_internal): After loop, if we only
6638 have one word, check it for being a shell command.
6640 * main.c (decode_switches): Allocate ARGC slots in other_args to
6641 begin with, so we never need to worry about growing it.
6642 If we get a non-option arg and POSIXLY_CORRECT is in the
6643 environment, break out of the loop. After the loop, add all remaining
6644 args to other_args list.
6646 * main.c (decode_switches): For positive_int and floating switches
6647 when optarg is nil, use next arg if it looks right (start with a
6648 digit, or maybe decimal point for floating).
6650 * variable.c (define_automatic_variables): Always set SHELL to
6651 default if it comes from the environment. Set its export bit.
6652 * make.texinfo (Environment): Document change.
6654 Mon May 11 00:32:46 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6658 * compatMakefile (tags, TAGS): Use vars for cmds.
6659 (ETAGS, CTAGS): Define.
6661 * main.c (decode_switches): If a switches elt has a nil long_name,
6662 make the long option name elt be "".
6663 Fixed loop to not ignore all the options.
6665 * make.texinfo (Option Summary): Added long options.
6667 * main.c (switches): Changed -m's description to "-b".
6668 (decode_switches): When printing the usage message, don't print
6669 switches whose descriptions start with -.
6670 When constructing the list of names for switch -C, search the
6671 switches vector for switches whose descriptions are "-C".
6673 * main.c (switches): Call -S --no-keep-going, not --dont-keep-going.
6674 Call -I --include-dir, not --include-path.
6675 (long_option_aliases): Added --new == -W, --assume-new == -W,
6676 --assume-old == -o, --max-load == -l, --dry-run == -n, --recon == -n,
6679 * main.c (switches): Removed bogus "silent" elt.
6680 (long_option_aliases): Define new var.
6681 (decode_switches): Add long_option_aliases onto the end of the long
6682 options vector created for getopt_long.
6683 Look through long_option_aliases for extra names to list
6686 Sat May 9 00:21:05 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6688 * main.c (log_working_directory): Fixed to properly not print the
6689 leaving message when we haven't printed the entering message.
6691 Fri May 8 21:55:35 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6693 * main.c (struct command_switch): Added elts `long_name',
6694 `description', and `argdesc'.
6695 (switches): Added initializers for new members.
6696 (decode_switches): Rewritten to use getopt_long.
6697 * compatMakefile (GETOPT, GETOPT_SRC): Define.
6698 (objs, srcs): Include them.
6700 * job.c (child_died): Renamed to dead_children; made static.
6701 (child_handler): Increment dead_children instead of setting child_died.
6702 (reap_children): Decrement dead_children instead of clearing
6703 child_died. The point of all this is to avoid printing "waiting
6704 for unfinished jobs" when we don't actually need to block.
6705 This happened when multiple SIGCHLDs before reap_children was called.
6707 * job.c (reap_children): If ERR is set, so we don't call start_job
6708 on the child being reaped, instead set its command_state to
6710 (reap_children, child_handler, new_job): I added several
6711 debugging printf's while fixing this. I left them in if (debug_flag)
6712 because they may be useful for debugging this stuff again.
6714 Wed May 6 22:02:37 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6716 * read.c (read_makefile): v_export is not 1.
6718 Mon May 4 17:27:37 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6722 * variable.c (export_all_variables): New variable.
6723 (target_environment): Export variables whose `export' member is
6724 v_default if export_all_variables is set and their names are benign.
6725 * variable.h: Declare export_all_variables.
6726 * read.c (read_makefile): If export or unexport is given with no
6727 args, set or clear export_all_variables, respectively.
6729 * variable.c (target_environment): Exclude MAKELEVEL in the loop,
6730 so it isn't duplicated when we add it at the end.
6732 Sun May 3 17:44:48 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6736 * variable.h (struct variable): Added new member `export'.
6737 * variable.c (define_variable_in_set): Initialize it to v_default.
6738 (target_environment): Don't check for .NOEXPORT.
6739 Export variables whose `export' member is v_default and that would
6740 have been exported under .NOEXPORT, and variables whose `export'
6742 (try_variable_definition): Return the variable defined.
6743 * variable.h (try_variable_definition): Changed decl.
6744 * read.c (read_makefile): Recognize `export' and `unexport' directives.
6746 Fri May 1 11:39:38 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6748 * main.c (main) [POSIX]: Reversed args to sigaddset.
6750 Thu Apr 30 17:33:32 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6752 * job.c [POSIX || !USG] (unblock_sigs): New fn.
6753 (start_job): Block signals before forking.
6754 (new_job): Unblock signals after putting the new child on the chain.
6755 * main.c (main) [POSIX]: Use sigset_t fatal_signal_set instead of
6756 int fatal_signal_mask.
6758 * load.c [sgi] (LDAV_CVT): Define.
6760 Wed Apr 29 17:15:59 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6764 * load.c (load_average) [sgi]: Clear the high bit of the address
6765 from the symbol table before looking it up in kmem.
6767 * misc.c (fatal, makefile_fatal): Put *** in fatal error messages.
6768 (remake_file): No longer needed in message here.
6770 * main.c (die): Call reap_children with BLOCK==1.
6772 Tue Apr 28 20:44:35 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6774 * rule.c (freerule): Don't set LASTRULE->next if LASTRULE is nil.
6776 Sun Apr 26 15:09:51 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6778 * rule.c (count_implicit_rule_limits): Initialize LASTRULE to nil,
6779 not to head of chain. Extract next ptr before we might do
6780 freerule, and use that for next iteration.
6781 (freerule): Still do next ptr frobbing if LASTRULE is nil.
6783 Tue Apr 21 03:16:29 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6785 * job.c (child_error): Removed extra %s from error msg format.
6789 * job.c (reap_children): Don't start later commands in a sequence
6792 * job.c (new_job): Always call reap_children with BLOCK==0 first thing.
6794 * job.c (reap_children): New function; work that used to be done in
6796 (child_died): New global var.
6797 (child_handler): Now just sets child_died.
6798 (wait_for_children): Removed.
6799 (unknown_children_possible, block_signals, unblock_signals,
6800 push_signals_blocked_p, pop_signals_blocked_p): Removed.
6801 (child_execute_job): Removed call to unblock_signals.
6802 (new_job): Removed calls to push_signals_blocked_p and
6803 pop_signals_blocked_p.
6804 * job.h: Declare reap_children, not wait_for_children.
6805 * commands.c (fatal_error_signal), job.c (new_job),
6806 load.c [LDAV_BASED] (wait_to_start_job), main.c (die),
6807 remake.c (update_goal_chain), function.c (expand_function: `shell'):
6808 Changed wait_for_children calls to reap_children.
6809 Some needed to be loops to wait for all children to die.
6810 * commands.c (fatal_error_signal), main.c (main,
6811 log_working_directory), function.c (expand_function): Removed calls
6812 to push_signals_blocked_p and pop_signals_blocked_p.
6813 * job.h: Removed decls.
6815 * job.h: Added copyright notice.
6817 Wed Apr 15 02:02:40 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6819 * job.c (child_error): No *** for ignored error.
6821 Tue Apr 14 18:31:21 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6823 * implicit.c (DEBUGP2): Use do ... while (0) instead of if ... else to
6824 avoid compiler warnings.
6826 * read.c (parse_file_seq): Don't remove ./ when it is followed by a
6829 Mon Apr 13 21:56:15 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6831 * make.h (DEBUGPR): Use do ... while (0) instead of if ... else to
6832 avoid compiler warnings.
6834 * remake.c (notice_finished_file): Run file_mtime on the also_make
6835 files, so vpath_search can happen.
6837 * GNUmakefile (tests): Use perl test suite from csa@sw.stratus.com.
6838 (alpha-files): Include test suite tar file.
6840 Fri Apr 3 00:50:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6844 Wed Apr 1 05:31:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6846 * remake.c (update_file, update_file_1): Do check_renamed on elts
6847 of dep chains when traversing them. Something unrelated might have
6848 renamed one of the files the dep chain points to.
6850 * file.c (rename_file): If FILE has been renamed, follow its
6851 `renamed' ptr, so we get to the final real FILE. Using the renamed
6852 ones loses because they are not in the hash table, so the removal
6853 code loops infinitely.
6855 * read.c (read_all_makefiles): Clobber null terminator into
6856 MAKEFILES expansion, so string passed to read_makefile is properly
6859 Mon Mar 30 20:18:02 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6861 * commands.c (set_file_variables): $* for archive member with
6862 explicit cmds is stem of member, not of whole `lib(member)'.
6864 Thu Mar 26 15:24:38 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6868 Tue Mar 24 05:20:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6870 * rule.c (new_pattern_rule): Rules are identical only if all their
6871 targets match (regardless of order).
6873 Wed Mar 11 13:49:54 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
6875 * remake.c (remake_file): Changed error "no way to make" to "no
6876 rule to make". Fiat Hugh.
6878 * make.texinfo (Last Resort): Describe %:: rules and new .DEFAULT
6881 * remake.c (update_file_1): Only use .DEFAULT cmds if FILE is not a
6884 Tue Mar 10 18:13:13 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6886 * remote-stub.c, remote-cstms.c (start_remote_job): Take new arg,
6887 environment to pass to child.
6888 * job.c (start_job): Pass it.
6890 Mon Mar 9 19:00:11 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6892 * file.c (enter_file): Also strip ./s here, to get command-line
6895 * remote-cstms.c: Add comment telling people to leave me alone.
6897 * compatMakefile (manpage install): Remove target before copying.
6899 Tue Mar 3 18:43:21 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6901 * make.texinfo (Missing): Renamed to "Incompatibilities and ...".
6902 Added paragraph describing $? incompatibility with Unix and POSIX.2.
6904 Sun Mar 1 15:50:54 1992 Roland McGrath (roland@nutrimat.gnu.ai.mit.edu)
6906 * function.c (expand_function: `shell'): Don't declare fork or pipe.
6907 Use vfork instead of fork.
6909 Tue Feb 25 22:05:32 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6911 * make.texinfo (Chained Rules): Clarify .PRECIOUS to save
6914 * load.c [sun] (LDAV_CVT): Define to divide by FSCALE.
6916 Sun Feb 16 02:05:16 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6920 Sat Feb 15 17:12:20 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6922 * compatMakefile (makeinfo): Use emacs batch-texinfo-format fn.
6924 Fri Feb 14 00:11:55 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6926 * read.c (read_makefile): Correctly handle define & endef in ifdefs.
6928 * read.c (record_files): Pass arg for %s in error msg.
6930 * main.c (main) [__IBMR2, POSIX]: Use correct (a la USGr3) setvbuf
6933 Wed Feb 12 12:07:39 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6935 * make.texinfo (Libraries/Search): Say it does /usr/local/lib too.
6937 Sun Feb 9 23:06:24 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6939 * read.c (read_makefile): Check for extraneous `endef' when ignoring.
6941 Thu Feb 6 16:15:48 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6945 Tue Feb 4 20:04:46 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6947 * job.c (construct_command_argv_internal): Correctly ignore
6948 whitespace after backslash-NL.
6950 Fri Jan 31 18:30:05 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6952 * compatMakefile: Ignore errors from chgrp and chmod when installing.
6954 Wed Jan 29 18:13:30 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6956 * main.c (main): When setting MAKELEVEL in the env to re-exec,
6957 allocate space so as not to clobber past the end of the old string.
6959 * make.h [HAVE_ALLOCA_H]: Include <alloca.h>
6960 * compatMakefile (defines): Document HAVE_ALLOCA_H.
6962 Mon Jan 20 13:40:05 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6964 * make.h [VFORK_MISSING]: Use fork instead.
6965 * compatMakefile (defines): Document same.
6967 * job.c (construct_command_argv_internal): Don't create an empty
6968 arg if backslash-NL is at beginning of word.
6970 Sun Jan 19 16:26:53 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6972 * main.c [DGUX]: Call setvbuf as for USGr3.
6974 * job.c (construct_command_argv_internal): Notice correctly that
6975 backslash-NL is the end of the arg (because it is replaced with a
6978 Thu Jan 16 18:42:38 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6980 * job.c (construct_command_argv_internal): If SHELL is nil, set it
6981 to default_shell before proceeding.
6983 * make.h [sgi]: No alloca.h, after all.
6985 Wed Jan 15 12:30:04 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6987 * read.c (multi_glob): Cons up the chain of the results of glob
6988 from back to front, so it comes out in forward order.
6990 * job.c (construct_command_argv_internal): Don't eat char following
6993 Mon Jan 13 19:16:56 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6997 * default.c (default_variables) [ultrix]: GET=get, like USG.
6999 * job.c (construct_command_argv_internal): Remove tabs following
7000 backslash-NL combos in the input line, so they don't show up when
7001 that line is printed.
7003 * read.c (read_makefile): Don't collapse_continuations the line on
7004 input; do it on the copy we do remove_comments on.
7005 For rule lines, collapse_continuations the line after chopping
7006 ";cmds" off the end, so we don't eat conts in the cmds.
7007 Give error for ";cmds" with no rule.
7008 * job.c (construct_command_argv_internal): Eat backslash-NL combos
7009 when constructing the line to recurse on for slow, too.
7011 Sat Jan 11 02:20:27 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
7013 * file.c (enter_file): Don't strip leading `./'s.
7014 * read.c (parse_file_seq): Take new arg STRIP; if nonzero, do it here.
7015 * default.c (set_default_suffixes), function.c (string_glob),
7016 read.c (read_makefile), rule.c (install_pattern_rule): Change callers.
7018 * default.c (default_variables) [_IBMR2]: FC=xlf
7020 * job.c (construct_command_argv_internal): Turn backslash-NL and
7021 following whitespace into a single space, rather than just eating
7024 * make.texinfo (Copying): @include gpl.texinfo, rather than
7025 duplicating its contents.
7027 Fri Nov 8 20:06:03 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7029 * job.c (construct_command_argv_internal): Make sure not to bother
7030 processing an empty line.
7034 * job.c (construct_command_argv_internal): Always recurse for slow;
7035 simple case didn't handle finding newlines.
7037 Tue Nov 5 18:51:10 1991 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
7039 * job.c (construct_command_argv_internal): Set RESTP properly when
7040 slow; don't \ify past a newline.
7042 Fri Nov 1 19:34:28 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7044 * make.h [sgi]: #include <alloca.h>.
7048 See ChangeLog.1 for earlier changes.