1 2000-01-25 Paul D. Smith <psmith@gnu.org>
3 Change gettext support to use the simplified version in libit 0.7.
5 * getopt.c, make.h: Use gettext.h instead of libintl.h.
6 * ABOUT-NLS, gettext.h, gettext.c: New files from libit 0.7.
7 Modified to remove some static declarations which aren't defined.
8 * acconfig.h: Use new gettext #defines.
9 * acinclude.m4: Add fp_WITH_GETTEXT; remove AM_GNU_GETTEXT.
10 * configure.in: Call fp_WITH_GETTEXT instead.
11 * Makefile.am: New gettext stuff. Also force inclusion of glob
12 files for systems which have LIBC glob.
14 * i18n/Makefile.am, i18n/.cvsignore: New dir for translation files.
15 * i18n/de.po, i18n/es.po, i18n/fr.po, i18n/ko.po, i18n/nl.po:
16 * i18n/pl.po, i18n/ru.po: Import translations already done for
17 earlier versions of GNU make. Thanks for that work!!
19 * po/Makefile.in.in, po/POTFILES.in: Removed.
21 2000-01-23 Paul D. Smith <psmith@gnu.org>
23 * main.c (decode_debug_flags): If debug_flag is set, enable all
25 (debug_flag): Resurrect this flag variable.
26 (switches): Make -d give the old behavior of turning on all
27 debugging. Change --debug alone to emit basic debugging and take
28 optional arguments to expand debugging.
29 * NEWS: Document the new debugging options.
31 * remake.c (no_rule_error): Remove this function. This tries to
32 fix a real problem--see the description with the introduction of
33 this function below. However, the cure is worse than the disease
34 and this approach won't work.
35 (remake_file): Put the code from no_rule_error back here.
36 (update_file_1): Remove call to no_rule_error.
38 * filedef.h (struct file): Remove mfile_status field.
40 2000-01-22 Paul D. Smith <psmith@gnu.org>
42 Integrate GNU gettext support.
44 * configure.in: Add AM_GNU_GETTEXT.
45 * Makefile.am: Add options for setting LOCALEDIR, -Iintl, etc.
46 * acinclude.m4: Add gettext autoconf macros.
47 * acconfig.h: Add new gettext #defines.
48 * make.h: Include libintl.h. Make sure _() and N_() macros are
49 declared. Make gettext() an empty macro is NLS is disabled.
50 * main.c (struct command_switch switches[]): Can't initialize
51 static data with _() (gettext calls), so use N_() there then use
52 gettext() directly when printing the strings.
53 * remake.c (no_rule_error): The string constants can't be static
54 when initializing _() macros.
55 * file.c (print_file): Reformat a few strings to work better for
57 * po/POTFILES.in, po/Makefile.in.in: New files. Take
58 Makefile.in.in from the latest GNU tar distribution, as that
59 version works better than the one that comes with gettext.
60 * NEWS: Mention i18n ability.
62 2000-01-21 Paul D. Smith <psmith@gnu.org>
64 Installed patches for the VMS port.
65 Patches provided by: Hartmut Becker <Hartmut.Becker@compaq.com>
67 * readme.vms, arscan.c, config.h-vms, default.c, dir.c, file.c:
68 * implicit.c, job.c, make.h, makefile.com, makefile.vms, rule.c:
69 * variable.c, vmsdir.h, vmsfunctions.c, vmsify.c, glob/glob.c:
70 * glob/glob.h: Installed patches. See readme.vms for details.
72 2000-01-11 Paul D. Smith <psmith@gnu.org>
74 Resolve PR/xxxx: don't automatically evaluate the $(call ...)
75 function's arguments. While we're here, clean up argument passing
76 protocol to always use simple nul-terminated strings, instead of
77 sometimes using offset pointers to mark the end of arguments.
78 This change also fixes PR/1517.
79 Both PR's by Damien GIBOU <damien.gibou@st.com>.
81 * function.c (struct function_table_entry): Remove the negative
82 required_args hack; put in explicit min and max # of arguments.
83 (function_table): Add in the max value. Turn off the expand bit
85 (expand_builtin_function): Test against minimum_args instead of
86 the obsolete required_args.
87 (handle_function): Rewrite this. We don't try to be fancy and
88 pass one style of arguments to expanded functions and another
89 style to non-expanded functions: pass pointers to nul-terminated
90 strings to all functions.
91 (func_call): Rewrite this. If we are invoking a builtin function
92 and it's supposed to have its arguments expanded, do that (since
93 it's not done by handle_function for $(call ...) anymore). For
94 non-builtins, just add the variables as before but mark them as
95 recursive so they'll be expanded later, as needed.
96 (func_if): All arguments are vanilla nul-terminated strings:
97 remove trickery with "argv[1]-1".
98 (func_foreach): Ditto.
100 * expand.c (expand_argument): If the second arg is NULL, expand
101 the entire first argument.
103 * job.c (new_job): Zero the child struct. This change was just
104 made to keep some heap checking software happy, not because there
105 was an actual bug (the important memory was being cleared properly).
107 1999-12-15 Paul D. Smith <psmith@gnu.org>
109 * variable.c (print_variable): Print the variable with += if the
112 * implicit.c (pattern_search): Remove the extra check of the
113 implicit flag added on 8/24/1998. This causes problems and the
114 reason for the change was better resolved by the change made to
115 check_deps() on 8/26/1998. This fixes PR/1423.
117 1999-12-08 Paul D. Smith <psmith@gnu.org>
119 * dir.c (dir_setup_glob): On 64 bit ReliantUNIX (5.44 and above)
120 in LFS mode, stat() is actually a macro for stat64(). Assignment
121 doesn't work in that case. So, stat is a macro, make a local
122 wrapper function to invoke it.
123 (local_stat): Wrapper function, if needed.
124 Reported by Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>.
126 1999-12-02 Paul D. Smith <psmith@gnu.org>
128 * remake.c (update_file): Move the considered test outside the
129 double-colon loop, _but_ make sure we test the double_colon target
130 not the "current" target. If we stop early because one
131 double-colon target is running, mark all the rest considered and
132 try to start their prerequisites (so they're marked considered).
133 Fix for PR/1476 suggested by Tim Magill <tim.magill@telops.gte.com>.
135 1999-11-22 Rob Tulloh <rob_tulloh@dev.tivoli.com>
137 * function.c (windows32_openpipe, func_shell): Correct Windows32
138 problem where $(shell nosuchfile) would incorrectly exit make. The
139 fix is to print the error and let make continue.
140 Reported by David Masterson <David.Masterson@kla-tencor.com>.
142 * w32/subproc/misc.c (arr2envblk): Memory leak fix.
144 1999-11-21 Paul D. Smith <psmith@gnu.org>
146 Rework GNU make debugging to provide different levels of output.
149 * debug.h: New file. Define various debugging levels and macros.
150 * function.c, implicit.c, job.c, main.c, misc.c, read.c, remake.c
151 * remote-cstms.c, vmsfunctions.c: Replace all code depending on
152 debug_flag with invocations of debugging macros.
153 * make.h: Remove debug_flag and DEBUGPR, add db_level.
155 1999-11-18 Paul Eggert <eggert@twinsun.com>
157 * acinclude.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a problem
158 with the QNX 4.25 shell, which doesn't propagate exit status of
159 failed commands inside shell assignments.
161 1999-11-17 Paul D. Smith <psmith@gnu.org>
163 * function.c (func_if): Find the end of the arg list by testing
164 the next item for NULL; any other test is not correct.
165 Reported by Graham Reed <grahamr@algorithmics.com> (PR/1429).
167 Fix += when used in a target-specific variable context.
169 * variable.h: New bitfield APPEND set if we have a +=
170 target-specific variable.
172 * variable.c (try_variable_definition): Add an argument to specify
173 if we're trying a target-specific variable. If we are and it's an
174 append style, don't append it, record it as normal recursive, but
175 set the APPEND flag so it'll be expanded later.
176 * main.c (handle_non_switch_argument): Use new
177 try_variable_definition() signature.
178 * read.c (read_makefile,record_target_var): Ditto.
180 * expand.c (allocated_variable_append): New function: like
181 allocated_variable_expand(), but we expand the same variable name
182 in the context of the ``next'' variable set, then we append this
184 (recursively_expand): Invoke it, if the APPEND bit is set.
186 1999-11-10 Paul D. Smith <psmith@gnu.org>
188 * file.c (snap_deps): If the .NOTPARALLEL target is defined, turn
189 off parallel builds for this make only (still allow submakes to be
191 * main.c: New variable, ``not_parallel''.
192 * make.h: Add an extern for it.
193 * job.c (new_job): Test NOT_PARALLEL as well as JOB_SLOTS.
194 * NEWS: Add info on .NOTPARALLEL.
195 * make.texinfo (Special Targets): Document it.
197 * configure.in (GLOBDIR): Set to "glob" if we need to build the
199 * Makefile.am (SUBDIRS): Use the GLOBDIR variable instead of
200 "glob" so we don't try to build glob if we don't need to (if we
201 have GLIBC glob). Reported by Lars Hecking <lhecking@nmrc.ucc.ie>.
203 * main.c (main): Don't put "***" in the clock skew warning
204 message. Reported by karl@gnu.org.
206 * make.h: Remove unneeded signal setup.
208 * signame.c: Remove extraneous #includes; some versions of Ultrix
209 don't protect against multiple inclusions and it causes compile
210 errors. Reported by Simon Burge <simonb@thistledown.com.au>.
212 1999-10-15 Paul D. Smith <psmith@gnu.org>
214 * main.c (quote_for_env): Rename from quote_as_word().
216 * make.h, *.c: Prefer strchr() and strrchr() in the code
217 rather than index() and rindex(). Define strchr/strrchr in terms
218 of index/rindex if the former aren't supported.
220 * default.c (CHECKOUT,v): Replace the fancy, complicated
221 patsubst/filter expression with a simple $(if ...) expression.
223 * main.c (print_usage): Add the bug reporting mailing address to
224 the --help output, as per the GNU coding standards.
225 Reported by Paul Eggert <eggert@twinsun.com>.
227 * README.customs: Installed information on running Customs-ized
228 GNU make and setuid root, collected by Ted Stern <stern@tera.com>.
230 * read.c (read_all_makefiles): PR/1394: Mark the end of the next
231 token in the MAKEFILES value string _before_ we dup it.
233 1999-10-13 Paul D. Smith <psmith@gnu.org>
235 * configure.in (make_cv_sys_gnu_glob): We used to add the -Iglob
236 flag to CPPFLAGS, but that loses if the user specifies his own
237 CPPFLAGS; this one gets added _after_ his and if he happens to
238 have an old or broken glob.h--boom. Instead, put it in GLOBINC
241 * Makefile.am (INCLUDES): Add @GLOBINC@ to the INCLUDES macro;
242 these things get on the compile line well before the user's
245 1999-10-12 Paul D. Smith <psmith@gnu.org>
247 * remake.c (notice_finished_file): If we get here and -n is set,
248 see if all the command lines are marked recursive. If so, then we
249 ran every command there is, so check the mtime on this file just
250 like we would normally. If not, we assume the command we didn't
251 run would updates the target and set mtime of the target to "very new".
253 * job.c (start_job_command): Update lines_flags in the file's cmds
254 structure with any per-line tokens we found (`@', `-', `+').
256 1999-10-08 Paul D. Smith <psmith@gnu.org>
258 * variable.c (initialize_file_variables): Always recurse to
259 initialize the parent's file variables: the parent might not have
260 any rules to run so it might not have been initialized before
261 this--we need this to set up the chain properly for
262 target-specific variables.
264 1999-09-29 Paul Eggert <eggert@twinsun.com>
266 * main.c (quote_as_word): Always quote for decode_env_switches
267 instead of for the shell, so that arguments with strange
268 characters are are passed to submakes correctly. Remove
269 double_dollars arg; we always double dollars now. All callers
271 (decode_env_switches): Don't run off the end of an environment
272 variable whose contents ends in a unescaped backslash.
274 1999-09-23 Paul D. Smith <psmith@gnu.org>
276 * commands.c, function.c, job.c, read.c: Cast arguments to
277 ctype.h functions/macros to _unsigned_ char for portability.
279 * remake.c, function.c: Compiler warning fixes: the second
280 argument to find_next_token() should be an _unsigned_ int*.
281 Reported by Han-Wen Nienhuys <hanwen@cs.uu.nl>.
283 1999-09-23 Paul D. Smith <psmith@gnu.org>
285 * Version 3.78.1 released.
287 * make.texinfo: Update version/date stamp.
289 * main.c (main): Argh. For some reason we were closing _all_ the
290 jobserver pipes before we re-exec'd due to changed makefiles.
291 This means that any re-exec got a "jobserver unavailable" error :-/.
292 I can't believe we didn't notice this before.
294 1999-09-22 Paul D. Smith <psmith@gnu.org>
296 * Version 3.78 released.
298 * main.c (main): Only fail on multiple --jobserver-fds options if
299 they aren't all the same. Some makefiles use things like
300 $(MAKE) $(MFLAGS) which will cause multiple, identical copies of
301 --jobserver-fds to show up.
303 1999-09-16 Paul D. Smith <psmith@gnu.org>
305 * main.c (define_makeflags): Zero out FLAGSTRING to avoid
306 uninitialized memory reads when checking *p != '-' in the loop.
308 1999-09-15 Paul D. Smith <psmith@gnu.org>
310 * Version 3.77.97 released.
312 * configure.in (MAKE_HOST): AC_SUBST this so it will go into the
314 * Makefile.am (check-local): Print a success banner if the check
316 (check-regression): A bit of fine-tuning.
318 1999-09-15 Eli Zaretskii <eliz@is.elta.co.il>
320 * README.DOS.template: Document requirements for the test suite.
321 * Makefile.DOS.template: Updates to allow the test suite to run
324 * main.c (main): Handle it if argv[0] isn't an absolute path.
326 1999-09-13 Paul D. Smith <psmith@gnu.org>
328 * Version 3.77.96 released.
330 * Makefile.am (loadavg): Use CPPFLAGS, etc. to make sure we get
331 all the right #defines to compile.
332 (check-regression): Look for the regression test suite in the make
333 package itself. If we're building remotely, use symlinks to make
335 (dist-hook): Put the test suite into the tar file.
337 * configure.in: Look for perl for the test suite.
339 1999-09-10 Paul Eggert <eggert@twinsun.com>
341 * acinclude.m4 (AC_SYS_LARGEFILE_FLAGS): If on HP-UX 10.20 or
342 later, and using GCC, define __STDC_EXT__; this works around a
345 1999-09-08 Paul D. Smith <psmith@gnu.org>
347 * main.c (print_version): Ugh. GLIBC's configure tries to check
348 make version strings and is too aggressive with their matching
349 expressions. I've struck a deal with them to leave the version
350 output as-is for 3.78, and they'll change their configure checks
351 so that I can change this back in the future.
353 1999-09-07 Eli Zaretskii <eliz@is.elta.co.il>
355 * job.c (construct_command_argv_internal) [__MSDOS__]: Add "echo"
356 and "unset" to the list of builtin shell commands.
358 * configh.DOS.template (MAKE_HOST): Define to "i386-pc-msdosdjgpp"
359 which is the canonical name of the DJGPP host.
361 1999-09-05 Paul D. Smith <psmith@gnu.org>
363 * Version 3.77.95 released.
365 * make.texinfo (Make Errors): Document some new jobserver error
368 1999-09-04 Eli Zaretskii <eliz@is.elta.co.il>
370 * make.texinfo (Make Errors): Document the hint about 8 spaces
372 (Call Function, Quick Reference): Use @code{$(1)}, not @var.
374 * main.c (main) [__MSDOS__]: Say "on this platform" instead of "on
375 MS-DOS", since the MSDOS version could run on Windows.
377 1999-09-03 Paul D. Smith <psmith@gnu.org>
379 * remake.c (notice_finished_file): Always set mtime_before_update
380 if it's not been set, not just if we ran some rules. Otherwise we
381 may have a situation where a target's prerequisite was rebuilt but
382 not changed, so this target's rules weren't run, then
383 update_goal_chain() sees mtime_before_update != last_mtime and
384 thinks that the top-level target changed when it really didn't.
385 This can cause an infinite loop when remaking makefiles.
386 (update_goal_chain): If we get back to the top and we don't know
387 what the goal's last_mtime was, find it now. We need to know so
388 we can compare it to mtime_before_update later (this is only
389 crucial when remaking makefiles--should we only do it then?)
391 1999-09-02 Paul D. Smith <psmith@gnu.org>
393 * read.c (read_makefile): If "override" appears as the first
394 prerequisite, look further to ensure this is really a
395 target-specific variable definition, and not just some
396 prerequisite named "override".
398 1999-09-01 Paul D. Smith <psmith@gnu.org>
400 * function.c (IS_PATHSEP) [WINDOWS32]: Allow backslash separators
402 * read.c (record_files) [WINDOWS32]: Allow backslash separators
404 * implicit.c (pattern_search) [WINDOWS32]: Allow backslash
405 separators for W32 platforms.
407 * configure.in (MAKE_HOST): Define it to be the canonical build
408 host info, now that we need AC_CANONICAL_HOST anyway (for large
410 * version.c (make_host): Define a variable to MAKE_HOST so we're
411 sure to get it from the local config.h.
412 * main.c (print_version): Use it in the version information.
413 * config.ami.template: Add MAKE_HOST.
414 * configh.dos.template: Ditto.
415 * config.h.W32.template: Ditto.
416 * config.h-vms.template: Ditto.
418 * main.c (main): Close the jobserver file descriptors if we need
419 to re-exec ourselves.
420 Also print more reasonable error if users force -jN for submakes.
421 This may be common for a while until people use the jobserver
422 feature. If it happens, we ignore the existing jobserver stuff
423 and use whatever they specified on the commandline.
424 (define_makeflags): Fixed a long-standing bug: if a long name
425 only option comes immediately after a single letter option with no
426 argument, then the option string is constructed incorrectly. For
427 example, with -w and --jobserver-fds you get "-w-jobserver-fds..."
428 instead of "-w --jobserver-fds..."; add in an extra " -".
430 * make.texinfo (Phony Targets): Add another example of using
431 .PHONY with subdirectories/recursive make.
433 1999-08-30 Paul D. Smith <psmith@gnu.org>
435 * README.W32.template: Renamed from README.W32 so it's
436 autogenerated during the dist. A few minor modifications.
438 * configure.in: Check for kstat_open before AC_FUNC_GETLOADAVG
439 since the latter needs to know whether the former exists to give
442 1999-08-26 Rob Tulloh <rob_tulloh@dev.tivoli.com>
444 * NMakefile [WINDOWS32]: Now more robust. If you change a file
445 under w32/subproc, the make.exe will be relinked. Also added some
446 tests to make sure erase commands won't fail when executed in a
447 pristine build environment.
449 * w32/subproc/sub_proc.c [WINDOWS32]: Added support for
450 HAVE_CYGWIN_SHELL. If you are using the Cygwin B20.1 release, it
451 is now possible to have have native support for this shell without
452 having to rely on klutzy BATCH_MODE_ONLY_SHELL.
454 * config.h.W32 [WINDOWS32]: Added HAVE_CYGWIN_SHELL macro which
455 users can define if they want to build make to use this shell.
457 * README.W32 [WINDOWS32]: Added informaton about
458 HAVE_CYGWIN_SHELL. Cleaned up text a bit to make it more current.
460 1999-08-26 Paul Eggert <eggert@twinsun.com>
462 Support large files in AIX, HP-UX, and IRIX.
464 * acinclude.m4 (AC_LFS): Remove. Superseded by AC_SYS_LARGEFILE.
465 (AC_SYS_LARGEFILE_FLAGS, AC_SYS_LARGEFILE_SPACE_APPEND,
466 AC_SYS_LARGEFILE_MACRO_VALUE, AC_SYS_LARGEFILE): New macros.
467 (jm_AC_TYPE_UINTMAX_T): Check for busted compilers that can't
468 shift or divide unsigned long long.
469 (AM_PROG_CC_STDC): New macro; a temporary workaround of a bug in
472 * configure.in (AC_CANONICAL_HOST): Add; required by new
474 (AC_SYS_LARGEFILE): Renamed from AC_LFS.
475 (AM_PROG_CC_STDC): Add.
477 * config.guess, config.sub: New files, needed for AC_CANONICAL_HOST.
479 1999-08-25 Paul Eggert <eggert@twinsun.com>
481 * make.h (CHAR_MAX): New macro.
482 * main.c (struct command_switch): c is now int,
483 so that it can store values greater than CHAR_MAX.
484 (switches): Replace small numbers N with CHAR_MAX+N-1,
485 to avoid problems with non-ASCII character sets.
486 (short_option): New macro.
487 (init_switches, print_usage, define_makeflags): Use it instead of
490 1999-08-25 Paul D. Smith <psmith@gnu.org>
492 * Version 3.77.94 released.
494 * main.c (main) [__MSDOS__]: If the user uses -j, warn that it's
495 not supported and reset it.
497 * make.h (ISDIGIT): Obtained this from the textutils distribution.
498 * main.c (decode_switches): Use it.
499 * function.c (is_numeric): Use it.
501 * main.c (struct command_switch): Store the switch char in an
502 unsigned char to shut up GCC about using it with ctype.h macros.
503 Besides, it _is_ always unsigned.
505 1999-08-24 Paul D. Smith <psmith@gnu.org>
507 * make.texinfo: Change "dependency" to "prerequisite" and
508 "dependencies" to "prerequisites". Various other cleanups related
509 to the terminology change.
510 * file.c: Change debugging and error messages to use
511 "prerequisite" instead of "dependency".
516 1999-08-23 Paul D. Smith <psmith@gnu.org>
518 * remake.c (update_file): Move the considered check into the
519 double-colon rule loop, so we consider double-colon rules
520 individually (otherwise after the first is pruned, the rest won't
523 * README.template: Minor changes.
525 Remove the debugging features of the jobserver, so it no longer
526 writes distinct tokens to the pipe. Thus, we don't need to store
527 the token we get. A side effect of this is to remove a potential
528 "unavailable token" situation: make-1 invokes make-2 with its
529 special token and make-3 with a normal token; make-2 completes.
530 Now we're waiting for make-3 but using 2 tokens; our special token
531 is idle. In the new version we don't have special tokens per se,
532 we merely decide if we already have a child or not. If we don't,
533 we don't need a token. If we do, we have to get one to run the
534 next child. Similar for putting tokens back: if we're cleaning up
535 the last child, we don't put a token back. Otherwise, we do.
537 * main.c: Add a new, internal flag --jobserver-fds instead of
538 overloading the meaning of -j. Remove job_slots_str and add the
539 stringlist jobserver_fds.
540 (struct command_switch): We don't need the int_string type.
541 (switches[]): Add a new option for --jobserver-fds and remove
542 conditions around -j. Make the description for the former 0 so it
543 doesn't print during "make --help".
544 (main): Rework jobserver parsing. If we got --jobserver-fds
545 make sure it's valid. We only get one and job_slots must be 0.
546 If we're the toplevel make (-jN without --jobserver-fds) create
547 the pipe and write generic tokens.
548 Create the stringlist struct for the submakes.
549 Clean up the stringlist where necessary.
550 (init_switches): Remove int_string handling.
551 (print_usage): Don't print internal flags (description ptr is 0).
552 (decode_switches): Remove int_string handling.
553 (define_makeflags): Remove int_string handling.
555 * job.c: Remove my_job_token flag and all references to the
556 child->job_token field.
557 (free_job_token): Remove this and merge it into free_child().
558 (reap_children): Rework the "reaped a child" logic slightly.
559 Don't call defunct free_job_token anymore. Always call
560 free_child, even if we're dying.
561 (free_child): If we're not freeing the only child, put a token
562 back in the pipe. Then, if we're dying, don't bother to free.
563 (new_job): If we are using the jobserver, loop checking to see if
564 a) there are no children or b) we get a token from the pipe.
566 * job.h (struct child): Remove the job_token field.
568 1999-08-20 Paul D. Smith <psmith@gnu.org>
570 * variable.c (try_variable_definition): Allocate for variable
571 expansion in f_append with a simple variable: if we're looking at
572 target-specific variables we don't want to trash the buffer.
573 Noticed by Reiner Beninga <Reiner.Beninga@mchp.siemens.de>.
575 1999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
577 * main.c (main) [__MSDOS__]: Mirror any backslashes in argv[0], to
578 avoid problems in shell commands that use backslashes as escape
581 1999-08-16 Paul D. Smith <psmith@gnu.org>
583 * Version 3.77.93 released.
585 1999-08-13 Paul D. Smith <psmith@gnu.org
587 * function.c (func_if): New function $(if ...) based on the
588 original by Han-Wen but reworked quite a bit.
589 (function_table): Add it.
590 * NEWS: Introduce it.
591 * make.texinfo (If Function): Document it.
593 * job.c (free_job_token): Check for EINTR when writing tokens to
596 1999-08-12 Paul D. Smith <psmith@gnu.org>
598 Another jobserver algorithm change. We conveniently forgot that
599 the blocking bit is shared by all users of the pipe, it's not a
600 per-process setting. Since we have many make processes all
601 sharing the pipe we can't use the blocking bit as a signal handler
602 flag. Instead, we'll dup the pipe's read FD and have the SIGCHLD
603 handler close the dup'd FD. This will cause the read() to fail
604 with EBADF the next time we invoke it, so we know we need to reap
605 children. We then re-dup and reap.
607 * main.c (main): Define the job_rfd variable to hold the dup'd FD.
608 Actually dup the read side of the pipe. Don't bother setting the
609 blocking bit on the file descriptor.
610 * make.h: Declare the job_rfd variable.
611 * job.c (child_handler): If the dup'd jobserver pipe is open,
612 close it and assign -1 to job_rfd to notify the main program that
614 (start_job_command): Close the dup'd FD before exec'ing children.
615 Since we open and close this thing so often it doesn't seem
616 worth it to use the close-on-exec bit.
617 (new_job): Remove code for testing/setting the blocking bit.
618 Instead of EAGAIN, test for EBADF. If the dup'd FD has been
619 closed, re-dup it before we reap children.
621 * function.c (func_shell): Be a little more accurate about the
622 length of the error string to allocate.
624 * expand.c (variable_expand_for_file): If there's no filenm info
625 (say, from a builtin command) then reset reading_file to 0.
627 1999-08-09 Paul D. Smith <psmith@gnu.org>
629 * maintMakefile: Use g in sed (s///g) to replace >1 variable per
632 * Makefile.DOS.template [__MSDOS__]: Fix mostlyclean-aminfo to
633 remove the right files.
635 1999-08-01 Eli Zaretskii <eliz@is.elta.co.il>
637 * function.c (msdos_openpipe) [__MSDOS__]: *Really* return a FILE
640 1999-08-01 Paul D. Smith <psmith@gnu.org>
642 New jobserver algorithm to avoid a possible hole where we could
643 miss SIGCHLDs and get into a deadlock. The original algorithm was
644 suggested by Roland McGrath with a nice refinement by Paul Eggert.
645 Many thanks as well to Tim Magill and Howard Chu, who also
646 provided many viable ideas and critiques. We all had a fun week
647 dreaming up interesting ways to use and abuse UNIX syscalls :).
649 Previously we could miss a SIGCHLD if it happened after we reaped
650 the children but before we re-entered the blocking read. If this
651 happened to all makes and/or all children, make would never wake
654 We avoid this by having the SIGCHLD handler reset the blocking bit
655 on the jobserver pipe read FD (normally read does block in this
656 algorithm). Now if the handler is called between the time we reap
657 and the time we read(), and there are no tokens available, the
658 read will merely return with EAGAIN instead of blocking.
660 * main.c (main): Set the blocking bit explicitly here.
661 * job.c (child_handler): If we have a jobserver pipe, set the
662 non-blocking bit for it.
663 (start_waiting_job): Move the token stuff back to new_job; if we
664 do it here then we're not controlling the number of remote jobs
666 (new_job): Move the check for job slots to _after_ we've created a
667 child structure. If the read returns without getting a token, set
668 the blocking bit then try to reap_children.
670 * make.h (EINTR_SET): Define to test errno if EINTR is available,
671 or 0 otherwise. Just some code cleanup.
672 * arscan.c (ar_member_touch): Use it.
673 * function.c (func_shell): Use it.
674 * job.c (reap_children): Use it.
675 * remake.c (touch_file): Use it.
677 1999-07-28 Paul D. Smith <psmith@gnu.org>
679 * make.h: Define _() and N_() macros as passthrough to initiate
681 * <all>: Add _()/N_() around translatable strings.
683 1999-07-27 Paul D. Smith <psmith@gnu.org>
685 * read.c: Make sure make.h comes before other headers.
687 1999-07-26 Paul D. Smith <psmith@gnu.org>
689 * make.texinfo (Quick Reference): Update with the new features.
691 1999-07-25 Eli Zaretskii <eliz@is.elta.co.il>
693 * remake.c [__MSDOS__]: Don't include variables.h, it's already
696 * function.c (msdos_openpipe) [__MSDOS__]: Return FILE ptr.
697 (func_shell) [__MSDOS__]: Fix the argument list.
699 * Makefile.DOS.template: Update from Makefile.in.
701 * README.DOS.template: Configure command fixed.
703 * configh.dos.template: Update to provide definitions for
704 uintmax_t, fd_set_size_t, and HAVE_SELECT.
706 1999-07-24 Paul D. Smith <psmith@gnu.org>
708 * Version 3.77.91 released.
710 * configure.in: Changes to the boostrapping code: if build.sh.in
711 doesn't exist configure spits an error and generates an empty
712 build.sh file which causes make to be confused.
713 * maintMakefile: Don't build README early.
715 1999-07-23 Paul D. Smith <psmith@gnu.org>
717 * job.c (my_job_token): This variable controls whether we've
718 handed our personal token to a subprocess or not. Note we could
719 probably infer this from the value of job_slots_used, but it's
720 clearer to just keep it separately. Job_slots_used isn't really
721 relevant when running the job server.
722 (free_job_token): New function: free a job token. If we don't
723 have one, no-op. If we have the personal token, reclaim it. If
724 we have another token, write it back to the pipe.
725 (reap_children): Call free_job_token.
726 (free_child): Call free_job_token.
727 (start_job_command): Remove duplicate test for '+' in the command.
728 If we don't appear to be running a recursive make, close the
729 jobserver filedescriptors.
730 (start_waiting_job): If our personal token is available, use that
731 instead of going to the server pipe.
732 (*): Add the token value to many debugging statements, and print
733 the child target name in addition to the ptr hex value.
734 Change the default "no token" value from '\0' to '-' so it looks
735 better in the output.
737 * main.c (main): Install the child_handler with sigaction()
738 instead of signal() if we have it. On SysV systems, signal() uses
739 SysV semantics which are a pain. But sigaction() always does what
741 (main): If we got job server FDs from the environment, test them
742 to see if they're open. If not, the parent make closed them
743 because it didn't think we were a submake. Print a warning and
744 suggestion to use "+" on the submake invocation, and hard-set to
745 -j1 for this instance of make.
746 (main): Change the algorithm for assigning slots to be more
747 robust. Previously make checked to see if it thought a subprocess
748 was a submake and if so, didn't give it a token. Since make's
749 don't consume tokens we could spawn many of makes fighting for a
750 small number of tokens. Plus this is unreliable because submakes
751 might not be recognized by the parent (see above) then all the
752 tokens could be used up by unrecognized makes, and no one could
753 run. Now every make consumes a token from its parent. However,
754 the make can also use this token to spawn a child. If the make
755 wants more than one, it goes to the jobserver pipe. Thus there
756 will never be more than N makes running for -jN, and N*2 processes
757 (N makes and their N children). Every make can always run at
758 least one job, and we'll never deadlock. (Note the closing of the
759 pipe for non-submakes also solves this, but this is still a better
760 algorithm.) So! Only put N-1 tokens into the pipe, since the
761 topmost make keeps one for itself.
763 * configure.in: Find sigaction. Disable job server support unless
764 the system provides it, in addition to either waitpid() or
767 1999-07-22 Rob Tulloh <rob_tulloh@dev.tivoli.com>
769 * arscan.c (ar_member_touch) [WINDOWS32]: The ar_date field is a
770 string on Windows, not a timestamp.
772 1999-07-21 Paul D. Smith <psmith@gnu.org>
774 * Version 3.77.90 released.
776 * Makefile.am (AUTOMAKE_OPTIONS): Require automake 1.4.
778 * function.c: Rearrange so we don't need to predeclare the
779 function_table array; K&R C compilers don't like that.
781 * acinclude.m4 (AC_FUNC_SELECT): Ouch; this requires an ANSI C
782 compiler! Change to work with K&R compilers as well.
784 * configure.in (AC_OUTPUT): Put build.sh back. I don't know how I
785 thought it would work this way :-/. We'll have to think of
787 * Makefile.am: Remove rule to create build.sh.
789 * default.c (default_suffix_rules): Rearrange the default command
790 lines to conform to POSIX rules (put the filename argument $<
791 _after_ the OUTPUT_OPTION, not before it).
793 * various: Changed !strncmp() calls to strneq() macros.
795 * misc.c (sindex): Make slightly more efficient.
797 * dir.c (file_impossible): Change savestring(X,strlen(X)) to xstrdup().
798 * implicit.c (pattern_search): Ditto.
799 * main.c (enter_command_line_file): Ditto.
801 * misc.c (copy_dep_chain): Ditto.
802 * read.c (read_makefile): Ditto.
803 (parse_file_seq): Ditto.
804 (tilde_expand): Ditto.
806 * rule.c (install_pattern_rule): Ditto.
807 * variable.c (define_variable_in_set): Ditto.
808 (define_automatic_variables): Ditto.
809 * vpath.c (construct_vpath_list): Ditto.
811 * misc.c (xrealloc): Some reallocs are non-standard: work around
812 them in xrealloc by calling malloc if PTR is NULL.
813 * main.c (main): Call xrealloc() directly instead of testing for
816 * function.c (func_sort): Don't try to free NULL; some older,
817 non-standard versions of free() don't like it.
819 * configure.in (--enable-dmalloc): Install some support for using
820 dmalloc (http://www.dmalloc.com/) with make. Use --enable-dmalloc
821 with configure to enable it.
823 * function.c (function_table_entry): Whoops! The function.c
824 rewrite breaks backward compatibility: all text to a function is
825 broken into arguments, and extras are ignored. So $(sort a,b,c)
826 returns "a"! Etc. Ouch. Fix it by making a positive value in
827 the REQUIRED_ARGS field mean exactly that many arguments to the
828 function; any "extras" are considered part of the last argument as
829 before. A negative value means at least that many, but may be
830 more: in this case all text is broken on commas.
831 (handle_function): Stop when we've seen REQUIRED_ARGS args, if >0.
832 (expand_builtin_function): Compare number of args to the absolute
833 value of REQUIRED_ARGS.
835 1999-07-20 Paul D. Smith <psmith@gnu.org>
837 * job.c (start_job_command): Ensure that the state of the target
838 is cs_running. It might not be if we skipped all the lines due to
841 * commands.c (execute_file_commands): If we discover that the
842 command script is empty and succeed early, set cs_running so the
843 modtime of the target is still rechecked.
845 * rule.c (freerule): Free the dependency list for the rule.
847 * implicit.c (pattern_search): When turning an intermediate file
848 into a real target, keep the also_make list.
849 Free the dep->name if we didn't use it during enter_file().
851 1999-07-16 Paul D. Smith <psmith@gnu.org>
853 * read.c (read_makefile): Don't allocate the commands buffer until
854 we're sure we found a makefile and won't return early (mem leak).
856 * job.c (start_job_command): Broken #ifdef test: look for F_SETFD,
857 not FD_SETFD. Close-on-exec isn't getting set on the bad_stdin
858 file descriptor and it's leaking :-/.
859 * getloadavg.c (getloadavg): Ditto.
861 1999-07-15 Paul D. Smith <psmith@gnu.org>
863 * read.c (read_makefile): Fix some potential memory stomps parsing
864 `define' directives where no variable name is given.
866 * function.c (func_call): Rename from func_apply. Various code
867 cleanup and tightening.
868 (function_table): Add "call" as a valid builtin function.
870 * make.texinfo (Call Function): Document it.
874 1999-07-09 Eli Zaretskii <eliz@is.elta.co.il>
876 * variable.c (try_variable_definition) [__MSDOS__, WINDOWS32]:
877 Treat "override SHELL=" the same as just "SHELL=".
879 1999-07-09 Paul D. Smith <psmith@gnu.org>
881 * job.c (start_waiting_job): Don't get a second job token if we
882 already have one; if we're waiting on the load to go down
883 start_waiting_job() might get called twice on the same file.
885 * filedef.h (struct file): Add new field, mtime_before_update.
886 When notice_finished_file runs it assigns the cached last_mtime to
888 * remake.c (update_goal_chain): Notice that a file wasn't updated
889 by asking if it changed (g->changed) and comparing the current
890 cached time (last_mtime) with the previous one, stored in
891 mtime_before_update. The previous check ("did last_mtime changed
892 during the run of update_file?") fails for parallel builds because
893 last_mtime is set during reap_children, before update_file is run.
894 This causes update_goal_chain to always return -1 (nothing
895 rebuilt) when running parallel (-jN). This is OK during "normal"
896 builds since our caller (main) treats these cases identically in
897 that case, but if when rebuilding makefiles the difference is very
898 important, as it controls whether we re-exec or not.
899 * file.c (file_hash_enter): Copy the mtime_before_update field.
900 (snap_deps): Initialize mtime_before_update to -1.
901 * main.c (main): Initialize mtime_before_update on old (-o) and
904 1999-07-08 Paul D. Smith <psmith@gnu.org>
906 * main.c (switches): Define a new switch -R (or
907 --no-builtin-variables). This option disables the defining of all
908 the GNU make builtin variables.
909 (main): If -R was given, force -r as well.
910 * default.c (define_default_variables): Test the new flag.
911 * make.h: Declare global flag.
912 * make.texinfo (Options Summary): Document the new option.
913 (Implicit Variables): Ditto.
915 1999-07-06 Paul D. Smith <psmith@gnu.org>
917 * make.texinfo (Options Summary): Correct examples in
918 --print-data-base option summary (problem reported by David Morse
919 <morse@nichimen.com>).
921 * arscan.c: Add support for archives in Windows (VC++). Frank
922 Libbrecht <frankl@abzx.belgium.hp.com> provided info on how to do
924 * NMakefile.template (CFLAGS_any): Remove NO_ARCHIVES from the
926 * build_w32.bat: Ditto.
928 * remake.c (no_rule_error): Fix -include/sinclude so it doesn't
929 give errors if you try to -include the same file twice.
930 (updating_makefiles): New variable: we need to know this info in
931 no_rule_error() so we know whether to print an error or not.
932 (update_file_1): Unconditionally call no_rule_error(), don't try
933 to play games with the dontcare flag.
935 1999-06-14 Paul D. Smith <psmith@gnu.org>
937 * make.texinfo (Remaking Makefiles): Add a description of how to
938 prevent implicit rule searches for makefiles.
940 * make.1: Remove statement that make continues processing when -v
943 1999-06-14 Paul D. Smith <psmith@gnu.org>
945 * read.c (read_makefile): Cast -1 arguments to
946 variable_expand_string() to long. Alexandre Sauve
947 <Alexandre.SAUVE@ifp.fr> reports that without casts, this breaks
948 on a NEC SUPER-UX SX-4 system (and it's wrong without a cast
949 anyway). Of course, (a) I'd really love to start using function
950 prototypes, and (b) there's a whole slew of issues related to int
951 vs. long and signed vs. unsigned in the length handling of
952 variable buffers, etc. Gross. Needs a complete mucking-out.
953 * expand.c (variable_expand): Ditto.
955 * acinclude.m4 (AC_FUNC_SELECT): Slight enhancement for AIX 3.2 by
956 Lars Hecking <lhecking@nmrc.ucc.ie>.
958 * read.c (get_next_mword): Allow colons to be escaped in target
959 names: fix for regression failure.
961 1999-04-26 Paul D. Smith <psmith@gnu.org>
963 * main.c (main): Reset read_makefiles to empty after processing so
964 we get the right error message.
966 1999-04-25 Paul D. Smith <psmith@gnu.org>
968 * make.texinfo: Updates to @dircategory and @direntry suggested by
969 Karl Berry <karl@cs.umb.edu>.
971 1999-04-23 Eli Zaretskii <eliz@is.elta.co.il>
973 * job.c (start_job_command) [__MSDOS__]: Call unblock_sigs before
974 turning off dos_command_running, so child's signals produce the
977 * commands.c (fatal_error_signal) [__MSDOS__]: Use EXIT_FAILURE
980 1999-04-18 Eli Zaretskii <eliz@is.elta.co.il>
982 * configh.dos.template: Update to recognize that version 2.02 of
983 DJGPP contains sys_siglist stuff.
985 1999-04-14 Paul D. Smith <psmith@gnu.org>
987 * make.texinfo (Options/Recursion): Document the job server.
990 1999-04-13 Paul D. Smith <psmith@gnu.org>
992 Implement a new "job server" feature; the implementation was
993 suggested by Howard Chu <hyc@highlandsun.com>.
995 * configure.in (job-server): New disable option for job server
996 support--it's enabled by default. If it works well this will go
999 * NEWS: Summarize the new feature.
1001 * acconfig.h: New definition MAKE_JOBSERVER if job server support
1003 * config.h-vms.template: Undef MAKE_JOBSERVER for this port.
1004 * config.h.W32.template: Ditto.
1005 * config.ami.template: Ditto.
1007 * main.c (struct command_switch): Add a new type: int_string.
1008 (switches[]) Use int_string for -j if MAKE_JOBSERVER.
1009 (init_switches): Initialize the new int_string switch type.
1010 (print_usage): New function, extracted from decode_switches().
1011 (decode_switches): Call it. Decode the new int_string switch type.
1012 (define_makeflags): Add new int_string switch data to MAKEFLAGS.
1013 (job_fds[]) Array to contain the pipe file descriptors.
1014 (main): Parse the job_slots_str option results. If necessary,
1015 create the pipe and seed it with tokens. Set the non-blocking bit
1016 for the read fd. Enable the signal handler for SIGCHLD even if we
1017 have a non-hanging wait; it's needed to interrupt the select() in
1018 job.c:start_waiting_job().
1020 * make.h: Declare job_fds[].
1022 * job.h (struct child): Add job_token field to store the token for
1025 * job.c (reap_children): When a child is fully reaped, release the
1026 token back into the pipe.
1027 (free_child): If the child to be freed still has a token, put it
1029 (new_job): Initialize the job_token member.
1030 (start_waiting_job): For local jobs, if we're using the pipe, get
1031 a token before we check the load, etc. We do this by performing a
1032 non-blocking read in a loop. If the read fails, no token is
1033 available. Do a select on the fd to wait for a token. We need to
1034 re-enable the signal handler for SIGCHLD even if we have a
1035 non-hanging waitpid() or wait3(), so that the signal will
1036 interrupt the select() and we can wake up to reap children.
1037 (child_handler): Re-enable the signal handler. The count is still
1038 kept although it's not needed or used unless you don't have
1039 waitpid() or wait3().
1041 1999-04-10 Paul D. Smith <psmith@gnu.org>
1043 * main.c (main): Reset the considered bit on all the makefiles if
1044 something failed to update; we need to examine them again if they
1045 appear as normal targets in order to get the proper error message.
1047 1999-04-09 Paul D. Smith <psmith@gnu.org>
1049 Performance enhancement from Tim Magill <tim.magill@telops.gte.com>.
1051 * remake.c (update_file): If you have large numbers of
1052 dependencies and you run in parallel, make can spend considerable
1053 time each pass through the graph looking at branches it has
1054 already seen. Since we only reap_children() when starting a pass,
1055 not in the middle, if a branch has been seen already in that pass
1056 nothing interesting can happen until the next pass. So, we toggle
1057 a bit saying whether we've seen this target in this pass or not.
1058 (update_goal_chain): Initially set the global considered toggle to
1059 1, since all targets initialize their boolean to 0. At the end of
1060 each pass, toggle the global considered variable.
1061 * filedef.h (struct file): Per-file considered toggle bit.
1062 * file.c: New global toggle variable considered.
1064 1999-04-05 Paul D. Smith <psmith@gnu.org>
1066 * arscan.c (ar_scan): Added support for ARFZMAG (compressed
1067 archives?) for Digital UNIX C++. Information provided by
1068 Patrick E. Krogel <pekrogel@mtu.edu>.
1069 (ar_member_touch): Ditto.
1071 1999-04-03 Paul D. Smith <psmith@gnu.org>
1073 * remake.c (f_mtime): If: a) we found a file and b) we didn't
1074 create it and c) it's not marked as an implicit target and d) it
1075 is marked as an intermediate target, then it was so marked due to
1076 an .INTERMEDIATE special target, but it already existed in the
1077 directory. In this case, unset the intermediate flag so we won't
1078 delete it when make is done. It feels like it would be cleaner to
1079 put this check in update_file_1() but I worry it'll get missed...
1081 1999-04-01 Paul D. Smith <psmith@gnu.org>
1083 * job.c (construct_command_argv_internal): Use bcopy() to copy
1084 overlapping strings, rather than strcpy(). ISO C says the latter
1085 is undefined. Found this in a bug report from 1996! Ouch!
1087 1999-03-31 Paul D. Smith <psmith@gnu.org>
1089 * read.c (readline): Ignore carriage returns at the end of the
1090 line, to allow Windows-y CRLF line terminators.
1092 1999-03-30 Paul D. Smith <psmith@gnu.org>
1094 * configure.in: Don't put build.sh here, since build.sh.in doesn't
1095 exist initially. This cause autoreconf and automake to fail when
1096 run on a clean CVS checkout. Instead, we create build.sh in the
1097 Makefile (see below).
1099 * Makefile.am: Remove BUILT_SOURCES; this is no longer relevant.
1100 Put those files directly into EXTRA_DIST so they're distributed.
1101 Create a local build rule to create build.sh.
1102 Create a local maintainer-clean rule to delete all the funky
1105 * maintMakefile: Makefile.in depends on README, since automake
1106 fails if it doesn't exist. Also don't remove glob/Makefile.in
1107 here, as it causes problems.
1109 1999-03-26 Paul D. Smith <psmith@gnu.org>
1111 * configure.in: Substitute GLOBLIB if we need the link the
1112 glob/libglob.a library.
1113 * Makefile.am (make_LDADD): Use the subst variable GLOBLIB so we
1114 don't link the local libglob.a at all if we don't need it.
1115 * build.template: Don't compile glob/*.o unless we want globlib.
1116 * maintMakefile (build.sh.in): Substitute the glob/*.o files
1119 1999-03-25 Paul D. Smith <psmith@gnu.org>
1121 * make.texinfo: Various typos and additions, pointed out by James
1122 G. Sack <jsack@dornfeld.com>.
1124 1999-03-22 Paul D. Smith <psmith@gnu.org>
1126 * make.texinfo (Functions): Add a new section documenting the new
1127 $(error ...) and $(warning ...) functions. Also updated copyright
1129 * NEWS: Updated for the new functions.
1130 * function.c (func_error): Implement the new $(error ...) and
1131 $(warning ...) functions.
1132 (function_table): Insert new functions into the table.
1133 (func_firstword): Don't call find_next_token() with argv[0]
1134 itself, since that function modifies the pointer.
1135 * function.c: Cleanups and slight changes to the new method of
1138 1999-03-20 Han-Wen Nienhuys <hanwen@cs.uu.nl>
1140 * function.c: Rewrite to use one C function per make function,
1141 instead of a huge switch statement. Also allows some cleanup of
1142 multi-architecture issues, and a cleaner API which makes things
1143 like func_apply() simple.
1145 * function.c (func_apply): Initial implementation. Expand either
1146 a builtin function or a make variable in the context of some
1147 arguments, provided as $1, $2, ... $N.
1149 1999-03-19 Eli Zaretskii <eliz@is.elta.co.il>
1150 1999-03-19 Rob Tulloh <rob_tulloh@dev.tivoli.com>
1152 * job.c (construct_command_argv_internal): Don't treat _all_
1153 backslashes as escapes, only those which really escape a special
1154 character. This allows most normal "\" directory separators to be
1157 1999-03-05 Paul D. Smith <psmith@gnu.org>
1159 * configure.in: Check for a system strdup().
1160 * misc.c (xstrdup): Created. Suggestion by Han-Wen Nienhuys
1162 * make.h: Prototype xstrdup().
1163 * remake.c (library_search): Use it.
1164 * main.c (main): Use it.
1165 (find_and_set_default_shell): Use it.
1166 * job.c (construct_command_argv_internal): Use it.
1167 * dir.c (find_directory): Use it.
1169 * Makefile.am, configure.in: Use AC_SUBST_FILE to insert the
1170 maintMakefile instead of "include", to avoid automake 1.4
1173 1999-03-04 Paul D. Smith <psmith@gnu.org>
1175 * amiga.c, amiga.h, ar.c, arscan.c, commands.c, commands.h,
1176 * default.c, dep.h, dir.c, expand.c, file.c, filedef.h, function.c,
1177 * implicit.c, job.c, job.h, main.c, make.h, misc.c, read.c, remake.c
1178 * remote-cstms.c, remote-stub.c, rule.h, variable.c, variable.h,
1179 * vpath.c, Makefile.ami, NMakefile.template, build.template,
1180 * makefile.vms: Updated FSF address in the copyright notice.
1182 * variable.c (try_variable_definition): If we see a conditional
1183 variable and we decide to set it, re-type it as recursive so it
1184 will be expanded properly later.
1186 1999-02-22 Paul D. Smith <psmith@gnu.org>
1188 * NEWS: Mention new .LIBPATTERNS feature.
1190 * make.texinfo (Libraries/Search): Describe the use and
1191 ramifications of the new .LIBPATTERNS variable.
1193 * remake.c (library_search): Instead of searching only for the
1194 hardcoded expansion "libX.a" for a library reference "-lX", we
1195 obtain a list of patterns from the .LIBPATTERNS variable and
1196 search those in order.
1198 * default.c: Added a new default variable .LIBPATTERNS. The
1199 default for UNIX is "lib%.so lib%.a". Amiga and DOS values are
1202 * read.c: Remove bogus HAVE_GLOB_H references; always include
1205 1999-02-21 Paul D. Smith <psmith@gnu.org>
1207 * function.c (expand_function): Set value to 0 to avoid freeing it.
1208 * variable.c (pop_variable_scope): Free the value of the variable.
1209 (try_variable_definition): For simple variables, use
1210 allocated_variable_expand() to avoid stomping on the variable
1211 buffer when we still need it for other things.
1213 * arscan.c: Modified to support AIX 4.3 big archives. The changes
1214 are based on information provided by Phil Adams
1215 <padams@austin.ibm.com>.
1217 1999-02-19 Paul D. Smith <psmith@gnu.org>
1219 * configure.in: Check to see if the GNU glob library is already
1220 installed on the system. If so, _don't_ add -I./glob to the
1221 compile line. Using the system glob code with the local headers
1223 Rewrite SCCS macros to use more autoconf facilities.
1225 * Makefile.am: Move -Iglob out of INCLUDES; it'll get added to
1226 CPPFLAGS by configure now.
1227 Automake 1.4 introduced its own "include" feature which conflicts
1228 with the maintMakefile stuff. A hack that seems to work is add a
1229 space before the include :-/.
1231 * build.template: Move -Iglob out of the compile line; it'll get
1232 added to CPPFLAGS by configure now.
1234 1999-02-16 Glenn D. Wolf <Glenn_Wolf@email.sps.mot.com>
1236 * arscan.c (ar_scan) [VMS]: Initialized VMS_member_date before
1237 calling lbr$get_index since if the archive is empty,
1238 VMS_get_member_info won't get called at all, and any leftover date
1239 will be used. This bug shows up if any member of any archive is
1240 made, followed by a dependency check on a different, empty
1243 1998-12-13 Martin Zinser <zinser@decus.decus.de>
1245 * config.h-vms [VMS]: Set _POSIX_C_SOURCE. Redefine the getopt
1246 functions so we don't use the broken VMS versions.
1247 * makefile.com [VMS]: Allow debugging.
1248 * dir.c (dir_setup_glob) [VMS]: Don't extern stat() on VMS.
1250 1998-11-30 Paul D. Smith <psmith@gnu.org>
1252 * signame.c (init_sig): Check the sizes of signals being set up to
1253 avoid array overwrites (if the system headers have problems).
1255 1998-11-17 Paul D. Smith <psmith@gnu.org>
1257 * read.c (record_files): Clean up some indentation.
1259 1998-11-08 Han-Wen Nienhuys <hanwen@cs.uu.nl>
1261 * rule.c (print_rule_data_base): Fix arguments to fatal() call.
1263 1998-10-13 Paul D. Smith <psmith@gnu.org>
1265 * job.c (start_job_command): If the command list resolves to no
1266 chars at all (e.g.: "foo:;$(empty)") then command_ptr is NULL;
1269 1998-10-12 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1271 * rule.c (print_rule_data_base): Ignore num_pattern_rules if it is
1274 1998-10-09 Paul D. Smith <psmith@gnu.org>
1276 * read.c (read_makefile): Allow non-empty lines to expand to the
1277 empty string after variable, etc., expansion, and be ignored.
1279 1998-09-21 Paul D. Smith <psmith@gnu.org>
1281 * job.c (construct_command_argv_internal): Only add COMMAND.COM
1282 "@echo off" line for non-UNIXy shells.
1284 1998-09-09 Paul D. Smith <psmith@gnu.org>
1286 * w32/subproc/sub_proc.c: Add in missing HAVE_MKS_SHELL tests.
1288 1998-09-04 Paul D. Smith <psmith@gnu.org>
1290 * read.c (read_makefile): If we hit the "missing separator" error,
1291 check for the common case of 8 spaces instead of a TAB and give an
1292 extra comment to help people out.
1294 1998-08-29 Paul Eggert <eggert@twinsun.com>
1296 * configure.in (AC_STRUCT_ST_MTIM_NSEC):
1297 Renamed from AC_STRUCT_ST_MTIM.
1299 * acinclude.m4 (AC_STRUCT_ST_MTIM_NSEC): Likewise.
1300 Port to UnixWare 2.1.2 and pedantic Solaris 2.6.
1302 * acconfig.h (ST_MTIM_NSEC):
1303 Renamed from HAVE_ST_MTIM, with a new meaning.
1305 * filedef.h (FILE_TIMESTAMP_FROM_S_AND_NS):
1306 Use new ST_MTIM_NSEC macro.
1308 1998-08-26 Paul D. Smith <psmith@gnu.org>
1310 * remake.c (check_dep): For any intermediate file, not just
1311 secondary ones, try implicit and default rules if no explicit
1312 rules are given. I'm not sure why this was restricted to
1313 secondary rules in the first place.
1315 1998-08-24 Paul D. Smith <psmith@gnu.org>
1317 * make.texinfo (Special Targets): Update documentation for
1318 .INTERMEDIATE: if used with no dependencies, then it does nothing;
1319 old docs said it marked all targets as intermediate, which it
1320 didn't... and which would be silly :).
1322 * implicit.c (pattern_search): If we find a dependency in our
1323 internal tables, make sure it's not marked intermediate before
1324 accepting it as a found_file[].
1326 1998-08-20 Paul D. Smith <psmith@gnu.org>
1328 * ar.c (ar_glob): Use existing alpha_compare() with qsort.
1329 (ar_glob_alphacompare): Remove it.
1331 Modify Paul Eggert's patch so we don't abandon older systems:
1333 * configure.in: Warn the user if neither waitpid() nor wait3() is
1336 * job.c (WAIT_NOHANG): Don't syntax error on ancient hosts.
1337 (child_handler, dead_children): Define these if WAIT_NOHANG is not
1339 (reap_children): Only track the dead_children count if no
1340 WAIT_NOHANG. Otherwise, it's a boolean.
1342 * main.c (main): Add back signal handler if no WAIT_NOHANG is
1343 available; only use default signal handler if it is.
1345 1998-08-20 Paul Eggert <eggert@twinsun.com>
1347 Install a more robust signal handling mechanism for systems which
1350 * job.c (WAIT_NOHANG): Define to a syntax error if our host
1351 is truly ancient; this should never happen.
1352 (child_handler, dead_children): Remove.
1353 (reap_children): Don't try to keep separate track of how many
1354 dead children we have, as this is too bug-prone.
1355 Just ask the OS instead.
1356 (vmsHandleChildTerm): Fix typo in error message; don't mention
1359 * main.c (main): Make sure we're not ignoring SIGCHLD/SIGCLD;
1360 do this early, before we could possibly create a subprocess.
1361 Just use the default behavior; don't have our own handler.
1363 1998-08-18 Eli Zaretskii <eliz@is.elta.co.il>
1365 * read.c (read_makefile) [__MSDOS__, WINDOWS32]: Add code to
1366 recognize library archive members when dealing with drive spec
1367 mess. Discovery and initial fix by George Racz <gracz@mincom.com>.
1369 1998-08-18 Paul D. Smith <psmith@gnu.org>
1371 * configure.in: Check for stdlib.h explicitly (some hosts have it
1372 but don't have STDC_HEADERS).
1373 * make.h: Use HAVE_STDLIB_H. Clean up some #defines.
1374 * config.ami: Re-compute based on new config.h.in contents.
1375 * config.h-vms: Ditto.
1376 * config.h.W32: Ditto.
1377 * configh.dos: Ditto.
1379 * dir.c (find_directory) [WINDOWS32]: Windows stat() fails if
1380 directory names end with `\' so strip it.
1382 1998-08-17 Paul D. Smith <psmith@gnu.org>
1384 * make.texinfo: Added copyright year to the printed copy. Removed
1385 the price from the manual. Change the top-level reference to
1386 running make to be "Invoking make" instead of "make Invocation",
1387 to comply with GNU doc standards.
1389 * make.h (__format__, __printf__): Added support for these in
1390 __attribute__ macro.
1391 (message, error, fatal): Use ... prototype form under __STDC__.
1392 Add __format__ attributes for printf-style functions.
1394 * configure.in (AC_FUNC_VPRINTF): Check for vprintf()/_doprnt().
1396 * misc.c (message, error, fatal): Add preprocessor stuff to enable
1397 creation of variable-argument functions with appropriate
1398 prototypes, that works with ANSI, pre-ANSI, varargs.h, stdarg.h,
1399 v*printf(), _doprnt(), or none of the above. Culled from GNU
1400 fileutils and slightly modified.
1401 (makefile_error, makefile_error): Removed (merged into error() and
1402 fatal(), respectively).
1403 * amiga.c: Use them.
1405 * arscan.c: Use them.
1406 * commands.c: Use them.
1407 * expand.c: Use them.
1409 * function.c: Use them.
1414 * remake.c: Use them.
1415 * remote-cstms.c: Use them.
1417 * variable.c: Use them.
1419 * make.h (struct floc): New structure to store file location
1421 * commands.h (struct commands): Use it.
1422 * variable.c (try_variable_definition): Use it.
1423 * commands.c: Use it.
1424 * default.c: Use it.
1426 * function.c: Use it.
1431 1998-08-16 Paul Eggert <eggert@twinsun.com>
1433 * filedef.h (FILE_TIMESTAMP_PRINT_LEN_BOUND): Add 10, for nanoseconds.
1435 1998-08-16 Paul Eggert <eggert@twinsun.com>
1437 * filedef.h (FLOOR_LOG2_SECONDS_PER_YEAR): New macro.
1438 (FILE_TIMESTAMP_PRINT_LEN_BOUND): Tighten bound, and try to
1439 make it easier to understand.
1441 1998-08-14 Paul D. Smith <psmith@gnu.org>
1443 * read.c (read_makefile): We've already unquoted any colon chars
1444 by the time we're done reading the targets, so arrange for
1445 parse_file_seq() on the target list to not do so again.
1447 1998-08-05 Paul D. Smith <psmith@gnu.org>
1449 * configure.in: Added glob/configure.in data. We'll have the glob
1450 code include the regular make config.h, rather than creating its
1453 * getloadavg.c (main): Change return type to int.
1455 1998-08-01 Paul Eggert <eggert@twinsun.com>
1457 * job.c (reap_children): Ignore unknown children.
1459 1998-07-31 Paul D. Smith <psmith@gnu.org>
1461 * make.h, filedef.h, dep.h, rule.h, commands.h, remake.c:
1462 Add prototypes for functions. Some prototypes needed to be moved
1463 in order to get #include order reasonable.
1465 1998-07-30 Paul D. Smith <psmith@gnu.org>
1467 * make.h: Added MIN/MAX.
1468 * filedef.h: Use them; remove FILE_TIMESTAMP_MIN.
1470 1998-07-30 Paul Eggert <eggert@twinsun.com>
1472 Add support for sub-second timestamp resolution on hosts that
1473 support it (just Solaris 2.6, so far).
1475 * acconfig.h (HAVE_ST_MTIM, uintmax_t): New undefs.
1476 * acinclude.m4 (jm_AC_HEADER_INTTYPES_H, AC_STRUCT_ST_MTIM,
1477 jm_AC_TYPE_UINTMAX_T): New defuns.
1478 * commands.c (delete_target): Convert file timestamp to
1479 seconds before comparing to archive timestamp. Extract mod
1480 time from struct stat using FILE_TIMESTAMP_STAT_MODTIME.
1481 * configure.in (C_STRUCT_ST_MTIM, jm_AC_TYPE_UINTMAX_T): Add.
1482 (AC_CHECK_LIB, AC_CHECK_FUNCS): Add clock_gettime.
1483 * file.c (snap_deps): Use FILE_TIMESTAMP, not time_t.
1484 (file_timestamp_now, file_timestamp_sprintf): New functions.
1485 (print_file): Print file timestamps as FILE_TIMESTAMP, not
1487 * filedef.h: Include <inttypes.h> if available and if HAVE_ST_MTIM.
1488 (FILE_TIMESTAMP, FILE_TIMESTAMP_STAT_MODTIME, FILE_TIMESTAMP_MIN,
1489 FILE_TIMESTAMPS_PER_S, FILE_TIMESTAMP_FROM_S_AND_NS,
1490 FILE_TIMESTAMP_DIV, FILE_TIMESTAMP_MOD, FILE_TIMESTAMP_S,
1491 FILE_TIMESTAMP_NS, FILE_TIMESTAMP_PRINT_LEN_BOUND): New macros.
1492 (file_timestamp_now, file_timestamp_sprintf): New decls.
1493 (struct file.last_mtime, f_mtime, file_mtime_1, NEW_MTIME):
1494 time_t -> FILE_TIMESTAMP.
1495 * implicit.c (pattern_search): Likewise.
1496 * vpath.c (vpath_search, selective_vpath_search): Likewise.
1497 * main.c (main): Likewise.
1498 * remake.c (check_dep, name_mtime, library_search, f_mtime): Likewise.
1499 (f_mtime): Use file_timestamp_now instead of `time'.
1500 Print file timestamp with file_timestamp_sprintf.
1501 * vpath.c (selective_vpath_search): Extract file time stamp from
1502 struct stat with FILE_TIMESTAMP_STAT_MODTIME.
1504 1998-07-28 Paul D. Smith <psmith@gnu.org>
1506 * Version 3.77 released.
1508 * dosbuild.bat: Change to DOS CRLF line terminators.
1510 * make-stds.texi: Update from latest version.
1512 * make.texinfo (Options Summary): Clarify that the -r option
1513 affects only rules, not builtin variables.
1515 1998-07-27 Paul D. Smith <psmith@gnu.org>
1517 * make.h: Make __attribute__ resolve to empty for non-GCC _and_
1520 * misc.c (log_access): Print UID/GID's as unsigned long int for
1521 maximum portability.
1523 * job.c (reap_children): Print PIDs as long int for maximum
1526 1998-07-24 Eli Zaretskii <eliz@is.elta.co.il>
1528 * Makefile.DOS (*_INSTALL, *_UNINSTALL): Replace `true' with `:'.
1530 1998-07-25 Paul D. Smith <psmith@gnu.org>
1532 * Version 3.76.94 released.
1534 1998-07-23 Paul D. Smith <psmith@gnu.org>
1536 * config.h.W32.template: Make sure all the #defines of macros here
1537 have a value (e.g., use ``#define HAVE_STRING_H 1'' instead of
1538 just ``#define HAVE_STRING_H''. Keeps the preprocessor happy in
1541 * make.h: Remove __attribute__((format...)) stuff; using it with
1542 un-prototyped functions causes older GCC's to fail.
1544 * Version 3.76.93 released.
1546 1998-07-22 Paul D. Smith <psmith@gnu.org>
1548 * file.c (print_file_data_base): Fix average calculation.
1550 1998-07-20 Paul D. Smith <psmith@gnu.org>
1552 * main.c (die): Postpone the chdir() until after
1553 remove_intermediates() so that intermediate targets with relative
1554 pathnames are removed properly.
1556 1998-07-17 Paul D. Smith <psmith@gnu.org>
1558 * filedef.h (struct file): New flag: did we print an error or not?
1560 * remake.c (no_rule_error): New function to print error messages,
1561 extraced from remake_file().
1563 * remake.c (remake_file): Invoke the new error print function.
1564 (update_file_1): Invoke the error print function if we see that we
1565 already tried this target and it failed, but that an error wasn't
1566 printed for it. This can happen if a file is included with
1567 -include or sinclude and couldn't be built, then later is also
1568 the dependency of another target. Without this change, make just
1571 1998-07-16 Paul D. Smith <psmith@gnu.org>
1573 * make.texinfo: Removed "beta" version designator.
1574 Updated ISBN for the next printing.
1576 1998-07-13 Paul Eggert <eggert@twinsun.com>
1578 * acinclude.m4: New AC_LFS macro to determine if special compiler
1579 flags are needed to allow access to large files (e.g., Solaris 2.6).
1580 * configure.in: Invoke it.
1582 1998-07-08 Eli Zaretskii <eliz@is.elta.co.il>
1584 * Makefile.DOS: track changes in Makefile.in.
1586 1998-07-07 Paul D. Smith <psmith@gnu.org>
1588 * remote-cstms.c (start_remote_job): Move gethostbyaddr() to the
1589 top so host is initialized early enough.
1591 * acinclude.m4: New file. Need some special autoconf macros to
1592 check for network libraries (-lsocket, -lnsl, etc.) when
1593 configuring Customs.
1595 * configure.in (make_try_customs): Invoke new network libs macro.
1597 1998-07-06 Paul D. Smith <psmith@gnu.org>
1599 * Version 3.76.92 released.
1601 * README.customs: Added to the distribution.
1603 * configure.in (make_try_customs): Rewrite to require an installed
1604 Customs library, rather than looking at the build directory.
1606 * Makefile.am (man_MANS): Install make.1.
1607 * make.1: Renamed from make.man.
1609 * make.texinfo (Bugs): New mailing list address for GNU make bug
1612 1998-07-02 Paul D. Smith <psmith@gnu.org>
1614 * Version 3.76.91 released.
1616 * default.c: Added default rule for new-style RCS master file
1617 storage; ``% :: RCS/%''.
1618 Added default rules for DOS-style C++ files with suffix ".cpp".
1619 They use the new LINK.cpp and COMPILE.cpp macros, which are set by
1620 default to be equal to LINK.cc and COMPILE.cc.
1622 1998-06-19 Eli Zaretskii <eliz@is.elta.co.il>
1624 * job.c (start_job_command): Reset execute_by_shell after an empty
1625 command was skipped.
1627 1998-06-09 Paul D. Smith <psmith@gnu.org>
1629 * main.c (main): Keep track of the temporary filename created when
1630 reading a makefile from stdin (-f-) and attempt to remove it
1631 as soon as we know we're not going to re-exec. If we are, add it
1632 to the exec'd make's cmd line with "-o" so the exec'd make doesn't
1633 try to rebuild it. We still have a hole: if make re-execs then
1634 the temporary file will never be removed. To fix this we'd need
1635 a brand new option that meant "really delete this".
1636 * AUTHORS, getopt.c, getopt1.c, getopt.h, main.c (print_version):
1637 Updated mailing addresses.
1639 1998-06-08 Paul D. Smith <psmith@gnu.org>
1641 * main.c (main): Andreas Luik <luik@isa.de> points out that the
1642 check for makefile :: rules with commands but no dependencies
1643 causing a loop terminates incorrectly.
1645 * maintMakefile: Make a template for README.DOS to update version
1648 1998-05-30 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1650 * remake.c (update_file_1): Don't free the memory for the
1651 dependency structure when dropping a circular dependency.
1653 1998-05-30 Eli Zaretskii <eliz@is.elta.co.il>
1655 * dir.c (file_exists_p, file_impossible_p, file_impossible)
1656 [__MSDOS__, WINDOWS32]: Retain trailing slash in "d:/", and make
1657 dirname of "d:foo" be "d:".
1659 1998-05-26 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1661 * read.c (read_makefile): Avoid running past EOS when scanning
1662 file name after `include'.
1664 1998-05-26 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1666 * make.texinfo (Flavors): Correct description of conditional
1667 assignment, which is not equivalent to ifndef.
1668 (Setting): Likewise.
1670 1998-05-24 Paul D. Smith <psmith@gnu.org>
1672 * arscan.c (ar_name_equal): strncmp() might be implemented as a
1673 macro, so don't put preprocessor conditions inside the arguments
1676 1998-05-23 Eli Zaretskii <eliz@is.elta.co.il>
1678 * read.c (read_makefile) [__MSDOS__, WINDOWS32]: Skip colons in
1679 drive specs when parsing targets, target-specific variables and
1680 static pattern rules. A colon can only be part of drive spec if
1681 it is after the first letter in a token.
1683 1998-05-22 Eli Zaretskii <eliz@is.elta.co.il>
1685 * remake.c (f_mtime) [__MSDOS__]: Allow up to 3 sec of skew before
1686 yelling bloody murder.
1688 * dosbuild.bat: Use -DINCLUDEDIR= and -DLIBDIR= where appropriate.
1690 * read.c (parse_file_seq): Combine the special file-handling code
1691 for WINDOWS32 and __MSDOS__ into a single snippet.
1692 (get_next_mword) [__MSDOS__, WINDOWS32]: Allow a word to include a
1693 colon as part of a drive spec.
1695 * job.c (batch_mode_shell) [__MSDOS__]: Declare.
1697 1998-05-20 Paul D. Smith <psmith@gnu.org>
1699 * Version 3.76.90 released.
1701 1998-05-19 Paul D. Smith <psmith@gnu.org>
1703 * make.texinfo (Make Errors): Added a new appendix describing
1704 common errors make might generate and how to resolve them (or at
1705 least more information on what they mean).
1707 * maintMakefile (NMAKEFILES): Use the new automake 1.3 feature
1708 to create a dependency file to construct Makefile.DOS, SMakefile,
1710 (.dep_segment): Generate the dependency fragment file.
1712 1998-05-14 Paul D. Smith <psmith@gnu.org>
1714 * make.man: Minor changes.
1716 1998-05-13 Paul D. Smith <psmith@gnu.org>
1718 * function.c (pattern_matches,expand_function): Change variables
1719 and types named "word" to something else, to avoid compilation
1720 problems on Cray C90 Unicos.
1721 * variable.h: Modify the function prototype.
1723 1998-05-11 Rob Tulloh <rob_tulloh@tivoli.com>
1725 * job.c (construct_command_argv_internal) [WINDOWS32]: Turn off
1726 echo when using a batch file, and make sure the command ends in a
1729 1998-05-03 Paul D. Smith <psmith@gnu.org>
1731 * configure.in (make_try_customs): Add some customs flags if the
1732 user configures custom support.
1734 * job.c, remote-cstms.c: Merge in changes for custom library.
1736 * remote-stub.c: Add option to stub start_remote_job_p().
1738 1998-05-01 Paul D. Smith <psmith@gnu.org>
1740 * remake.c (f_mtime): Install VPATH+ handling for archives; use
1741 the hname field instead of the name field, and rehash when
1744 1998-04-30 Paul D. Smith <psmith@gnu.org>
1746 * rule.c (print_rule_data_base): Print out any pattern-specific
1747 variable values into the rules database.
1749 * variable.c (print_variable_set): Make this variable extern, to
1750 be called by print_rule_data_base() for pattern-specific variables.
1752 * make.texinfo (Pattern-specific): Document pattern-specific
1755 1998-04-29 Paul D. Smith <psmith@gnu.org>
1757 * expand.c (variable_expand_for_file): Make static; its only
1758 called internally. Look up this target in the list of
1759 pattern-specific variables and insert the variable set into the
1760 queue to be searched.
1762 * filedef.h (struct file): Add a new field to hold the
1763 previously-found pattern-specific variable reference. Add a new
1764 flag to remember whether we already searched for this file.
1766 * rule.h (struct pattern_var): New structure for storing
1767 pattern-specific variable values. Define new function prototypes.
1769 * rule.c: New variables pattern_vars and last_pattern_var for
1770 storage and handling of pattern-specific variable values.
1771 (create_pattern_var): Create a new pattern-specific variable value
1773 (lookup_pattern_var): Try to match a target to one of the
1774 pattern-specific variable values.
1776 1998-04-22 Paul D. Smith <psmith@gnu.org>
1778 * make.texinfo (Target-specific): Document target-specific
1781 1998-04-21 Paul D. Smith <psmith@gnu.org>
1783 * variable.c (define_variable_in_set): Made globally visible.
1784 (lookup_variable_in_set): New function: like lookup_variable but
1785 look only in a specific variable set.
1786 (target_environment): Use lookup_variable_in_set() to get the
1787 correct export rules for a target-specific variable.
1788 (create_new_variable_set): Create a new variable set, and just
1789 return it without installing it anywhere.
1790 (push_new_variable_scope): Reimplement in terms of
1791 create_new_variable_set.
1793 * read.c (record_target_var): Like record_files, but instead of
1794 files create a target-specific variable value for each of the
1795 listed targets. Invoked from read_makefile() when the target line
1796 turns out to be a target-specific variable assignment.
1798 1998-04-19 Paul D. Smith <psmith@gnu.org>
1800 * read.c (read_makefile): Rewrite the entire target parsing
1801 section to implement target-specific variables. In particular, we
1802 cannot expand the entire line as soon as it's read in, since we
1803 may want to evaluate parts of it with different variable contexts
1804 active. Instead, start expanding from the beginning until we find
1805 the `:' (or `::'), then determine what kind of line this is and
1806 continue appropriately.
1808 * read.c (get_next_mword): New function to parse a makefile line
1809 by "words", considering an entire variable or function as one
1810 word. Return the type read in, along with its starting position
1812 (enum make_word_type): The types of words that are recognized by
1815 * variable.h (struct variable): Add a flag to specify a per-target
1818 * expand.c: Make variable_buffer global. We need this during the
1819 new parsing of the makefile.
1820 (variable_expand_string): New function. Like variable_expand(),
1821 but start at a specific point in the buffer, not the beginning.
1822 (variable_expand): Rewrite to simply call variable_expand_string().
1824 1998-04-13 Paul D. Smith <psmith@gnu.org>
1826 * remake.c (update_goal_chain): Allow the rebuilding makefiles
1827 step to use parallel jobs. Not sure why this was disabled:
1828 hopefully we won't find out :-/.
1830 1998-04-11 Paul D. Smith <psmith@gnu.org>
1832 * main.c (main): Set the CURDIR makefile variable.
1833 * make.texinfo (Recursion): Document it.
1835 1998-03-17 Paul D. Smith <psmith@gnu.org>
1837 * misc.c (makefile_fatal): If FILE is nil, invoke plain fatal().
1838 * variable.c (try_variable_definition): Use new feature.
1840 1998-03-10 Paul D. Smith <psmith@gnu.org>
1842 * main.c (main): Don't pass included, rebuilt makefiles to
1843 re-exec'd makes with -o. Reopens a possible loop, but it caused
1846 1998-03-02 Paul D. Smith <psmith@gnu.org>
1848 * variable.c (try_variable_definition): Implement ?=.
1849 * make.texinfo (Setting): Document it.
1851 1998-02-28 Eli Zaretskii <eliz@is.elta.co.il>
1853 * job.c (start_job_command): Reset execute_by_shell after an empty
1854 command, like ":", has been seen.
1856 Tue Oct 07 15:00:00 1997 Phil Brooks <phillip_brooks@hp.com>
1858 * make.h [WINDOWS32]: make case sensitivity configurable
1859 * dir.c [WINDOWS32]: make case sensitivity configurable
1860 * README.W32: Document case sensitivity
1861 * config.ami: Share case warping code with Windows
1863 Mon Oct 6 18:48:45 CDT 1997 Rob Tulloh <rob_tulloh@dev.tivoli.com>
1865 * w32/subproc/sub_proc.c: Added support for MKS toolkit shell
1866 (turn on HAVE_MKS_SHELL).
1867 * read.c [WINDOWS32]: Fixed a problem with multiple target rules
1868 reported by Gilbert Catipon (gcatipon@tibco.com). If multiple
1869 path tokens in a rule did not have drive letters, make would
1870 incorrectly concatenate the 2 tokens together.
1871 * main.c/variable.c [WINDOWS32]: changed SHELL detection code to
1872 follow what MSDOS did. In addition to watching for SHELL variable
1873 updates, make's main will attempt to default the value of SHELL
1874 before and after makefiles are parsed.
1875 * job.c/job.h [WINDOWS32]: The latest changes made to enable use
1876 of the GNUWIN32 shell from make could cause make to fail due to a
1877 concurrency condition between parent and child processes. Make
1878 now creates a batch file per job instead of trying to reuse the
1879 same singleton batch file.
1880 * job.c/job.h/function.c/config.h.W32 [WINDOWS32]: Renamed macro
1881 from HAVE_CYGNUS_GNUWIN32_TOOLS to BATCH_MODE_ONLY_SHELL. Reworked
1882 logic to reduce complexity. WINDOWS32 now uses the unixy_shell
1883 variable to detect Bourne-shell compatible environments. There is
1884 also a batch_mode_shell variable that determines whether not
1885 command lines should be executed via script files. A WINDOWS32
1886 system with no sh.exe installed would have unixy_shell set to
1887 FALSE and batch_mode_shell set to TRUE. If you have a unixy shell
1888 that does not behave well when invoking things via 'sh -c xxx',
1889 you may want to turn on BATCH_MODE_ONLY_SHELL and see if things
1891 * NMakefile: Added /D DEBUG to debug build flags so that unhandled
1892 exceptions could be debugged.
1894 Mon Oct 6 00:04:25 1997 Rob Tulloh <rob_tulloh@dev.tivoli.com>
1896 * main.c [WINDOWS32]: The function define_variable() does not
1897 handle NULL. Test before calling it to set Path.
1898 * main.c [WINDOWS32]: Search Path again after makefiles have been
1899 parsed to detect sh.exe.
1900 * job.c [WINDOWS32]: Added support for Cygnus GNU WIN32 tools.
1901 To use, turn on HAVE_CYGNUS_GNUWIN32_TOOLS in config.h.W32.
1902 * config.h.W32: Added HAVE_CYGNUS_GNUWIN32_TOOLS macro.
1904 Sun Oct 5 22:43:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
1906 * glob/glob.c (glob_in_dir) [VMS]: Globbing shouldn't be
1908 * job.c (child_execute_job) [VMS]: Use a VMS .com file if the
1909 command contains a newline (e.g. from a define/enddef block).
1910 * vmsify.c (vmsify): Return relative pathnames wherever possible.
1911 * vmsify.c (vmsify): An input string like "../.." returns "[--]".
1913 Wed Oct 1 15:45:09 1997 Rob Tulloh <rob_tulloh@tivoli.com>
1915 * NMakefile: Changed nmake to $(MAKE).
1916 * subproc.bat: Take the make command name from the command
1917 line. If no command name was given, default to nmake.
1918 * job.c [MSDOS, WINDOWS32]: Fix memory stomp: temporary file names
1919 are now always created in heap memory.
1920 * w32/subproc/sub_proc.c: New implementation of make_command_line()
1921 which is more compatible with different Bourne shell implementations.
1922 Deleted the now obsolete fix_command_line() function.
1923 * main.c [WINDOWS32]: Any arbitrary spelling of Path can be
1924 detected. Make will ensure that the special spelling `Path' is
1925 inserted into the environment when the path variable is propagated
1926 within itself and to make's children.
1927 * main.c [WINDOWS32]: Detection of sh.exe was occurring too
1928 soon. The 2nd check for the existence of sh.exe must come after
1929 the call to read_all_makefiles().
1931 Fri Sep 26 01:14:18 1997 <zinser@axp602.gsi.de>
1933 * makefile.com [VMS]: Fixed definition of sys.
1934 * readme.vms: Comments on what's changed lately.
1936 Fri Sep 26 01:14:18 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
1938 * read.c (read_all_makefiles): Allow make to find files named
1939 "MAKEFILE" with no extension on VMS.
1940 * file.c (lookup_file): Lowercase filenames on VMS.
1942 1997-09-29 Paul D. Smith <psmith@baynetworks.com>
1944 * read.c (read_makefile): Reworked target detection again; the old
1945 version had an obscure quirk.
1947 Fri Sep 19 09:20:49 1997 Paul D. Smith <psmith@baynetworks.com>
1949 * Version 3.76.1 released.
1951 * Makefile.am: Add loadavg files to clean rules.
1953 * configure.in (AC_OUTPUT): Remove stamp-config; no longer needed.
1954 * Makefile.ami (distclean): Ditto.
1955 * SMakefile (distclean): Ditto.
1957 * main.c (main): Arg count should be int, not char! Major braino.
1959 Tue Sep 16 10:18:22 1997 Paul D. Smith <psmith@baynetworks.com>
1961 * Version 3.76 released.
1963 Tue Sep 2 10:07:39 1997 Paul D. Smith <psmith@baynetworks.com>
1965 * function.c (expand_function): When processing $(shell...)
1966 translate a CRLF (\r\n) sequence as well as a newline (\n) to a
1967 space. Also remove an ending \r\n sequence.
1968 * make.texinfo (Shell Function): Document it.
1970 Fri Aug 29 12:59:06 1997 Rob Tulloh <rob_tulloh@tivoli.com>
1972 * w32/pathstuff.c (convert_Path_to_windows32): Fix problem where
1973 paths which contain single character entries like `.' are not
1976 * README.W32: Document path handling issues on Windows systems.
1978 Fri Aug 29 02:01:27 1997 Paul D. Smith <psmith@baynetworks.com>
1982 Thu Aug 28 19:39:06 1997 Rob Tulloh <rob_tulloh@tivoli.com>
1984 * job.c (exec_command) [WINDOWS32]: If exec_command() is invoked
1985 from main() to re-exec make, the call to execvp() would
1986 incorrectly return control to parent shell before the exec'ed
1987 command could run to completion. I believe this is a feature of
1988 the way that execvp() is implemented on top of WINDOWS32 APIs. To
1989 alleviate the problem, use the supplied process launch function in
1990 the sub_proc library and suspend the parent process until the
1991 child process has run. When the child exits, exit the parent make
1992 with the exit code of the child make.
1994 Thu Aug 28 17:04:47 1997 Paul D. Smith <psmith@baynetworks.com>
1996 * Makefile.DOS.template (distdir): Fix a line that got wrapped in
1999 * Makefile.am (loadavg): Give the necessary cmdline options when
2002 * configure.in: Check for pstat_getdynamic for getloadvg on HP.
2004 * job.c (start_job_command) [VMS, _AMIGA]: Don't perform empty
2005 command optimization on these systems; it doesn't make sense.
2007 Wed Aug 27 17:09:32 1997 Paul D. Smith <psmith@baynetworks.com>
2011 Tue Aug 26 11:59:15 1997 Paul D. Smith <psmith@baynetworks.com>
2013 * main.c (print_version): Add '97 to copyright years.
2015 * read.c (do_define): Check the length of the array before looking
2016 at a particular offset.
2018 * job.c (construct_command_argv_internal): Examine the last byte
2019 of the previous arg, not the byte after that.
2021 Sat Aug 23 1997 Eli Zaretskii <eliz@is.elta.co.il>
2023 * Makefile.DOS.template: New file (converted to Makefile.DOS in
2026 * configure.bat: Rewrite to use Makefile.DOS instead of editing
2027 Makefile.in. Add support for building from outside of the source
2028 directory. Fail if the environment block is too small.
2030 * configh.dos: Use <sys/config.h>.
2032 * README.DOS: Update instructions.
2034 Fri Aug 22 1997 Eli Zaretskii <eliz@is.elta.co.il>
2036 * job.c (start_job_command) [__MSDOS__]: Don't test for "/bin/sh"
2037 literally, use value of unixy_shell instead.
2039 * filedef.h (NEW_MTIME): Use 1 less than maximum possible value if
2042 Sat Aug 16 00:56:15 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
2044 * vmsify.c (vmsify, case 11): After translating `..' elements, set
2045 nstate to N_OPEN if there are still more elements to process.
2046 (vmsify, case 2): After translating `foo/bar' up to the slash,
2047 set nstate to N_OPEN, not N_DOT.
2049 Fri Aug 8 15:18:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
2051 * dir.c (vmsstat_dir): Leave name unmodified on exit.
2052 * make.h (PATH_SEPARATOR_CHAR): Set to comma for VMS.
2053 * vpath.c: Fix comments to refer to path separator, not colon.
2054 (selective_vpath_search): Avoid Unixy slash handling for VMS.
2056 Thu Aug 7 22:24:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
2058 * ar.c [VMS]: Don't declare ar_member_touch.
2059 Delete VMS version of ar_member_date.
2060 Enable non-VMS versions of ar_member_date and ar_member_date_1 for
2062 * arscan.c (VMS_get_member_info): New function.
2063 (ar_scan): Provide version for VMS systems.
2064 (ar_name_equal): Simply compare name and mem on VMS systems.
2065 Don't define ar_member_pos or ar_member_touch on VMS systems.
2067 * config.h-vms (pid_t, uid_t): Don't define.
2069 * remake.c: Delete declaration of vms_stat.
2070 (name_mtime): Don't call vms_stat.
2071 (f_mtime) [VMS]: Funky time value manipulation no longer necessary.
2073 * file.c (print_file): [VMS] Use ctime, not cvt_time.
2075 * make.h [VMS]: Don't define POSIX.
2077 * makefile.com (filelist): Include ar and arscan.
2078 Also include them in the link commands.
2079 Don't define NO_ARCHIVES in cc command.
2081 * makefile.vms (ARCHIVES, ARCHIVES_SRC): Uncomment.
2082 (defines): Delete NO_ARCHIVES from list.
2084 * remake.c (f_mtime): Only check to see if intermediate file is
2085 out of date if it also exists (i.e., mtime != (time_t) -1).
2087 * vmsdir.h (u_long, u_short): Skip typedefs if using DEC C.
2089 Fri Jun 20 23:02:07 1997 Rob Tulloh <rob_tulloh@tivoli.com>
2091 * w32/subproc/sub_proc.c: Get W32 sub_proc to handle shebang
2092 (#!/bin/sh) in script files correctly.
2093 Fixed a couple of memory leaks.
2094 Fixed search order in find_file() (w32/subproc/sub_proc.c) so that
2095 files with extensions are preferred over files without extensions.
2096 Added search for files with .cmd extension too.
2097 * w32/subproc/misc.c (arr2envblk): Fixed memory leak.
2099 Mon Aug 18 09:41:08 1997 Paul D. Smith <psmith@baynetworks.com>
2103 Fri Aug 15 13:50:54 1997 Paul D. Smith <psmith@baynetworks.com>
2105 * read.c (do_define): Remember to count the newline after the endef.
2107 Thu Aug 14 23:14:37 1997 Paul D. Smith <psmith@baynetworks.com>
2109 * many: Rewrote builds to use Automake 1.2.
2111 * AUTHORS: New file.
2112 * maintMakefile: Contains maintainer-only make snippets.
2113 * GNUmakefile: This now only runs the initial auto* tools.
2114 * COPYING,texinfo.tex,mkinstalldirs,install-sh: Removed (obtained
2115 automatically by automake).
2116 * compatMakefile: Removed (not needed anymore).
2117 * README,build.sh.in: Removed (built from templates).
2118 * config.h.in,Makefile.in: Removed (built by tools).
2120 Wed Aug 13 02:22:08 1997 Paul D. Smith <psmith@baynetworks.com>
2122 * make.texinfo: Updates for DOS/Windows information (Eli Zaretskii)
2123 * README,README.DOS: Ditto.
2125 * remake.c (update_file_1,f_mtime): Fix GPATH handling.
2126 * vpath.c (gpath_search): Ditto.
2128 * file.c (rename_file): New function: rehash, but also rename to
2130 * filedef.h: Declare it.
2132 * variable.c (merge_variable_set_lists): Remove free() of variable
2133 set; since various files can share variable sets we don't want to
2136 Tue Aug 12 10:51:54 1997 Paul D. Smith <psmith@baynetworks.com>
2138 * configure.in: Require autoconf 2.12
2140 * make.texinfo: Replace all "cd subdir; $(MAKE)" examples with a
2141 more stylistically correct "cd subdir && $(MAKE)".
2143 * main.c: Global variable `clock_skew_detected' defined.
2144 (main): Print final warning if it's set.
2145 * make.h: Declare it.
2146 * remake.c (f_mtime): Test and set it.
2148 * job.c (start_job_command): Add special optimizations for
2149 "do-nothing" rules, containing just the shell no-op ":". This is
2150 useful for timestamp files and can make a real difference if you
2151 have a lot of them (requested by Fergus Henderson <fjh@cs.mu.oz.au>).
2153 * configure.in,Makefile.in: Rewrote to use the new autoconf
2154 program_transform_name macro.
2156 * function.c (function_strip): Strip newlines as well as spaces
2159 Fri Jun 6 23:41:04 1997 Rob Tulloh <rob_tulloh@tivoli.com>
2161 * remake.c (f_mtime): Datestamps on FAT-based files are rounded to
2162 even seconds when stored, so if the date check fails on WINDOWS32
2163 systems, see if this "off-by-one" error is the problem.
2165 * General: If your TZ environment variable is not set correctly
2166 then all your timestamps will be off by hours. So, set it!
2168 Mon Apr 7 02:06:22 1997 Paul D. Smith <psmith@baynetworks.com>
2172 * compatMakefile (objs): Define & use the $(GLOB) variable so
2173 that it's removed correctly from build.sh.in when it's built.
2175 * configure.in: On Solaris we can use the kstat_*() functions to
2176 get load averages without needing special permissions. Add a
2177 check for -lkstat to see if we have it.
2179 * getloadavg.c (getloadavg): Use HAVE_LIBKSTAT instead of SUN5 as
2180 the test to enable kstat_open(), etc. processing.
2182 Fri Apr 4 20:21:18 1997 Eli Zaretskii <eliz@is.elta.co.il>
2184 * <lots>: Fixes to work in the DJGPP DOS environment.
2186 Mon Mar 31 02:42:52 1997 Paul D. Smith <psmith@baynetworks.com>
2188 * function.c (expand_function): Added new function $(wordlist).
2190 * make.texinfo (Filename Functions): Document $(wordlist) function.
2192 * vpath.c (build_vpath_lists): Construct the GPATH variable
2193 information in the same manner we used to construct VPATH.
2194 (gpath_search): New function to search GPATH.
2196 * make.h: Declare the new function.
2198 * remake.c (update_file_1): Call it, and keep VPATH if it's found.
2200 * make.texinfo (Search Algorithm): Document GPATH variable.
2202 Sun Mar 30 20:57:16 1997 Paul D. Smith <psmith@baynetworks.com>
2204 * main.c (handle_non_switch_argument): Defined the MAKECMDGOALS
2205 variable to contain the user options passed in on the cmd line.
2207 * make.texinfo (Goals): Document MAKECMDGOALS variable.
2209 * remake.c (f_mtime): Print a warning if we detect a clock skew
2210 error, rather than failing.
2212 * main.c (main): If we rebuild any makefiles and need to re-exec,
2213 add "-o<mkfile>" options for each makefile rebuilt to avoid
2216 Fri Mar 28 15:26:05 1997 Paul D. Smith <psmith@baynetworks.com>
2218 * job.c (construct_command_argv_internal): Track whether the last
2219 arg in the cmd string was empty or not (Roland).
2220 (construct_command_argv_internal): If the shell line is empty,
2221 don't do anything (Roland).
2223 * glob/glob.h,glob/glob.c,glob/fnmatch.c,glob/fnmatch.h: Install
2224 the latest changes from the GLIBC version of glob (Ulrich Drepper).
2226 * getloadavg.c,make-stds.texi: New version (Roland).
2228 * (ALL): Changed WIN32 to W32 or WINDOWS32 (RMS).
2230 Mon Mar 24 15:33:34 1997 Rob Tulloh <rob_tulloh@tivoli.com>
2232 * README.W32: Describe preliminary FAT support.
2234 * build_w32.bat: Use a variable for the final exe name.
2236 * dir.c (find_directory): W32: Find the filesystem type.
2237 (dir_contents_file_exists_p): W32: for FAT filesystems, always
2238 rehash since FAT doesn't change directory mtime on change.
2240 * main.c (handle_runtime_exceptions): W32: Add an
2241 UnhandledExceptionFilter so that when make bombs due to ^C or a
2242 bug, it won't cause a GUI requestor to pop up unless debug is
2246 Mon Mar 24 00:57:34 1997 Paul D. Smith <psmith@baynetworks.com>
2248 * configure.in, config.h.in, config.ami, config.h-vms, config.h.w32:
2249 Check for memmove() function.
2251 * make.h (bcopy): If memmove() available, define bcopy() to use it.
2252 Otherwise just use bcopy(). Don't use memcpy(); it's not guaranteed
2253 to handle overlapping moves.
2255 * read.c (read_makefile): Fix some uninitialized memory reads
2256 (reported by Purify).
2258 * job.c (construct_command_argv_internal): Use bcopy() not
2259 strcpy(); strcpy() isn't guaranteed to handle overlapping moves.
2261 * Makefile.in: Change install-info option ``--infodir'' to
2262 ``--info-dir'' for use with new texinfo.
2264 * function.c (expand_function): $(basename) and $(suffix) should
2265 only search for suffixes as far back as the last directory (e.g.,
2266 only the final filename in the path).
2268 Sun Mar 23 00:13:05 1997 Paul D. Smith <psmith@baynetworks.com>
2270 * make.texinfo: Add @dircategory/@direntry information.
2271 (Top): Remove previous reference to (dir) (from RMS).
2272 (Static Usage): Add "all:" rule to example.
2273 (Automatic Dependencies): fix .d file creation example.
2275 * Install VPATH+ patch:
2277 * filedef.h (struct file): Add in hname field to store the hashed
2278 filename, and a flag to remember if we're using the vpath filename
2279 or not. Renamed a few functions for more clarity.
2281 * file.c (lookup_file,enter_file,file_hash_enter): Store filenames
2282 in the hash table based on their "hash name". We can change this
2283 while keeping the original target in "name".
2284 (rehash_file): Renamed from "rename_file" to be more accurate.
2285 Changes the hash name, but not the target name.
2287 * remake.c (update_file_1): Modify -d output for more detailed
2288 VPATH info. If we don't need to rebuild, use the VPATH name.
2289 (f_mtime): Don't search for vpath if we're ignoring it. Call
2290 renamed function rehash_file. Call name_mtime instead of
2291 file_mtime, to avoid infinite recursion since the file wasn't
2294 * implicit.c (pattern_search): if we find an implicit file in
2295 VPATH, save the original name not the VPATH name.
2297 * make.texinfo (Directory Search): Add a section on the new VPATH
2300 Sun Dec 1 18:36:04 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2302 * dir.c (file_exists_p, file_impossible, file_impossible_p): If
2303 dirname is empty replace it by the name of the root directory.
2304 Note that this doesn't work (yet) for W32, Amiga, or VMS.
2306 Tue Oct 08 13:57:03 1996 Rob Tulloh <tulloh@tivoli.com>
2308 * main.c (main): W32 bug fix for PATH vars.
2310 Tue Sep 17 1996 Paul Eggert <eggert@twinsun.com>
2312 * filedef.h (NEW_MTIME): Don't assume that time_t is a signed
2315 * make.h: (CHAR_BIT, INTEGER_TYPE_SIGNED, INTEGER_TYPE_MAXIMUM,
2316 INTEGER_TYPE_MINIMUM): New macros.
2318 Tue Aug 27 01:06:34 1996 Roland McGrath <roland@baalperazim.frob.com>
2320 * Version 3.75 released.
2322 * main.c (print_version): Print out bug-reporting address.
2324 Mon Aug 26 19:55:47 1996 Roland McGrath <roland@baalperazim.frob.com>
2326 * main.c (print_data_base): Don't declare ctime; headers do it for us
2329 Sun Jul 28 15:37:09 1996 Rob Tulloh (tulloh@tivoli.com)
2331 * w32/pathstuff.c: Turned convert_vpath_to_w32() into a
2332 real function. This was done so that VPATH could contain
2333 white space separated pathnames. Please note that directory
2334 paths (in VPATH/vpath context) containing white space are not
2335 supported (just as they are not under Unix). See README.W32
2338 * w32/include/pathstuff.h: Added prototype for the new
2339 function convert_vpath_to_w32. Deleted macro for same.
2341 * README.W32: Added some notes about why I chose not to try
2342 and support pathnames which contain white space and some
2343 workaround suggestions.
2345 Thu Jul 25 19:53:31 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2347 * GNUmakefile (mkdep-nolib): Use -MM option unconditionally.
2351 * main.c (define_makeflags): Back up P to point at null terminator
2352 when killing final space and dash before setting MFLAGS.
2354 From Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>:
2355 * dir.c [__MSDOS__ && DJGPP > 1]: Include <libc/dosio.h> and defin
2356 `__opendir_flags' initialized to 0.
2357 (dosify) [__MSDOS__ && DJGPP > 1]: Return name unchanged if _USE_LFN.
2358 (find_directory) [__MSDOS__ && DJGPP > 1]: If _USE_LGN, set
2359 __opendir_flags to __OPENDIR_PRESERVE_CASE.
2361 * vmsfunctions.c (vms_stat): `sys$dassgn (DevChan);' added by kkaempf.
2363 * GNUmakefile (w32files): Add NMakefile.
2365 * NMakefile (LDFLAGS_debug): Value fixed by tulloh.
2367 Sat Jul 20 12:32:10 1996 Klaus Kämpf (kkaempf@progis.de)
2369 * remake.c (f_mtime) [VMS]: Add missing `if' conditional for future
2371 * config.h-vms, makefile.vms, readme.vms, vmsify.c: Update address.
2373 Sat Jul 20 05:29:43 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2375 * configure.in: Require autoconf 2.10 or later.
2377 Fri Jul 19 16:57:27 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2381 * GNUmakefile (w32files): New variable.
2382 (distfiles): Add it.
2383 * w32: Updated by Rob Tulloh.
2385 * makefile.vms (LOADLIBES): Fix typo.
2387 Sun Jul 14 12:59:27 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2389 * job.c (construct_command_argv_internal): Fix up #else, #endifs.
2391 * configh.dos: Define HAVE_DIRENT_H instead of DIRENT.
2393 * remake.c (f_mtime): Don't compare MTIME to NOW if MTIME == -1.
2397 * main.c (main): Exit with status 2 when update_goal_chain returns 2.
2399 Sat Jun 22 14:56:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2401 * configure.in: Don't check for _sys_siglist.
2402 * make.h [HAVE__SYS_SIGLIST]: Don't test this; just punt if there is
2403 no strsignal or sys_siglist.
2405 * read.c (conditional_line): Strip ws in `ifeq (a , b)' so it is the
2406 same as `ifeq (a, b)'.
2408 * job.c (reap_children): Don't call die if handling_fatal_signal.
2410 * file.c (file_hash_enter): Allow renaming :: to : when latter is
2411 non-target, or : to :: when former is non-target.
2413 * job.c (start_job_command): Call block_sigs.
2414 (block_sigs): New function, broken out of start_job_command.
2415 (reap_children): Block fatal signals around removing dead child from
2416 chain and adjusting job_slots_used.
2417 * job.h: Declare block_sigs.
2419 * remote-stub.c (remote_setup, remote_cleanup): New (empty) functions.
2420 * main.c (main): Call remote_setup.
2421 (die): Call remote_cleanup.
2423 * job.c (reap_children): Quiescent value of shell_function_pid is
2426 * main.c (print_version): Add 96 to copyright years.
2428 Sat Jun 15 20:30:01 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2430 * read.c (find_char_unquote): Avoid calling strlen on every call
2431 just to throw away the value most of the time.
2433 Sun Jun 2 12:24:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2435 * main.c (decode_env_switches): Prepend '-' to ARGV[1] if it contains
2436 no '=', regardless of ARGC.
2437 (define_makeflags): Elide leading '-' from MAKEFLAGS value if first
2438 word is short option, regardless of WORDS.
2440 Wed May 22 17:24:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2442 * makefile.vms: Set LOADLIBES.
2443 * makefile.com (link_using_library): Fix typo.
2445 Wed May 15 17:37:26 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2447 * dir.c (print_dir_data_base): Use %ld dev and ino and cast them to
2450 Wed May 15 10:14:14 CDT 1996 Rob Tulloh <tulloh@tivoli.com>
2452 * dir.c: W32 does not support inode. For now, fully qualified
2453 pathname along with st_mtime will be keys for files.
2454 Fixed problem where vpath can be confused when files
2455 are added to a directory after the directory has already been
2456 read in. The code now attempts to reread the directory if it
2457 discovers that the datestamp on the directory has changed since
2458 it was cached by make. This problem only seems to occur on W32
2459 right now so it is lumped under port #ifdef WINDOWS32.
2461 * function.c: W32: call subproc library (CreateProcess()) instead of
2464 * job.c: W32: Added the code to do fork/exec/waitpid style processing
2465 on W32 systems via calls to subproc library.
2467 * main.c: W32: Several things added here. First, there is code
2468 for dealing with PATH and SHELL defaults. Make tries to figure
2469 out if the user has %PATH% set in the environment and sets it to
2470 %Path% if it is not set already. Make also looks to see if sh.exe
2471 is anywhere to be found. Code path through job.c will change
2472 based on existence of a working Bourne shell. The checking for
2473 default shell is done twice: once before makefiles are read in
2474 and again after. Fall back to MSDOS style execution mode if no sh.exe
2475 is found. Also added some debug support that allows user to pause make
2476 with -D switch and attach a debugger. This is especially useful for
2477 debugging recursive calls to make where problems appear only in the
2480 * make.h: W32: A few macros and header files for W32 support.
2482 * misc.c: W32: Added a function end_of_token_w32() to assist
2483 in parsing code in read.c.
2485 * read.c: W32: Fixes similar to MSDOS which allow colon to
2486 appear in filenames. Use of colon in filenames would otherwise
2489 * remake.c: W32: Added include of io.h to eliminate compiler
2490 warnings. Added some code to default LIBDIR if it is not set
2493 * variable.c: W32: Added support for detecting Path/PATH
2494 and converting them to semicolon separated lists for make's
2495 internal use. New function sync_Path_environment()
2496 which is called in job.c and function.c before creating a new
2497 process. Caller must set Path in environment since we don't
2498 have fork() to do this for us.
2500 * vpath.c: W32: Added detection for filenames containing
2501 forward or backward slashes.
2503 * NMakefile: W32: Visual C compatible makefile for use with nmake.
2504 Use this to build GNU make the first time on Windows NT or Windows 95.
2506 * README.W32: W32: Contains some helpful notes.
2508 * build_w32.bat: W32: If you don't like nmake, use this the first
2509 time you build GNU make on Windows NT or Windows 95.
2511 * config.h.W32: W32 version of config.h
2513 * subproc.bat: W32: A bat file used to build the
2514 subproc library from the top-level NMakefile. Needed because
2515 WIndows 95 (nmake) doesn't allow you to cd in a make rule.
2517 * w32/include/dirent.h
2518 * w32/compat/dirent.c: W32: opendir, readdir, closedir, etc.
2520 * w32/include/pathstuff.h: W32: used by files needed functions
2521 defined in pathstuff.c (prototypes).
2523 * w32/include/sub_proc.h: W32: prototypes for subproc.lib functions.
2525 * w32/include/w32err.h: W32: prototypes for w32err.c.
2527 * w32/pathstuff.c: W32: File and Path/Path conversion functions.
2529 * w32/subproc/build.bat: W32: build script for subproc library
2530 if you don't wish to use nmake.
2532 * w32/subproc/NMakefile: W32: Visual C compatible makefile for use
2533 with nmake. Used to build subproc library.
2535 * w32/subproc/misc.c: W32: subproc library support code
2536 * w32/subproc/proc.h: W32: subproc library support code
2537 * w32/subproc/sub_proc.c: W32: subproc library source code
2538 * w32/subproc/w32err.c: W32: subproc library support code
2540 Mon May 13 14:37:42 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2544 * GNUmakefile (vmsfiles): Fix typo.
2546 * GNUmakefile (amigafiles): Add amiga.h.
2548 Sun May 12 19:19:43 1996 Aaron Digulla <digulla@fh-konstanz.de>
2550 * dir.c: New function: amigafy() to fold filenames
2551 Changes HASH() to HASHI() to fold filenames on Amiga.
2552 Stringcompares use strieq() instead of streq()
2553 The current directory on Amiga is "" instead of "."
2556 * amiga.c: New function wildcard_expansion(). Allows to use
2557 Amiga wildcards with $(wildcard )
2559 * amiga.h: New file. Prototypes for amiga.c
2561 * function.c: Use special function wildcard_expansion() for
2562 $(wildcard ) to allow Amiga wildcards
2563 The current directory on Amiga is "" instead of "."
2565 * job.c: No Pipes on Amiga, too
2566 (load_too_high) Neither on Amiga
2567 ENV variable on Amiga are in a special directory and are not
2568 passed as third argument to main().
2570 * job.h: No envp on Amiga
2572 * make.h: Added HASHI(). This is the same as HASH() but converts
2573 it's second parameter to lowercase on Amiga to fold filenames.
2575 * main.c: (main), variable.c Changed handling of ENV-vars. Make
2576 stores now the names of the variables only and reads their contents
2577 when they are accessed to reflect that these variables are really
2578 global (ie. they CAN change WHILE make runs !) This handling is
2579 made in lookup_variable()
2581 * Makefile.ami: renamed file.h to filedep.h
2582 Updated dependencies
2584 * read.c: "find_semicolon" is declared as static but never defined.
2585 No difference between Makefile and makefile on Amiga; added
2586 SMakefile to *default_makefiles[].
2587 (read_makefile) SAS/C want's two_colon and pattern_percent be set
2589 The current directory on Amiga is "" instead of "."
2590 Strange #endif moved.
2592 * README.Amiga: updated feature list
2594 * SMakefile: Updated dependencies
2596 * variable.c: Handling of ENV variable happens inside lookup_variable()
2598 Sat May 11 17:58:32 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2600 * variable.c (try_variable_definition): Count parens in lhs variable
2601 refs to avoid seeing =/:=/+= inside a ref.
2603 Thu May 9 13:54:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2605 * commands.c (fatal_error_signal) [SIGQUIT]: Make SIGQUIT check
2608 * main.c (main): Use unsigned for fread return.
2610 * read.c (parse_file_seq): Use `int' for char arg to avoid widening
2612 * dep.h: Fix prototype.
2614 * function.c (expand_function) [_AMIGA]: Fix some typos.
2615 (patsubst_expand): Make len vars unsigned.
2617 * GNUmakefile (globfiles): Add AmigaDOS support files.
2618 (distfiles): Add $(amigafiles).
2619 (amigafiles): New variable.
2621 Thu Nov 7 10:18:16 1995 Aaron Digulla <digulla@fh-konstanz.de>
2623 * Added Amiga support in commands.c, dir.c, function.c,
2624 job.c, main.c, make.h, read.c, remake.c
2625 * commands.c: Amiga has neither SIGHUP nor SIGQUIT
2626 * dir.c: Amiga has filenames with Upper- and Lowercase,
2627 but "FileName" is the same as "filename". Added strieq()
2628 which is use to compare filenames. This is like streq()
2629 on all other systems. Also there is no such thing as
2631 * function.c: On Amiga, the environment is not passed as envp,
2632 there are no pipes and Amiga can't fork. Use my own function
2633 to create a new child.
2634 * job.c: default_shell is "" (The system automatically chooses
2635 a shell for me). Have to use the same workaround as MSDOS for
2636 running batch commands. Added HAVE_SYS_PARAM_H. NOFILE isn't
2637 known on Amiga. Cloned code to run children from MSDOS. Own
2638 version of sh_chars[] and sh_cmds[]. No dup2() or dup() on Amiga.
2639 * main.c: Force stack to 20000 bytes. Read environment from ENV:
2640 device. On Amiga, exec_command() does return, so I exit()
2642 * make.h: Added strieq() to compare filenames.
2643 * read.c: Amiga needs special extension to have passwd. Only
2644 one include-dir. "Makefile" and "makefile" are the same.
2645 Added "SMakefile". Added special code to handle device names (xxx:)
2647 * remake.c: Only one lib-dir. Amiga link-libs are named "%s.lib"
2648 instead of "lib%s.a".
2649 * main.c, rule.c, variable.c: Avoid floats at all costs.
2650 * vpath.c: Get rid of as many alloca()s as possible.
2652 Thu May 9 13:20:43 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2654 * read.c (read_makefile): Grok `sinclude' as alias for `-include'.
2656 Wed Mar 20 09:52:27 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
2658 * GNUmakefile (vmsfiles): New variable.
2659 (distfiles): Include $(vmsfiles).
2661 Tue Mar 19 20:21:34 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
2663 Merged VMS port from Klaus Kaempf <kkaempf@didymus.rmi.de>.
2664 * make.h (PARAMS): New macro.
2665 * config.h-vms: New file.
2666 * makefile.com: New file.
2667 * makefile.vms: New file.
2668 * readme.vms: New file.
2669 * vmsdir.h: New file.
2670 * vmsfunctions.c: New file.
2671 * vmsify.c: New file.
2672 * file.h: Renamed to filedef.h to avoid conflict with VMS system hdr.
2673 * ar.c: Added prototypes and changes for VMS.
2674 * commands.c: Likewise.
2675 * commands.h: Likewise.
2676 * default.c: Likewise.
2679 * expand.c: Likewise.
2681 * function.c: Likewise.
2682 * implicit.c: Likewise.
2689 * remake.c: Likewise.
2690 * remote-stub.c: Likewise.
2693 * variable.c: Likewise.
2694 * variable.h: Likewise.
2695 * vpath.c: Likewise.
2696 * compatMakefile (srcs): Rename file.h to filedef.h.
2698 Sat Aug 19 23:11:00 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
2700 * remake.c (check_dep): For a secondary file, try implicit and
2701 default rules if appropriate.
2703 Wed Aug 2 04:29:42 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
2705 * remake.c (check_dep): If an intermediate file exists,
2706 do consider its actual date.
2708 Sun Jul 30 00:49:53 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
2710 * file.h (struct file): New field `secondary'.
2711 * file.c (snap_deps): Check for .INTERMEDIATE and .SECONDARY.
2712 (remove_intermediates): Don't delete .SECONDARY files.
2714 Sat Mar 2 16:26:52 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
2716 * compatMakefile (srcs): Add getopt.h; prepend $(srcdir)/ to getopt*.
2718 Fri Mar 1 12:04:47 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
2722 * remake.c (f_mtime): Move future modtime check before FILE is
2723 clobbered by :: loop.
2725 * dir.c: Use canonical code from autoconf manual for dirent include.
2726 [_D_NAMLEN]: Redefine NAMLEN using this.
2727 (dir_contents_file_exists_p): Use NAMLEN macro.
2728 (read_dirstream) [_DIRENT_HAVE_D_NAMLEN]: Only set d_namlen #if this.
2730 * compatMakefile (objs): Add missing backslash.
2732 Wed Feb 28 03:56:20 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
2734 * default.c (default_terminal_rules): Remove + prefix from RCS cmds.
2735 (default_variables): Put + prefix in $(CHECKOUT,v) value instead.
2737 * remake.c (f_mtime): Check for future timestamps; give error and mark
2738 file as "failed to update".
2740 Fri Jan 12 18:09:36 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2742 * job.c: Don't declare unblock_sigs; job.h already does.
2744 Sat Jan 6 16:24:44 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2746 * acconfig.h (HAVE_SYSCONF_OPEN_MAX): #undef removed.
2748 * job.c (NGROUPS_MAX): Don't try to define this macro.
2750 Fri Dec 22 18:44:44 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2752 * compatMakefile (GETOPT, GETOPT_SRC, GLOB): Variables removed.
2753 (objs, srcs): Include their values here instead of references.
2755 Thu Dec 14 06:21:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2759 * job.c (reap_children): Call unblock_sigs after start_job_command.
2761 Thu Dec 14 07:22:03 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
2763 * dir.c (dir_setup_glob): Don't use lstat; glob never calls it anyway.
2764 Avoid & before function names to silence bogus sunos4 compiler.
2766 * configure.in: Remove check for `sysconf (_SC_OPEN_MAX)'.
2768 Tue Dec 12 00:48:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2772 * dir.c (read_dirstream): Fix braino: fill in the buffer when not
2775 Mon Dec 11 22:26:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2777 * misc.c (collapse_continuations): Fix skipping of trailing \s so
2778 it can never dereference before the beginning of the array.
2780 * read.c (find_semicolon): Function removed.
2781 (read_makefile): Don't use find_semicolon or remove_comments for
2782 rule lines. Use find_char_unquote directly and handle quoted comments
2785 * default.c: Remove all [M_XENIX] code.
2787 * dir.c [HAVE_D_NAMLEN]: Define this for __GNU_LIBRARY__ > 1.
2788 (D_NAMLEN): Macro removed.
2789 (FAKE_DIR_ENTRY): New macro.
2790 (dir_contents_file_exists_p): Test HAVE_D_NAMLEN instead of using
2792 (read_dirstream): Return a struct dirent * for new glob interface.
2793 (init_dir): Function removed.
2794 (dir_setup_glob): New function.
2795 * main.c (main): Don't call init_dir.
2796 * read.c (multi_glob): Call dir_setup_glob on our glob_t and use
2797 GLOB_ALTDIRFUNC flag.
2799 * misc.c (safe_stat): Function removed.
2800 * read.c, commands.c, remake.c, vpath.c: Use plain stat instead of
2803 Sat Nov 25 20:35:18 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2805 * job.c [HAVE_UNION_WAIT]: Include sys/wait.h.
2807 * main.c (log_working_directory): Made global.
2808 Print entering msg only once.
2809 * make.h (log_working_directory): Declare it.
2810 * misc.c (message): Take new arg PREFIX. Print "make: " only if
2811 nonzero. Call log_working_directory.
2812 * remake.c: Pass new arg in `message' calls.
2813 * job.c (start_job_command): Pass new arg to `message'; fix
2814 inverted test in that call.
2816 Tue Nov 21 19:01:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2818 * job.c (start_job_command): Use `message' to print the command,
2819 and call it with null if the command is silent.
2820 * remake.c (touch_file): Use message instead of printf.
2822 Tue Oct 10 14:59:30 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2824 * main.c (enter_command_line_file): Barf if NAME is "".
2826 Sat Sep 9 06:33:20 1995 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
2828 * commands.c (delete_target): Ignore unlink failure if it is ENOENT.
2830 Thu Aug 17 15:08:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2832 * configure.in: Don't check for getdtablesize.
2833 * job.c (getdtablesize): Remove decls and macros.
2835 Thu Aug 10 19:10:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2837 * main.c (define_makeflags): Omit command line variable
2838 definitions from MFLAGS value.
2840 * arscan.c (ar_scan) [AIAMAG]: Check for zero MEMBER_OFFSET,
2841 indicating a valid, but empty, archive.
2843 Mon Aug 7 15:40:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2845 * dir.c (file_impossible_p): Correctly reset FILENAME to name
2846 within directory before hash search.
2848 * job.c (child_error): Do nothing if IGNORED under -s.
2850 * job.c (exec_command): Correctly use ARGV[0] for script name when
2851 running shell directly.
2853 Tue Aug 1 14:39:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2855 * job.c (child_execute_job): Close STDIN_FD and STDOUT_FD after
2856 dup'ing from them. Don't try to close all excess descriptors;
2857 getdtablesize might return a huge value. Any open descriptors in
2858 the parent should have FD_CLOEXEC set.
2859 (start_job_command): Set FD_CLOEXEC flag on BAD_STDIN descriptor.
2861 Tue Jun 20 03:47:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2863 * read.c (read_all_makefiles): Properly append default makefiles
2864 to the end of the `read_makefiles' chain.
2866 Fri May 19 16:36:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2868 * Version 3.74 released.
2870 Wed May 10 17:43:34 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2874 Tue May 9 17:15:23 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2876 * compatMakefile ($(infodir)/make.info): Make sure $$dir is set in
2879 Wed May 3 15:56:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2881 * file.c (print_file): Grok update_status of 1 for -q.
2883 Thu Apr 27 12:39:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2887 Wed Apr 26 17:15:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2889 * file.c (remove_intermediates): Fix inverted test to bail under
2890 -n for signal case. Bail under -q or -t.
2891 Skip files with update_status==-1.
2893 * job.c (job_next_command): Skip empty lines.
2894 (new_job): Don't test the return of job_next_command.
2895 Just let start_waiting_job handle the case of empty commands.
2897 Wed Apr 19 03:25:54 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2899 * function.c [__MSDOS__]: Include <fcntl.h>. From DJ Delorie.
2903 Sat Apr 8 14:53:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2905 * remake.c (notice_finished_file): Set FILE->update_status to zero
2908 Wed Apr 5 00:20:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2910 * Version 3.73 released.
2912 Tue Mar 28 13:25:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2914 * main.c (main): Fixed braino in assert.
2918 Mon Mar 27 05:29:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2920 * main.c: Avoid string in assert expression. Some systems are broken.
2922 Fri Mar 24 00:32:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2924 * main.c (main): Handle 1 and 2 returns from update_goal_chain
2925 makefile run properly.
2929 * main.c (handle_non_switch_argument): New function, broken out of
2931 (decode_switches): Set optind to 0 to reinitialize getopt, not to 1.
2932 When getopt_long returns EOF, break the loop and handle remaining args
2933 with a simple second loop.
2935 * remake.c (remake_file): Set update_status to 2 instead of 1 for
2936 no rule to make. Mention parent (dependent) in error message.
2937 (update_file_1): Handle FILE->update_status == 2 in -d printout.
2938 * job.c (start_job_command, reap_children): Set update_status to 2
2939 instead of 1 for failed commands.
2941 Tue Mar 21 16:23:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2943 * job.c (search_path): Function removed (was already #if 0'd out).
2944 * configure.in: Remove AC_TYPE_GETGROUPS; nothing needs it any more.
2946 Fri Mar 17 15:57:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2948 * configure.bat: Write @CPPFLAGS@ translation.
2950 Mon Mar 13 00:45:59 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2952 * read.c (parse_file_seq): Rearranged `l(a b)' -> `l(a) l(b)' loop
2953 to not skip the elt immediately preceding `l(...'.
2955 Fri Mar 10 13:56:49 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2959 * read.c (find_char_unquote): Make second arg a string of stop
2960 chars instead of a single stop char. Stop when any char in the
2961 string is hit. All callers changed.
2962 (find_semicolon): Pass stop chars "#;" to one find_char_unquote call,
2963 instead of using two calls. If the match is not a ; but a #,
2965 * misc.c: Changed find_char_unquote callers here too.
2969 * read.c (read_makefile, parse_file_seq): Fix typo __MS_DOS__ ->
2972 * GNUmakefile (globfiles): Add glob/configure.bat.
2973 (distfiles): Add configh.dos, configure.bat.
2975 Wed Mar 8 13:10:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2977 Fixes for MS-DOS from DJ Delorie.
2978 * read.c (read_makefile, parse_file_seq) [__MS_DOS__]: Don't see :
2979 as separator in "C:\...".
2980 * configh.dos (STDC_HEADERS): Define only if undefined.
2981 (HAVE_SYS_PARAM_H): Don't define this.
2982 (HAVE_STRERROR): Define this.
2983 * job.c (construct_command_argv_internal) [__MSDOS__]: Fix typos.
2987 * main.c (decode_switches): Reset optind to 1 instead of 0.
2989 Tue Mar 7 17:31:06 1995 Roland McGrath <roland@geech.gnu.ai.mit.edu>
2991 * main.c (decode_switches): If non-option arg is "-", ignore it.
2993 Mon Mar 6 23:57:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2997 Wed Feb 22 21:26:36 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3001 Tue Feb 21 22:10:43 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3003 * main.c (main): Pass missing arg to tmpnam.
3005 * configure.in: Check for strsignal.
3006 * job.c (child_error): Use strsignal.
3007 * main.c (main): Don't call signame_init #ifdef HAVE_STRSIGNAL.
3009 * misc.c (strerror): Fix swapped args in sprintf.
3011 Mon Feb 13 11:50:08 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3013 * configure.in (CFLAGS, LDFLAGS): Don't set these variables.
3015 Fri Feb 10 18:44:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3017 * main.c (print_version): Add 95 to copyright years.
3021 * job.c (start_job_command): Remember to call notice_finished_file
3022 under -n when not recursing. To do this, consolidate that code
3023 under the empty command case and goto there for the -n case.
3025 Tue Feb 7 13:36:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3027 * make.h [! STDC_HEADERS]: Don't declare qsort. Sun headers
3030 Mon Feb 6 17:37:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3032 * read.c (read_makefile): For bogus line starting with tab, ignore
3033 it if blank after removing comments.
3035 * main.c: Cast results of `alloca' to `char *'.
3036 * expand.c: Likewise.
3038 Sun Feb 5 18:35:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3042 * configure.in: Check for mktemp.
3043 * main.c (main) [! HAVE_MKTEMP]: Use tmpnam instead of mktemp.
3045 * configure.in (make_cv_sysconf_open_max): New check for `sysconf
3047 * acconfig.h: Added #undef HAVE_SYSCONF_OPEN_MAX.
3048 * job.c [HAVE_SYSCONF_OPEN_MAX] (getdtablesize): Define as macro
3051 Fri Jan 27 04:42:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3053 * remake.c (update_file_1): When !MUST_MAKE, don't set
3054 FILE->update_status to zero before calling notice_finished_file.
3055 (notice_finished_file): Touch only when FILE->update_status is zero.
3056 (remake_file): Set FILE->update_status to zero after not calling
3057 execute_file_command and deciding to touch instead.
3059 Thu Jan 26 01:29:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3061 * main.c (debug_signal_handler): New function; toggles debug_flag.
3062 (main): Handle SIGUSR1 with that.
3064 Mon Jan 16 15:46:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3066 * compatMakefile (realclean): Remove Info files.
3068 Sun Jan 15 08:23:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3072 * job.c (start_job_command): Save and restore environ around vfork
3074 (search_path): Function #if 0'd out.
3075 (exec_command): Use execvp instead of search_path.
3077 * expand.c (variable_expand): Rewrote computed variable name and
3078 substitution reference handling to be simpler. First expand the
3079 entire text between the parens if it contains any $s, then examine
3080 the result of that for subtitution references and do no further
3081 expansion while parsing them.
3083 * job.c (construct_command_argv_internal): Handle " quoting too,
3084 when no backslash, $ or ` characters appear inside the quotes.
3086 * configure.in (union wait check): If WEXITSTATUS and WTERMSIG are
3087 defined, just use int.
3089 Tue Jan 10 06:27:27 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3091 * default.c (default_variables) [__hpux]: Remove special
3092 definition of ARFLAGS. Existence of the `f' flag is not
3093 consistent across HPUX versions; and one might be using GNU ar
3096 * compatMakefile (clean): Don't remove Info files.
3098 * compatMakefile (check): Remove gratuitous target declaration.
3100 Sat Jan 7 11:38:23 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3102 * compatMakefile (ETAGS, CTAGS): Don't use -t.
3104 * arscan.c (ar_name_equal) [cray]: Subtract 1 like [__hpux].
3106 * main.c (decode_switches): For --help, print usage to stdout.
3108 Mon Dec 5 12:42:18 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3112 * remake.c (update_file_1): Do set_command_state (FILE,
3113 cs_not_started) only if old state was deps_running.
3115 Mon Nov 28 14:24:03 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3117 * job.c (start_waiting_job): Use set_command_state.
3119 * build.template (CPPFLAGS): New variable.
3120 (prefix, exec_prefix): Set from @...@.
3121 (compilation loop): Pass $CPPFLAGS to compiler.
3123 * GNUmakefile (build.sh.in): Make it executable.
3125 * GNUmakefile (globfiles): Add configure.in, configure.
3129 * configure.in (AC_OUTPUT): Don't write glob/Makefile.
3131 * configure.in (AC_CHECK_SYMBOL): Use AC_DEFINE_UNQUOTED.
3133 * configure.in: Don't check for ranlib.
3135 Tue Nov 22 22:42:40 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3137 * remake.c (notice_finished_file): Only mark also_make's as
3138 updated if really ran cmds.
3140 Tue Nov 15 06:32:46 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3142 * configure.in: Put dnls before random whitespace.
3144 Sun Nov 13 05:02:25 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3146 * compatMakefile (CPPFLAGS): New variable, set from @CPPFLAGS@.
3147 (RANLIB): Variable removed.
3148 (prefix, exec_prefix): Set these from @...@.
3149 (.c.o): Use $(CPPFLAGS).
3150 (glob/libglob.a): Don't pass down variables to sub-make.
3151 glob/Makefile should be configured properly by configure.
3152 (distclean): Remove config.log and config.cache (autoconf stuff).
3154 Mon Nov 7 13:58:06 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3156 * acconfig.h: Add #undef HAVE_UNION_WAIT.
3157 * configure.in: Converted to Autoconf v2.
3158 * dir.c: Test HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H instead
3159 of DIRENT, SYSDIR, NDIR.
3160 * build.sh.in (prefix, exec_prefix): Set these from @...@.
3161 (CPPFLAGS): New variable, set from @CPPFLAGS@.
3162 (compiling loop): Pass $CPPFLAGS before $CFLAGS.
3163 * install.sh: File renamed to install-sh.
3165 * main.c (define_makeflags): When no flags, set WORDS to zero.
3167 Sun Nov 6 18:34:01 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3171 * main.c (define_makeflags): Terminate properly when FLAGSTRING is
3174 Fri Nov 4 16:02:51 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3178 Tue Nov 1 01:18:10 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3182 * job.c (start_job_command): When ARGV is nil, only set
3183 update_state and call notice_finished_file if job_next_command
3186 * job.c (start_job_command): Call notice_finished_file for empty
3189 Thu Oct 27 02:02:45 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3191 * file.c (snap_deps): Set COMMANDS_SILENT for .SILENT, not
3194 Wed Oct 26 02:14:10 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3198 Tue Oct 25 22:49:24 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3200 * file.c (snap_deps): Set command_flags bits in all :: entries.
3202 Mon Oct 24 18:47:50 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3204 * make.h (posix_pedantic): Declare it.
3205 * main.c (main): Move checks .IGNORE, .SILENT, .POSIX to
3207 * file.c (snap_deps): Check .IGNORE, .SILENT, .POSIX here instead
3208 of in main. If .IGNORE has deps, OR COMMANDS_NOERROR into their
3209 command_flags and don't set -i. Likewise .SILENT.
3210 * job.c (start_job_command): In FLAGS initialization, OR in
3211 CHILD->file->command_flags.
3212 * file.h (struct file): New member `command_flags'.
3214 Sun Oct 16 01:01:51 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3216 * main.c (switches): Bump flag values for --no-print-directory and
3217 --warn-undefined-variables, so neither is 1 (which indicates a
3218 nonoption argument).
3220 Sat Oct 15 23:39:48 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3222 * main.c (main): Add missing code in .IGNORE test.
3224 Mon Oct 10 04:09:03 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3226 * variable.c (define_automatic_variables): Define +D and +F.
3228 Sat Oct 1 04:07:48 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3230 * main.c (main): Define hidden automatic variable with command
3231 vars, and MAKEOVERRIDES to a reference to that.
3232 (define_makeflags): If posix_pedantic, write a reference to that
3235 Thu Sep 29 00:14:26 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3237 * main.c (posix_pedantic): New variable.
3238 (main): Set posix_pedantic if .POSIX is a target.
3239 Fix .IGNORE and .SILENT checks to require is_target.
3241 * commands.c (set_file_variables): Define new automatic variable
3242 $+, like $^ but before calling uniquize_deps.
3244 * job.c (reap_children): Call delete_child_targets for non-signal
3245 error if .DELETE_ON_ERROR is a target.
3247 Tue Sep 27 01:57:14 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3251 Mon Sep 26 18:16:55 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3253 * job.c (reap_children): Don't change C->file->command_state when
3254 dying. Test it only after calling start_job_command for a new
3255 command line. When no more cmds, just set C->file->update_status.
3256 (start_job_command): When the last line is empty or under -n, set
3257 C->file->update_status.
3258 (start_waiting_job): Grok cs_not_started after start_job_command
3260 (new_job): Set C->file->update_status when there are no cmds.
3261 (job_next_command): When out of lines, don't set
3262 CHILD->file->update_status or CHILD->file->command_state.
3264 * main.c (quote_as_word): Renamed from shell_quote. Take new arg;
3265 if nonzero, also double $s.
3266 (main): Define MAKEOVERRIDES from command_variables here.
3267 (define_makeflags): Don't use command_variables here; instead write a
3268 reference $(MAKEOVERRIDES) in MAKEFLAGS. Make vars recursive.
3270 * dir.c [__MSDOS__]: Fixed typo.
3272 * vpath.c (selective_vpath_search): Reset EXISTS when stat fails.
3274 Sat Sep 10 03:01:35 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3276 * remake.c: Include <assert.h> and use assert instead of printfs
3279 * main.c (decode_switches): Loop until optind hits ARGC, not just
3280 until getopt_long returns EOF. Initialize C to zero before loop;
3281 in loop if C is EOF, set optarg from ARGV[optind++], else call
3283 (decode_env_switches): Use variable_expand instead of
3284 allocated_variable_expand. Allocate a fresh buffer to copy split
3285 words into; scan characters by hand to break words and
3287 (shell_quote): New function.
3288 (define_makeflags): Allocate doubled space for switch args, and command
3289 variable names and values; use shell_quote to quote those things.
3291 Fri Sep 9 01:37:47 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3295 * acconfig.h: Add HAVE_SYS_SIGLIST and HAVE__SYS_SIGLIST.
3297 * main.c (decode_switches): The non-option return from getopt is
3299 (command_variables): New type and variable.
3300 (decode_switches, decode_env_switches): After making a variable
3301 definition, record the struct variable pointer in the
3302 command_variables chain.
3303 (define_makeflags): If ALL, write variable definitions for
3306 * main.c (other_args): Variable removed.
3307 (goals, lastgoal): New static variables (moved from auto in main).
3308 (main): Don't process OTHER_ARGS at all.
3309 Don't set variable MAKEOVERRIDES at all; define MAKE to just
3311 (init_switches): Prepend a - {return in order} instead of a +
3313 (decode_switches): Don't set OTHER_ARGS at all.
3314 Grok '\0' return from getopt_long as non-option argument; try
3315 variable definition and (if !ENV) enter goal targets here.
3316 (decode_env_switches): Use allocated_variable_expand to store value.
3317 Use find_next_token to simplify word-splitting loop. Don't
3318 prepend a dash to uninterpreted value. Instead, if split into
3319 only one word, try variable definition and failing that prepend a
3320 dash to the word and pass it to decode_switches as a single arg.
3322 Wed Sep 7 03:02:46 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3324 * remake.c (notice_finished_file): Only recheck modtimes if
3325 FILE->command_state was cs_running on entry (meaning the commands
3327 (update_file_1): Whenever we set FILE->update_status, call
3328 notice_finished_file instead of just set_command_state.
3329 * job.c (start_job_command): Whenever we set
3330 CHILD->file->update_status, call notice_finished_file instead of
3331 just set_command_state.
3333 Tue Sep 6 19:13:54 1994 Roland McGrath <roland@geech.gnu.ai.mit.edu>
3335 * default.c: Add missing ".
3337 * job.c: Changed all assignments of command_state members to calls
3338 to set_command_state.
3339 * remake.c: Likewise.
3340 * file.c (set_command_state): New function.
3341 * file.h: Declare set_command_state.
3343 * main.c (init_switches): Put a + first in options.
3345 Mon Jul 25 18:07:46 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3347 Merge MSDOS/GO32 port from DJ Delorie <dj@ctron.com>.
3348 * vpath.c: Changed all uses of ':' to PATH_SEPARATOR_CHAR.
3349 * main.c (directory_before_chdir): New variable, moved out of main
3351 (main) [__MSDOS__]: Look for \ or : to delimit last component of
3352 PROGRAM. Don't frob ARGV[0] before setting MAKE_COMMAND variable.
3353 (die): Change back to `directory_before_chdir' before dying.
3354 * make.h (PATH_SEPARATOR_CHAR): New macro; differing defns for
3355 [__MSDOS__] and not.
3356 * job.c [__MSDOS__]: Include <process.h>.
3357 [__MSDOS__] (dos_pid, dos_status, dos_bname, dos_bename,
3358 dos_batch_file): New variables.
3359 (reap_children) [__MSDOS__]: Don't call wait; just examine those vars.
3360 (unblock_sigs) [__MSDOS__]: Do nothing.
3361 (start_job_command) [__MSDOS__]: Use spawnvpe instead of vfork & exec.
3362 (load_too_high) [__MSDOS__]: Always return true.
3363 (search_path) [__MSDOS__]: Check for : or / in FILE to punt.
3364 Use PATH_SEPARATOR_CHAR instead of ':'.
3365 (construct_command_argv_internal) [__MSDOS__]: Wholly different
3366 values for sh_chars and sh_cmds. Wholly new code to handle shell
3368 * function.c (expand_function: `shell') [__MSDOS__]: Wholly new
3370 * dir.c [__MSDOS__] (dosify): New function.
3371 (dir_contents_file_exists_p) [__MSDOS__]: Call it on FILENAME and
3372 process the result instead of FILENAME itself.
3373 (file_impossible_p) [__MSDOS__]: Likewise.
3374 * default.c [__MSDOS__]: Define GCC_IS_NATIVE.
3375 (default_suffix_rules) [__MSDOS__]: Use `y_tab.c' instead of `y.tab.c'.
3376 (default_variables) [GCC_IS_NATIVE]: Set CC and CXX to `gcc', YACC to
3377 `bison -y', and LEX to `flex'.
3378 * configure.bat, configh.dos: New files.
3379 * commands.c (fatal_error_signal) [__MSDOS__]: Just remove
3380 intermediates and exit.
3382 * commands.c (set_file_variables): Add parens in length
3383 computation in .SUFFIXES dep loop to quiet compiler warning. From
3386 * read.c (read_makefile): Free FILENAME if we allocated it. From
3389 Mon Jul 4 17:47:08 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3391 * misc.c (safe_stat): New function, EINTR-safe wrapper around stat.
3392 * vpath.c (selective_vpath_search): Use safe_stat in place of stat.
3393 * read.c (construct_include_path): Use safe_stat in place of stat.
3394 * job.c (search_path): Use safe_stat in place of stat.
3395 * dir.c (find_directory): Use safe_stat in place of stat.
3396 * commands.c (delete_target): Use safe_stat in place of stat.
3397 * arscan.c (ar_member_touch) [EINTR]: Do EINTR looping around fstat.
3398 * remake.c (name_mtime): Use safe_stat in place of stat.
3399 (touch_file) [EINTR]: Do EINTR looping around fstat.
3401 Fri Jun 24 05:40:24 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3403 * read.c (read_makefile): Check for a shell command first, and
3404 then strip leading tabs before further checking if it's not a
3407 * make.h [__arm]: Undefine POSIX.
3408 [!__GNU_LIBRARY__ && !POSIX && !_POSIX_VERSION]: Don't declare system
3409 functions that return int.
3411 * job.c (construct_command_argv_internal): After swallowing a
3412 backslash-newline combination, if INSTRING is set goto string_char
3413 (new label) for normal INSTRING handling code.
3415 Sat Jun 4 01:11:20 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3417 * configure.in: Don't check for sys_siglist and _sys_siglist with
3418 AC_HAVE_FUNCS. Instead use two AC_COMPILE_CHECKs.
3420 Mon May 23 18:20:38 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3422 * Version 3.71.1 released.
3424 * make.h [!__GNU_LIBRARY__ && !POSIX]: Also test #ifndef
3425 _POSIX_VERSION for these declarations.
3427 * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Remove bogus #ifndefs
3428 around #undefs of HAVE_SETREUID and HAVE_SETREGID.
3430 Sat May 21 16:26:38 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3432 * Version 3.71 released.
3434 * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Don't test [HAVE_SETUID]
3435 and [HAVE_SETGID]. Every system has those, and configure doesn't
3438 * make.h [_POSIX_VERSION]: Don't #define POSIX #ifdef ultrix.
3440 * compatMakefile (loadavg): Depend on and use loadavg.c instead of
3442 (loadavg.c): Link or copy it from getloadavg.c.
3443 (distclean): Remove loadavg.c.
3445 Mon May 16 22:59:04 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3449 * misc.c [GETLOADAVG_PRIVILEGED] [! POSIX]: Undefine HAVE_SETEUID
3452 * default.c (default_terminal_rules): In SCCS rules, put
3453 $(SCCS_OUTPUT_OPTION) before $<. On some systems -G is grokked
3454 only before the file name.
3455 * configure.in (SCCS_GET_MINUS_G check): Put -G flag before file name.
3457 Tue May 10 16:27:38 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3459 * job.c (construct_command_argv_internal): Swallow
3460 backslash-newline combinations inside '' strings too.
3462 Thu May 5 04:15:10 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3464 * read.c (do_define): Call collapse_continuations on each line
3467 Mon Apr 25 19:32:02 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3469 * job.c (construct_command_argv_internal): Notice newline inside
3470 '' string when RESTP is non-null.
3472 Fri Apr 22 17:33:30 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3476 * remake.c (update_goal_chain): Reset FILE to G->file after the
3477 double-colon loop so it is never null for following code.
3479 * read.c (read_makefile): Fix `override define' parsing to skip
3480 whitespace after `define' properly.
3482 * compatMakefile (srcdir): Define as @srcdir@; don't reference
3484 (glob/Makefile): New target.
3486 Thu Apr 21 16:16:55 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3490 * misc.c (remove_comments): Use find_char_unquote.
3491 * make.h (find_char_unquote): Declare it.
3492 * read.c (find_char_unquote): New function, generalized from
3494 (find_percent, find_semicolon, parse_file_seq): Use that.
3496 Wed Apr 20 18:42:39 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3498 * implicit.c (pattern_search): Always allocate new storage for
3499 FILE->stem. It is not safe to store STEM's address because it
3500 might be auto storage.
3502 * configure.in: Check for seteuid and setegid.
3503 * misc.c [HAVE_SETEUID]: Declare seteuid.
3504 [HAVE_SETEGID]: Declare setegid.
3505 (make_access, user_access) [HAVE_SETEUID]: Use seteuid.
3506 [HAVE_SETEGID]: Use setegid.
3508 * remake.c (update_goal_chain): Set STATUS to FILE->update_status,
3509 to preserve whether it's 2 for error or 1 for -q trigger. When
3510 STATUS gets nonzero and -q is set, always stop immediately.
3511 * main.c (main, decode_switches): Die with 2 for errors.
3512 (main): Accept 2 return from update_goal_chain and die with that.
3513 * misc.c (fatal, makefile_fatal): Die with 2; 1 is reserved for -q
3515 * job.c (reap_children): Die with 2 for error.
3516 (start_job_command): Set update_status to 2 for error. Set it to
3517 1 when we would run a command and question_flag is set.
3519 * read.c (read_makefile): Don't mark makefiles as precious. Just
3520 like other targets, they can be left inconsistent and in need of
3521 remaking by aborted commands.
3523 * read.c (read_makefile): Write no error msg for -include file.
3525 Tue Apr 5 05:22:19 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3527 * commands.c (fatal_error_signal): Don't unblock signals.
3529 * file.h (struct file): Change member `double_colon' from flag to
3531 * read.c (record_files): Set double_colon pointer instead of flag.
3532 * main.c (main): When disqualifying makefiles for updating, use
3533 double_colon pointer to find all entries for a file.
3534 * file.c (enter_file): If there is already a double-colon entry
3535 for the file, set NEW->double_colon to that pointer.
3536 (file_hash_enter): Use FILE->double_colon to find all entries to
3538 * remake.c (update_goal_chain): Do inner loop on double-colon entries.
3539 (update_file): Use FILE->double_colon pointer to find all entries.
3540 (f_mtime): Likewise.
3541 (notice_finished_file): Propagate mtime change to all entries.
3543 * variable.c (try_variable_definition): Return after abort.
3545 Fri Apr 1 18:44:15 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3547 * read.c (read_makefile): Remove unused variable.
3548 (parse_file_seq): When removing an elt that is just `)', properly
3549 fix up the previous elt's next pointer.
3551 Mon Mar 28 18:31:49 1994 Roland McGrath (roland@mole.gnu.ai.mit.edu)
3553 * configure.in: Do AC_SET_MAKE.
3554 * GNUmakefile (Makefile.in): Edit MAKE assignment into @SET_MAKE@.
3556 Fri Mar 4 00:02:32 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3558 * function.c (subst_expand): If BY_WORD or SUFFIX_ONLY is set and
3559 the search string is the empty string, find a match at the end of
3560 each word (using end_of_token in place of sindex).
3562 * misc.c (end_of_token): Don't treat backslashes specially; you
3563 can no longer escape blanks with backslashes in export, unexport,
3564 and vpath. This was never documented anyway.
3566 Thu Mar 3 23:53:46 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3568 * read.c (read_makefile): Variable name for `define' is not just
3569 first token; use whole rest of line and strip trailing blanks.
3571 Wed Feb 16 16:03:45 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3575 * read.c (read_makefile): Add -d msg stating args.
3577 * read.c (read_makefile): Use isspace to skip over leading
3578 whitespace, and explicitly avoid skipping over tabs. Don't want
3579 to skip just spaces though; formfeeds et al should be skipped.
3581 * default.c (default_variables) [__hpux]: Add f in ARFLAGS.
3583 * arscan.c (ar_name_equal) [__hpux]: Subtract 2 instead of 1 from
3584 sizeof ar_name for max length to compare.
3586 * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Undefine HAVE_SETREUID
3587 #ifdef HAVE_SETUID; likewise HAVE_SETREGID and HAVE_SETGID.
3589 * main.c (main): Call user_access after setting `program', in case
3590 it needs to use it in an error message.
3592 * read.c (read_makefile): Ignore an empty line starting with a tab.
3594 Thu Feb 10 21:45:31 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3596 * configure.in (AC_SYS_SIGLIST_DECLARED): Use this instead of
3597 AC_COMPILE_CHECK that is now its contents.
3599 Fri Feb 4 16:28:54 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3601 * make.h: #undef strerror after #include <string.h>.
3602 [! ANSI_STRING]: Declare strerror.
3604 Thu Feb 3 02:21:22 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3606 * misc.c (strerror): #undef any macro before function definition.
3608 Mon Jan 31 19:07:23 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3610 * variable.c (try_variable_definition): Calculate BEG before loop
3611 to strip blanks by decrementing END. Don't decr END to before BEG.
3613 * read.c (read_makefile): Skip over leading space characters, but
3614 not tabs, after removing continuations and comments (it used to
3617 Tue Jan 25 16:45:05 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3619 * variable.c (define_automatic_variables): In $(@D) et al, use
3620 patsubst to remove trailing slash.
3622 * commands.c (delete_target): New function, broken out of
3623 delete_child_targets. Check for archive members and give special msg.
3624 (delete_child_targets): Use delete_target.
3626 Mon Jan 17 17:03:22 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3628 * default.c (default_suffix_rules): Use $(TEXI2DVI_FLAGS) in
3629 texi2dvi rules. Use $(MAKEINFO_FLAGS) in makeinfo rules.
3631 Tue Jan 11 19:29:55 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3633 * GNUmakefile (tarfiles): Omit make-doc.
3634 (make-$(version).tar): Include make.info*.
3636 Fri Jan 7 16:27:00 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3638 * compatMakefile (configure, config.h.in): Comment out rules.
3640 Thu Jan 6 18:08:08 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3642 * compatMakefile (binprefix, manprefix): New variables.
3643 (instname): Variable removed.
3644 (install): Use $({bin,man}prefix)make in place of $(instname).
3645 File targets likewised renamed.
3647 Mon Jan 3 17:50:25 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3649 * Version 3.70 released.
3651 Thu Dec 23 14:46:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3655 * read.c (parse_file_seq): Inside multi-word archive ref
3656 translation loop, check NEW1==0 at end and break out of the loop.
3658 * GNUmakefile (make-$(version).tar): Distribute install.sh.
3659 * install.sh: New file.
3661 * configure.in (SCCS_GET_MINUS_G check): Put redirection for admin
3662 cmds outside subshell parens, to avoid "command not found" msgs
3665 Wed Dec 22 17:00:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3667 * configure.in (SCCS_GET_MINUS_G check): Put -G flag last in get cmd.
3668 Redirect output & error from get to /dev/null.
3669 Fix reversed sense of test.
3671 Fri Dec 17 15:31:36 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3673 * configure.in (SCCS_GET_MINUS_G check): Use parens instead of
3674 braces inside if condition command; some shells lose.
3676 Thu Dec 16 15:10:23 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3680 * arscan.c [M_UNIX]: Move #undef M_XENIX for PORTAR stuff.
3681 (PORTAR) [M_XENIX]: Define to 0 instead of 1.
3683 * main.c (define_makeflags): Only export MAKEFLAGS if !ALL.
3685 Wed Dec 15 17:47:48 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3687 * main.c (main): Cast result of pointer arith to unsigned int
3688 before passing to define_variable for envars. Matters when
3689 sizeof(unsigned)!=sizeof(ptrdiff_t).
3691 Tue Dec 14 14:21:16 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3693 * configure.in: Add new check for SCCS_GET_MINUS_G.
3694 * config.h.in: Add #undef SCCS_GET_MINUS_G.
3695 * default.c (default_terminal_rules): Use `$(SCCS_OUTPUT_OPTION)' in
3696 place of `-G $@' in SCCS commands.
3697 (default_variables) [SCCS_GET_MINUS_G]: Define SCCS_OUTPUT_OPTION
3700 * configure.in (AC_OUTPUT): Put touch stamp-config in second arg
3701 (so it goes in config.status), rather than afterward.
3703 * ar.c (ar_member_date): Don't call enter_file on the archive file
3704 if it doesn't exist (by file_exists_p).
3706 * compatMakefile ($(infodir)/make.info): Replace `$$d/foo.info'
3707 with `$$dir/make.info' in install-info invocation (oops).
3709 * vpath.c (construct_vpath_list): Only set LASTPATH set PATH when
3710 we do not unlink and free PATH.
3712 * file.c (print_file_data_base): Fix inverted calculation for
3713 average files per hash bucket.
3715 * read.c (readline): When we see a NUL, give only a warning and
3716 synthesize a newline to terminate the building line (used to
3717 fatal). Move fgets call into the loop condition, and after the
3718 loop test ferror (used to test !feof in the loop).
3720 Fri Dec 3 16:40:31 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3722 * configure.in: Check for strerror in AC_HAVE_FUNCS.
3724 Thu Dec 2 15:37:50 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3726 Differentiate different flavors of missing makefile error msgs,
3727 removing gratuitous `fopen: ' and giving caller for included makefiles.
3728 * misc.c [! HAVE_STRERROR]: Define our own strerror here.
3729 (perror_with_name, pfatal_with_name): Use strerror instead of
3730 replicating its functionality.
3731 * read.c (read_makefile): Return int instead of void.
3732 (read_all_makefiles, read_makefile): Change callers to notice zero
3733 return and give error msg.
3735 Thu Nov 11 11:47:36 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3739 * default.c: Put `-G $@' before $< in SCCS cmds.
3741 Wed Nov 10 06:06:14 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3743 * read.c (read_makefile): After trying a variable defn, notice if
3744 the line begins with a tab, and diagnose an error.
3746 Sun Nov 7 08:07:37 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3750 Wed Nov 3 06:54:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3754 * implicit.c (try_implicit_rule): Look for a normal rule before an
3757 Fri Oct 29 16:45:28 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3759 * function.c (expand_function: `sort'): Double NWORDS when it
3760 overflows, instead of adding five.
3762 * compatMakefile (clean): Remove loadavg.
3764 Wed Oct 27 17:58:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3768 * file.h (NEW_MTIME): Define new macro.
3769 * main.c (main): Set time of NEW_FILES to NEW_MTIME, not to
3770 current time returned from system. Removed variable NOW.
3771 * remake.c (notice_finished_file): Use NEW_MTIME in place of
3772 current time here too.
3774 Tue Oct 26 19:45:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3778 * remake.c (update_file_1): Don't clear MUST_MAKE when FILE has no
3779 cmds and !DEPS_CHANGED unless also !NOEXIST.
3781 Mon Oct 25 15:25:21 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3783 * read.c (parse_file_seq): When converting multi-word archive
3784 refs, ignore a word beginning with a '('.
3786 Fri Oct 22 02:53:38 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3788 * configure.in: Check for sys/timeb.h.
3789 * make.h [HAVE_SYS_TIMEB_H]: Test this before including it.
3791 Thu Oct 21 16:48:17 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3795 * rule.c (convert_suffix_rule): New local TARGPERCENT. Set it to
3796 TARGNAME+1 for "(%.o)", to TARGNAME for "%.?". Use it in place of
3797 TARGNAME to initialize PERCENTS[0].
3799 Mon Oct 18 06:49:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3801 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
3802 Remove AC_USG; it is no longer used.
3804 * file.c (print_file): New function, broken out of
3805 print_file_data_base.
3806 (print_file_data_base): Call it.
3807 * rule.c (print_rule): New function, broken out of
3808 print_rule_data_base.
3809 (print_rule_data_base): Call it.
3811 Thu Oct 14 14:54:03 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3813 * default.c (install_default_suffix_rules): New function, broken
3814 out of install_default_implicit_rules.
3815 (install_default_implicit_rules): Move suffix rule code there.
3816 * make.h: Declare install_default_suffix_rules.
3817 * main.c (main): Call install_default_suffix_rules before reading
3818 makefiles. Move convert_to_pattern call before
3819 install_default_implicit_rules.
3821 * job.h (struct child): Make `pid' member type `pid_t' instead of
3824 * compatMakefile (RANLIB): New variable, set by configure.
3825 (glob/libglob.a): Pass RANLIB value down to submake.
3827 Fixes for SCO 3.2 "devsys 4.2" from pss@tfn.com (Peter Salvitti).
3828 * make.h: Include <sys/timeb.h> before <time.h> for SCO lossage.
3829 * job.c [! getdtablesize] [! HAVE_GETDTABLESIZE]: If NOFILE is not
3830 defined but NOFILES_MAX is, define it to be that.
3832 Mon Oct 11 19:47:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3834 * GNUmakefile (make-$(version).tar): Depend on acconfig.h, so it
3837 Sun Oct 3 15:15:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3839 * default.c (default_terminal_rules): Add `-G $@' to SCCS get cmds.
3841 Tue Sep 28 14:18:20 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3843 * job.c (construct_command_argv_internal): Add ^ to SH_CHARS; it
3844 is another symbol for | in some shells.
3845 * main.c (main): Add it to CMD_DEFS quoting list as well.
3847 Mon Sep 20 18:05:24 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3849 * job.c (construct_command_argv_internal): Remove '=' from
3850 SH_CHARS. Only punt on '=' if it is unquoted in a word before the
3851 first word without an unquoted '='.
3853 * main.c (define_makeflags): Set v_export for MAKEFLAGS.
3855 Fri Sep 17 00:37:18 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3857 * remake.c (update_file_1): Use .DEFAULT cmds for phony targets.
3859 * make.h [_AIX && _POSIX_SOURCE]: Define POSIX.
3861 * commands.c (delete_child_targets): Don't delete phony files.
3863 * job.c (start_job_command): Set COMMANDS_RECURSE in FLAGS if we
3864 see a `+' at the beginning of the command line.
3866 Thu Sep 9 17:57:14 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3870 Wed Sep 8 20:14:21 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3872 * main.c (define_makeflags): Define MAKEFLAGS with o_file, not o_env.
3874 Mon Aug 30 12:31:58 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3876 * expand.c (variable_expand): Fatal on an unterminated reference.
3878 Thu Aug 19 16:27:53 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3882 * variable.c (define_automatic_variables): Define new o_default
3883 variable `MAKE_VERSION' from version_string and remote_description.
3885 * make.h (version_string, remote_description): Declare these here.
3886 * main.c: Don't declare version_string.
3887 (print_version): Don't declare remote_description.
3889 Wed Aug 18 15:01:24 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3891 * read.c (read_makefile): Free space pointed to by CONDITIONALS
3892 before restoring the old pointer.
3894 Mon Aug 16 17:33:36 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3896 * compatMakefile ($(objs)): Depend on config.h.
3898 * GNUmakefile (build.sh.in): Depend on compatMakefile.
3900 * configure.in: Touch stamp-config after AC_OUTPUT.
3902 Fri Aug 13 16:04:22 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3906 Thu Aug 12 17:18:57 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3908 * make.h: Include <config.h> instead of "config.h".
3910 Wed Aug 11 02:35:25 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3912 * main.c (main): Make all variables interned from ENVP be v_export.
3913 * variable.c (try_variable_definition): In v_default case, don't
3914 check for an o_file variable that `getenv' finds.
3916 * job.c (reap_children): New local variable ANY_LOCAL; set it
3917 while setting ANY_REMOTE. If !ANY_LOCAL, don't wait for local kids.
3919 * main.c (main): Don't call decode_env_switches on MFLAGS. DOC THIS.
3921 * function.c (expand_function): #if 0 out freeing of ENVP since it
3924 Mon Aug 9 17:37:20 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3928 * remote-stub.c (remote_status): Set errno to ECHILD before return.
3929 * job.c (reap_children): Scan the chain for remote children and
3930 never call remote_status if there are none.
3932 * function.c (expand_function: `shell'): #if 0 out calling
3933 target_environment; just set ENVP to environ instead.
3935 * job.c (reap_children): Check for negative return from
3936 remote_status and fatal for it.
3937 When blocking local child wait returns 0, then try a blocking call
3940 Tue Aug 3 00:19:00 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3942 * compatMakefile (clean): Delete make.info* and make.dvi here.
3943 (distclean): Not here.
3945 * dep.h (RM_*): Use #defines instead of enum to avoid lossage from
3946 compilers that don't like enum values used as ints.
3948 Mon Aug 2 16:46:34 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3950 * compatMakefile (loadavg): Add $(LOADLIBES).
3952 Sun Aug 1 16:01:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3956 * compatMakefile (loadavg, check-loadavg): New targets.
3957 (check): Depend on check-loadavg.
3959 * compatMakefile (glob/libglob.a): Depend on config.h.
3961 * misc.c (log_access): Write to stderr instead of stdout.
3963 Fri Jul 30 00:07:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3967 Thu Jul 29 23:26:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3969 * configure.in (SYS_SIGLIST_DECLARED): In test program include
3970 <unistd.h> #ifdef HAVE_UNISTD_H.
3972 * compatMakefile (.PHONY): Put after `all' et al.
3974 * configure.in: Add AC_IRIX_SUN.
3976 Wed Jul 28 17:41:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3980 Mon Jul 26 14:36:49 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3984 Sun Jul 25 22:09:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3988 * compatMakefile ($(infodir)/make.info): Don't use $(instname).
3989 Run install-info script if present.
3991 Fri Jul 23 16:03:50 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3993 * make.h [STAT_MACROS_BROKEN]: Test this instead of [uts].
3995 * configure.in: Add AC_STAT_MACROS_BROKEN.
3997 Wed Jul 14 18:48:11 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4001 * read.c (read_makefile): Recognize directive `-include', like
4002 `include' but sets RM_DONTCARE flag.
4004 * variable.c (target_environment): If FILE is nil, use
4005 current_variable_set_list in place of FILE->variables.
4006 * function.c (expand_function: `shell'): Get an environment for
4007 the child from target_environment instead of using environ.
4009 * dep.h: Declare read_all_makefiles here.
4010 (RM_*): Define new enum constants.
4011 * read.c (read_makefile): Second arg is FLAGS instead of TYPE.
4012 Treat it as a bit mask containing RM_*.
4013 (read_all_makefiles): For default makefiles, set D->changed to
4014 RM_DONTCARE instead of 1.
4015 * main.c: Don't declare read_all_makefiles here.
4016 (main): Check `changed' member of read_makefiles elts for RM_*
4017 flags instead of specific integer values.
4019 Mon Jul 12 22:42:17 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4021 * make.h [sequent && i386]: #undef POSIX. From trost@cse.ogi.edu.
4023 Thu Jul 8 19:51:23 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4025 * vpath.c (construct_vpath_list): If ELEM is zero 0, free PATTERN
4027 (build_vpath_lists): Empty `vpaths' around construct_vpath_list
4028 call for $(VPATH). Expand $(strip $(VPATH)), not just $(VPATH).
4030 * rule.c (convert_suffix_rule): Use alloca instead of xmalloc for
4031 PERCENTS, whose storage is not consumed by create_pattern_rule.
4033 * make.h [__mips && _SYSTYPE_SVR3]: #undef POSIX.
4035 Wed Jun 30 18:11:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4039 * rule.c (max_pattern_targets): New variable.
4040 (count_implicit_rule_limits): Compute its value.
4041 * rule.h: Declare it.
4042 * implicit.c (pattern_search): Make TRYRULES max_target_patterns
4043 times bigger. Move adding new TRYRULES elt inside the inner
4044 targets loop, so each matching target gets its own elt in MATCHES
4045 and CHECKED_LASTSLASH.
4047 * file.c (remove_intermediates): If SIG!=0 say `intermediate file'
4048 instead of just `file' in error msg.
4050 Fri Jun 25 14:55:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4052 * job.c (construct_command_argv): Turn off
4053 --warn-undefined-variables around expansion of SHELL and IFS.
4054 * read.c (tilde_expand): Likewise for HOME.
4055 (read_all_makefiles): Likewise for MAKEFILES.
4056 * vpath.c (build_vpath_lists): Likewise for VPATH.
4058 * main.c (warn_undefined_variables_flag): New flag variable.
4059 (switches): Add --warn-undefined-variables.
4060 * make.h (warn_undefined_variables_flag): Declare it.
4061 * expand.c (warn_undefined): New function.
4062 (reference_variable): Call it if the variable is undefined.
4063 (variable_expand): In substitution ref, call warn_undefined if the
4064 variable is undefined.
4066 * default.c (default_pattern_rules): Add `%.c: %.w %.ch' and
4067 `%.tex: %.w %.ch' rules.
4068 (default_suffix_rules: .w.c, .w.tex): Pass three args: $< - $@.
4069 (default_suffixes): Add `.ch'.
4071 Mon Jun 21 17:55:39 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4073 * default.c (default_suffixes): Replace `.cweb' with `.w'.
4074 (default_suffix_rules): Rename `.cweb.c' and `.cweb.tex' to `.w.c'
4077 Fri Jun 11 14:42:09 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4079 * compatMakefile ($(bindir)/$(instname)): Add missing backslash.
4081 Thu Jun 10 18:14:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4085 * read.c (multi_glob): Don't free OLD and OLD->name in the
4086 FOUND!=0 fork. Use new block-local variable F instead of
4089 * ar.c (glob_pattern_p): New function, snarfed from glob/glob.c.
4090 (ar_glob): Call it; return nil immediately if MEMBER_PATTERN
4091 contains no metacharacters.
4093 Wed Jun 9 16:25:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4095 * ar.c (ar_glob{_match,_alphacompare}): New function.
4097 * dep.h [! NO_ARCHIVES]: Declare it.
4098 * read.c (multi_glob) [! NO_ARCHIVES]: Use it on archive member elts.
4100 * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
4101 multi_glob (which doesn't take a 3rd arg).
4102 * rule.c (install_pattern_rule): Likewise.
4103 * default.c (set_default_suffixes): Here too.
4104 * function.c (string_glob): Don't pass gratuitous arg to multi_glob.
4106 * read.c (parse_file_seq) [! NO_ARCHIVES]: Add post-processing
4107 loop to translate archive refs "lib(a b)" into "lib(a) lib(b)".
4109 Mon Jun 7 19:26:51 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4111 * compatMakefile (installdirs): Actually pass directory names.
4112 ($(bindir)/$(instname)): Test chgrp&&chmod exit status with `if';
4113 if it fails, echo a warning msg, but don't make the rule fail.
4115 * read.c (tilde_expand): New function, broken out of tilde_expand.
4116 (multi_glob): Call it.
4117 (construct_include_path): Expand ~ in directory names.
4118 * dep.h: Declare tilde_expand.
4119 * main.c (enter_command_line_file): Expand ~ at the start of NAME.
4120 (main): Expand ~ in -C args.
4121 * read.c (read_makefile): Expand ~ in FILENAME unless TYPE==2.
4123 Fri Jun 4 13:34:47 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4125 * main.c (decode_env_switches): Use xmalloc instead of alloca for ARGS.
4127 * main.c (main): Put result of alloca in temporary variable with
4128 simple assignment, to make SGI compiler happy.
4130 Thu Jun 3 20:15:46 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4134 * main.c (main): Before re-execing, remove intermediate files, and
4135 print the data base under -p. Sexier debugging message.
4137 * implicit.c (pattern_search): Allocate an extra copy of the name
4138 of a winning intermediate file when putting it in FOUND_FILES.
4140 Wed Jun 2 16:38:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4142 * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
4143 multi_glob (which doesn't take a 3rd arg).
4145 * dir.c (dir_contents_file_exists_p): When reading dirents, ignore
4146 chars within D_NAMLEN that are NULs.
4148 * main.c (decode_switches): Don't savestring ARGV[0] to put it
4150 For string switch, don't savestring `optarg'.
4151 (main): Don't free elts of makefiles->list that are "-".
4152 Use alloca'd rather than savestring'd storage for elts of
4153 makefiles->list that are temporary file names.
4154 * read.c (read_all_makefiles): Don't free *MAKEFILES.
4155 * file.c (enter_file): Don't strip `./'s.
4156 * main.c (enter_command_line_file): New function.
4157 (main): Use it in place of enter_file for command-line goals from
4158 other_files, and for old_files and new_files.
4160 Mon May 31 18:41:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4164 * compatMakefile (.SUFFIXES): Add .info.
4165 ($(infodir)/$(instname).info): Find make.info* in cwd if there,
4166 else in $srcdir. Use basename to remove dir name from installed name.
4168 Thu May 27 17:35:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4170 * implicit.c (pattern_search): When interning FOUND_FILES, try
4171 lookup_file first; if found, free the storage for our copy of the name.
4173 Wed May 26 14:31:20 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4177 * main.c (decode_switches): In usage msg, write `--switch=ARG' or
4178 `--switch[=OPTARG]' rather than `--switch ARG' or `--switch [ARG]'.
4180 Mon May 24 16:17:31 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4182 * rule.c (convert_suffix_rule): New function.
4183 (convert_to_pattern): Use it instead of doing all the work here
4185 For target suffix `.a', generate both the archive magic rule and
4188 * compatMakefile (distclean): Remove stamp-config.
4190 Sat May 22 16:15:18 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4194 * file.c (remove_intermediates): Don't write extra space after `rm'.
4196 * main.c (struct command_switch.type): Remove `usage_and_exit'.
4197 (print_usage_flag): New variable.
4198 (switches: --help): Make type `flag', to set print_usage_flag.
4199 (init_switches): Remove `usage_and_exit' case.
4200 (decode_switches): Likewise.
4201 (decode_switches): Print usage if print_usage_flag is set.
4202 When printing usage, die with status of BAD.
4203 (main): Die with 0 if print_version_flag.
4205 Fri May 21 16:09:28 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4209 Wed May 19 21:30:44 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4211 * compatMakefile (installdirs): New target.
4212 (install): Depend on it.
4214 Sun May 16 20:15:07 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4218 Fri May 14 16:40:09 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4220 * vpath.c (construct_vpath_list): In removal loop for DIRPATH==0,
4221 set LASTPATH to PATH, not NEXT.
4223 * dir.c (read_dirstream): Break out of loop after incrementing
4224 DS->buckets such that it reaches DIRFILE_BUCKETS; avoid trying to
4225 dereference DS->contents->files[DIRFILE_BUCKETS].
4227 * read.c (read_makefile): Clear no_targets after reading a
4228 targetful rule line.
4230 * main.c (main): If print_version_flag is set, exit after printing
4232 (switches): Change --version docstring to say it exits.
4234 * make.h [butterfly]: #undef POSIX.
4236 Wed May 12 15:20:21 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4240 * arscan.c (ar_scan) [! AIAMAG]: Don't declare LONG_NAME.
4241 [AIAMAG]: Pass TRUNCATE flag arg to (*FUNCTION), always zero.
4243 * function.c (handle_function): Use fatal instead of
4244 makefile_fatal when reading_filename is nil.
4246 * configure.in: Add AC_GETGROUPS_T.
4247 * job.c (search_path): Use GETGROUPS_T in place of gid_t.
4249 Sun May 9 15:41:25 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4253 Fri May 7 18:34:56 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4255 * function.c (handle_function): Fatal for unmatched paren.
4257 Thu May 6 16:13:41 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4261 * commands.c (handling_fatal_signal): New variable.
4262 (fatal_error_signal): Set it.
4263 * job.c (reap_children): Avoid nonreentrant operations if that is set.
4264 * make.h: Declare handling_fatal_signal.
4266 * expand.c (reference_variable): New function, snippet of code
4267 broken out of simple-reference case of variable_expand.
4268 (variable_expand): Use it for simple refs.
4269 (variable_expand): When checking for a computed variable name,
4270 notice a colon that comes before the final CLOSEPAREN. Expand
4271 only up to the colon, and then replace the pending text with a
4272 copy containing the expanded name and fall through to subst ref
4274 (variable_expand): Don't bother expanding the name if a colon
4275 appears before the first $.
4276 (expand_argument): Use alloca instead of savestring.
4277 (variable_expand): For subst ref, expand both sides of = before
4278 passing to [pat]subst_expand. Use find_percent instead of lindex
4279 to check the lhs for a %.
4281 Wed May 5 14:45:52 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4285 Mon May 3 17:00:32 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4287 * arscan.c (ar_name_equal) [AIAMAG]: Abort if TRUNCATED is nonzero.
4289 * read.c (read_makefile): Pass extra arg of 1 to parse_file_seq,
4292 Thu Apr 29 19:47:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4296 * arscan.c (ar_scan): New local flag var LONG_NAME. Set it when
4297 we read the member name in any of the fashions that allow it to be
4298 arbitrarily long. Pass its negation to FUNCTION.
4299 (describe_member): Take TRUNCATED from ar_scan and print it.
4300 (ar_name_equal): Take new arg TRUNCATED; if nonzero, compare only
4301 the first sizeof (struct ar_hdr.ar_name) chars.
4302 (ar_member_pos): Take TRUNCATED from ar_scan, pass to ar_name_equal.
4303 * ar.c (ar_member_date_1): Likewise.
4305 Wed Apr 28 21:18:22 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4307 * job.c (reap_children): Before calling start_job_command to start
4308 the next command line, reset C->remote by calling start_remote_job_p.
4310 Mon Apr 26 15:56:15 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4312 * arscan.c (ar_scan): New local var NAMEMAP.
4313 In loop, rename NAME to NAMEBUF; new var NAME is a pointer; new
4314 flag IS_NAMEMAP. When extracting the member name, always put a
4315 null at its end first. If the name is "//" or "/ARFILENAMES", set
4316 IS_NAMEMAP. If we have already read in NAMEMAP, and NAME looks
4317 like " /N", get full name from NAMEMAP+N.
4318 Else if NAME looks like "#1/N", read N chars from the
4319 elt data to be the full name. At end of loop, if IS_NAMEMAP, read
4320 the elt's data into alloca'd NAMEMAP.
4321 (ar_name_equal): #if 0 truncating code.
4323 * make.h: Don't declare vfork at all. It returns int anyway,
4324 unless <unistd.h> declared it; and we conflicted with some systems.
4326 * main.c (define_makeflags): If FLAGSTRING[1] is '-', define
4327 MAKEFLAGS to all of FLAGSTRING, not &FLAGSTRING[1]. Don't want to
4328 define it to something like "-no-print-directory".
4329 Use %g format instead of %f for floating-valued things.
4331 Thu Apr 22 18:40:58 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4333 * GNUmakefile (Makefile.in): Use a substitution ref on nolib-deps
4334 to change remote-%.dep to remote-stub.dep.
4336 Wed Apr 21 15:17:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4340 Fri Apr 16 14:22:22 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4342 * compatMakefile (install): Remove - prefix from chgrp+chmod.
4346 Thu Apr 15 18:24:07 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4348 * acconfig.h: New file; contains "#undef SCCS_GET" for autoheader.
4349 * configure.in: If /usr/sccs/get exists, define SCCS_GET to that,
4351 * default.c (default_variables): Set GET to macro SCCS_GET.
4353 * read.c (parse_file_seq): Take extra arg STRIP; strip `./' only
4354 if nonzero. I hope this is the last time this argument is added
4356 (read_makefile): Pass it 1 when parsing include file names.
4357 Pass it 1 when parsing target file names.
4358 Pass it 1 when parsing static pattern target pattern names.
4359 * rule.c (install_pattern_rule): Pass it 1 when parsing rule deps.
4360 * default.c (set_default_suffixes): Pass it 1 when parsing
4362 * function.c (string_glob): Pass it 0 here.
4364 Wed Apr 14 11:32:05 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4366 * misc.c (log_access): New function.
4367 ({init,user,make,child}_access): Call it.
4368 (child_access): Abort if !access_inited.
4370 * main.c (switches: --no-print-directory): Use 1 instead of -1 for
4371 single-letter option.
4372 (init_switches, decode_switches, define_makeflags): An option with
4373 no single-letter version is no longer indicated by a value of -1;
4374 instead a value that is !isalnum.
4375 (init_switches): Don't put such switches into the string, only
4376 into the long_option table.
4378 * make.h [!NSIG] [!_NSIG]: #define NSIG 32.
4380 * job.c [HAVE_WAITPID]: Remove #undef HAVE_UNION_WAIT. AIX's
4381 bsdcc defined WIF* to use union wait.
4383 * main.c (struct command_switch): Change member `c' to type int.
4384 (switches): Make const.
4385 (decode_switches): Use `const struct command_switch *'.
4386 (define_makeflags): Likewise.
4388 * default.c (default_suffix_rules): Add `-o $@' to makeinfo rules.
4390 Mon Apr 12 12:30:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4394 * configure.in (AC_HAVE_HEADERS): Check for string.h and memory.h.
4395 Removed AC_MEMORY_H.
4396 * make.h [USG, NeXT]: Don't test these.
4397 [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
4398 [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
4399 [! ANSI_STRING]: Put decls of bcopy et al here.
4400 [sparc]: Don't test this for alloca.h; HAVE_ALLOCA_H is sufficient.
4401 [HAVE_SIGSETMASK]: Test this rather than USG.
4402 [__GNU_LIBRARY__ || POSIX]: Don't #include <unistd.h> again.
4403 * main.c (main): Handle SIGCHLD if defined, and SIGCLD if defined.
4404 It doesn't hurt to do both if they are both defined, and testing
4406 * dir.c: Rationalize directory header conditionals.
4407 * arscan.c [HAVE_FCNTL_H]: Test this rather than USG || POSIX.
4409 * default.c (default_suffixes): Add `.txinfo'.
4410 (default_suffix_rules): Add `.txinfo.info' and `.txinfo.dvi' rules.
4412 * variable.c (try_variable_definition): Replace RECURSIVE flag
4413 with enum FLAVOR, which can be simple, recursive, or append.
4414 Recognize += as append flavor. Set new variable VALUE in a switch
4415 on FLAVOR. For append flavor, prepend the variable's old value.
4416 If the variable was previously defined recursive, set FLAVOR to
4417 recursive; if it was defined simple, expand the new value before
4418 appending it to the old value. Pass RECURSIVE flag to
4419 define_variable iff FLAVOR == recursive.
4421 * variable.c (try_variable_definition): Use alloca and bcopy for
4422 NAME, instead of savestring. Might as well use stack storage
4423 since we free it immediately anyway.
4425 Thu Apr 8 18:04:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4427 * job.c (start_waiting_jobs): Move decl of JOB outside of loop.
4429 * main.c (define_makeflags): Rename `struct flag' member `switch'
4430 to `cs', which is not a reserved word.
4432 Wed Apr 7 15:30:51 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4434 * job.c (new_job): Call start_waiting_jobs first thing.
4435 (start_waiting_job): Changed return type from void to int.
4436 Return 0 when putting the child on the waiting_jobs chain.
4437 (start_waiting_jobs): Don't check load and job_slots here.
4438 Always take a job off the chain and call start_waiting_job on it;
4439 give up and return when start_waiting_job returns zero.
4441 * main.c (define_makeflags: struct flag): Change member `char c' to
4442 `struct command_switch *switch'.
4443 (ADD_FLAG): Set that to CS instead of CS->c.
4444 If CS->c is -1, increment FLAGSLEN for the long name.
4445 When writing out FLAGS, handle FLAGS->switch->c == -1 and write
4446 the long name instead.
4448 * compatMakefile (stamp-config): New target of old config.h rule.
4449 Touch stamp-config after running config.status.
4450 (config.h): Just depend on stamp-config, and have empty commands.
4452 Mon Apr 5 20:14:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4454 * job.c [HAVE_WAITPID]: #undef HAVE_UNION_WAIT.
4456 * configure.in (AC_HAVE_FUNCS): Check for psignal.
4458 Fri Apr 2 17:15:46 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4460 * main.c (long_option_aliases): Remove "new"; it is already an
4461 unambiguous prefix of "new-file".
4463 Sun Mar 28 16:57:17 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4467 Wed Mar 24 14:26:19 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4469 * vpath.c (selective_vpath_search): When adding the
4470 name-within-directory at the end of NAME, and we don't add a
4471 slash, don't copy FILENAME in one char too far into NAME.
4473 * variable.c (define_automatic_variables): Find default_shell's
4474 length with strlen, not numerology.
4476 Wed Mar 17 20:02:27 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4478 * main.c (define_makeflags): Add the elts of a string option in
4479 reverse order, so they come out right when reversed again.
4481 Fri Mar 12 15:38:45 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4483 * compatMakefile (make.info): Use `-o make.info'.
4485 Thu Mar 11 14:13:00 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4487 * compatMakefile (REMOTE): Set to @REMOTE@; change comments to
4489 (objs): Replace remote.o with remote-$(REMOTE).o.
4490 (srcs): Replace remote.c with remote-$(REMOTE).c.
4491 (remote.o): Rule removed.
4493 * configure.in (REMOTE): Subst this in Makefile et al; default "stub".
4494 Use AC_WITH to grok --with-customs arg to set REMOTE=cstms.
4495 * GNUmakefile (build.sh.in): Filter out remote-% from objs list.
4496 * build.template (REMOTE): New var; set to @REMOTE@.
4497 (objs): Add remote-${REMOTE}.o.
4499 Wed Mar 10 15:12:24 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4503 * implicit.c (pattern_search): Fix "dependent"->"dependency" in
4504 "Rejecting impossible" -d msg.
4506 * file.c (file_hash_enter): New local vars {OLD,NEW}BUCKET. Store
4507 mod'd values there; never mod {OLD,NEW}HASH.
4509 Mon Mar 8 13:32:48 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4511 * remake.c [eta10]: Include <fcntl.h> instead of <sys/file.h>.
4513 * compatMakefile (VPATH): Set this to @srcdir@.
4514 (srcdir): Set this to $(VPATH).
4516 * main.c (main): New local var DIRECTORY_BEFORE_CHDIR. Save in it
4517 a copy of CURRENT_DIRECTORY after the first getcwd. Use it
4518 instead of CURRENT_DIRECTORY when chdir'ing back before re-execing.
4520 * remake.c (notice_finished_file): Pass missing SEARCH arg to f_mtime.
4522 * read.c (read_makefile): Remove extraneous arg to parse_file_seq.
4524 Mon Feb 22 14:19:38 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4526 * compatMakefile ($(infodir)/$(instname).info): Use , instead of /
4527 as the sed delimiter char.
4529 Sun Feb 21 14:11:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4533 * rule.h (struct rule): Removed `subdir' member.
4534 * rule.c (new_pattern_rule): No need to clear it.
4535 (count_implicit_rule_limits): Set the `changed' flag in each dep
4536 that refers to a nonexistent directory. No longer set rule-global
4537 `subdir' flag with that information.
4538 (print_rule_data_base): Don't record info on `subdir' flags.
4540 * implicit.c (pattern_search): Check the DEP->changed flag rather
4541 than the (now gone) RULE->subdir flag. Also test CHECK_LASTSLASH;
4542 if it is set, the file might exist even though the DEP->changed
4545 * rule.c (count_implicit_rule_limits): Pass "", not ".", as file
4546 name arg to dir_file_exists_p to check for existence of directory.
4548 * implicit.c (pattern_search): Inside dep-finding loop, set
4549 CHECK_LASTSLASH from the value recorded in CHECKED_LASTSLASH[I],
4550 rather than computing it anew.
4552 * commands.c (set_file_variables): Must alloca space for PERCENT
4553 and copy it, to avoid leaving the trailing `)' in the value.
4555 * misc.c (remove_comments): Fixed backslash-checking loop
4556 condition to allow it to look at the first char on the line.
4557 P2 >= LINE, not P2 > LINE.
4559 * compatMakefile ($(bindir)/$(instname)): Before moving $@.new to
4560 $@, rm $@.old and mv $@ to $@.old.
4562 * variable.c (try_variable_definition): Take new args FILENAME and
4563 LINENO. Fatal if the variable name is empty.
4564 * read.c (read_makefile): Change callers.
4565 * main.c (main): Likewise.
4567 * compatMakefile (group): Define to @KMEM_GROUP@, autoconf magic
4568 that configure will replace with the group owning /dev/kmem.
4570 Mon Feb 8 14:26:43 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4572 * vpath.c (vpath_search): Take second arg MTIME_PTR, pass thru to
4573 selective_vpath_search.
4574 (selective_vpath_search): Take second arg MTIME_PTR.
4575 If the dir cache thinks a file exists, stat it to make sure, and
4576 put the modtime in *MTIME_PTR.
4577 * remake.c (library_search): Take second arg MTIME_PTR.
4578 When we find a match, record its mtime there.
4579 Pass MTIME_PTR through to vpath_search to do same.
4580 (f_mtime): Pass &MTIME as new 2nd arg to {vpath,library}_search;
4581 store it in FILE->last_mtime if set nonzero.
4582 * implicit.c (pattern_search): Pass nil 2nd arg to vpath_search.
4584 * compatMakefile (remote.o): Prepend `$(srcdir)/' to `remote-*.c',
4585 so globbing looks somewhere it will find things.
4587 * compatMakefile ($(infodir)/$(instname).info): Install `make.info*'
4588 not `$(srcdir)/make.info*'; no need to use basename.
4590 Fri Feb 5 12:52:43 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4594 * compatMakefile (install): Add missing ;\s.
4596 Make -, @, and + prefixes on a pre-expanded command line affect
4597 all lines in the expansion, not just the first.
4598 * commands.h (struct commands): Replace `lines_recurse' member
4600 (COMMANDS_{RECURSE,SILENT,NOERROR}): New macros, bits to set in
4602 * commands.c (chop_commands): Set `lines_flags' instead of
4603 `lines_recurse'. Record not only + but also @ and - prefixes.
4604 * remake.c (notice_finished_file): Check the COMMANDS_RECURSE bit
4605 in FILE->cmds->lines_flags, rather than FILE->cmds->lines_recurse.
4606 * job.c (start_job_command): Replaced RECURSIVE and NOPRINT local
4607 var with FLAGS; initialize it to the appropriate `lines_flags' byte.
4608 Set CHILD->noerror if the COMMANDS_NOERROR bit is set in FLAGS.
4609 Set the COMMANDS_SILENT bit in FLAGS for a @ prefix.
4611 * remake.c (update_goal_chain): Set G->file to its prev after
4612 checking for G being finished, since that check needs to examine
4615 * configure.in (union wait check) [HAVE_WAITPID]: Try using
4616 waitpid with a `union wait' STATUS arg. If waitpid and union wait
4617 don't work together, we should not use union wait.
4621 * remake.c (update_goal_chain): When G->file->updated, move
4622 G->file to its prev. We aren't finished until G->file is nil.
4624 Thu Feb 4 12:53:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4626 * main.c (starting_directory): New global variable.
4627 (main): Set it to cwd after doing -Cs.
4628 (log_working_directory): Use it, rather than computing each time.
4629 * make.h: Declare it.
4631 * compatMakefile (SHELL): Define to /bin/sh for losing Unix makes.
4633 * main.c (decode_env_switches): Allocate (1 + LEN + 1) words for
4634 ARGV, rather than LEN words plus one byte.
4636 Wed Feb 3 18:13:52 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4638 * compatMakefile ($(bindir)/$(instname)): Put - before
4639 install_setgid command line, so its failure won't be an error.
4640 (infodir): New variable.
4641 (install): Depend on $(infodir)/$(instname).info.
4642 ($(infodir)/$(instname).info): New target.
4644 * read.c (read_makefile): If FILENAMES is nil when we see a line
4645 starting with a tab, don't treat it as a command. Just fall
4646 through, rather than giving an error.
4648 * read.c (read_makefile): If the NO_TARGETS flag is set when we see a
4649 command line, don't clear it before continuing. We want
4650 subsequent command lines to be ignored as well.
4652 * job.c (new_job): Before expanding each command line, collapse
4653 backslash-newline combinations that are inside var or fn references.
4655 Mon Feb 1 16:00:13 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4657 * compatMakefile (exec_prefix): Default to $(prefix), not /usr/local.
4659 * compatMakefile (make.info): Pass -I$(srcdir) to makeinfo.
4661 * job.c [POSIX] (unblock_sigs): Made global.
4662 [!POSIX] (unblock_sigs): Move defns to job.h.
4663 * job.h [POSIX] (unblock_sigs): Declare.
4665 Sun Jan 31 19:11:05 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4667 * read.c (read_makefile): In vpath parsing, after finding the
4668 pattern token, take entire rest of line as the search path, not
4669 just the next token.
4671 * compatMakefile (remote.o): Depend on remote-*.c.
4673 Thu Jan 28 16:40:29 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4675 * commands.c (set_file_variables): Don't define any F or D versions.
4676 * variable.c (define_automatic_variables): Define them here as
4677 recursively-expanded variables that use the dir and notdir funcs.
4679 * variable.c (target_environment): In v_default case, don't export
4680 o_default or o_automatic variables.
4682 * configure.in (union wait check): Remove ` and ' inside C code;
4683 they confuse the shell script.
4685 Mon Jan 25 13:10:42 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4689 * vpath.c (construct_vpath_list): When skipping further processing
4690 of an elt that is ".", don't also skip the code that pushes P past
4693 * compatMakefile (distclean): Don't remove make-*.
4695 * configure.in (HAVE_UNION_WAIT): Try to use WEXITSTATUS if it's
4696 defined. If one cannot use WEXITSTATUS with a `union wait'
4697 argument, we don't want to believe the system has `union wait' at all.
4699 * remake.c (update_file): Do nothing to print "up to date" msgs.
4700 (update_goal_chain): Do it here instead.
4701 Use the `changed' flag of each goal's `struct dep' to keep track
4702 of whether files_remade (now commands_started) changed around a
4703 call to update_file for that goal.
4704 When a goal is finished, and its file's update_status is zero (i.e.,
4705 success or nothing done), test the `changed' flag and give an "up
4706 to date" msg iff it is clear.
4707 * make.h (files_remade): Renamed to commands_started.
4708 * remake.c: Changed defn.
4709 (update_goal_chain): Changed uses.
4710 * job.c (start_job_command): Increment commands_started here.
4711 (reap_children): Not here.
4713 * remake.c (update_goal_chain): Don't do anything with files'
4714 `prev' members. update_file now completely handles this.
4716 * variable.c (target_environment): Don't expand recursive
4717 variables if they came from the environment.
4719 * main.c (define_makeflags): For flags with omitted optional args,
4720 store {"", 0} with ADD_FLAG. When constructing FLAGSTRING, a flag
4721 so stored cannot have more flags appended to the same word.
4723 Fri Jan 22 14:46:16 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4725 * variable.c (print_variable_set): In vars/bucket calculation,
4726 don't spuriously multiply by 100.
4730 * job.c [!HAVE_UNION_WAIT] (WTERMSIG, WCOREDUMP, WEXITSTATUS):
4731 Don't define if already defined.
4733 * remake.c (update_file): Don't keep track of the command_state before
4734 calling update_file_1. Remove local variable COMMANDS_FINISHED,
4735 and don't test it to decide to print the "is up to date" msg.
4736 Testing for files_remade having changed should always be sufficient.
4737 The old method lost when we are called in the goal chain run on a
4738 makefile, because the makefile's command_state is already
4739 `cs_finished' from the makefile chain run.
4741 * misc.c [HAVE_SETRE[GU]ID]: Test these to decl setre[gu]id.
4743 * configure.in: Rewrote wait checking.
4744 Use AC_HAVE_HEADERS to check for <sys/wait.h>.
4745 Use AC_HAVE_FUNCS to check for waitpid and wait3.
4746 Use a compile check to test just for `union wait'.
4747 * job.c: Rewrote conditionals accordingly.
4748 [HAVE_WAITPID]: Test this only to define WAIT_NOHANG.
4749 [HAVE_WAIT3]: Likewise.
4750 [HAVE_UNION_WAIT]: Test this to define WAIT_T and W*.
4752 * configure.in: Set CFLAGS and LDFLAGS before all checks.
4754 * dir.c: Add static forward decls of {open,read}_dirstream.
4756 Thu Jan 21 17:18:00 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4760 * job.c [NGROUPS_MAX && NGROUPS_MAX==0]: #undef NGROUPS_MAX.
4762 * compatMakefile (CFLAGS, LDFLAGS): Set to @CFLAGS@/@LDFLAGS@.
4763 * build.template (CFLAGS, LDFLAGS): Same here.
4764 * configure.in: AC_SUBST(CFLAGS) and LDFLAGS.
4765 Set them to -g if not defined in the environment.
4767 * remake.c (library_search): Use LIBNAME consistently, setting it
4768 only once, to be the passed name sans `-l'.
4769 Pass new var FILE to be modified by vpath_search.
4771 Mon Jan 18 14:53:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4775 * job.c (start_waiting_jobs): Return when job_slots_used is equal to
4778 * configure.in: Add AC_CONST for the sake of getopt.
4780 * read.c (read_makefile): Continue after parsing `override'
4781 directive, rather than falling through to lossage.
4782 Check for EOL or blank after "override define".
4784 * compatMakefile (.c.o, remote.o): Put $(CFLAGS) after other switches.
4786 Fri Jan 15 12:52:52 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4790 * main.c (define_makeflags): After writing everything into
4791 FLAGSTRING, only back up two chars if [-1] is a dash, meaning we
4792 just wrote " -". Always terminate the string at *P.
4794 * remake.c (library_search): When constructing names in std dirs,
4795 use &(*LIB)[2] for the stem, not LIBNAME (which points at the
4796 buffer we are writing into!).
4798 Thu Jan 14 13:50:06 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4800 * read.c (read_makefile): Set IN_IGNORED_DEFINE for "override
4801 define" when IGNORING is true.
4803 * compatMakefile (distclean): Remove config.status and build.sh.
4805 Wed Jan 13 16:01:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4809 * misc.c (xmalloc, xrealloc): Cast result of malloc/realloc to
4812 * arscan.c (ar_scan) [AIAMAG]: Cast read arg to (char *).
4814 * variable.c (define_automatic_variables): Override SHELL value for
4815 origin o_env_override as well as o_env.
4817 * GNUmakefile (build.sh.in): Don't replace %globobjs%. Instead,
4818 add the names of the glob objects (w/subdir) to %objs%.
4819 * build.template (globobjs): Removed.
4820 Take basename of $objs before linking.
4822 Tue Jan 12 12:31:06 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4826 * configure.in (AC_OUTPUT): Also edit build.sh.
4827 * build.template: New file.
4828 * GNUmakefile (build.sh.in): New rule to create it from build.template.
4829 (make-$(version).tar.Z): Depend on build.sh.in.
4831 * main.c (die): Call print_data_base if -p.
4832 (main): Don't call it here.
4834 * compatMakefile (defines): Add @DEFS@. configure should turn this
4835 into -DHAVE_CONFIG_H.
4837 Mon Jan 11 14:39:23 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4841 * misc.c (init_access): Surround with #ifdef GETLOADAVG_PRIVILEGED.
4842 ({make,user,child}_access) [! GETLOADAVG_PRIVILEGED]: Make no-op.
4843 * compatMakefile (install_setgid): New var, set by configure.
4844 (install): Install setgid $(group) only if $(install_setgid) is true.
4846 Fri Jan 8 15:31:55 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4848 * job.c (load_too_high): If getloadavg fails with errno==0, give a
4849 message saying that load limits are not supported.
4851 * vpath.c (construct_vpath_list): Rewrote path deletion code to
4852 not try to use PATH's next link after freeing PATH.
4854 * main.c (define_makeflags): Rewritten; now handles string-valued
4855 option, and has no arbitrary limits.
4856 (switches): Set `toenv' flag for -I and -v.
4858 * main.c (decode_env_switches): Cast return value of alloca to char *.
4860 * misc.c (child_access) [HAVE_SETREUID, HAVE_SETREGID]: Use
4861 setre[gu]id in place of set[gu]id.
4863 Wed Jan 6 15:06:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4865 * main.c (main): Define MAKEOVERRIDES, MAKE, and MAKE_COMMAND with
4868 * make.h [POSIX]: Don't test this to use ANSI_STRING.
4869 Testing STDC_HEADERS should be sufficient.
4871 * job.h: Declare start_waiting_jobs.
4873 * read.c (read_makefile): Add missing parens in if stmt that find
4874 conditional directives.
4876 * main.c (main): Declare init_dir.
4877 * implicit.c (pattern_search): Always use two % specs in a
4878 DEBUGP2, and always pass two non-nil args.
4879 Cast field width args to int.
4880 Add missing parens in !RULE->subdir if stmt.
4881 * function.c (expand_function, patsubst_expand): Add parens around
4882 assignments inside `while' stmts.
4883 * commands.c (print_commands): Cast field width args to int.
4885 * read.c (do_define): Cast return value of alloca to (char *).
4887 * main.c (init_switches): New function, broken out of decode_switches.
4888 (decode_switches): Take new arg ENV. If set, ignore non-option
4889 args; print no error msgs; ignore options with clear `env' flags.
4890 (decode_env_switches): Rewritten to chop envar value into words
4891 and pass them to decode_switches.
4892 (switches): Set `env' flag for -I and -v.
4894 * dir.c (init_dir): Cast free to __glob_closedir_hook's type.
4896 Tue Jan 5 14:52:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4900 * job.c [HAVE_SYS_WAIT || !USG]: Don't #include <sys/time.h> and
4901 <sys/resource.h>. <sys/time.h> interacts badly with <time.h>, and
4902 we don't need these anyway.
4904 * configure.in (AC_HAVE_FUNCS): Check for setre[gu]id.
4905 * misc.c ({user,make}_access): Test #ifndef HAVE_SETRE[GU]ID, not
4906 #ifdef POSIX || USG. SunOS 4.1 is supposedly POSIX.1 compliant,
4907 but its set[gu]id functions aren't; its setre[gu]id functions work.
4909 * misc.c ({user,make,child}_access): Give name of caller in error msgs.
4911 * job.c (load_too_high): Say "cannot enforce load limit" in error msg.
4913 * configure.in: Call AC_PROG_CC.
4914 * compatMakefile (CC): Define to @CC@ (autoconf magic).
4916 * compatMakefile: Add .NOEXPORT magic target.
4918 Mon Jan 4 17:00:03 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4920 * main.c (print_version): Updated copyright to include 93.
4922 Thu Dec 31 12:26:15 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4924 * make.h [_AIX]: Don't declare alloca.
4926 Tue Dec 29 13:45:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4930 * compatMakefile (objs): Add signame.o.
4931 (srcs): Add signame.[ch].
4933 * compatMakefile (srcs): Add config.h.in.
4934 (remote.o): Add -I. before -I$(srcdir).
4936 Mon Dec 28 15:51:26 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4940 * read.c (readline): Fatal when LEN==0, indicating a line starting
4942 (readline): Take new arg LINENO, for use in error msg.
4943 (read_makefile, do_define): Pass it.
4945 * compatMakefile (glob/libglob.a): Pass -DHAVE_CONFIG_H in CPPFLAGS.
4946 (.c.o): Add -I. before -I$(srcdir).
4948 Wed Dec 23 12:12:04 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4950 * read.c (read_makefile): Accept and ignore a rule with no targets.
4952 * compatMakefile (ALLOCA_SRC): New variable.
4953 (srcs): Include its value.
4955 * read.c (struct conditional): Renamed member `max_ignoring' to
4956 `allocated'; added new member `seen_else'.
4957 (conditional_line): Initialize seen_else flag when starting an `if...';
4958 set it when we see an `else'; fatal if set when we see `else'.
4959 (read_makefile): Fatal "missing `endif'" if there are any pending
4960 conditionals, not just if we are still ignoring.
4962 Tue Dec 22 15:36:28 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4964 * compatMakefile (manext): Set to 1, not l.
4965 ($(mandir)/$(instname).$(manext)): Use $(srcdir) for make.man in cmds.
4967 * file.c (file_hash_enter): Don't call uniquize_deps here.
4968 * read.c (record_files): Likewise.
4969 * implicit.c (pattern_search): Likewise.
4970 * commands.c (set_file_variables): Call it only here.
4972 * default.c (default_variables) [__convex__]: FC=fc.
4974 * variable.c (target_environment): Expand the values of recursively
4975 expanded variables when putting them into the environment.
4976 * expand.c (recursively_expand): Made global.
4977 * make.h (recursively_expand): Declare it.
4979 * remake.c (check_dep): Set FILE->command_state to cs_deps_running
4980 when a dep's command_state is cs_running or cs_deps_running.
4982 * read.c (read_makefile): Changed error msg for spurious cmds to
4983 not say "first target".
4985 Sun Dec 20 17:56:09 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
4987 * configure.in: Do AC_CONFIG_HEADER right after AC_INIT.
4988 * make.h (HAVE_CONFIG_H): #include "config.h", then #define this.
4989 * compatMakefile (config.h, configure, config.h.in): New rules.
4990 (defines): Removed @DEFS@.
4992 Thu Dec 17 16:11:40 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4994 * compatMakefile (realclean): Just depend on distclean; no cmds.
4995 (distclean): Do what realclean did before; also remove Makefile and
4996 config.h; don't remove configure.
4997 (info, dvi): New targets; depend on make.{info,dvi}.
4998 (doc): Removed target.
4999 (MAKEINFO, TEXI2DVI): New vars.
5000 (make.info, make.dvi): Use them instead of explicit cmds.
5002 Wed Dec 16 16:25:24 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5004 * configure.in: Added fcntl.h to AC_HAVE_HEADERS. getloadavg cares.
5006 Wed Dec 9 15:21:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5008 * main.c (long_option_aliases): Add --new-file alias for -W.
5010 * default.c (default_variables): Change all C++ to CXX and C++FLAGS
5013 * read.c (do_define): Expand the variable name before using it.
5015 * main.c (main): Define variable "MAKE_COMMAND" to argv[0];
5016 define "MAKE=$(MAKE_COMMAND) $(MAKEOVERRIDES)" always.
5018 * remake.c (library_search): Search for libNAME.a in cwd; look in
5019 vpath before looking in standard dirs, not after.
5020 Changed order of std dirs to: /lib, /usr/lib, ${prefix}/lib.
5022 Mon Nov 23 14:57:34 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5024 * default.c (default_pattern_rules, default_terminal_rules): Added
5025 brackets around initializers.
5027 * variable.c (try_variable_definition): Don't check for LINE[0]=='\t'.
5028 (try_variable_definition): Expand the name before defining the var.
5030 * job.c (init_siglist): Removed function.
5031 Removed decl of `sys_siglist'.
5032 * make.h [! HAVE_SYS_SIGLIST]: #include "signame.h".
5033 [HAVE_SYS_SIGLIST && !SYS_SIGLIST_DECLARED]: Declare sys_siglist
5034 only under these conditions.
5035 * main.c (main): Don't declare init_siglist.
5036 (main) [! HAVE_SYS_SIGLIST]: Call signame_init instead of init_siglist.
5038 Wed Nov 18 14:52:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5040 * read.c (record_files): Don't try to append to FIRSTDEPS if it's
5041 nil; instead just set it to MOREDEPS.
5043 Mon Nov 16 17:49:17 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5045 * vpath.c (construct_vpath_list): Initialize P to DIRPATH before
5046 loop that sets MAXELEM.
5048 Fri Nov 13 18:23:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5052 Thu Nov 12 15:45:31 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5054 * job.c (start_job_command): Under -n, increment files_remade after
5055 processing (i.e., printing) all command lines.
5057 Tue Nov 10 15:33:53 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5059 * read.c (record_files): Append new deps if this rule has no
5060 commands; prepend them to existing deps if this rule has no commands.
5062 * dir.c (open_dirstream): Return nil if DIR->contents->files is nil.
5064 * read.c (parse_file_seq): Removed last arg STRIP. Always strip `./'s.
5065 (read_makefile): Changed callers.
5066 * function.c (string_glob): Likewise.
5067 * rule.c (install_pattern_rule): Likewise.
5069 Mon Nov 9 17:50:16 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5071 * remake.c (files_remade): Made global.
5072 (notice_finished_file): Don't increment files_remade here; this
5073 function gets called in many situations where no remaking was in
5075 * job.c (reap_children): Do it here instead, when we know that
5076 actual commands have been run for the file.
5077 * make.h (files_remade): Declare it.
5079 Thu Nov 5 18:26:10 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5081 * vpath.c (construct_vpath_list): Allow blanks as well as colons to
5082 separate elts in the search path.
5084 * read.c (read_makefile): Don't fatal on extra tokens in `vpath'.
5085 The search path can contain spaces now.
5087 Tue Nov 3 20:44:32 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5089 * compatMakefile (check): New target; no-op.
5091 * file.c (file_hash_enter): Mod OLDHASH by FILE_BUCKETS after
5092 testing for OLDHASH==0 but before using the value.
5093 (rename_file): Don't mod OLDHASH by FILE_BUCKETS before passing it
5096 * file.c (rename_file): Notice when OLDFILE->cmds came from
5097 default.c, and don't try to print ->filename in that case.
5099 Sun Oct 25 01:48:23 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5101 * remake.c (update_file): Don't process F->also_make here.
5102 (notice_finished_file): Don't process FILE->also_make if no attempt
5103 to update FILE was actually made.
5104 Fixed to call f_mtime directly to refresh their modtimes.
5106 Sat Oct 24 22:08:59 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5108 * read.c (find_percent): Don't increment P again after skipping
5111 * expand.c (variable_expand): In call to patsubst_expand, don't
5112 find `%'s ourselves; let that function do it.
5114 * read.c (read_makefile: record_waiting_files): Don't call
5115 record_files if FILENAMES is nil.
5116 (read_makefile): All alternatives in the parsing, except for rule
5117 lines, fall through to the end of the loop. At the end of the
5118 loop, do record_waiting_files so we notice later spurious cmds.
5120 Fri Oct 23 15:57:37 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5122 * variable.c (define_automatic_variables): Free old value of SHELL
5123 before replacing it.
5125 Thu Oct 15 18:57:56 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5127 * compatMakefile (.c.o): Add -I$(srcdir)/glob to flags.
5129 * dir.c (open_dirstream): Cast return value to __ptr_t.
5131 * default.c (default_variables: "GET") [_IBMR2]: Use USG defn.
5133 * make.h (MAXPATHLEN): Moved out of #ifndef POSIX.
5134 (GET_PATH_MAX): Moved from #ifdef POSIX to #ifdef PATH_MAX #else.
5135 Define as (get_path_max ()).
5136 [! PATH_MAX] (NEED_GET_PATH_MAX): Define.
5137 [! PATH_MAX] (get_path_max): Declare fn.
5138 * misc.c [NEED_GET_PATH_MAX] (get_path_max): New function.
5140 Mon Oct 12 13:34:45 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5144 * job.c (sys_siglist): Only declare #ifndef SYS_SIGLIST_DECLARED.
5145 * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
5146 SYS_SIGLIST_DECLARED.
5148 * dir.c (file_impossible): When initializing DIR->contents, set
5149 DIR->contents->dirstream to nil.
5151 * compatMakefile (GLOB): Define new variable.
5152 (objs): Use it, rather than glob/libglob.a explicitly.
5154 * read.c (parse_file_seq): When stripping "./", handle cases like
5155 ".///foo" and "./////".
5156 * file.c (lookup_file, enter_file): Likewise.
5158 Sun Oct 11 17:00:35 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5160 * dir.c (struct dirstream, {open,read}_dirstream): New
5161 data type and functions to read a directory sequentially.
5162 (init_dir): New function to hook it into glob.
5163 * main.c (main): Call init_dir.
5165 * compatMakefile (objs): Added glob/libglob.a.
5166 * configure.in: Remove code to test for glob.
5168 Fri Oct 9 12:08:30 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5170 * read.c (record_files): Generalized test for NAME pointing
5171 somewhere into F->name.
5173 * variable.c (define_variable_in_set): Free old value when replacing.
5175 * read.c (do_define): Free the linebuffer before returning.
5176 (record_files): When clearing .SUFFIXES deps, free their data.
5177 (multi_glob): Free OLD and its data when replacing it with results
5180 * commands.c (set_file_variables): Use alloca in place of xmalloc
5181 for temp space for $^, $?, et al.
5183 * dir.c (struct directory): New member `contents' replaces `files'
5185 (struct directory_contents): New type.
5186 (directories_contents): New hash table.
5187 (dir_struct_file_exists_p): Take a struct directory_contents.
5188 (dir_file_exists_p): Pass it the `contents' member of the dir found.
5189 (dir_struct_file_exists_p): Renamed to dir_contents_file_exists_p;
5190 made static. Return 0 if DIR is nil (meaning it couldn't be stat'd).
5191 (dir_file_exists_p, find_directory): Change all callers.
5192 (file_impossible): Use DIR->contents, initializing it if nil.
5193 (print_dir_data_base): Use DIR->contents, and print out device and
5194 inode numbers with each directory.
5196 * Changes for performance win from John Gilmore <gnu@cygnus.com>:
5197 * dir.c (DIRECTORY_BUCKETS): Increase to 199.
5198 (DIRFILE_BUCKETS): Decrease to 107.
5199 (find_directory): Allocate and zero a multiple of
5200 sizeof (struct dirfile *), not of sizeof (struct dirfile).
5201 (dir_struct_file_exists_p): New function, nearly all code from
5203 (dir_file_exists_p): Just call find_directory+dir_struct_file_exists_p.
5204 * vpath.c (selective_vpath_search): Remove redundant
5205 dir_file_exists_p call.
5207 * configure.in: Comment out glob check; always use our code.
5209 Fri Oct 2 19:41:20 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5211 * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
5212 HAVE_SYS_SIGLIST; after doing #define sys_siglist _sys_siglist, we
5215 Wed Sep 30 19:21:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5217 * main.c (main): Don't do -w automatically if -s.
5219 Tue Sep 29 21:07:55 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5221 * main.c (printed_version): Move variable inside print_version.
5222 (print_version): Return immediately if printed_version is set.
5223 (die): Don't test printed_version here.
5224 (decode_switches): Under -v, do print_version before giving usage.
5225 (DESCRIPTION_COLUMN): New macro.
5226 (decode_switches): Use it when printing the usage message.
5227 Leave at least two spaces between options and their descriptions.
5229 Fri Sep 25 13:12:42 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5233 Wed Sep 16 16:15:22 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5235 * read.c (read_makefile): Save errno value from trying to open
5236 FILENAME, and restore it before erring; otherwise we get the errno
5237 value from the last elt of the search path.
5239 Tue Sep 15 15:12:47 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5241 * main.c (long_option_aliases): Add --stop for -S.
5243 * read.c (word1eq): Do strncmp before dereferencing someplace that
5244 may be out in space.
5246 Wed Sep 9 15:50:41 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5248 * remake.c (notice_finished_file): If all the command lines were
5249 recursive, don't do the touching.
5251 * job.c (start_job_command): Don't check for + here.
5252 * commands.c (chop_commands): Do it here instead.
5254 * default.c (default_terminal_rules): Prepend + to cmds for RCS.
5256 Wed Sep 2 17:53:08 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5258 * compatMakefile (objs): Include $(ALLOCA).
5260 * make.h [CRAY]: Move #define signal bsdsignal to before #includes.
5262 Thu Aug 27 17:45:43 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
5264 * read.c (default_include_directories): Add INCLUDEDIR first.
5265 * compatMakefile (includedir): Define.
5266 (defines): Add -D for INCLUDEDIR="$(includedir)".
5268 * read.c (read_makefile): Grok multiple files in `include';
5271 * remake.c (library_search): New function.
5272 (library_file_mtime): Remove function.
5273 (f_mtime): Use library_search instead of library_file_mtime.
5274 * compatMakefile (libdir): Define.
5275 (defines): Add -D for LIBDIR="$(libdir)".
5276 * make.texinfo (Libraries/Search): Document change.
5278 * file.c (rename_file): Fix file_hash_enter call with missing arg.
5280 Wed Aug 26 17:10:46 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5284 * main.c (main): Set command_state to cs_finished for temp files
5285 made for stdin makefiles.
5287 * main.c (decode_switches): Don't tell getopt to return non-option
5289 Ignore an argument of `-'.
5291 Thu Aug 20 13:36:04 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5293 * job.c (start_job_command): If (touch_flag && !RECURSIVE), ignore
5294 the command line and go to the next.
5295 (notice_finished_file): Under -t, touch FILE.
5296 * remake.c (remake_file): Don't touch it here.
5298 Wed Aug 19 16:06:09 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5300 * function.c (pattern_matches): Use temporary for strlen (WORD)
5301 instead of two function calls.
5303 * compatMakefile (LOAD_AVG): Remove variable and comments.
5305 Tue Aug 18 14:58:58 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5307 * make.texinfo (Running): Node renamed to `make Invocation'.
5309 Fri Aug 14 12:27:10 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5311 * arscan.c (ar_name_equal): Don't compare [MAX-3..MAX] if
5314 Thu Aug 13 17:50:09 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5318 * main.c: Don't #include <time.h>; make.h already does.
5320 Mon Aug 10 17:03:01 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5322 * implicit.c (pattern_search): Fixed copying of suffix when building
5325 * function.c (expand_function: `shell'): Make sure BUFFER is
5326 null-terminated before replacing newlines.
5328 * compatMakefile (mandir): Use man$(manext), not always manl.
5330 Sun Aug 2 01:42:50 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5332 * rule.c (new_pattern_rule): Not static.
5333 * rule.h: Declare it.
5335 * file.c (file_hash_enter): New function, most code from rename_file.
5336 (rename_file): Call it.
5337 * file.h (file_hash_enter): Declare it.
5341 Thu Jul 30 15:40:48 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5343 * main.c (decode_switches): Handle usage_and_exit when building
5344 long options vector.
5346 * default.c (default_terminal_rules): Make RCS rules use $(CHECKOUT,v).
5347 (default_variables): Define CHECKOUT,v (hairy).
5349 * make.h [!HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
5350 sys_siglist to _sys_siglist.
5352 Sun Jul 26 16:56:32 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5354 * NEWS: Add header and tail copyright info like Emacs NEWS.
5356 * make.h [ANSI_STRING]: Don't #define index, rindex, bcmp, bzero,
5357 bcopy if already #define'd.
5358 [STDC_HEADERS] (qsort, abort, exit): Declare here.
5359 [! __GNU_LIBRARY__ && !POSIX]: Not here.
5361 * make.h [_AIX]: #pragma alloca first thing.
5363 * job.c (start_waiting_job): Set the command_state to cs_running
5364 when we queue a job on waiting_jobs.
5366 Fri Jul 24 02:16:28 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5368 * variable.c (define_automatic_variables): Use "" instead of nil
5371 Thu Jul 23 22:31:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5375 * main.c (struct command_switch.type): Add alternative usage_and_exit.
5376 (command_switches): Add -h/--help.
5378 Thu Jul 16 14:27:50 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5380 * GNUmakefile (make-$(version).tar.Z): Include NEWS, not CHANGES.
5381 * README.template: Mention NEWS.
5382 * CHANGES: Renamed to NEWS.
5384 * main.c [! STDC_HEADERS] [sun]: Don't declare exit.
5386 Tue Jul 14 18:48:41 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5388 * main.c (main): Set -o files' command_states to cs_finished.
5390 * rule.c (count_implicit_rule_limits): Decrement num_pattern_rules
5391 when tossing a rule.
5393 * main.c (main): Use alloca only in simple local var assignment,
5394 for braindead SGI compiler.
5396 * rule.c (print_rule_data_base): Barf if num_pattern_rules is
5397 inconsistent with the number computed when listing them.
5399 Mon Jul 13 17:51:53 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5401 * commands.c (set_file_variables): For $? and $^ elts that are archive
5402 member refs, use member name only.
5404 Fri Jul 10 00:05:04 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5406 * variable.h (struct variable.export): Add new alternative v_ifset.
5407 * variable.c (target_environment): Check for it.
5408 (define_automatic_variables): Set it for MAKEFILES.
5410 Thu Jul 9 21:24:28 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5412 * compatMakefile (objs): Remove getloadavg.o; $(extras) gets it.
5413 (remote.o): Use $(srcdir)/remote.c, not $remote.c<.
5414 (distclean, mostlyclean): New targets.
5416 Tue Jul 7 19:12:49 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5420 * compatMakefile (config.status): Remove rule.
5422 * job.c (start_waiting_job): Free C after using C->file, not before.
5424 Sat Jul 4 20:51:49 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5426 * commands.c, job.c, main.c, make.h, remote-cstms.c: Use #ifdef
5427 HAVE_* instead of #ifndef *_MISSING.
5428 * configure.in: Use AC_HAVE_FUNCS instead of AC_MISSING_FUNCS (gone).
5430 Thu Jul 2 18:47:52 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5432 * main.c (main): makelevel>0 or -C implies -w.
5434 Tue Jun 30 20:50:17 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5436 * file.c, job.c, function.c: Don't #include <errno.h>.
5437 make.h: Do it here instead.
5438 * arscan.c (ar_member_touch): Don't declare errno.
5440 Thu Jun 25 17:06:55 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5442 * GNUmakefile (make-$(version).tar.Z): Depend on INSTALL, configure.in.
5444 * remake.c (update_file): If commands or deps are running after
5445 update_file_1 returns, break out of the :: rule (->prev) loop and
5448 * job.c (job_next_command): New function; code from start_job.
5449 (start_job_command): Renamed from start_job. Call job_next_command
5450 and recurse for empty command lines and -n.
5451 (start_waiting_job): Call start_job_command, not start_job.
5452 (new_job): Call job_next_command to prime the child structure, and
5453 then call start_waiting_job.
5454 (reap_children): Use job_next_command and start_job_command.
5455 (start_waiting_job): Call start_remote_job_p here, and store its
5456 result in C->remote. If zero, check the load average and
5457 maybe put C on waiting_jobs.
5458 (start_job_command): Test CHILD->remote rather than calling
5459 start_remote_job_p. Don't do load avg checking at all here.
5461 * main.c (main): Don't handle SIGILL, SIGIOT, SIGEMT, SIGBUS,
5462 SIGSEGV, SIGFPE or SIGTRAP.
5464 * compatMakefile (glob/libglob.a): Don't pass srcdir to sub-make.
5465 configure will set it in glob/Makefile.
5467 Wed Jun 24 19:40:34 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5469 * dir.c [DIRENT] (direct): Don't define to dirent.
5470 [! DIRENT] (direct): Define to dirent.
5471 (dir_file_exists_p): Use struct dirent instead of struct direct.
5473 * make.h (getcwd): No space between macro and ( for args!
5475 * job.c (start_job): Don't put the job on waiting_jobs if
5478 * make.texinfo (Missing): Shortened title.
5480 Tue Jun 23 18:42:21 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5482 * file.c (remove_intermediates): Print "rm" commands under -n.
5484 Mon Jun 22 16:20:02 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5488 Fri Jun 19 16:20:26 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5490 * arscan.c [M_UNIX]: #undef M_XENIX.
5492 Wed Jun 17 17:59:28 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5494 * default.c (default_terminal_rules): Put @ prefix on RCS cmds.
5496 Tue Jun 16 19:24:17 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5498 * compatMakefile (getloadavg.o): Removed special rule.
5499 (CFLAGS): Don't include $(defines).
5500 (.c.o): Define suffix rule.
5501 (glob/libglob.a): Pass CPPFLAGS=$(defines) to submake.
5502 (GETOPT_SRC, srcs, tagsrcs): Prefix files with $(srcdir)/.
5504 * arscan.c (ar_name_equal): Moved local vars inside #if'd block.
5506 * make.h (max): Removed.
5507 * expand.c (variable_buffer_output): Don't use it.
5509 * compatMakefile (INSTALL): Define.
5510 (Makefile): New rule to make from Makefile.in.
5513 (getloadavg.o, remote.o): Use autoconf $foo< hack.
5515 * commands.c (fatal_error_signal): Removed return.
5517 Mon Jun 15 17:42:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5521 * make.texinfo (Summary): New node.
5522 (Special Targets): Mention .EXPORT_ALL_VARIABLES here.
5524 * variable.c (max): Moved to make.h.
5526 * compatMakefile (objs, srcs): Added ar & arscan.
5528 * job.c (start_waiting_job): New function, 2nd half of new_job.
5530 (start_waiting_jobs): New function.
5531 * remake.c (update_goal_chain): Call start_waiting_jobs at the top
5533 * compatMakefile (objs, srcs): Removed load, added getloadavg.
5535 Fri Jun 12 19:33:16 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5537 * job.c (load_too_high): New function. Uses getloadavg.
5538 (waiting_jobs): New variable.
5539 (start_job): Don't call wait_to_start_job. Instead, if
5540 load_too_high returns nonzero, add the child to the
5541 `waiting_jobs' chain and return without starting the job.
5543 Thu Jun 11 00:05:28 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5545 * expand.c (variable_buffer_output): Made global again.
5546 * variable.h: And declare it.
5548 * arscan.c (PORTAR): Define for all systems if PORT5AR is not defined.
5549 (AR_NAMELEN, AR_TRAILING_SLASH): Removed.
5550 (ar_scan): Don't use it. Don't #ifdef AR_TRAILING_SLASH; just look
5551 for a slash in the archive at run time.
5552 (ar_name_equal): Rewrote .o hacking to not use AR_NAMELEN, and to
5553 cope with trailing-slash and non-trailing-slash archives.
5555 * main.c (main) [! SETVBUF_REVERSED]: Test this instead of USGr3 et al.
5556 [SETVBUF_REVERSED]: Always allocate a buffer ourselves.
5558 * load.c (load_average) [sgi]: Use sysmp call.
5560 * compatMakefile (INSTALL_DATA, INSTALL_PROGRAM): Define.
5561 ($(bindir)/$(instname), $(mandir)/make.$(manext)): Use them.
5563 * make.h [HAVE_VFORK_H]: #include <vfork.h>.
5564 (vfork, VFORK_NAME): Don't define.
5565 * job.c (start_job): Use "vfork" in place of VFORK_NAME.
5567 * make.h [HAVE_LIMITS_H, HAVE_SYS_PARAM_H]: If #define'd, #include
5568 the each file. Rearranged PATH_MAX hacking.
5569 * job.c: Rearranged NGROUPS_MAX hacking.
5571 * remake.c (fstat, time): Don't declare.
5573 * compatMakefile (defines): Value is @DEFS@.
5574 (LOADLIBES): Value is @LIBS@.
5575 (extras): Value is @LIBOBJS@.
5576 (ARCHIVES, ARCHIVES_SRC, ALLOCASRC): Removed.
5577 * arscan.c, ar.c: Surround body with #ifndef NO_ARCHIVES.
5579 * misc.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl get*id.
5581 * make.h [GETCWD_MISSING]: Test instead of !USG && !POSIX et al.
5582 (getcwd): Just declare if present. If not, declare as a macro
5583 using getwd, and declare getwd.
5584 [PATH_MAX] (GET_PATH_MAX): #define to PATH_MAX.
5585 * main.c (main, log_working_directory): Use getcwd instead of getwd.
5587 * main.c (main) [SETLINEBUF_MISSING]: Test this instead of USG.
5589 * make.h (SIGHANDLER, SIGNAL): Removed.
5590 (RETSIGTYPE): Define if not #define'd.
5591 * main.c (main): Use signal in place of SIGNAL.
5593 * main.c [SYS_SIGLIST_MISSING]: Test instead of USG.
5595 * job.c (search_path) [GETGROUPS_MISSING]: Test instead of USG.
5596 [HAVE_UNISTD_H]: Test instead of POSIX to not decl getgroups.
5598 * main.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl chdir.
5599 [! STDC_HEADERS]: Test instead of !POSIX to decl exit & atof.
5601 * job.c (child_handler), commands.c (fatal_error_signal): Return
5602 RETSIGTYPE instead of int.
5603 * main.c (main): Declare fatal_error_signal and child_handler here
5604 to return RETSIGTYPE; removed top-level decl of former.
5606 * commands.c (fatal_error_signal), job.c (unblock_sigs, start_job),
5607 main.c [SIGSETMASK_MISSING]: Test this instead of USG.
5609 Wed Jun 10 22:06:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5611 * job.c [HAVE_WAITPID]: Test this instead of USG.
5612 [! HAVE_UNISTD_H]: Test this instead of !POSIX to declare misc fns.
5613 (GID_T): Don't #define.
5614 (search_path): Use gid_t instead of GID_T.
5615 [GETDTABLESIZE_MISSING, SYS_SIGLIST_MISSING, DUP2_MISSING]: Test
5616 these individually instead of USG for all.
5617 * make.h (ctime): Don't declare. #include time.h instead.
5618 [HAVE_UNISTD_H]: #include <unistd.h> and #define POSIX #ifdef
5620 * dir.c [__GNU_LIBRARY__] (D_NAMLEN): Define to use d_namlen member.
5621 * make.h [NEED_MEMORY_H]: Only include memory.h #ifdef this.
5623 * arscan.c: Removed #ifdef mess about string.h et al.
5624 Just #include make.h instead.
5625 * make.h (fstat, atol): Declare.
5627 * commands.c (fatal_error_signal): Don't use sigmask to check for
5628 propagated signals; use ||s instead.
5629 (PROPAGATED_SIGNAL_MASK): Removed.
5630 (fatal_error_signal) [POSIX]: Use sigprocmask in place of sigsetmask.
5632 * variable.c (variable_buffer, variable_buffer_length,
5633 initialize_variable_output, variable_output): Moved to expand.c;
5635 (struct output_state, save_variable_output,
5636 restore_variable_output): Removed.
5637 * expand.c (initialize_variable_output): Put a NUL at the beginning
5638 of the new buffer after allocating it.
5639 (allocated_variable_expand_for_file): Don't use
5640 {save,restore}_variable_output. Do it by hand instead, keeping
5641 state on the stack instead of malloc'ing it.
5642 (allocated_variable_expand): Removed.
5643 * variable.h (allocated_variable_expand): Define here as macro.
5644 (variable_buffer_output, initialize_variable_output,
5645 save_variable_output, restore_variable_output): Removed decls.
5647 * read.c (conditional_line): For an if cmd, if any elt of the
5648 conditionals stack is ignoring, just push a new level that ignores
5649 and return 1; don't evaluate the condition.
5651 Thu Jun 4 21:01:20 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5653 * main.c (main): Put #ifdef's around frobbing SIGSYS and SIGBUS.
5655 * job.c (getdtablesize): Don't declare or #define if already #define'd.
5657 Wed Jun 3 23:42:36 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5659 * file.c (snap_deps): If `.EXPORT_ALL_VARIABLES' is a target, set
5660 export_all_variables.
5661 * make.texinfo (Variables/Recursion): Document .EXPORT_ALL_VARIABLES.
5663 Tue Jun 2 21:08:35 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5667 * commands.c (set_file_variables): Calculate length for ^D and ?D
5668 individually, making sure to give them at least enough space for "./".
5670 * make.h [CRAY]: #define signal to bsdsignal.
5672 * default.c (default_variables) [CRAY]: Define PC, SEGLDR,
5673 CF77PPFLAGS, CF77PP, CFT, CF, and FC.
5675 * arscan.c (AR_HDR_SIZE): Define to sizeof (struct ar_hdr), if it
5676 wasn't defined by <ar.h>.
5678 Thu May 28 00:56:53 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5682 Tue May 26 01:26:30 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5684 * rule.c (new_pattern_rule): Initialize LASTRULE to nil, not
5687 Mon May 25 19:02:15 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5689 * main.c (decode_switches): Initialize all the long_option elt members.
5691 Thu May 21 16:34:24 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
5693 * make.texinfo (Text Functions): Correct filter-out description.
5695 Tue May 19 20:50:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5697 * compatMakefile (realclean): Don't remove backup files.
5699 * main.c (decode_switches): Allocate ARGC+1 elts in `other_args'.
5701 Sun May 17 16:38:48 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5705 Thu May 14 16:42:33 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5707 * job.c (reap_children): Don't die if wait returns EINTR.
5709 Wed May 13 18:28:25 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5711 * job.c (reap_children): Always run the next command for a
5712 successful target. If we are going to die, we don't want to leave
5713 the target partially made.
5715 Tue May 12 00:39:19 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5717 * job.c (construct_command_argv_internal): After loop, if we only
5718 have one word, check it for being a shell command.
5720 * main.c (decode_switches): Allocate ARGC slots in other_args to
5721 begin with, so we never need to worry about growing it.
5722 If we get a non-option arg and POSIXLY_CORRECT is in the
5723 environment, break out of the loop. After the loop, add all remaining
5724 args to other_args list.
5726 * main.c (decode_switches): For positive_int and floating switches
5727 when optarg is nil, use next arg if it looks right (start with a
5728 digit, or maybe decimal point for floating).
5730 * variable.c (define_automatic_variables): Always set SHELL to
5731 default if it comes from the environment. Set its export bit.
5732 * make.texinfo (Environment): Document change.
5734 Mon May 11 00:32:46 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5738 * compatMakefile (tags, TAGS): Use vars for cmds.
5739 (ETAGS, CTAGS): Define.
5741 * main.c (decode_switches): If a switches elt has a nil long_name,
5742 make the long option name elt be "".
5743 Fixed loop to not ignore all the options.
5745 * make.texinfo (Option Summary): Added long options.
5747 * main.c (switches): Changed -m's description to "-b".
5748 (decode_switches): When printing the usage message, don't print
5749 switches whose descriptions start with -.
5750 When constructing the list of names for switch -C, search the
5751 switches vector for switches whose descriptions are "-C".
5753 * main.c (switches): Call -S --no-keep-going, not --dont-keep-going.
5754 Call -I --include-dir, not --include-path.
5755 (long_option_aliases): Added --new == -W, --assume-new == -W,
5756 --assume-old == -o, --max-load == -l, --dry-run == -n, --recon == -n,
5759 * main.c (switches): Removed bogus "silent" elt.
5760 (long_option_aliases): Define new var.
5761 (decode_switches): Add long_option_aliases onto the end of the long
5762 options vector created for getopt_long.
5763 Look through long_option_aliases for extra names to list
5766 Sat May 9 00:21:05 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5768 * main.c (log_working_directory): Fixed to properly not print the
5769 leaving message when we haven't printed the entering message.
5771 Fri May 8 21:55:35 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5773 * main.c (struct command_switch): Added elts `long_name',
5774 `description', and `argdesc'.
5775 (switches): Added initializers for new members.
5776 (decode_switches): Rewritten to use getopt_long.
5777 * compatMakefile (GETOPT, GETOPT_SRC): Define.
5778 (objs, srcs): Include them.
5780 * job.c (child_died): Renamed to dead_children; made static.
5781 (child_handler): Increment dead_children instead of setting child_died.
5782 (reap_children): Decrement dead_children instead of clearing
5783 child_died. The point of all this is to avoid printing "waiting
5784 for unfinished jobs" when we don't actually need to block.
5785 This happened when multiple SIGCHLDs before reap_children was called.
5787 * job.c (reap_children): If ERR is set, so we don't call start_job
5788 on the child being reaped, instead set its command_state to
5790 (reap_children, child_handler, new_job): I added several
5791 debugging printf's while fixing this. I left them in if (debug_flag)
5792 because they may be useful for debugging this stuff again.
5794 Wed May 6 22:02:37 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5796 * read.c (read_makefile): v_export is not 1.
5798 Mon May 4 17:27:37 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5802 * variable.c (export_all_variables): New variable.
5803 (target_environment): Export variables whose `export' member is
5804 v_default if export_all_variables is set and their names are benign.
5805 * variable.h: Declare export_all_variables.
5806 * read.c (read_makefile): If export or unexport is given with no
5807 args, set or clear export_all_variables, respectively.
5809 * variable.c (target_environment): Exclude MAKELEVEL in the loop,
5810 so it isn't duplicated when we add it at the end.
5812 Sun May 3 17:44:48 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5816 * variable.h (struct variable): Added new member `export'.
5817 * variable.c (define_variable_in_set): Initialize it to v_default.
5818 (target_environment): Don't check for .NOEXPORT.
5819 Export variables whose `export' member is v_default and that would
5820 have been exported under .NOEXPORT, and variables whose `export'
5822 (try_variable_definition): Return the variable defined.
5823 * variable.h (try_variable_definition): Changed decl.
5824 * read.c (read_makefile): Recognize `export' and `unexport' directives.
5826 Fri May 1 11:39:38 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5828 * main.c (main) [POSIX]: Reversed args to sigaddset.
5830 Thu Apr 30 17:33:32 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5832 * job.c [POSIX || !USG] (unblock_sigs): New fn.
5833 (start_job): Block signals before forking.
5834 (new_job): Unblock signals after putting the new child on the chain.
5835 * main.c (main) [POSIX]: Use sigset_t fatal_signal_set instead of
5836 int fatal_signal_mask.
5838 * load.c [sgi] (LDAV_CVT): Define.
5840 Wed Apr 29 17:15:59 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5844 * load.c (load_average) [sgi]: Clear the high bit of the address
5845 from the symbol table before looking it up in kmem.
5847 * misc.c (fatal, makefile_fatal): Put *** in fatal error messages.
5848 (remake_file): No longer needed in message here.
5850 * main.c (die): Call reap_children with BLOCK==1.
5852 Tue Apr 28 20:44:35 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5854 * rule.c (freerule): Don't set LASTRULE->next if LASTRULE is nil.
5856 Sun Apr 26 15:09:51 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5858 * rule.c (count_implicit_rule_limits): Initialize LASTRULE to nil,
5859 not to head of chain. Extract next ptr before we might do
5860 freerule, and use that for next iteration.
5861 (freerule): Still do next ptr frobbing if LASTRULE is nil.
5863 Tue Apr 21 03:16:29 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5865 * job.c (child_error): Removed extra %s from error msg format.
5869 * job.c (reap_children): Don't start later commands in a sequence
5872 * job.c (new_job): Always call reap_children with BLOCK==0 first thing.
5874 * job.c (reap_children): New function; work that used to be done in
5876 (child_died): New global var.
5877 (child_handler): Now just sets child_died.
5878 (wait_for_children): Removed.
5879 (unknown_children_possible, block_signals, unblock_signals,
5880 push_signals_blocked_p, pop_signals_blocked_p): Removed.
5881 (child_execute_job): Removed call to unblock_signals.
5882 (new_job): Removed calls to push_signals_blocked_p and
5883 pop_signals_blocked_p.
5884 * job.h: Declare reap_children, not wait_for_children.
5885 * commands.c (fatal_error_signal), job.c (new_job),
5886 load.c [LDAV_BASED] (wait_to_start_job), main.c (die),
5887 remake.c (update_goal_chain), function.c (expand_function: `shell'):
5888 Changed wait_for_children calls to reap_children.
5889 Some needed to be loops to wait for all children to die.
5890 * commands.c (fatal_error_signal), main.c (main,
5891 log_working_directory), function.c (expand_function): Removed calls
5892 to push_signals_blocked_p and pop_signals_blocked_p.
5893 * job.h: Removed decls.
5895 * job.h: Added copyright notice.
5897 Wed Apr 15 02:02:40 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5899 * job.c (child_error): No *** for ignored error.
5901 Tue Apr 14 18:31:21 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5903 * implicit.c (DEBUGP2): Use do ... while (0) instead of if ... else to
5904 avoid compiler warnings.
5906 * read.c (parse_file_seq): Don't remove ./ when it is followed by a
5909 Mon Apr 13 21:56:15 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5911 * make.h (DEBUGPR): Use do ... while (0) instead of if ... else to
5912 avoid compiler warnings.
5914 * remake.c (notice_finished_file): Run file_mtime on the also_make
5915 files, so vpath_search can happen.
5917 * GNUmakefile (tests): Use perl test suite from csa@sw.stratus.com.
5918 (alpha-files): Include test suite tar file.
5920 Fri Apr 3 00:50:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5924 Wed Apr 1 05:31:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5926 * remake.c (update_file, update_file_1): Do check_renamed on elts
5927 of dep chains when traversing them. Something unrelated might have
5928 renamed one of the files the dep chain points to.
5930 * file.c (rename_file): If FILE has been renamed, follow its
5931 `renamed' ptr, so we get to the final real FILE. Using the renamed
5932 ones loses because they are not in the hash table, so the removal
5933 code loops infinitely.
5935 * read.c (read_all_makefiles): Clobber null terminator into
5936 MAKEFILES expansion, so string passed to read_makefile is properly
5939 Mon Mar 30 20:18:02 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5941 * commands.c (set_file_variables): $* for archive member with
5942 explicit cmds is stem of member, not of whole `lib(member)'.
5944 Thu Mar 26 15:24:38 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5948 Tue Mar 24 05:20:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5950 * rule.c (new_pattern_rule): Rules are identical only if all their
5951 targets match (regardless of order).
5953 Wed Mar 11 13:49:54 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5955 * remake.c (remake_file): Changed error "no way to make" to "no
5956 rule to make". Fiat Hugh.
5958 * make.texinfo (Last Resort): Describe %:: rules and new .DEFAULT
5961 * remake.c (update_file_1): Only use .DEFAULT cmds if FILE is not a
5964 Tue Mar 10 18:13:13 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
5966 * remote-stub.c, remote-cstms.c (start_remote_job): Take new arg,
5967 environment to pass to child.
5968 * job.c (start_job): Pass it.
5970 Mon Mar 9 19:00:11 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5972 * file.c (enter_file): Also strip ./s here, to get command-line
5975 * remote-cstms.c: Add comment telling people to leave me alone.
5977 * compatMakefile (manpage install): Remove target before copying.
5979 Tue Mar 3 18:43:21 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5981 * make.texinfo (Missing): Renamed to "Incompatibilities and ...".
5982 Added paragraph describing $? incompatibility with Unix and POSIX.2.
5984 Sun Mar 1 15:50:54 1992 Roland McGrath (roland@nutrimat.gnu.ai.mit.edu)
5986 * function.c (expand_function: `shell'): Don't declare fork or pipe.
5987 Use vfork instead of fork.
5989 Tue Feb 25 22:05:32 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
5991 * make.texinfo (Chained Rules): Clarify .PRECIOUS to save
5994 * load.c [sun] (LDAV_CVT): Define to divide by FSCALE.
5996 Sun Feb 16 02:05:16 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6000 Sat Feb 15 17:12:20 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6002 * compatMakefile (makeinfo): Use emacs batch-texinfo-format fn.
6004 Fri Feb 14 00:11:55 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6006 * read.c (read_makefile): Correctly handle define & endef in ifdefs.
6008 * read.c (record_files): Pass arg for %s in error msg.
6010 * main.c (main) [__IBMR2, POSIX]: Use correct (a la USGr3) setvbuf
6013 Wed Feb 12 12:07:39 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6015 * make.texinfo (Libraries/Search): Say it does /usr/local/lib too.
6017 Sun Feb 9 23:06:24 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6019 * read.c (read_makefile): Check for extraneous `endef' when ignoring.
6021 Thu Feb 6 16:15:48 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6025 Tue Feb 4 20:04:46 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6027 * job.c (construct_command_argv_internal): Correctly ignore
6028 whitespace after backslash-NL.
6030 Fri Jan 31 18:30:05 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6032 * compatMakefile: Ignore errors from chgrp and chmod when installing.
6034 Wed Jan 29 18:13:30 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6036 * main.c (main): When setting MAKELEVEL in the env to re-exec,
6037 allocate space so as not to clobber past the end of the old string.
6039 * make.h [HAVE_ALLOCA_H]: Include <alloca.h>
6040 * compatMakefile (defines): Document HAVE_ALLOCA_H.
6042 Mon Jan 20 13:40:05 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6044 * make.h [VFORK_MISSING]: Use fork instead.
6045 * compatMakefile (defines): Document same.
6047 * job.c (construct_command_argv_internal): Don't create an empty
6048 arg if backslash-NL is at beginning of word.
6050 Sun Jan 19 16:26:53 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6052 * main.c [DGUX]: Call setvbuf as for USGr3.
6054 * job.c (construct_command_argv_internal): Notice correctly that
6055 backslash-NL is the end of the arg (because it is replaced with a
6058 Thu Jan 16 18:42:38 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6060 * job.c (construct_command_argv_internal): If SHELL is nil, set it
6061 to default_shell before proceeding.
6063 * make.h [sgi]: No alloca.h, after all.
6065 Wed Jan 15 12:30:04 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6067 * read.c (multi_glob): Cons up the chain of the results of glob
6068 from back to front, so it comes out in forward order.
6070 * job.c (construct_command_argv_internal): Don't eat char following
6073 Mon Jan 13 19:16:56 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6077 * default.c (default_variables) [ultrix]: GET=get, like USG.
6079 * job.c (construct_command_argv_internal): Remove tabs following
6080 backslash-NL combos in the input line, so they don't show up when
6081 that line is printed.
6083 * read.c (read_makefile): Don't collapse_continuations the line on
6084 input; do it on the copy we do remove_comments on.
6085 For rule lines, collapse_continuations the line after chopping
6086 ";cmds" off the end, so we don't eat conts in the cmds.
6087 Give error for ";cmds" with no rule.
6088 * job.c (construct_command_argv_internal): Eat backslash-NL combos
6089 when constructing the line to recurse on for slow, too.
6091 Sat Jan 11 02:20:27 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6093 * file.c (enter_file): Don't strip leading `./'s.
6094 * read.c (parse_file_seq): Take new arg STRIP; if nonzero, do it here.
6095 * default.c (set_default_suffixes), function.c (string_glob),
6096 read.c (read_makefile), rule.c (install_pattern_rule): Change callers.
6098 * default.c (default_variables) [_IBMR2]: FC=xlf
6100 * job.c (construct_command_argv_internal): Turn backslash-NL and
6101 following whitespace into a single space, rather than just eating
6104 * make.texinfo (Copying): @include gpl.texinfo, rather than
6105 duplicating its contents.
6107 Fri Nov 8 20:06:03 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6109 * job.c (construct_command_argv_internal): Make sure not to bother
6110 processing an empty line.
6114 * job.c (construct_command_argv_internal): Always recurse for slow;
6115 simple case didn't handle finding newlines.
6117 Tue Nov 5 18:51:10 1991 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6119 * job.c (construct_command_argv_internal): Set RESTP properly when
6120 slow; don't \ify past a newline.
6122 Fri Nov 1 19:34:28 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6124 * make.h [sgi]: #include <alloca.h>.
6128 See ChangeLog.1 for earlier changes.