1 1999-08-25 Paul D. Smith <psmith@gnu.org>
3 * Version 3.77.94 released.
5 * main.c (main) [__MSDOS__]: If the user uses -j, warn that it's
6 not supported and reset it.
8 * make.h (ISDIGIT): Obtained this from the textutils distribution.
9 * main.c (decode_switches): Use it.
10 * function.c (is_numeric): Use it.
12 * main.c (struct command_switch): Store the switch char in an
13 unsigned char to shut up GCC about using it with ctype.h macros.
14 Besides, it _is_ always unsigned.
16 1999-08-24 Paul D. Smith <psmith@gnu.org>
18 * make.texinfo: Change "dependency" to "prerequisite" and
19 "dependencies" to "prerequisites". Various other cleanups related
20 to the terminology change.
21 * file.c: Change debugging and error messages to use
22 "prerequisite" instead of "dependency".
27 1999-08-23 Paul D. Smith <psmith@gnu.org>
29 * remake.c (update_file): Move the considered check into the
30 double-colon rule loop, so we consider double-colon rules
31 individually (otherwise after the first is pruned, the rest won't
34 * README.template: Minor changes.
36 Remove the debugging features of the jobserver, so it no longer
37 writes distinct tokens to the pipe. Thus, we don't need to store
38 the token we get. A side effect of this is to remove a potential
39 "unavailable token" situation: make-1 invokes make-2 with its
40 special token and make-3 with a normal token; make-2 completes.
41 Now we're waiting for make-3 but using 2 tokens; our special token
42 is idle. In the new version we don't have special tokens per se,
43 we merely decide if we already have a child or not. If we don't,
44 we don't need a token. If we do, we have to get one to run the
45 next child. Similar for putting tokens back: if we're cleaning up
46 the last child, we don't put a token back. Otherwise, we do.
48 * main.c: Add a new, internal flag --jobserver-fds instead of
49 overloading the meaning of -j. Remove job_slots_str and add the
50 stringlist jobserver_fds.
51 (struct command_switch): We don't need the int_string type.
52 (switches[]): Add a new option for --jobserver-fds and remove
53 conditions around -j. Make the description for the former 0 so it
54 doesn't print during "make --help".
55 (main): Rework jobserver parsing. If we got --jobserver-fds
56 make sure it's valid. We only get one and job_slots must be 0.
57 If we're the toplevel make (-jN without --jobserver-fds) create
58 the pipe and write generic tokens.
59 Create the stringlist struct for the submakes.
60 Clean up the stringlist where necessary.
61 (init_switches): Remove int_string handling.
62 (print_usage): Don't print internal flags (description ptr is 0).
63 (decode_switches): Remove int_string handling.
64 (define_makeflags): Remove int_string handling.
66 * job.c: Remove my_job_token flag and all references to the
67 child->job_token field.
68 (free_job_token): Remove this and merge it into free_child().
69 (reap_children): Rework the "reaped a child" logic slightly.
70 Don't call defunct free_job_token anymore. Always call
71 free_child, even if we're dying.
72 (free_child): If we're not freeing the only child, put a token
73 back in the pipe. Then, if we're dying, don't bother to free.
74 (new_job): If we are using the jobserver, loop checking to see if
75 a) there are no children or b) we get a token from the pipe.
77 * job.h (struct child): Remove the job_token field.
79 1999-08-20 Paul D. Smith <psmith@gnu.org>
81 * variable.c (try_variable_definition): Allocate for variable
82 expansion in f_append with a simple variable: if we're looking at
83 target-specific variables we don't want to trash the buffer.
84 Noticed by Reiner Beninga <Reiner.Beninga@mchp.siemens.de>.
86 1999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
88 * main.c (main) [__MSDOS__]: Mirror any backslashes in argv[0], to
89 avoid problems in shell commands that use backslashes as escape
92 1999-08-16 Paul D. Smith <psmith@gnu.org>
94 * Version 3.77.93 released.
96 1999-08-13 Paul D. Smith <psmith@gnu.org
98 * function.c (func_if): New function $(if ...) based on the
99 original by Han-Wen but reworked quite a bit.
100 (function_table): Add it.
101 * NEWS: Introduce it.
102 * make.texinfo (If Function): Document it.
104 * job.c (free_job_token): Check for EINTR when writing tokens to
107 1999-08-12 Paul D. Smith <psmith@gnu.org>
109 Another jobserver algorithm change. We conveniently forgot that
110 the blocking bit is shared by all users of the pipe, it's not a
111 per-process setting. Since we have many make processes all
112 sharing the pipe we can't use the blocking bit as a signal handler
113 flag. Instead, we'll dup the pipe's read FD and have the SIGCHLD
114 handler close the dup'd FD. This will cause the read() to fail
115 with EBADF the next time we invoke it, so we know we need to reap
116 children. We then re-dup and reap.
118 * main.c (main): Define the job_rfd variable to hold the dup'd FD.
119 Actually dup the read side of the pipe. Don't bother setting the
120 blocking bit on the file descriptor.
121 * make.h: Declare the job_rfd variable.
122 * job.c (child_handler): If the dup'd jobserver pipe is open,
123 close it and assign -1 to job_rfd to notify the main program that
125 (start_job_command): Close the dup'd FD before exec'ing children.
126 Since we open and close this thing so often it doesn't seem
127 worth it to use the close-on-exec bit.
128 (new_job): Remove code for testing/setting the blocking bit.
129 Instead of EAGAIN, test for EBADF. If the dup'd FD has been
130 closed, re-dup it before we reap children.
132 * function.c (func_shell): Be a little more accurate about the
133 length of the error string to allocate.
135 * expand.c (variable_expand_for_file): If there's no filenm info
136 (say, from a builtin command) then reset reading_file to 0.
138 1999-08-09 Paul D. Smith <psmith@gnu.org>
140 * maintMakefile: Use g in sed (s///g) to replace >1 variable per
143 * Makefile.DOS.template [__MSDOS__]: Fix mostlyclean-aminfo to
144 remove the right files.
146 1999-08-01 Eli Zaretskii <eliz@is.elta.co.il>
148 * function.c (msdos_openpipe) [__MSDOS__]: *Really* return a FILE
151 1999-08-01 Paul D. Smith <psmith@gnu.org>
153 New jobserver algorithm to avoid a possible hole where we could
154 miss SIGCHLDs and get into a deadlock. The original algorithm was
155 suggested by Roland McGrath with a nice refinement by Paul Eggert.
156 Many thanks as well to Tim Magill and Howard Chu, who also
157 provided many viable ideas and critiques. We all had a fun week
158 dreaming up interesting ways to use and abuse UNIX syscalls :).
160 Previously we could miss a SIGCHLD if it happened after we reaped
161 the children but before we re-entered the blocking read. If this
162 happened to all makes and/or all children, make would never wake
165 We avoid this by having the SIGCHLD handler reset the blocking bit
166 on the jobserver pipe read FD (normally read does block in this
167 algorithm). Now if the handler is called between the time we reap
168 and the time we read(), and there are no tokens available, the
169 read will merely return with EAGAIN instead of blocking.
171 * main.c (main): Set the blocking bit explicitly here.
172 * job.c (child_handler): If we have a jobserver pipe, set the
173 non-blocking bit for it.
174 (start_waiting_job): Move the token stuff back to new_job; if we
175 do it here then we're not controlling the number of remote jobs
177 (new_job): Move the check for job slots to _after_ we've created a
178 child structure. If the read returns without getting a token, set
179 the blocking bit then try to reap_children.
181 * make.h (EINTR_SET): Define to test errno if EINTR is available,
182 or 0 otherwise. Just some code cleanup.
183 * arscan.c (ar_member_touch): Use it.
184 * function.c (func_shell): Use it.
185 * job.c (reap_children): Use it.
186 * remake.c (touch_file): Use it.
188 1999-07-28 Paul D. Smith <psmith@gnu.org>
190 * make.h: Define _() and N_() macros as passthrough to initiate
192 * <all>: Add _()/N_() around translatable strings.
194 1999-07-27 Paul D. Smith <psmith@gnu.org>
196 * read.c: Make sure make.h comes before other headers.
198 1999-07-26 Paul D. Smith <psmith@gnu.org>
200 * make.texinfo (Quick Reference): Update with the new features.
202 1999-07-25 Eli Zaretskii <eliz@is.elta.co.il>
204 * remake.c [__MSDOS__]: Don't include variables.h, it's already
207 * function.c (msdos_openpipe) [__MSDOS__]: Return FILE ptr.
208 (func_shell) [__MSDOS__]: Fix the argument list.
210 * Makefile.DOS.template: Update from Makefile.in.
212 * README.DOS.template: Configure command fixed.
214 * configh.dos.template: Update to provide definitions for
215 uintmax_t, fd_set_size_t, and HAVE_SELECT.
217 1999-07-24 Paul D. Smith <psmith@gnu.org>
219 * Version 3.77.91 released.
221 * configure.in: Changes to the boostrapping code: if build.sh.in
222 doesn't exist configure spits an error and generates an empty
223 build.sh file which causes make to be confused.
224 * maintMakefile: Don't build README early.
226 1999-07-23 Paul D. Smith <psmith@gnu.org>
228 * job.c (my_job_token): This variable controls whether we've
229 handed our personal token to a subprocess or not. Note we could
230 probably infer this from the value of job_slots_used, but it's
231 clearer to just keep it separately. Job_slots_used isn't really
232 relevant when running the job server.
233 (free_job_token): New function: free a job token. If we don't
234 have one, no-op. If we have the personal token, reclaim it. If
235 we have another token, write it back to the pipe.
236 (reap_children): Call free_job_token.
237 (free_child): Call free_job_token.
238 (start_job_command): Remove duplicate test for '+' in the command.
239 If we don't appear to be running a recursive make, close the
240 jobserver filedescriptors.
241 (start_waiting_job): If our personal token is available, use that
242 instead of going to the server pipe.
243 (*): Add the token value to many debugging statements, and print
244 the child target name in addition to the ptr hex value.
245 Change the default "no token" value from '\0' to '-' so it looks
246 better in the output.
248 * main.c (main): Install the child_handler with sigaction()
249 instead of signal() if we have it. On SysV systems, signal() uses
250 SysV semantics which are a pain. But sigaction() always does what
252 (main): If we got job server FDs from the environment, test them
253 to see if they're open. If not, the parent make closed them
254 because it didn't think we were a submake. Print a warning and
255 suggestion to use "+" on the submake invocation, and hard-set to
256 -j1 for this instance of make.
257 (main): Change the algorithm for assigning slots to be more
258 robust. Previously make checked to see if it thought a subprocess
259 was a submake and if so, didn't give it a token. Since make's
260 don't consume tokens we could spawn many of makes fighting for a
261 small number of tokens. Plus this is unreliable because submakes
262 might not be recognized by the parent (see above) then all the
263 tokens could be used up by unrecognized makes, and no one could
264 run. Now every make consumes a token from its parent. However,
265 the make can also use this token to spawn a child. If the make
266 wants more than one, it goes to the jobserver pipe. Thus there
267 will never be more than N makes running for -jN, and N*2 processes
268 (N makes and their N children). Every make can always run at
269 least one job, and we'll never deadlock. (Note the closing of the
270 pipe for non-submakes also solves this, but this is still a better
271 algorithm.) So! Only put N-1 tokens into the pipe, since the
272 topmost make keeps one for itself.
274 * configure.in: Find sigaction. Disable job server support unless
275 the system provides it, in addition to either waitpid() or
278 1999-07-22 Rob Tulloh <rob_tulloh@dev.tivoli.com>
280 * arscan.c (ar_member_touch) [WINDOWS32]: The ar_date field is a
281 string on Windows, not a timestamp.
283 1999-07-21 Paul D. Smith <psmith@gnu.org>
285 * Version 3.77.90 released.
287 * Makefile.am (AUTOMAKE_OPTIONS): Require automake 1.4.
289 * function.c: Rearrange so we don't need to predeclare the
290 function_table array; K&R C compilers don't like that.
292 * acinclude.m4 (AC_FUNC_SELECT): Ouch; this requires an ANSI C
293 compiler! Change to work with K&R compilers as well.
295 * configure.in (AC_OUTPUT): Put build.sh back. I don't know how I
296 thought it would work this way :-/. We'll have to think of
298 * Makefile.am: Remove rule to create build.sh.
300 * default.c (default_suffix_rules): Rearrange the default command
301 lines to conform to POSIX rules (put the filename argument $<
302 _after_ the OUTPUT_OPTION, not before it).
304 * various: Changed !strncmp() calls to strneq() macros.
306 * misc.c (sindex): Make slightly more efficient.
308 * dir.c (file_impossible): Change savestring(X,strlen(X)) to xstrdup().
309 * implicit.c (pattern_search): Ditto.
310 * main.c (enter_command_line_file): Ditto.
312 * misc.c (copy_dep_chain): Ditto.
313 * read.c (read_makefile): Ditto.
314 (parse_file_seq): Ditto.
315 (tilde_expand): Ditto.
317 * rule.c (install_pattern_rule): Ditto.
318 * variable.c (define_variable_in_set): Ditto.
319 (define_automatic_variables): Ditto.
320 * vpath.c (construct_vpath_list): Ditto.
322 * misc.c (xrealloc): Some reallocs are non-standard: work around
323 them in xrealloc by calling malloc if PTR is NULL.
324 * main.c (main): Call xrealloc() directly instead of testing for
327 * function.c (func_sort): Don't try to free NULL; some older,
328 non-standard versions of free() don't like it.
330 * configure.in (--enable-dmalloc): Install some support for using
331 dmalloc (http://www.dmalloc.com/) with make. Use --enable-dmalloc
332 with configure to enable it.
334 * function.c (function_table_entry): Whoops! The function.c
335 rewrite breaks backward compatibility: all text to a function is
336 broken into arguments, and extras are ignored. So $(sort a,b,c)
337 returns "a"! Etc. Ouch. Fix it by making a positive value in
338 the REQUIRED_ARGS field mean exactly that many arguments to the
339 function; any "extras" are considered part of the last argument as
340 before. A negative value means at least that many, but may be
341 more: in this case all text is broken on commas.
342 (handle_function): Stop when we've seen REQUIRED_ARGS args, if >0.
343 (expand_builtin_function): Compare number of args to the absolute
344 value of REQUIRED_ARGS.
346 1999-07-20 Paul D. Smith <psmith@gnu.org>
348 * job.c (start_job_command): Ensure that the state of the target
349 is cs_running. It might not be if we skipped all the lines due to
352 * commands.c (execute_file_commands): If we discover that the
353 command script is empty and succeed early, set cs_running so the
354 modtime of the target is still rechecked.
356 * rule.c (freerule): Free the dependency list for the rule.
358 * implicit.c (pattern_search): When turning an intermediate file
359 into a real target, keep the also_make list.
360 Free the dep->name if we didn't use it during enter_file().
362 1999-07-16 Paul D. Smith <psmith@gnu.org>
364 * read.c (read_makefile): Don't allocate the commands buffer until
365 we're sure we found a makefile and won't return early (mem leak).
367 * job.c (start_job_command): Broken #ifdef test: look for F_SETFD,
368 not FD_SETFD. Close-on-exec isn't getting set on the bad_stdin
369 file descriptor and it's leaking :-/.
370 * getloadavg.c (getloadavg): Ditto.
372 1999-07-15 Paul D. Smith <psmith@gnu.org>
374 * read.c (read_makefile): Fix some potential memory stomps parsing
375 `define' directives where no variable name is given.
377 * function.c (func_call): Rename from func_apply. Various code
378 cleanup and tightening.
379 (function_table): Add "call" as a valid builtin function.
381 * make.texinfo (Call Function): Document it.
385 1999-07-09 Eli Zaretskii <eliz@is.elta.co.il>
387 * variable.c (try_variable_definition) [__MSDOS__, WINDOWS32]:
388 Treat "override SHELL=" the same as just "SHELL=".
390 1999-07-09 Paul D. Smith <psmith@gnu.org>
392 * job.c (start_waiting_job): Don't get a second job token if we
393 already have one; if we're waiting on the load to go down
394 start_waiting_job() might get called twice on the same file.
396 * filedef.h (struct file): Add new field, mtime_before_update.
397 When notice_finished_file runs it assigns the cached last_mtime to
399 * remake.c (update_goal_chain): Notice that a file wasn't updated
400 by asking if it changed (g->changed) and comparing the current
401 cached time (last_mtime) with the previous one, stored in
402 mtime_before_update. The previous check ("did last_mtime changed
403 during the run of update_file?") fails for parallel builds because
404 last_mtime is set during reap_children, before update_file is run.
405 This causes update_goal_chain to always return -1 (nothing
406 rebuilt) when running parallel (-jN). This is OK during "normal"
407 builds since our caller (main) treats these cases identically in
408 that case, but if when rebuilding makefiles the difference is very
409 important, as it controls whether we re-exec or not.
410 * file.c (file_hash_enter): Copy the mtime_before_update field.
411 (snap_deps): Initialize mtime_before_update to -1.
412 * main.c (main): Initialize mtime_before_update on old (-o) and
415 1999-07-08 Paul D. Smith <psmith@gnu.org>
417 * main.c (switches): Define a new switch -R (or
418 --no-builtin-variables). This option disables the defining of all
419 the GNU make builtin variables.
420 (main): If -R was given, force -r as well.
421 * default.c (define_default_variables): Test the new flag.
422 * make.h: Declare global flag.
423 * make.texinfo (Options Summary): Document the new option.
424 (Implicit Variables): Ditto.
426 1999-07-06 Paul D. Smith <psmith@gnu.org>
428 * make.texinfo (Options Summary): Correct examples in
429 --print-data-base option summary (problem reported by David Morse
430 <morse@nichimen.com>).
432 * arscan.c: Add support for archives in Windows (VC++). Frank
433 Libbrecht <frankl@abzx.belgium.hp.com> provided info on how to do
435 * NMakefile.template (CFLAGS_any): Remove NO_ARCHIVES from the
437 * build_w32.bat: Ditto.
439 * remake.c (no_rule_error): Fix -include/sinclude so it doesn't
440 give errors if you try to -include the same file twice.
441 (updating_makefiles): New variable: we need to know this info in
442 no_rule_error() so we know whether to print an error or not.
443 (update_file_1): Unconditionally call no_rule_error(), don't try
444 to play games with the dontcare flag.
446 1999-06-14 Paul D. Smith <psmith@gnu.org>
448 * make.texinfo (Remaking Makefiles): Add a description of how to
449 prevent implicit rule searches for makefiles.
451 * make.1: Remove statement that make continues processing when -v
454 1999-06-14 Paul D. Smith <psmith@gnu.org>
456 * read.c (read_makefile): Cast -1 arguments to
457 variable_expand_string() to long. Alexandre Sauve
458 <Alexandre.SAUVE@ifp.fr> reports that without casts, this breaks
459 on a NEC SUPER-UX SX-4 system (and it's wrong without a cast
460 anyway). Of course, (a) I'd really love to start using function
461 prototypes, and (b) there's a whole slew of issues related to int
462 vs. long and signed vs. unsigned in the length handling of
463 variable buffers, etc. Gross. Needs a complete mucking-out.
464 * expand.c (variable_expand): Ditto.
466 * acinclude.m4 (AC_FUNC_SELECT): Slight enhancement for AIX 3.2 by
467 Lars Hecking <lhecking@nmrc.ucc.ie>.
469 * read.c (get_next_mword): Allow colons to be escaped in target
470 names: fix for regression failure.
472 1999-04-26 Paul D. Smith <psmith@gnu.org>
474 * main.c (main): Reset read_makefiles to empty after processing so
475 we get the right error message.
477 1999-04-25 Paul D. Smith <psmith@gnu.org>
479 * make.texinfo: Updates to @dircategory and @direntry suggested by
480 Karl Berry <karl@cs.umb.edu>.
482 1999-04-23 Eli Zaretskii <eliz@is.elta.co.il>
484 * job.c (start_job_command) [__MSDOS__]: Call unblock_sigs before
485 turning off dos_command_running, so child's signals produce the
488 * commands.c (fatal_error_signal) [__MSDOS__]: Use EXIT_FAILURE
491 1999-04-18 Eli Zaretskii <eliz@is.elta.co.il>
493 * configh.dos.template: Update to recognize that version 2.02 of
494 DJGPP contains sys_siglist stuff.
496 1999-04-14 Paul D. Smith <psmith@gnu.org>
498 * make.texinfo (Options/Recursion): Document the job server.
501 1999-04-13 Paul D. Smith <psmith@gnu.org>
503 Implement a new "job server" feature; the implementation was
504 suggested by Howard Chu <hyc@highlandsun.com>.
506 * configure.in (job-server): New disable option for job server
507 support--it's enabled by default. If it works well this will go
510 * NEWS: Summarize the new feature.
512 * acconfig.h: New definition MAKE_JOBSERVER if job server support
514 * config.h-vms.template: Undef MAKE_JOBSERVER for this port.
515 * config.h.W32.template: Ditto.
516 * config.ami.template: Ditto.
518 * main.c (struct command_switch): Add a new type: int_string.
519 (switches[]) Use int_string for -j if MAKE_JOBSERVER.
520 (init_switches): Initialize the new int_string switch type.
521 (print_usage): New function, extracted from decode_switches().
522 (decode_switches): Call it. Decode the new int_string switch type.
523 (define_makeflags): Add new int_string switch data to MAKEFLAGS.
524 (job_fds[]) Array to contain the pipe file descriptors.
525 (main): Parse the job_slots_str option results. If necessary,
526 create the pipe and seed it with tokens. Set the non-blocking bit
527 for the read fd. Enable the signal handler for SIGCHLD even if we
528 have a non-hanging wait; it's needed to interrupt the select() in
529 job.c:start_waiting_job().
531 * make.h: Declare job_fds[].
533 * job.h (struct child): Add job_token field to store the token for
536 * job.c (reap_children): When a child is fully reaped, release the
537 token back into the pipe.
538 (free_child): If the child to be freed still has a token, put it
540 (new_job): Initialize the job_token member.
541 (start_waiting_job): For local jobs, if we're using the pipe, get
542 a token before we check the load, etc. We do this by performing a
543 non-blocking read in a loop. If the read fails, no token is
544 available. Do a select on the fd to wait for a token. We need to
545 re-enable the signal handler for SIGCHLD even if we have a
546 non-hanging waitpid() or wait3(), so that the signal will
547 interrupt the select() and we can wake up to reap children.
548 (child_handler): Re-enable the signal handler. The count is still
549 kept although it's not needed or used unless you don't have
550 waitpid() or wait3().
552 1999-04-10 Paul D. Smith <psmith@gnu.org>
554 * main.c (main): Reset the considered bit on all the makefiles if
555 something failed to update; we need to examine them again if they
556 appear as normal targets in order to get the proper error message.
558 1999-04-09 Paul D. Smith <psmith@gnu.org>
560 Performance enhancement from Tim Magill <tim.magill@telops.gte.com>.
562 * remake.c (update_file): If you have large numbers of
563 dependencies and you run in parallel, make can spend considerable
564 time each pass through the graph looking at branches it has
565 already seen. Since we only reap_children() when starting a pass,
566 not in the middle, if a branch has been seen already in that pass
567 nothing interesting can happen until the next pass. So, we toggle
568 a bit saying whether we've seen this target in this pass or not.
569 (update_goal_chain): Initially set the global considered toggle to
570 1, since all targets initialize their boolean to 0. At the end of
571 each pass, toggle the global considered variable. * filedef.h
572 (struct file): Per-file considered toggle bit. * file.c: New
573 global toggle variable considered.
575 1999-04-05 Paul D. Smith <psmith@gnu.org>
577 * arscan.c (ar_scan): Added support for ARFZMAG (compressed
578 archives?) for Digital UNIX C++. Information provided by
579 Patrick E. Krogel <pekrogel@mtu.edu>.
580 (ar_member_touch): Ditto.
582 1999-04-03 Paul D. Smith <psmith@gnu.org>
584 * remake.c (f_mtime): If: a) we found a file and b) we didn't
585 create it and c) it's not marked as an implicit target and d) it
586 is marked as an intermediate target, then it was so marked due to
587 an .INTERMEDIATE special target, but it already existed in the
588 directory. In this case, unset the intermediate flag so we won't
589 delete it when make is done. It feels like it would be cleaner to
590 put this check in update_file_1() but I worry it'll get missed...
592 1999-04-01 Paul D. Smith <psmith@gnu.org>
594 * job.c (construct_command_argv_internal): Use bcopy() to copy
595 overlapping strings, rather than strcpy(). ISO C says the latter
596 is undefined. Found this in a bug report from 1996! Ouch!
598 1999-03-31 Paul D. Smith <psmith@gnu.org>
600 * read.c (readline): Ignore carriage returns at the end of the
601 line, to allow Windows-y CRLF line terminators.
603 1999-03-30 Paul D. Smith <psmith@gnu.org>
605 * configure.in: Don't put build.sh here, since build.sh.in doesn't
606 exist initially. This cause autoreconf and automake to fail when
607 run on a clean CVS checkout. Instead, we create build.sh in the
608 Makefile (see below).
610 * Makefile.am: Remove BUILT_SOURCES; this is no longer relevant.
611 Put those files directly into EXTRA_DIST so they're distributed.
612 Create a local build rule to create build.sh.
613 Create a local maintainer-clean rule to delete all the funky
616 * maintMakefile: Makefile.in depends on README, since automake
617 fails if it doesn't exist. Also don't remove glob/Makefile.in
618 here, as it causes problems.
620 1999-03-26 Paul D. Smith <psmith@gnu.org>
622 * configure.in: Substitute GLOBLIB if we need the link the
623 glob/libglob.a library.
624 * Makefile.am (make_LDADD): Use the subst variable GLOBLIB so we
625 don't link the local libglob.a at all if we don't need it.
626 * build.template: Don't compile glob/*.o unless we want globlib.
627 * maintMakefile (build.sh.in): Substitute the glob/*.o files
630 1999-03-25 Paul D. Smith <psmith@gnu.org>
632 * make.texinfo: Various typos and additions, pointed out by James
633 G. Sack <jsack@dornfeld.com>.
635 1999-03-22 Paul D. Smith <psmith@gnu.org>
637 * make.texinfo (Functions): Add a new section documenting the new
638 $(error ...) and $(warning ...) functions. Also updated copyright
640 * NEWS: Updated for the new functions.
641 * function.c (func_error): Implement the new $(error ...) and
642 $(warning ...) functions.
643 (function_table): Insert new functions into the table.
644 (func_firstword): Don't call find_next_token() with argv[0]
645 itself, since that function modifies the pointer.
646 * function.c: Cleanups and slight changes to the new method of
649 1999-03-20 Han-Wen Nienhuys <hanwen@cs.uu.nl>
651 * function.c: Rewrite to use one C function per make function,
652 instead of a huge switch statement. Also allows some cleanup of
653 multi-architecture issues, and a cleaner API which makes things
654 like func_apply() simple.
656 * function.c (func_apply): Initial implementation. Expand either
657 a builtin function or a make variable in the context of some
658 arguments, provided as $1, $2, ... $N.
660 1999-03-19 Eli Zaretskii <eliz@is.elta.co.il>
661 1999-03-19 Rob Tulloh <rob_tulloh@dev.tivoli.com>
663 * job.c (construct_command_argv_internal): Don't treat _all_
664 backslashes as escapes, only those which really escape a special
665 character. This allows most normal "\" directory separators to be
668 1999-03-05 Paul D. Smith <psmith@gnu.org>
670 * configure.in: Check for a system strdup().
671 * misc.c (xstrdup): Created. Suggestion by Han-Wen Nienhuys
673 * make.h: Prototype xstrdup().
674 * remake.c (library_search): Use it.
675 * main.c (main): Use it.
676 (find_and_set_default_shell): Use it.
677 * job.c (construct_command_argv_internal): Use it.
678 * dir.c (find_directory): Use it.
680 * Makefile.am, configure.in: Use AC_SUBST_FILE to insert the
681 maintMakefile instead of "include", to avoid automake 1.4
684 1999-03-04 Paul D. Smith <psmith@gnu.org>
686 * amiga.c, amiga.h, ar.c, arscan.c, commands.c, commands.h,
687 * default.c, dep.h, dir.c, expand.c, file.c, filedef.h, function.c,
688 * implicit.c, job.c, job.h, main.c, make.h, misc.c, read.c, remake.c
689 * remote-cstms.c, remote-stub.c, rule.h, variable.c, variable.h,
690 * vpath.c, Makefile.ami, NMakefile.template, build.template,
691 * makefile.vms: Updated FSF address in the copyright notice.
693 * variable.c (try_variable_definition): If we see a conditional
694 variable and we decide to set it, re-type it as recursive so it
695 will be expanded properly later.
697 1999-02-22 Paul D. Smith <psmith@gnu.org>
699 * NEWS: Mention new .LIBPATTERNS feature.
701 * make.texinfo (Libraries/Search): Describe the use and
702 ramifications of the new .LIBPATTERNS variable.
704 * remake.c (library_search): Instead of searching only for the
705 hardcoded expansion "libX.a" for a library reference "-lX", we
706 obtain a list of patterns from the .LIBPATTERNS variable and
707 search those in order.
709 * default.c: Added a new default variable .LIBPATTERNS. The
710 default for UNIX is "lib%.so lib%.a". Amiga and DOS values are
713 * read.c: Remove bogus HAVE_GLOB_H references; always include
716 1999-02-21 Paul D. Smith <psmith@gnu.org>
718 * function.c (expand_function): Set value to 0 to avoid freeing it.
719 * variable.c (pop_variable_scope): Free the value of the variable.
720 (try_variable_definition): For simple variables, use
721 allocated_variable_expand() to avoid stomping on the variable
722 buffer when we still need it for other things.
724 * arscan.c: Modified to support AIX 4.3 big archives. The changes
725 are based on information provided by Phil Adams
726 <padams@austin.ibm.com>; thanks!
728 1999-02-19 Paul D. Smith <psmith@gnu.org>
730 * configure.in: Check to see if the GNU glob library is already
731 installed on the system. If so, _don't_ add -I./glob to the
732 compile line. Using the system glob code with the local headers
734 Rewrite SCCS macros to use more autoconf facilities.
736 * Makefile.am: Move -Iglob out of INCLUDES; it'll get added to
737 CPPFLAGS by configure now.
738 Automake 1.4 introduced its own "include" feature which conflicts
739 with the maintMakefile stuff. A hack that seems to work is add a
740 space before the include :-/.
742 * build.template: Move -Iglob out of the compile line; it'll get
743 added to CPPFLAGS by configure now.
745 1999-02-16 Glenn D. Wolf <Glenn_Wolf@email.sps.mot.com>
747 * arscan.c (ar_scan) [VMS]: Initialized VMS_member_date before
748 calling lbr$get_index since if the archive is empty,
749 VMS_get_member_info won't get called at all, and any leftover date
750 will be used. This bug shows up if any member of any archive is
751 made, followed by a dependency check on a different, empty
754 1998-12-13 Martin Zinser <zinser@decus.decus.de>
756 * config.h-vms [VMS]: Set _POSIX_C_SOURCE. Redefine the getopt
757 functions so we don't use the broken VMS versions.
758 * makefile.com [VMS]: Allow debugging.
759 * dir.c (dir_setup_glob) [VMS]: Don't extern stat() on VMS.
761 1998-11-30 Paul D. Smith <psmith@gnu.org>
763 * signame.c (init_sig): Check the sizes of signals being set up to
764 avoid array overwrites (if the system headers have problems).
766 1998-11-17 Paul D. Smith <psmith@gnu.org>
768 * read.c (record_files): Clean up some indentation.
770 1998-11-08 Han-Wen Nienhuys <hanwen@cs.uu.nl>
772 * rule.c (print_rule_data_base): Fix arguments to fatal() call.
774 1998-10-13 Paul D. Smith <psmith@gnu.org>
776 * job.c (start_job_command): If the command list resolves to no
777 chars at all (e.g.: "foo:;$(empty)") then command_ptr is NULL;
780 1998-10-12 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
782 * rule.c (print_rule_data_base): Ignore num_pattern_rules if it is
785 1998-10-09 Paul D. Smith <psmith@gnu.org>
787 * read.c (read_makefile): Allow non-empty lines to expand to the
788 empty string after variable, etc., expansion, and be ignored.
790 1998-09-21 Paul D. Smith <psmith@gnu.org>
792 * job.c (construct_command_argv_internal): Only add COMMAND.COM
793 "@echo off" line for non-UNIXy shells.
795 1998-09-09 Paul D. Smith <psmith@gnu.org>
797 * w32/subproc/sub_proc.c: Add in missing HAVE_MKS_SHELL tests.
799 1998-09-04 Paul D. Smith <psmith@gnu.org>
801 * read.c (read_makefile): If we hit the "missing separator" error,
802 check for the common case of 8 spaces instead of a TAB and give an
803 extra comment to help people out.
805 1998-08-29 Paul Eggert <eggert@twinsun.com>
807 * configure.in (AC_STRUCT_ST_MTIM_NSEC):
808 Renamed from AC_STRUCT_ST_MTIM.
810 * acinclude.m4 (AC_STRUCT_ST_MTIM_NSEC): Likewise.
811 Port to UnixWare 2.1.2 and pedantic Solaris 2.6.
813 * acconfig.h (ST_MTIM_NSEC):
814 Renamed from HAVE_ST_MTIM, with a new meaning.
816 * filedef.h (FILE_TIMESTAMP_FROM_S_AND_NS):
817 Use new ST_MTIM_NSEC macro.
819 1998-08-26 Paul D. Smith <psmith@gnu.org>
821 * remake.c (check_dep): For any intermediate file, not just
822 secondary ones, try implicit and default rules if no explicit
823 rules are given. I'm not sure why this was restricted to
824 secondary rules in the first place.
826 1998-08-24 Paul D. Smith <psmith@gnu.org>
828 * make.texinfo (Special Targets): Update documentation for
829 .INTERMEDIATE: if used with no dependencies, then it does nothing;
830 old docs said it marked all targets as intermediate, which it
831 didn't... and which would be silly :).
833 * implicit.c (pattern_search): If we find a dependency in our
834 internal tables, make sure it's not marked intermediate before
835 accepting it as a found_file[].
837 1998-08-20 Paul D. Smith <psmith@gnu.org>
839 * ar.c (ar_glob): Use existing alpha_compare() with qsort.
840 (ar_glob_alphacompare): Remove it.
842 Modify Paul Eggert's patch so we don't abandon older systems:
844 * configure.in: Warn the user if neither waitpid() nor wait3() is
847 * job.c (WAIT_NOHANG): Don't syntax error on ancient hosts.
848 (child_handler, dead_children): Define these if WAIT_NOHANG is not
850 (reap_children): Only track the dead_children count if no
851 WAIT_NOHANG. Otherwise, it's a boolean.
853 * main.c (main): Add back signal handler if no WAIT_NOHANG is
854 available; only use default signal handler if it is.
856 1998-08-20 Paul Eggert <eggert@twinsun.com>
858 Install a more robust signal handling mechanism for systems which
861 * job.c (WAIT_NOHANG): Define to a syntax error if our host
862 is truly ancient; this should never happen.
863 (child_handler, dead_children): Remove.
864 (reap_children): Don't try to keep separate track of how many
865 dead children we have, as this is too bug-prone.
866 Just ask the OS instead.
867 (vmsHandleChildTerm): Fix typo in error message; don't mention
870 * main.c (main): Make sure we're not ignoring SIGCHLD/SIGCLD;
871 do this early, before we could possibly create a subprocess.
872 Just use the default behavior; don't have our own handler.
874 1998-08-18 Eli Zaretskii <eliz@is.elta.co.il>
876 * read.c (read_makefile) [__MSDOS__, WINDOWS32]: Add code to
877 recognize library archive members when dealing with drive spec
878 mess. Discovery and initial fix by George Racz <gracz@mincom.com>.
880 1998-08-18 Paul D. Smith <psmith@gnu.org>
882 * configure.in: Check for stdlib.h explicitly (some hosts have it
883 but don't have STDC_HEADERS).
884 * make.h: Use HAVE_STDLIB_H. Clean up some #defines.
885 * config.ami: Re-compute based on new config.h.in contents.
886 * config.h-vms: Ditto.
887 * config.h.W32: Ditto.
888 * configh.dos: Ditto.
890 * dir.c (find_directory) [WINDOWS32]: Windows stat() fails if
891 directory names end with `\' so strip it.
893 1998-08-17 Paul D. Smith <psmith@gnu.org>
895 * make.texinfo: Added copyright year to the printed copy. Removed
896 the price from the manual. Change the top-level reference to
897 running make to be "Invoking make" instead of "make Invocation",
898 to comply with GNU doc standards.
900 * make.h (__format__, __printf__): Added support for these in
902 (message, error, fatal): Use ... prototype form under __STDC__.
903 Add __format__ attributes for printf-style functions.
905 * configure.in (AC_FUNC_VPRINTF): Check for vprintf()/_doprnt().
907 * misc.c(message, error, fatal): Add preprocessor stuff to enable
908 creation of variable-argument functions with appropriate
909 prototypes, that works with ANSI, pre-ANSI, varargs.h, stdarg.h,
910 v*printf(), _doprnt(), or none of the above. Culled from GNU
911 fileutils and slightly modified.
912 (makefile_error, makefile_error): Removed (merged into error() and
913 fatal(), respectively).
916 * arscan.c: Use them.
917 * commands.c: Use them.
918 * expand.c: Use them.
920 * function.c: Use them.
925 * remake.c: Use them.
926 * remote-cstms.c: Use them.
928 * variable.c: Use them.
930 * make.h (struct floc): New structure to store file location
932 * commands.h (struct commands): Use it.
933 * variable.c (try_variable_definition): Use it.
934 * commands.c: Use it.
937 * function.c: Use it.
942 1998-08-16 Paul Eggert <eggert@twinsun.com>
944 * filedef.h (FILE_TIMESTAMP_PRINT_LEN_BOUND): Add 10, for nanoseconds.
946 1998-08-16 Paul Eggert <eggert@twinsun.com>
948 * filedef.h (FLOOR_LOG2_SECONDS_PER_YEAR): New macro.
949 (FILE_TIMESTAMP_PRINT_LEN_BOUND): Tighten bound, and try to
950 make it easier to understand.
952 1998-08-14 Paul D. Smith <psmith@gnu.org>
954 * read.c (read_makefile): We've already unquoted any colon chars
955 by the time we're done reading the targets, so arrange for
956 parse_file_seq() on the target list to not do so again.
958 1998-08-05 Paul D. Smith <psmith@gnu.org>
960 * configure.in: Added glob/configure.in data. We'll have the glob
961 code include the regular make config.h, rather than creating its
964 * getloadavg.c (main): Change return type to int.
966 1998-08-01 Paul Eggert <eggert@twinsun.com>
968 * job.c (reap_children): Ignore unknown children.
970 1998-07-31 Paul D. Smith <psmith@gnu.org>
972 * make.h, filedef.h, dep.h, rule.h, commands.h, remake.c:
973 Add prototypes for functions. Some prototypes needed to be moved
974 in order to get #include order reasonable.
976 1998-07-30 Paul D. Smith <psmith@gnu.org>
978 * make.h: Added MIN/MAX.
979 * filedef.h: Use them; remove FILE_TIMESTAMP_MIN.
981 1998-07-30 Paul Eggert <eggert@twinsun.com>
983 Add support for sub-second timestamp resolution on hosts that
984 support it (just Solaris 2.6, so far).
986 * acconfig.h (HAVE_ST_MTIM, uintmax_t): New undefs.
987 * acinclude.m4 (jm_AC_HEADER_INTTYPES_H, AC_STRUCT_ST_MTIM,
988 jm_AC_TYPE_UINTMAX_T): New defuns.
989 * commands.c (delete_target): Convert file timestamp to
990 seconds before comparing to archive timestamp. Extract mod
991 time from struct stat using FILE_TIMESTAMP_STAT_MODTIME.
992 * configure.in (C_STRUCT_ST_MTIM, jm_AC_TYPE_UINTMAX_T): Add.
993 (AC_CHECK_LIB, AC_CHECK_FUNCS): Add clock_gettime.
994 * file.c (snap_deps): Use FILE_TIMESTAMP, not time_t.
995 (file_timestamp_now, file_timestamp_sprintf): New functions.
996 (print_file): Print file timestamps as FILE_TIMESTAMP, not
998 * filedef.h: Include <inttypes.h> if available and if HAVE_ST_MTIM.
999 (FILE_TIMESTAMP, FILE_TIMESTAMP_STAT_MODTIME, FILE_TIMESTAMP_MIN,
1000 FILE_TIMESTAMPS_PER_S, FILE_TIMESTAMP_FROM_S_AND_NS,
1001 FILE_TIMESTAMP_DIV, FILE_TIMESTAMP_MOD, FILE_TIMESTAMP_S,
1002 FILE_TIMESTAMP_NS, FILE_TIMESTAMP_PRINT_LEN_BOUND): New macros.
1003 (file_timestamp_now, file_timestamp_sprintf): New decls.
1004 (struct file.last_mtime, f_mtime, file_mtime_1, NEW_MTIME):
1005 time_t -> FILE_TIMESTAMP.
1006 * implicit.c (pattern_search): Likewise.
1007 * vpath.c (vpath_search, selective_vpath_search): Likewise.
1008 * main.c (main): Likewise.
1009 * remake.c (check_dep, name_mtime, library_search, f_mtime): Likewise.
1010 (f_mtime): Use file_timestamp_now instead of `time'.
1011 Print file timestamp with file_timestamp_sprintf.
1012 * vpath.c (selective_vpath_search): Extract file time stamp from
1013 struct stat with FILE_TIMESTAMP_STAT_MODTIME.
1015 1998-07-28 Paul D. Smith <psmith@gnu.org>
1017 * Version 3.77 released.
1019 * dosbuild.bat: Change to DOS CRLF line terminators.
1021 * make-stds.texi: Update from latest version.
1023 * make.texinfo (Options Summary): Clarify that the -r option
1024 affects only rules, not builtin variables.
1026 1998-07-27 Paul D. Smith <psmith@gnu.org>
1028 * make.h: Make __attribute__ resolve to empty for non-GCC _and_
1031 * misc.c (log_access): Print UID/GID's as unsigned long int for
1032 maximum portability.
1034 * job.c (reap_children): Print PIDs as long int for maximum
1037 1998-07-24 Eli Zaretskii <eliz@is.elta.co.il>
1039 * Makefile.DOS (*_INSTALL, *_UNINSTALL): Replace `true' with `:'.
1041 1998-07-25 Paul D. Smith <psmith@gnu.org>
1043 * Version 3.76.94 released.
1045 1998-07-23 Paul D. Smith <psmith@gnu.org>
1047 * config.h.W32.template: Make sure all the #defines of macros here
1048 have a value (e.g., use ``#define HAVE_STRING_H 1'' instead of
1049 just ``#define HAVE_STRING_H''. Keeps the preprocessor happy in
1052 * make.h: Remove __attribute__((format...)) stuff; using it with
1053 un-prototyped functions causes older GCC's to fail.
1055 * Version 3.76.93 released.
1057 1998-07-22 Paul D. Smith <psmith@gnu.org>
1059 * file.c (print_file_data_base): Fix average calculation.
1061 1998-07-20 Paul D. Smith <psmith@gnu.org>
1063 * main.c (die): Postpone the chdir() until after
1064 remove_intermediates() so that intermediate targets with relative
1065 pathnames are removed properly.
1067 1998-07-17 Paul D. Smith <psmith@gnu.org>
1069 * filedef.h (struct file): New flag: did we print an error or not?
1071 * remake.c (no_rule_error): New function to print error messages,
1072 extraced from remake_file().
1074 * remake.c (remake_file): Invoke the new error print function.
1075 (update_file_1): Invoke the error print function if we see that we
1076 already tried this target and it failed, but that an error wasn't
1077 printed for it. This can happen if a file is included with
1078 -include or sinclude and couldn't be built, then later is also
1079 the dependency of another target. Without this change, make just
1082 1998-07-16 Paul D. Smith <psmith@gnu.org>
1084 * make.texinfo: Removed "beta" version designator.
1085 Updated ISBN for the next printing.
1087 1998-07-13 Paul Eggert <eggert@twinsun.com>
1089 * acinclude.m4: New AC_LFS macro to determine if special compiler
1090 flags are needed to allow access to large files (e.g., Solaris 2.6).
1091 * configure.in: Invoke it.
1093 1998-07-08 Eli Zaretskii <eliz@is.elta.co.il>
1095 * Makefile.DOS: track changes in Makefile.in.
1097 1998-07-07 Paul D. Smith <psmith@gnu.org>
1099 * remote-cstms.c (start_remote_job): Move gethostbyaddr() to the
1100 top so host is initialized early enough.
1102 * acinclude.m4: New file. Need some special autoconf macros to
1103 check for network libraries (-lsocket, -lnsl, etc.) when
1104 configuring Customs.
1106 * configure.in (make_try_customs): Invoke new network libs macro.
1108 1998-07-06 Paul D. Smith <psmith@gnu.org>
1110 * Version 3.76.92 released.
1112 * README.customs: Added to the distribution.
1114 * configure.in (make_try_customs): Rewrite to require an installed
1115 Customs library, rather than looking at the build directory.
1117 * Makefile.am (man_MANS): Install make.1.
1118 * make.1: Renamed from make.man.
1120 * make.texinfo (Bugs): New mailing list address for GNU make bug
1123 1998-07-02 Paul D. Smith <psmith@gnu.org>
1125 * Version 3.76.91 released.
1127 * default.c: Added default rule for new-style RCS master file
1128 storage; ``% :: RCS/%''.
1129 Added default rules for DOS-style C++ files with suffix ".cpp".
1130 They use the new LINK.cpp and COMPILE.cpp macros, which are set by
1131 default to be equal to LINK.cc and COMPILE.cc.
1133 1998-06-19 Eli Zaretskii <eliz@is.elta.co.il>
1135 * job.c (start_job_command): Reset execute_by_shell after an empty
1136 command was skipped.
1138 1998-06-09 Paul D. Smith <psmith@gnu.org>
1140 * main.c (main): Keep track of the temporary filename created when
1141 reading a makefile from stdin (-f-) and attempt to remove it
1142 as soon as we know we're not going to re-exec. If we are, add it
1143 to the exec'd make's cmd line with "-o" so the exec'd make doesn't
1144 try to rebuild it. We still have a hole: if make re-execs then
1145 the temporary file will never be removed. To fix this we'd need
1146 a brand new option that meant "really delete this".
1147 * AUTHORS, getopt.c, getopt1.c, getopt.h, main.c (print_version):
1148 Updated mailing addresses.
1150 1998-06-08 Paul D. Smith <psmith@gnu.org>
1152 * main.c (main): Andreas Luik <luik@isa.de> points out that the
1153 check for makefile :: rules with commands but no dependencies
1154 causing a loop terminates incorrectly.
1156 * maintMakefile: Make a template for README.DOS to update version
1159 1998-05-30 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1161 * remake.c (update_file_1): Don't free the memory for the
1162 dependency structure when dropping a circular dependency.
1164 1998-05-30 Eli Zaretskii <eliz@is.elta.co.il>
1166 * dir.c (file_exists_p, file_impossible_p, file_impossible)
1167 [__MSDOS__, WINDOWS32]: Retain trailing slash in "d:/", and make
1168 dirname of "d:foo" be "d:".
1170 1998-05-26 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1172 * read.c (read_makefile): Avoid running past EOS when scanning
1173 file name after `include'.
1175 1998-05-26 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1177 * make.texinfo (Flavors): Correct description of conditional
1178 assignment, which is not equivalent to ifndef.
1179 (Setting): Likewise.
1181 1998-05-24 Paul D. Smith <psmith@gnu.org>
1183 * arscan.c (ar_name_equal): strncmp() might be implemented as a
1184 macro, so don't put preprocessor conditions inside the arguments
1187 1998-05-23 Eli Zaretskii <eliz@is.elta.co.il>
1189 * read.c (read_makefile) [__MSDOS__, WINDOWS32]: Skip colons in
1190 drive specs when parsing targets, target-specific variables and
1191 static pattern rules. A colon can only be part of drive spec if
1192 it is after the first letter in a token.
1194 1998-05-22 Eli Zaretskii <eliz@is.elta.co.il>
1196 * remake.c (f_mtime) [__MSDOS__]: Allow up to 3 sec of skew before
1197 yelling bloody murder.
1199 * dosbuild.bat: Use -DINCLUDEDIR= and -DLIBDIR= where appropriate.
1201 * read.c (parse_file_seq): Combine the special file-handling code
1202 for WINDOWS32 and __MSDOS__ into a single snippet.
1203 (get_next_mword) [__MSDOS__, WINDOWS32]: Allow a word to include a
1204 colon as part of a drive spec.
1206 * job.c (batch_mode_shell) [__MSDOS__]: Declare.
1208 1998-05-20 Paul D. Smith <psmith@gnu.org>
1210 * Version 3.76.90 released.
1212 1998-05-19 Paul D. Smith <psmith@gnu.org>
1214 * make.texinfo (Make Errors): Added a new appendix describing
1215 common errors make might generate and how to resolve them (or at
1216 least more information on what they mean).
1218 * maintMakefile (NMAKEFILES): Use the new automake 1.3 feature
1219 to create a dependency file to construct Makefile.DOS, SMakefile,
1221 (.dep_segment): Generate the dependency fragment file.
1223 1998-05-14 Paul D. Smith <psmith@gnu.org>
1225 * make.man: Minor changes.
1227 1998-05-13 Paul D. Smith <psmith@gnu.org>
1229 * function.c (pattern_matches,expand_function): Change variables
1230 and types named "word" to something else, to avoid compilation
1231 problems on Cray C90 Unicos.
1232 * variable.h: Modify the function prototype.
1234 1998-05-11 Rob Tulloh <rob_tulloh@tivoli.com>
1236 * job.c (construct_command_argv_internal) [WINDOWS32]: Turn off
1237 echo when using a batch file, and make sure the command ends in a
1240 1998-05-03 Paul D. Smith <psmith@gnu.org>
1242 * configure.in (make_try_customs): Add some customs flags if the
1243 user configures custom support.
1245 * job.c, remote-cstms.c: Merge in changes for custom library.
1247 * remote-stub.c: Add option to stub start_remote_job_p().
1249 1998-05-01 Paul D. Smith <psmith@gnu.org>
1251 * remake.c (f_mtime): Install VPATH+ handling for archives; use
1252 the hname field instead of the name field, and rehash when
1255 1998-04-30 Paul D. Smith <psmith@gnu.org>
1257 * rule.c (print_rule_data_base): Print out any pattern-specific
1258 variable values into the rules database.
1260 * variable.c (print_variable_set): Make this variable extern, to
1261 be called by print_rule_data_base() for pattern-specific variables.
1263 * make.texinfo (Pattern-specific): Document pattern-specific
1266 1998-04-29 Paul D. Smith <psmith@gnu.org>
1268 * expand.c (variable_expand_for_file): Make static; its only
1269 called internally. Look up this target in the list of
1270 pattern-specific variables and insert the variable set into the
1271 queue to be searched.
1273 * filedef.h (struct file): Add a new field to hold the
1274 previously-found pattern-specific variable reference. Add a new
1275 flag to remember whether we already searched for this file.
1277 * rule.h (struct pattern_var): New structure for storing
1278 pattern-specific variable values. Define new function prototypes.
1280 * rule.c: New variables pattern_vars and last_pattern_var for
1281 storage and handling of pattern-specific variable values.
1282 (create_pattern_var): Create a new pattern-specific variable value
1284 (lookup_pattern_var): Try to match a target to one of the
1285 pattern-specific variable values.
1287 1998-04-22 Paul D. Smith <psmith@gnu.org>
1289 * make.texinfo (Target-specific): Document target-specific
1292 1998-04-21 Paul D. Smith <psmith@gnu.org>
1294 * variable.c (define_variable_in_set): Made globally visible.
1295 (lookup_variable_in_set): New function: like lookup_variable but
1296 look only in a specific variable set.
1297 (target_environment): Use lookup_variable_in_set() to get the
1298 correct export rules for a target-specific variable.
1299 (create_new_variable_set): Create a new variable set, and just
1300 return it without installing it anywhere.
1301 (push_new_variable_scope): Reimplement in terms of
1302 create_new_variable_set.
1304 * read.c (record_target_var): Like record_files, but instead of
1305 files create a target-specific variable value for each of the
1306 listed targets. Invoked from read_makefile() when the target line
1307 turns out to be a target-specific variable assignment.
1309 1998-04-19 Paul D. Smith <psmith@gnu.org>
1311 * read.c (read_makefile): Rewrite the entire target parsing
1312 section to implement target-specific variables. In particular, we
1313 cannot expand the entire line as soon as it's read in, since we
1314 may want to evaluate parts of it with different variable contexts
1315 active. Instead, start expanding from the beginning until we find
1316 the `:' (or `::'), then determine what kind of line this is and
1317 continue appropriately.
1319 * read.c (get_next_mword): New function to parse a makefile line
1320 by "words", considering an entire variable or function as one
1321 word. Return the type read in, along with its starting position
1323 (enum make_word_type): The types of words that are recognized by
1326 * variable.h (struct variable): Add a flag to specify a per-target
1329 * expand.c: Make variable_buffer global. We need this during the
1330 new parsing of the makefile.
1331 (variable_expand_string): New function. Like variable_expand(),
1332 but start at a specific point in the buffer, not the beginning.
1333 (variable_expand): Rewrite to simply call variable_expand_string().
1335 1998-04-13 Paul D. Smith <psmith@gnu.org>
1337 * remake.c (update_goal_chain): Allow the rebuilding makefiles
1338 step to use parallel jobs. Not sure why this was disabled:
1339 hopefully we won't find out :-/.
1341 1998-04-11 Paul D. Smith <psmith@gnu.org>
1343 * main.c (main): Set the CURDIR makefile variable.
1344 * make.texinfo (Recursion): Document it.
1346 1998-03-17 Paul D. Smith <psmith@gnu.org>
1348 * misc.c (makefile_fatal): If FILE is nil, invoke plain fatal().
1349 * variable.c (try_variable_definition): Use new feature.
1351 1998-03-10 Paul D. Smith <psmith@gnu.org>
1353 * main.c (main): Don't pass included, rebuilt makefiles to
1354 re-exec'd makes with -o. Reopens a possible loop, but it caused
1357 1998-03-02 Paul D. Smith <psmith@gnu.org>
1359 * variable.c (try_variable_definition): Implement ?=.
1360 * make.texinfo (Setting): Document it.
1362 1998-02-28 Eli Zaretskii <eliz@is.elta.co.il>
1364 * job.c (start_job_command): Reset execute_by_shell after an empty
1365 command, like ":", has been seen.
1367 Tue Oct 07 15:00:00 1997 Phil Brooks <phillip_brooks@hp.com>
1369 * make.h [WINDOWS32]: make case sensitivity configurable
1370 * dir.c [WINDOWS32]: make case sensitivity configurable
1371 * README.W32: Document case sensitivity
1372 * config.ami: Share case warping code with Windows
1374 Mon Oct 6 18:48:45 CDT 1997 Rob Tulloh <rob_tulloh@dev.tivoli.com>
1376 * w32/subproc/sub_proc.c: Added support for MKS toolkit shell
1377 (turn on HAVE_MKS_SHELL).
1378 * read.c [WINDOWS32]: Fixed a problem with multiple target rules
1379 reported by Gilbert Catipon (gcatipon@tibco.com). If multiple
1380 path tokens in a rule did not have drive letters, make would
1381 incorrectly concatenate the 2 tokens together.
1382 * main.c/variable.c [WINDOWS32]: changed SHELL detection code to
1383 follow what MSDOS did. In addition to watching for SHELL variable
1384 updates, make's main will attempt to default the value of SHELL
1385 before and after makefiles are parsed.
1386 * job.c/job.h [WINDOWS32]: The latest changes made to enable use
1387 of the GNUWIN32 shell from make could cause make to fail due to a
1388 concurrency condition between parent and child processes. Make
1389 now creates a batch file per job instead of trying to reuse the
1390 same singleton batch file.
1391 * job.c/job.h/function.c/config.h.W32 [WINDOWS32]: Renamed macro
1392 from HAVE_CYGNUS_GNUWIN32_TOOLS to BATCH_MODE_ONLY_SHELL. Reworked
1393 logic to reduce complexity. WINDOWS32 now uses the unixy_shell
1394 variable to detect Bourne-shell compatible environments. There is
1395 also a batch_mode_shell variable that determines whether not
1396 command lines should be executed via script files. A WINDOWS32
1397 system with no sh.exe installed would have unixy_shell set to
1398 FALSE and batch_mode_shell set to TRUE. If you have a unixy shell
1399 that does not behave well when invoking things via 'sh -c xxx',
1400 you may want to turn on BATCH_MODE_ONLY_SHELL and see if things
1402 * NMakefile: Added /D DEBUG to debug build flags so that unhandled
1403 exceptions could be debugged.
1405 Mon Oct 6 00:04:25 1997 Rob Tulloh <rob_tulloh@dev.tivoli.com>
1407 * main.c [WINDOWS32]: The function define_variable() does not
1408 handle NULL. Test before calling it to set Path.
1409 * main.c [WINDOWS32]: Search Path again after makefiles have been
1410 parsed to detect sh.exe.
1411 * job.c [WINDOWS32]: Added support for Cygnus GNU WIN32 tools.
1412 To use, turn on HAVE_CYGNUS_GNUWIN32_TOOLS in config.h.W32.
1413 * config.h.W32: Added HAVE_CYGNUS_GNUWIN32_TOOLS macro.
1415 Sun Oct 5 22:43:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
1417 * glob/glob.c (glob_in_dir) [VMS]: Globbing shouldn't be
1419 * job.c (child_execute_job) [VMS]: Use a VMS .com file if the
1420 command contains a newline (e.g. from a define/enddef block).
1421 * vmsify.c (vmsify): Return relative pathnames wherever possible.
1422 * vmsify.c (vmsify): An input string like "../.." returns "[--]".
1424 Wed Oct 1 15:45:09 1997 Rob Tulloh <rob_tulloh@tivoli.com>
1426 * NMakefile: Changed nmake to $(MAKE).
1427 * subproc.bat: Take the make command name from the command
1428 line. If no command name was given, default to nmake.
1429 * job.c [MSDOS, WINDOWS32]: Fix memory stomp: temporary file names
1430 are now always created in heap memory.
1431 * w32/subproc/sub_proc.c: New implementation of make_command_line()
1432 which is more compatible with different Bourne shell implementations.
1433 Deleted the now obsolete fix_command_line() function.
1434 * main.c [WINDOWS32]: Any arbitrary spelling of Path can be
1435 detected. Make will ensure that the special spelling `Path' is
1436 inserted into the environment when the path variable is propagated
1437 within itself and to make's children.
1438 * main.c [WINDOWS32]: Detection of sh.exe was occurring too
1439 soon. The 2nd check for the existence of sh.exe must come after
1440 the call to read_all_makefiles().
1442 Fri Sep 26 01:14:18 1997 <zinser@axp602.gsi.de>
1444 * makefile.com [VMS]: Fixed definition of sys.
1445 * readme.vms: Comments on what's changed lately.
1447 Fri Sep 26 01:14:18 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
1449 * read.c (read_all_makefiles): Allow make to find files named
1450 "MAKEFILE" with no extension on VMS.
1451 * file.c (lookup_file): Lowercase filenames on VMS.
1453 1997-09-29 Paul D. Smith <psmith@baynetworks.com>
1455 * read.c (read_makefile): Reworked target detection again; the old
1456 version had an obscure quirk.
1458 Fri Sep 19 09:20:49 1997 Paul D. Smith <psmith@baynetworks.com>
1460 * Version 3.76.1 released.
1462 * Makefile.am: Add loadavg files to clean rules.
1464 * configure.in (AC_OUTPUT): Remove stamp-config; no longer needed.
1465 * Makefile.ami (distclean): Ditto.
1466 * SMakefile (distclean): Ditto.
1468 * main.c (main): Arg count should be int, not char! Major braino.
1470 Tue Sep 16 10:18:22 1997 Paul D. Smith <psmith@baynetworks.com>
1472 * Version 3.76 released.
1474 Tue Sep 2 10:07:39 1997 Paul D. Smith <psmith@baynetworks.com>
1476 * function.c (expand_function): When processing $(shell...)
1477 translate a CRLF (\r\n) sequence as well as a newline (\n) to a
1478 space. Also remove an ending \r\n sequence.
1479 * make.texinfo (Shell Function): Document it.
1481 Fri Aug 29 12:59:06 1997 Rob Tulloh <rob_tulloh@tivoli.com>
1483 * w32/pathstuff.c (convert_Path_to_windows32): Fix problem where
1484 paths which contain single character entries like `.' are not
1487 * README.W32: Document path handling issues on Windows systems.
1489 Fri Aug 29 02:01:27 1997 Paul D. Smith <psmith@baynetworks.com>
1493 Thu Aug 28 19:39:06 1997 Rob Tulloh <rob_tulloh@tivoli.com>
1495 * job.c (exec_command) [WINDOWS32]: If exec_command() is invoked
1496 from main() to re-exec make, the call to execvp() would
1497 incorrectly return control to parent shell before the exec'ed
1498 command could run to completion. I believe this is a feature of
1499 the way that execvp() is implemented on top of WINDOWS32 APIs. To
1500 alleviate the problem, use the supplied process launch function in
1501 the sub_proc library and suspend the parent process until the
1502 child process has run. When the child exits, exit the parent make
1503 with the exit code of the child make.
1505 Thu Aug 28 17:04:47 1997 Paul D. Smith <psmith@baynetworks.com>
1507 * Makefile.DOS.template (distdir): Fix a line that got wrapped in
1510 * Makefile.am (loadavg): Give the necessary cmdline options when
1513 * configure.in: Check for pstat_getdynamic for getloadvg on HP.
1515 * job.c (start_job_command) [VMS, _AMIGA]: Don't perform empty
1516 command optimization on these systems; it doesn't make sense.
1518 Wed Aug 27 17:09:32 1997 Paul D. Smith <psmith@baynetworks.com>
1522 Tue Aug 26 11:59:15 1997 Paul D. Smith <psmith@baynetworks.com>
1524 * main.c (print_version): Add '97 to copyright years.
1526 * read.c (do_define): Check the length of the array before looking
1527 at a particular offset.
1529 * job.c (construct_command_argv_internal): Examine the last byte
1530 of the previous arg, not the byte after that.
1532 Sat Aug 23 1997 Eli Zaretskii <eliz@is.elta.co.il>
1534 * Makefile.DOS.template: New file (converted to Makefile.DOS in
1537 * configure.bat: Rewrite to use Makefile.DOS instead of editing
1538 Makefile.in. Add support for building from outside of the source
1539 directory. Fail if the environment block is too small.
1541 * configh.dos: Use <sys/config.h>.
1543 * README.DOS: Update instructions.
1545 Fri Aug 22 1997 Eli Zaretskii <eliz@is.elta.co.il>
1547 * job.c (start_job_command) [__MSDOS__]: Don't test for "/bin/sh"
1548 literally, use value of unixy_shell instead.
1550 * filedef.h (NEW_MTIME): Use 1 less than maximum possible value if
1553 Sat Aug 16 00:56:15 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
1555 * vmsify.c (vmsify, case 11): After translating `..' elements, set
1556 nstate to N_OPEN if there are still more elements to process.
1557 (vmsify, case 2): After translating `foo/bar' up to the slash,
1558 set nstate to N_OPEN, not N_DOT.
1560 Fri Aug 8 15:18:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
1562 * dir.c (vmsstat_dir): Leave name unmodified on exit.
1563 * make.h (PATH_SEPARATOR_CHAR): Set to comma for VMS.
1564 * vpath.c: Fix comments to refer to path separator, not colon.
1565 (selective_vpath_search): Avoid Unixy slash handling for VMS.
1567 Thu Aug 7 22:24:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
1569 * ar.c [VMS]: Don't declare ar_member_touch.
1570 Delete VMS version of ar_member_date.
1571 Enable non-VMS versions of ar_member_date and ar_member_date_1 for
1573 * arscan.c (VMS_get_member_info): New function.
1574 (ar_scan): Provide version for VMS systems.
1575 (ar_name_equal): Simply compare name and mem on VMS systems.
1576 Don't define ar_member_pos or ar_member_touch on VMS systems.
1578 * config.h-vms (pid_t, uid_t): Don't define.
1580 * remake.c: Delete declaration of vms_stat.
1581 (name_mtime): Don't call vms_stat.
1582 (f_mtime) [VMS]: Funky time value manipulation no longer necessary.
1584 * file.c (print_file): [VMS] Use ctime, not cvt_time.
1586 * make.h [VMS]: Don't define POSIX.
1588 * makefile.com (filelist): Include ar and arscan.
1589 Also include them in the link commands.
1590 Don't define NO_ARCHIVES in cc command.
1592 * makefile.vms (ARCHIVES, ARCHIVES_SRC): Uncomment.
1593 (defines): Delete NO_ARCHIVES from list.
1595 * remake.c (f_mtime): Only check to see if intermediate file is
1596 out of date if it also exists (i.e., mtime != (time_t) -1).
1598 * vmsdir.h (u_long, u_short): Skip typedefs if using DEC C.
1600 Fri Jun 20 23:02:07 1997 Rob Tulloh <rob_tulloh@tivoli.com>
1602 * w32/subproc/sub_proc.c: Get W32 sub_proc to handle shebang
1603 (#!/bin/sh) in script files correctly.
1604 Fixed a couple of memory leaks.
1605 Fixed search order in find_file() (w32/subproc/sub_proc.c) so that
1606 files with extensions are preferred over files without extensions.
1607 Added search for files with .cmd extension too.
1608 * w32/subproc/misc.c (arr2envblk): Fixed memory leak.
1610 Mon Aug 18 09:41:08 1997 Paul D. Smith <psmith@baynetworks.com>
1614 Fri Aug 15 13:50:54 1997 Paul D. Smith <psmith@baynetworks.com>
1616 * read.c (do_define): Remember to count the newline after the endef.
1618 Thu Aug 14 23:14:37 1997 Paul D. Smith <psmith@baynetworks.com>
1620 * many: Rewrote builds to use Automake 1.2.
1622 * AUTHORS: New file.
1623 * maintMakefile: Contains maintainer-only make snippets.
1624 * GNUmakefile: This now only runs the initial auto* tools.
1625 * COPYING,texinfo.tex,mkinstalldirs,install-sh: Removed (obtained
1626 automatically by automake).
1627 * compatMakefile: Removed (not needed anymore).
1628 * README,build.sh.in: Removed (built from templates).
1629 * config.h.in,Makefile.in: Removed (built by tools).
1631 Wed Aug 13 02:22:08 1997 Paul D. Smith <psmith@baynetworks.com>
1633 * make.texinfo: Updates for DOS/Windows information (Eli Zaretskii)
1634 * README,README.DOS: Ditto.
1636 * remake.c (update_file_1,f_mtime): Fix GPATH handling.
1637 * vpath.c (gpath_search): Ditto.
1639 * file.c (rename_file): New function: rehash, but also rename to
1641 * filedef.h: Declare it.
1643 * variable.c (merge_variable_set_lists): Remove free() of variable
1644 set; since various files can share variable sets we don't want to
1647 Tue Aug 12 10:51:54 1997 Paul D. Smith <psmith@baynetworks.com>
1649 * configure.in: Require autoconf 2.12
1651 * make.texinfo: Replace all "cd subdir; $(MAKE)" examples with a
1652 more stylistically correct "cd subdir && $(MAKE)".
1654 * main.c: Global variable `clock_skew_detected' defined.
1655 (main): Print final warning if it's set.
1656 * make.h: Declare it.
1657 * remake.c (f_mtime): Test and set it.
1659 * job.c (start_job_command): Add special optimizations for
1660 "do-nothing" rules, containing just the shell no-op ":". This is
1661 useful for timestamp files and can make a real difference if you
1662 have a lot of them (requested by Fergus Henderson <fjh@cs.mu.oz.au>).
1664 * configure.in,Makefile.in: Rewrote to use the new autoconf
1665 program_transform_name macro.
1667 * function.c (function_strip): Strip newlines as well as spaces
1670 Fri Jun 6 23:41:04 1997 Rob Tulloh <rob_tulloh@tivoli.com>
1672 * remake.c (f_mtime): Datestamps on FAT-based files are rounded to
1673 even seconds when stored, so if the date check fails on WINDOWS32
1674 systems, see if this "off-by-one" error is the problem.
1676 * General: If your TZ environment variable is not set correctly
1677 then all your timestamps will be off by hours. So, set it!
1679 Mon Apr 7 02:06:22 1997 Paul D. Smith <psmith@baynetworks.com>
1683 * compatMakefile (objs): Define & use the $(GLOB) variable so
1684 that it's removed correctly from build.sh.in when it's built.
1686 * configure.in: On Solaris we can use the kstat_*() functions to
1687 get load averages without needing special permissions. Add a
1688 check for -lkstat to see if we have it.
1690 * getloadavg.c (getloadavg): Use HAVE_LIBKSTAT instead of SUN5 as
1691 the test to enable kstat_open(), etc. processing.
1693 Fri Apr 4 20:21:18 1997 Eli Zaretskii <eliz@is.elta.co.il>
1695 * <lots>: Fixes to work in the DJGPP DOS environment.
1697 Mon Mar 31 02:42:52 1997 Paul D. Smith <psmith@baynetworks.com>
1699 * function.c (expand_function): Added new function $(wordlist).
1701 * make.texinfo (Filename Functions): Document $(wordlist) function.
1703 * vpath.c (build_vpath_lists): Construct the GPATH variable
1704 information in the same manner we used to construct VPATH.
1705 (gpath_search): New function to search GPATH.
1707 * make.h: Declare the new function.
1709 * remake.c (update_file_1): Call it, and keep VPATH if it's found.
1711 * make.texinfo (Search Algorithm): Document GPATH variable.
1713 Sun Mar 30 20:57:16 1997 Paul D. Smith <psmith@baynetworks.com>
1715 * main.c (handle_non_switch_argument): Defined the MAKECMDGOALS
1716 variable to contain the user options passed in on the cmd line.
1718 * make.texinfo (Goals): Document MAKECMDGOALS variable.
1720 * remake.c (f_mtime): Print a warning if we detect a clock skew
1721 error, rather than failing.
1723 * main.c (main): If we rebuild any makefiles and need to re-exec,
1724 add "-o<mkfile>" options for each makefile rebuilt to avoid
1727 Fri Mar 28 15:26:05 1997 Paul D. Smith <psmith@baynetworks.com>
1729 * job.c (construct_command_argv_internal): Track whether the last
1730 arg in the cmd string was empty or not (Roland).
1731 (construct_command_argv_internal): If the shell line is empty,
1732 don't do anything (Roland).
1734 * glob/glob.h,glob/glob.c,glob/fnmatch.c,glob/fnmatch.h: Install
1735 the latest changes from the GLIBC version of glob (Ulrich Drepper).
1737 * getloadavg.c,make-stds.texi: New version (Roland).
1739 * (ALL): Changed WIN32 to W32 or WINDOWS32 (RMS).
1741 Mon Mar 24 15:33:34 1997 Rob Tulloh <rob_tulloh@tivoli.com>
1743 * README.W32: Describe preliminary FAT support.
1745 * build_w32.bat: Use a variable for the final exe name.
1747 * dir.c (find_directory): W32: Find the filesystem type.
1748 (dir_contents_file_exists_p): W32: for FAT filesystems, always
1749 rehash since FAT doesn't change directory mtime on change.
1751 * main.c (handle_runtime_exceptions): W32: Add an
1752 UnhandledExceptionFilter so that when make bombs due to ^C or a
1753 bug, it won't cause a GUI requestor to pop up unless debug is
1757 Mon Mar 24 00:57:34 1997 Paul D. Smith <psmith@baynetworks.com>
1759 * configure.in, config.h.in, config.ami, config.h-vms, config.h.w32:
1760 Check for memmove() function.
1762 * make.h (bcopy): If memmove() available, define bcopy() to use it.
1763 Otherwise just use bcopy(). Don't use memcpy(); it's not guaranteed
1764 to handle overlapping moves.
1766 * read.c (read_makefile): Fix some uninitialized memory reads
1767 (reported by Purify).
1769 * job.c (construct_command_argv_internal): Use bcopy() not
1770 strcpy(); strcpy() isn't guaranteed to handle overlapping moves.
1772 * Makefile.in: Change install-info option ``--infodir'' to
1773 ``--info-dir'' for use with new texinfo.
1775 * function.c (expand_function): $(basename) and $(suffix) should
1776 only search for suffixes as far back as the last directory (e.g.,
1777 only the final filename in the path).
1779 Sun Mar 23 00:13:05 1997 Paul D. Smith <psmith@baynetworks.com>
1781 * make.texinfo: Add @dircategory/@direntry information.
1782 (Top): Remove previous reference to (dir) (from RMS).
1783 (Static Usage): Add "all:" rule to example.
1784 (Automatic Dependencies): fix .d file creation example.
1786 * Install VPATH+ patch:
1788 * filedef.h (struct file): Add in hname field to store the hashed
1789 filename, and a flag to remember if we're using the vpath filename
1790 or not. Renamed a few functions for more clarity.
1792 * file.c (lookup_file,enter_file,file_hash_enter): Store filenames
1793 in the hash table based on their "hash name". We can change this
1794 while keeping the original target in "name".
1795 (rehash_file): Renamed from "rename_file" to be more accurate.
1796 Changes the hash name, but not the target name.
1798 * remake.c (update_file_1): Modify -d output for more detailed
1799 VPATH info. If we don't need to rebuild, use the VPATH name.
1800 (f_mtime): Don't search for vpath if we're ignoring it. Call
1801 renamed function rehash_file. Call name_mtime instead of
1802 file_mtime, to avoid infinite recursion since the file wasn't
1805 * implicit.c (pattern_search): if we find an implicit file in
1806 VPATH, save the original name not the VPATH name.
1808 * make.texinfo (Directory Search): Add a section on the new VPATH
1811 Sun Dec 1 18:36:04 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1813 * dir.c (file_exists_p, file_impossible, file_impossible_p): If
1814 dirname is empty replace it by the name of the root directory.
1815 Note that this doesn't work (yet) for W32, Amiga, or VMS.
1817 Tue Oct 08 13:57:03 1996 Rob Tulloh <tulloh@tivoli.com>
1819 * main.c (main): W32 bug fix for PATH vars.
1821 Tue Sep 17 1996 Paul Eggert <eggert@twinsun.com>
1823 * filedef.h (NEW_MTIME): Don't assume that time_t is a signed
1826 * make.h: (CHAR_BIT, INTEGER_TYPE_SIGNED, INTEGER_TYPE_MAXIMUM,
1827 INTEGER_TYPE_MINIMUM): New macros.
1829 Tue Aug 27 01:06:34 1996 Roland McGrath <roland@baalperazim.frob.com>
1831 * Version 3.75 released.
1833 * main.c (print_version): Print out bug-reporting address.
1835 Mon Aug 26 19:55:47 1996 Roland McGrath <roland@baalperazim.frob.com>
1837 * main.c (print_data_base): Don't declare ctime; headers do it for us
1840 Sun Jul 28 15:37:09 1996 Rob Tulloh (tulloh@tivoli.com)
1842 * w32/pathstuff.c: Turned convert_vpath_to_w32() into a
1843 real function. This was done so that VPATH could contain
1844 white space separated pathnames. Please note that directory
1845 paths (in VPATH/vpath context) containing white space are not
1846 supported (just as they are not under Unix). See README.W32
1849 * w32/include/pathstuff.h: Added prototype for the new
1850 function convert_vpath_to_w32. Deleted macro for same.
1852 * README.W32: Added some notes about why I chose not to try
1853 and support pathnames which contain white space and some
1854 workaround suggestions.
1856 Thu Jul 25 19:53:31 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1858 * GNUmakefile (mkdep-nolib): Use -MM option unconditionally.
1862 * main.c (define_makeflags): Back up P to point at null terminator
1863 when killing final space and dash before setting MFLAGS.
1865 From Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>:
1866 * dir.c [__MSDOS__ && DJGPP > 1]: Include <libc/dosio.h> and defin
1867 `__opendir_flags' initialized to 0.
1868 (dosify) [__MSDOS__ && DJGPP > 1]: Return name unchanged if _USE_LFN.
1869 (find_directory) [__MSDOS__ && DJGPP > 1]: If _USE_LGN, set
1870 __opendir_flags to __OPENDIR_PRESERVE_CASE.
1872 * vmsfunctions.c (vms_stat): `sys$dassgn (DevChan);' added by kkaempf.
1874 * GNUmakefile (w32files): Add NMakefile.
1876 * NMakefile (LDFLAGS_debug): Value fixed by tulloh.
1878 Sat Jul 20 12:32:10 1996 Klaus Kämpf (kkaempf@progis.de)
1880 * remake.c (f_mtime) [VMS]: Add missing `if' conditional for future
1882 * config.h-vms, makefile.vms, readme.vms, vmsify.c: Update address.
1884 Sat Jul 20 05:29:43 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1886 * configure.in: Require autoconf 2.10 or later.
1888 Fri Jul 19 16:57:27 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1892 * GNUmakefile (w32files): New variable.
1893 (distfiles): Add it.
1894 * w32: Updated by Rob Tulloh.
1896 * makefile.vms (LOADLIBES): Fix typo.
1898 Sun Jul 14 12:59:27 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1900 * job.c (construct_command_argv_internal): Fix up #else, #endifs.
1902 * configh.dos: Define HAVE_DIRENT_H instead of DIRENT.
1904 * remake.c (f_mtime): Don't compare MTIME to NOW if MTIME == -1.
1908 * main.c (main): Exit with status 2 when update_goal_chain returns 2.
1910 Sat Jun 22 14:56:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1912 * configure.in: Don't check for _sys_siglist.
1913 * make.h [HAVE__SYS_SIGLIST]: Don't test this; just punt if there is
1914 no strsignal or sys_siglist.
1916 * read.c (conditional_line): Strip ws in `ifeq (a , b)' so it is the
1917 same as `ifeq (a, b)'.
1919 * job.c (reap_children): Don't call die if handling_fatal_signal.
1921 * file.c (file_hash_enter): Allow renaming :: to : when latter is
1922 non-target, or : to :: when former is non-target.
1924 * job.c (start_job_command): Call block_sigs.
1925 (block_sigs): New function, broken out of start_job_command.
1926 (reap_children): Block fatal signals around removing dead child from
1927 chain and adjusting job_slots_used.
1928 * job.h: Declare block_sigs.
1930 * remote-stub.c (remote_setup, remote_cleanup): New (empty) functions.
1931 * main.c (main): Call remote_setup.
1932 (die): Call remote_cleanup.
1934 * job.c (reap_children): Quiescent value of shell_function_pid is
1937 * main.c (print_version): Add 96 to copyright years.
1939 Sat Jun 15 20:30:01 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1941 * read.c (find_char_unquote): Avoid calling strlen on every call
1942 just to throw away the value most of the time.
1944 Sun Jun 2 12:24:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1946 * main.c (decode_env_switches): Prepend '-' to ARGV[1] if it contains
1947 no '=', regardless of ARGC.
1948 (define_makeflags): Elide leading '-' from MAKEFLAGS value if first
1949 word is short option, regardless of WORDS.
1951 Wed May 22 17:24:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1953 * makefile.vms: Set LOADLIBES.
1954 * makefile.com (link_using_library): Fix typo.
1956 Wed May 15 17:37:26 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1958 * dir.c (print_dir_data_base): Use %ld dev and ino and cast them to
1961 Wed May 15 10:14:14 CDT 1996 Rob Tulloh <tulloh@tivoli.com>
1963 * dir.c: W32 does not support inode. For now, fully qualified
1964 pathname along with st_mtime will be keys for files.
1965 Fixed problem where vpath can be confused when files
1966 are added to a directory after the directory has already been
1967 read in. The code now attempts to reread the directory if it
1968 discovers that the datestamp on the directory has changed since
1969 it was cached by make. This problem only seems to occur on W32
1970 right now so it is lumped under port #ifdef WINDOWS32.
1972 * function.c: W32: call subproc library (CreateProcess()) instead of
1975 * job.c: W32: Added the code to do fork/exec/waitpid style processing
1976 on W32 systems via calls to subproc library.
1978 * main.c: W32: Several things added here. First, there is code
1979 for dealing with PATH and SHELL defaults. Make tries to figure
1980 out if the user has %PATH% set in the environment and sets it to
1981 %Path% if it is not set already. Make also looks to see if sh.exe
1982 is anywhere to be found. Code path through job.c will change
1983 based on existence of a working Bourne shell. The checking for
1984 default shell is done twice: once before makefiles are read in
1985 and again after. Fall back to MSDOS style execution mode if no sh.exe
1986 is found. Also added some debug support that allows user to pause make
1987 with -D switch and attach a debugger. This is especially useful for
1988 debugging recursive calls to make where problems appear only in the
1991 * make.h: W32: A few macros and header files for W32 support.
1993 * misc.c: W32: Added a function end_of_token_w32() to assist
1994 in parsing code in read.c.
1996 * read.c: W32: Fixes similar to MSDOS which allow colon to
1997 appear in filenames. Use of colon in filenames would otherwise
2000 * remake.c: W32: Added include of io.h to eliminate compiler
2001 warnings. Added some code to default LIBDIR if it is not set
2004 * variable.c: W32: Added support for detecting Path/PATH
2005 and converting them to semicolon separated lists for make's
2006 internal use. New function sync_Path_environment()
2007 which is called in job.c and function.c before creating a new
2008 process. Caller must set Path in environment since we don't
2009 have fork() to do this for us.
2011 * vpath.c: W32: Added detection for filenames containing
2012 forward or backward slashes.
2014 * NMakefile: W32: Visual C compatible makefile for use with nmake.
2015 Use this to build GNU make the first time on Windows NT or Windows 95.
2017 * README.W32: W32: Contains some helpful notes.
2019 * build_w32.bat: W32: If you don't like nmake, use this the first
2020 time you build GNU make on Windows NT or Windows 95.
2022 * config.h.W32: W32 version of config.h
2024 * subproc.bat: W32: A bat file used to build the
2025 subproc library from the top-level NMakefile. Needed because
2026 WIndows 95 (nmake) doesn't allow you to cd in a make rule.
2028 * w32/include/dirent.h
2029 * w32/compat/dirent.c: W32: opendir, readdir, closedir, etc.
2031 * w32/include/pathstuff.h: W32: used by files needed functions
2032 defined in pathstuff.c (prototypes).
2034 * w32/include/sub_proc.h: W32: prototypes for subproc.lib functions.
2036 * w32/include/w32err.h: W32: prototypes for w32err.c.
2038 * w32/pathstuff.c: W32: File and Path/Path conversion functions.
2040 * w32/subproc/build.bat: W32: build script for subproc library
2041 if you don't wish to use nmake.
2043 * w32/subproc/NMakefile: W32: Visual C compatible makefile for use
2044 with nmake. Used to build subproc library.
2046 * w32/subproc/misc.c: W32: subproc library support code
2047 * w32/subproc/proc.h: W32: subproc library support code
2048 * w32/subproc/sub_proc.c: W32: subproc library source code
2049 * w32/subproc/w32err.c: W32: subproc library support code
2051 Mon May 13 14:37:42 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2055 * GNUmakefile (vmsfiles): Fix typo.
2057 * GNUmakefile (amigafiles): Add amiga.h.
2059 Sun May 12 19:19:43 1996 Aaron Digulla <digulla@fh-konstanz.de>
2061 * dir.c: New function: amigafy() to fold filenames
2062 Changes HASH() to HASHI() to fold filenames on Amiga.
2063 Stringcompares use strieq() instead of streq()
2064 The current directory on Amiga is "" instead of "."
2067 * amiga.c: New function wildcard_expansion(). Allows to use
2068 Amiga wildcards with $(wildcard )
2070 * amiga.h: New file. Prototypes for amiga.c
2072 * function.c: Use special function wildcard_expansion() for
2073 $(wildcard ) to allow Amiga wildcards
2074 The current directory on Amiga is "" instead of "."
2076 * job.c: No Pipes on Amiga, too
2077 (load_too_high) Neither on Amiga
2078 ENV variable on Amiga are in a special directory and are not
2079 passed as third argument to main().
2081 * job.h: No envp on Amiga
2083 * make.h: Added HASHI(). This is the same as HASH() but converts
2084 it's second parameter to lowercase on Amiga to fold filenames.
2086 * main.c: (main), variable.c Changed handling of ENV-vars. Make
2087 stores now the names of the variables only and reads their contents
2088 when they are accessed to reflect that these variables are really
2089 global (ie. they CAN change WHILE make runs !) This handling is
2090 made in lookup_variable()
2092 * Makefile.ami: renamed file.h to filedep.h
2093 Updated dependencies
2095 * read.c: "find_semicolon" is declared as static but never defined.
2096 No difference between Makefile and makefile on Amiga; added
2097 SMakefile to *default_makefiles[].
2098 (read_makefile) SAS/C want's two_colon and pattern_percent be set
2100 The current directory on Amiga is "" instead of "."
2101 Strange #endif moved.
2103 * README.Amiga: updated feature list
2105 * SMakefile: Updated dependencies
2107 * variable.c: Handling of ENV variable happens inside lookup_variable()
2109 Sat May 11 17:58:32 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2111 * variable.c (try_variable_definition): Count parens in lhs variable
2112 refs to avoid seeing =/:=/+= inside a ref.
2114 Thu May 9 13:54:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2116 * commands.c (fatal_error_signal) [SIGQUIT]: Make SIGQUIT check
2119 * main.c (main): Use unsigned for fread return.
2121 * read.c (parse_file_seq): Use `int' for char arg to avoid widening
2123 * dep.h: Fix prototype.
2125 * function.c (expand_function) [_AMIGA]: Fix some typos.
2126 (patsubst_expand): Make len vars unsigned.
2128 * GNUmakefile (globfiles): Add AmigaDOS support files.
2129 (distfiles): Add $(amigafiles).
2130 (amigafiles): New variable.
2132 Thu Nov 7 10:18:16 1995 Aaron Digulla <digulla@fh-konstanz.de>
2134 * Added Amiga support in commands.c, dir.c, function.c,
2135 job.c, main.c, make.h, read.c, remake.c
2136 * commands.c: Amiga has neither SIGHUP nor SIGQUIT
2137 * dir.c: Amiga has filenames with Upper- and Lowercase,
2138 but "FileName" is the same as "filename". Added strieq()
2139 which is use to compare filenames. This is like streq()
2140 on all other systems. Also there is no such thing as
2142 * function.c: On Amiga, the environment is not passed as envp,
2143 there are no pipes and Amiga can't fork. Use my own function
2144 to create a new child.
2145 * job.c: default_shell is "" (The system automatically chooses
2146 a shell for me). Have to use the same workaround as MSDOS for
2147 running batch commands. Added HAVE_SYS_PARAM_H. NOFILE isn't
2148 known on Amiga. Cloned code to run children from MSDOS. Own
2149 version of sh_chars[] and sh_cmds[]. No dup2() or dup() on Amiga.
2150 * main.c: Force stack to 20000 bytes. Read environment from ENV:
2151 device. On Amiga, exec_command() does return, so I exit()
2153 * make.h: Added strieq() to compare filenames.
2154 * read.c: Amiga needs special extension to have passwd. Only
2155 one include-dir. "Makefile" and "makefile" are the same.
2156 Added "SMakefile". Added special code to handle device names (xxx:)
2158 * remake.c: Only one lib-dir. Amiga link-libs are named "%s.lib"
2159 instead of "lib%s.a".
2160 * main.c, rule.c, variable.c: Avoid floats at all costs.
2161 * vpath.c: Get rid of as many alloca()s as possible.
2163 Thu May 9 13:20:43 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2165 * read.c (read_makefile): Grok `sinclude' as alias for `-include'.
2167 Wed Mar 20 09:52:27 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
2169 * GNUmakefile (vmsfiles): New variable.
2170 (distfiles): Include $(vmsfiles).
2172 Tue Mar 19 20:21:34 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
2174 Merged VMS port from Klaus Kaempf <kkaempf@didymus.rmi.de>.
2175 * make.h (PARAMS): New macro.
2176 * config.h-vms: New file.
2177 * makefile.com: New file.
2178 * makefile.vms: New file.
2179 * readme.vms: New file.
2180 * vmsdir.h: New file.
2181 * vmsfunctions.c: New file.
2182 * vmsify.c: New file.
2183 * file.h: Renamed to filedef.h to avoid conflict with VMS system hdr.
2184 * ar.c: Added prototypes and changes for VMS.
2185 * commands.c: Likewise.
2186 * commands.h: Likewise.
2187 * default.c: Likewise.
2190 * expand.c: Likewise.
2192 * function.c: Likewise.
2193 * implicit.c: Likewise.
2200 * remake.c: Likewise.
2201 * remote-stub.c: Likewise.
2204 * variable.c: Likewise.
2205 * variable.h: Likewise.
2206 * vpath.c: Likewise.
2207 * compatMakefile (srcs): Rename file.h to filedef.h.
2209 Sat Aug 19 23:11:00 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
2211 * remake.c (check_dep): For a secondary file, try implicit and
2212 default rules if appropriate.
2214 Wed Aug 2 04:29:42 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
2216 * remake.c (check_dep): If an intermediate file exists,
2217 do consider its actual date.
2219 Sun Jul 30 00:49:53 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
2221 * file.h (struct file): New field `secondary'.
2222 * file.c (snap_deps): Check for .INTERMEDIATE and .SECONDARY.
2223 (remove_intermediates): Don't delete .SECONDARY files.
2225 Sat Mar 2 16:26:52 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
2227 * compatMakefile (srcs): Add getopt.h; prepend $(srcdir)/ to getopt*.
2229 Fri Mar 1 12:04:47 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
2233 * remake.c (f_mtime): Move future modtime check before FILE is
2234 clobbered by :: loop.
2236 * dir.c: Use canonical code from autoconf manual for dirent include.
2237 [_D_NAMLEN]: Redefine NAMLEN using this.
2238 (dir_contents_file_exists_p): Use NAMLEN macro.
2239 (read_dirstream) [_DIRENT_HAVE_D_NAMLEN]: Only set d_namlen #if this.
2241 * compatMakefile (objs): Add missing backslash.
2243 Wed Feb 28 03:56:20 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
2245 * default.c (default_terminal_rules): Remove + prefix from RCS cmds.
2246 (default_variables): Put + prefix in $(CHECKOUT,v) value instead.
2248 * remake.c (f_mtime): Check for future timestamps; give error and mark
2249 file as "failed to update".
2251 Fri Jan 12 18:09:36 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2253 * job.c: Don't declare unblock_sigs; job.h already does.
2255 Sat Jan 6 16:24:44 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2257 * acconfig.h (HAVE_SYSCONF_OPEN_MAX): #undef removed.
2259 * job.c (NGROUPS_MAX): Don't try to define this macro.
2261 Fri Dec 22 18:44:44 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2263 * compatMakefile (GETOPT, GETOPT_SRC, GLOB): Variables removed.
2264 (objs, srcs): Include their values here instead of references.
2266 Thu Dec 14 06:21:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2270 * job.c (reap_children): Call unblock_sigs after start_job_command.
2272 Thu Dec 14 07:22:03 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
2274 * dir.c (dir_setup_glob): Don't use lstat; glob never calls it anyway.
2275 Avoid & before function names to silence bogus sunos4 compiler.
2277 * configure.in: Remove check for `sysconf (_SC_OPEN_MAX)'.
2279 Tue Dec 12 00:48:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2283 * dir.c (read_dirstream): Fix braino: fill in the buffer when not
2286 Mon Dec 11 22:26:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2288 * misc.c (collapse_continuations): Fix skipping of trailing \s so
2289 it can never dereference before the beginning of the array.
2291 * read.c (find_semicolon): Function removed.
2292 (read_makefile): Don't use find_semicolon or remove_comments for
2293 rule lines. Use find_char_unquote directly and handle quoted comments
2296 * default.c: Remove all [M_XENIX] code.
2298 * dir.c [HAVE_D_NAMLEN]: Define this for __GNU_LIBRARY__ > 1.
2299 (D_NAMLEN): Macro removed.
2300 (FAKE_DIR_ENTRY): New macro.
2301 (dir_contents_file_exists_p): Test HAVE_D_NAMLEN instead of using
2303 (read_dirstream): Return a struct dirent * for new glob interface.
2304 (init_dir): Function removed.
2305 (dir_setup_glob): New function.
2306 * main.c (main): Don't call init_dir.
2307 * read.c (multi_glob): Call dir_setup_glob on our glob_t and use
2308 GLOB_ALTDIRFUNC flag.
2310 * misc.c (safe_stat): Function removed.
2311 * read.c, commands.c, remake.c, vpath.c: Use plain stat instead of
2314 Sat Nov 25 20:35:18 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2316 * job.c [HAVE_UNION_WAIT]: Include sys/wait.h.
2318 * main.c (log_working_directory): Made global.
2319 Print entering msg only once.
2320 * make.h (log_working_directory): Declare it.
2321 * misc.c (message): Take new arg PREFIX. Print "make: " only if
2322 nonzero. Call log_working_directory.
2323 * remake.c: Pass new arg in `message' calls.
2324 * job.c (start_job_command): Pass new arg to `message'; fix
2325 inverted test in that call.
2327 Tue Nov 21 19:01:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2329 * job.c (start_job_command): Use `message' to print the command,
2330 and call it with null if the command is silent.
2331 * remake.c (touch_file): Use message instead of printf.
2333 Tue Oct 10 14:59:30 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2335 * main.c (enter_command_line_file): Barf if NAME is "".
2337 Sat Sep 9 06:33:20 1995 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
2339 * commands.c (delete_target): Ignore unlink failure if it is ENOENT.
2341 Thu Aug 17 15:08:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2343 * configure.in: Don't check for getdtablesize.
2344 * job.c (getdtablesize): Remove decls and macros.
2346 Thu Aug 10 19:10:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2348 * main.c (define_makeflags): Omit command line variable
2349 definitions from MFLAGS value.
2351 * arscan.c (ar_scan) [AIAMAG]: Check for zero MEMBER_OFFSET,
2352 indicating a valid, but empty, archive.
2354 Mon Aug 7 15:40:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2356 * dir.c (file_impossible_p): Correctly reset FILENAME to name
2357 within directory before hash search.
2359 * job.c (child_error): Do nothing if IGNORED under -s.
2361 * job.c (exec_command): Correctly use ARGV[0] for script name when
2362 running shell directly.
2364 Tue Aug 1 14:39:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2366 * job.c (child_execute_job): Close STDIN_FD and STDOUT_FD after
2367 dup'ing from them. Don't try to close all excess descriptors;
2368 getdtablesize might return a huge value. Any open descriptors in
2369 the parent should have FD_CLOEXEC set.
2370 (start_job_command): Set FD_CLOEXEC flag on BAD_STDIN descriptor.
2372 Tue Jun 20 03:47:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2374 * read.c (read_all_makefiles): Properly append default makefiles
2375 to the end of the `read_makefiles' chain.
2377 Fri May 19 16:36:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2379 * Version 3.74 released.
2381 Wed May 10 17:43:34 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2385 Tue May 9 17:15:23 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2387 * compatMakefile ($(infodir)/make.info): Make sure $$dir is set in
2390 Wed May 3 15:56:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2392 * file.c (print_file): Grok update_status of 1 for -q.
2394 Thu Apr 27 12:39:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2398 Wed Apr 26 17:15:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2400 * file.c (remove_intermediates): Fix inverted test to bail under
2401 -n for signal case. Bail under -q or -t.
2402 Skip files with update_status==-1.
2404 * job.c (job_next_command): Skip empty lines.
2405 (new_job): Don't test the return of job_next_command.
2406 Just let start_waiting_job handle the case of empty commands.
2408 Wed Apr 19 03:25:54 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2410 * function.c [__MSDOS__]: Include <fcntl.h>. From DJ Delorie.
2414 Sat Apr 8 14:53:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2416 * remake.c (notice_finished_file): Set FILE->update_status to zero
2419 Wed Apr 5 00:20:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2421 * Version 3.73 released.
2423 Tue Mar 28 13:25:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2425 * main.c (main): Fixed braino in assert.
2429 Mon Mar 27 05:29:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2431 * main.c: Avoid string in assert expression. Some systems are broken.
2433 Fri Mar 24 00:32:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2435 * main.c (main): Handle 1 and 2 returns from update_goal_chain
2436 makefile run properly.
2440 * main.c (handle_non_switch_argument): New function, broken out of
2442 (decode_switches): Set optind to 0 to reinitialize getopt, not to 1.
2443 When getopt_long returns EOF, break the loop and handle remaining args
2444 with a simple second loop.
2446 * remake.c (remake_file): Set update_status to 2 instead of 1 for
2447 no rule to make. Mention parent (dependent) in error message.
2448 (update_file_1): Handle FILE->update_status == 2 in -d printout.
2449 * job.c (start_job_command, reap_children): Set update_status to 2
2450 instead of 1 for failed commands.
2452 Tue Mar 21 16:23:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2454 * job.c (search_path): Function removed (was already #if 0'd out).
2455 * configure.in: Remove AC_TYPE_GETGROUPS; nothing needs it any more.
2457 Fri Mar 17 15:57:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2459 * configure.bat: Write @CPPFLAGS@ translation.
2461 Mon Mar 13 00:45:59 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2463 * read.c (parse_file_seq): Rearranged `l(a b)' -> `l(a) l(b)' loop
2464 to not skip the elt immediately preceding `l(...'.
2466 Fri Mar 10 13:56:49 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2470 * read.c (find_char_unquote): Make second arg a string of stop
2471 chars instead of a single stop char. Stop when any char in the
2472 string is hit. All callers changed.
2473 (find_semicolon): Pass stop chars "#;" to one find_char_unquote call,
2474 instead of using two calls. If the match is not a ; but a #,
2476 * misc.c: Changed find_char_unquote callers here too.
2480 * read.c (read_makefile, parse_file_seq): Fix typo __MS_DOS__ ->
2483 * GNUmakefile (globfiles): Add glob/configure.bat.
2484 (distfiles): Add configh.dos, configure.bat.
2486 Wed Mar 8 13:10:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2488 Fixes for MS-DOS from DJ Delorie.
2489 * read.c (read_makefile, parse_file_seq) [__MS_DOS__]: Don't see :
2490 as separator in "C:\...".
2491 * configh.dos (STDC_HEADERS): Define only if undefined.
2492 (HAVE_SYS_PARAM_H): Don't define this.
2493 (HAVE_STRERROR): Define this.
2494 * job.c (construct_command_argv_internal) [__MSDOS__]: Fix typos.
2498 * main.c (decode_switches): Reset optind to 1 instead of 0.
2500 Tue Mar 7 17:31:06 1995 Roland McGrath <roland@geech.gnu.ai.mit.edu>
2502 * main.c (decode_switches): If non-option arg is "-", ignore it.
2504 Mon Mar 6 23:57:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2508 Wed Feb 22 21:26:36 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2512 Tue Feb 21 22:10:43 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2514 * main.c (main): Pass missing arg to tmpnam.
2516 * configure.in: Check for strsignal.
2517 * job.c (child_error): Use strsignal.
2518 * main.c (main): Don't call signame_init #ifdef HAVE_STRSIGNAL.
2520 * misc.c (strerror): Fix swapped args in sprintf.
2522 Mon Feb 13 11:50:08 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2524 * configure.in (CFLAGS, LDFLAGS): Don't set these variables.
2526 Fri Feb 10 18:44:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2528 * main.c (print_version): Add 95 to copyright years.
2532 * job.c (start_job_command): Remember to call notice_finished_file
2533 under -n when not recursing. To do this, consolidate that code
2534 under the empty command case and goto there for the -n case.
2536 Tue Feb 7 13:36:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2538 * make.h [! STDC_HEADERS]: Don't declare qsort. Sun headers
2541 Mon Feb 6 17:37:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2543 * read.c (read_makefile): For bogus line starting with tab, ignore
2544 it if blank after removing comments.
2546 * main.c: Cast results of `alloca' to `char *'.
2547 * expand.c: Likewise.
2549 Sun Feb 5 18:35:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2553 * configure.in: Check for mktemp.
2554 * main.c (main) [! HAVE_MKTEMP]: Use tmpnam instead of mktemp.
2556 * configure.in (make_cv_sysconf_open_max): New check for `sysconf
2558 * acconfig.h: Added #undef HAVE_SYSCONF_OPEN_MAX.
2559 * job.c [HAVE_SYSCONF_OPEN_MAX] (getdtablesize): Define as macro
2562 Fri Jan 27 04:42:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2564 * remake.c (update_file_1): When !MUST_MAKE, don't set
2565 FILE->update_status to zero before calling notice_finished_file.
2566 (notice_finished_file): Touch only when FILE->update_status is zero.
2567 (remake_file): Set FILE->update_status to zero after not calling
2568 execute_file_command and deciding to touch instead.
2570 Thu Jan 26 01:29:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2572 * main.c (debug_signal_handler): New function; toggles debug_flag.
2573 (main): Handle SIGUSR1 with that.
2575 Mon Jan 16 15:46:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2577 * compatMakefile (realclean): Remove Info files.
2579 Sun Jan 15 08:23:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2583 * job.c (start_job_command): Save and restore environ around vfork
2585 (search_path): Function #if 0'd out.
2586 (exec_command): Use execvp instead of search_path.
2588 * expand.c (variable_expand): Rewrote computed variable name and
2589 substitution reference handling to be simpler. First expand the
2590 entire text between the parens if it contains any $s, then examine
2591 the result of that for subtitution references and do no further
2592 expansion while parsing them.
2594 * job.c (construct_command_argv_internal): Handle " quoting too,
2595 when no backslash, $ or ` characters appear inside the quotes.
2597 * configure.in (union wait check): If WEXITSTATUS and WTERMSIG are
2598 defined, just use int.
2600 Tue Jan 10 06:27:27 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2602 * default.c (default_variables) [__hpux]: Remove special
2603 definition of ARFLAGS. Existence of the `f' flag is not
2604 consistent across HPUX versions; and one might be using GNU ar
2607 * compatMakefile (clean): Don't remove Info files.
2609 * compatMakefile (check): Remove gratuitous target declaration.
2611 Sat Jan 7 11:38:23 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2613 * compatMakefile (ETAGS, CTAGS): Don't use -t.
2615 * arscan.c (ar_name_equal) [cray]: Subtract 1 like [__hpux].
2617 * main.c (decode_switches): For --help, print usage to stdout.
2619 Mon Dec 5 12:42:18 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2623 * remake.c (update_file_1): Do set_command_state (FILE,
2624 cs_not_started) only if old state was deps_running.
2626 Mon Nov 28 14:24:03 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2628 * job.c (start_waiting_job): Use set_command_state.
2630 * build.template (CPPFLAGS): New variable.
2631 (prefix, exec_prefix): Set from @...@.
2632 (compilation loop): Pass $CPPFLAGS to compiler.
2634 * GNUmakefile (build.sh.in): Make it executable.
2636 * GNUmakefile (globfiles): Add configure.in, configure.
2640 * configure.in (AC_OUTPUT): Don't write glob/Makefile.
2642 * configure.in (AC_CHECK_SYMBOL): Use AC_DEFINE_UNQUOTED.
2644 * configure.in: Don't check for ranlib.
2646 Tue Nov 22 22:42:40 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2648 * remake.c (notice_finished_file): Only mark also_make's as
2649 updated if really ran cmds.
2651 Tue Nov 15 06:32:46 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2653 * configure.in: Put dnls before random whitespace.
2655 Sun Nov 13 05:02:25 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2657 * compatMakefile (CPPFLAGS): New variable, set from @CPPFLAGS@.
2658 (RANLIB): Variable removed.
2659 (prefix, exec_prefix): Set these from @...@.
2660 (.c.o): Use $(CPPFLAGS).
2661 (glob/libglob.a): Don't pass down variables to sub-make.
2662 glob/Makefile should be configured properly by configure.
2663 (distclean): Remove config.log and config.cache (autoconf stuff).
2665 Mon Nov 7 13:58:06 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2667 * acconfig.h: Add #undef HAVE_UNION_WAIT.
2668 * configure.in: Converted to Autoconf v2.
2669 * dir.c: Test HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H instead
2670 of DIRENT, SYSDIR, NDIR.
2671 * build.sh.in (prefix, exec_prefix): Set these from @...@.
2672 (CPPFLAGS): New variable, set from @CPPFLAGS@.
2673 (compiling loop): Pass $CPPFLAGS before $CFLAGS.
2674 * install.sh: File renamed to install-sh.
2676 * main.c (define_makeflags): When no flags, set WORDS to zero.
2678 Sun Nov 6 18:34:01 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2682 * main.c (define_makeflags): Terminate properly when FLAGSTRING is
2685 Fri Nov 4 16:02:51 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2689 Tue Nov 1 01:18:10 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2693 * job.c (start_job_command): When ARGV is nil, only set
2694 update_state and call notice_finished_file if job_next_command
2697 * job.c (start_job_command): Call notice_finished_file for empty
2700 Thu Oct 27 02:02:45 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2702 * file.c (snap_deps): Set COMMANDS_SILENT for .SILENT, not
2705 Wed Oct 26 02:14:10 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2709 Tue Oct 25 22:49:24 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2711 * file.c (snap_deps): Set command_flags bits in all :: entries.
2713 Mon Oct 24 18:47:50 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2715 * make.h (posix_pedantic): Declare it.
2716 * main.c (main): Move checks .IGNORE, .SILENT, .POSIX to
2718 * file.c (snap_deps): Check .IGNORE, .SILENT, .POSIX here instead
2719 of in main. If .IGNORE has deps, OR COMMANDS_NOERROR into their
2720 command_flags and don't set -i. Likewise .SILENT.
2721 * job.c (start_job_command): In FLAGS initialization, OR in
2722 CHILD->file->command_flags.
2723 * file.h (struct file): New member `command_flags'.
2725 Sun Oct 16 01:01:51 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2727 * main.c (switches): Bump flag values for --no-print-directory and
2728 --warn-undefined-variables, so neither is 1 (which indicates a
2729 nonoption argument).
2731 Sat Oct 15 23:39:48 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2733 * main.c (main): Add missing code in .IGNORE test.
2735 Mon Oct 10 04:09:03 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2737 * variable.c (define_automatic_variables): Define +D and +F.
2739 Sat Oct 1 04:07:48 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2741 * main.c (main): Define hidden automatic variable with command
2742 vars, and MAKEOVERRIDES to a reference to that.
2743 (define_makeflags): If posix_pedantic, write a reference to that
2746 Thu Sep 29 00:14:26 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2748 * main.c (posix_pedantic): New variable.
2749 (main): Set posix_pedantic if .POSIX is a target.
2750 Fix .IGNORE and .SILENT checks to require is_target.
2752 * commands.c (set_file_variables): Define new automatic variable
2753 $+, like $^ but before calling uniquize_deps.
2755 * job.c (reap_children): Call delete_child_targets for non-signal
2756 error if .DELETE_ON_ERROR is a target.
2758 Tue Sep 27 01:57:14 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2762 Mon Sep 26 18:16:55 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2764 * job.c (reap_children): Don't change C->file->command_state when
2765 dying. Test it only after calling start_job_command for a new
2766 command line. When no more cmds, just set C->file->update_status.
2767 (start_job_command): When the last line is empty or under -n, set
2768 C->file->update_status.
2769 (start_waiting_job): Grok cs_not_started after start_job_command
2771 (new_job): Set C->file->update_status when there are no cmds.
2772 (job_next_command): When out of lines, don't set
2773 CHILD->file->update_status or CHILD->file->command_state.
2775 * main.c (quote_as_word): Renamed from shell_quote. Take new arg;
2776 if nonzero, also double $s.
2777 (main): Define MAKEOVERRIDES from command_variables here.
2778 (define_makeflags): Don't use command_variables here; instead write a
2779 reference $(MAKEOVERRIDES) in MAKEFLAGS. Make vars recursive.
2781 * dir.c [__MSDOS__]: Fixed typo.
2783 * vpath.c (selective_vpath_search): Reset EXISTS when stat fails.
2785 Sat Sep 10 03:01:35 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2787 * remake.c: Include <assert.h> and use assert instead of printfs
2790 * main.c (decode_switches): Loop until optind hits ARGC, not just
2791 until getopt_long returns EOF. Initialize C to zero before loop;
2792 in loop if C is EOF, set optarg from ARGV[optind++], else call
2794 (decode_env_switches): Use variable_expand instead of
2795 allocated_variable_expand. Allocate a fresh buffer to copy split
2796 words into; scan characters by hand to break words and
2798 (shell_quote): New function.
2799 (define_makeflags): Allocate doubled space for switch args, and command
2800 variable names and values; use shell_quote to quote those things.
2802 Fri Sep 9 01:37:47 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2806 * acconfig.h: Add HAVE_SYS_SIGLIST and HAVE__SYS_SIGLIST.
2808 * main.c (decode_switches): The non-option return from getopt is
2810 (command_variables): New type and variable.
2811 (decode_switches, decode_env_switches): After making a variable
2812 definition, record the struct variable pointer in the
2813 command_variables chain.
2814 (define_makeflags): If ALL, write variable definitions for
2817 * main.c (other_args): Variable removed.
2818 (goals, lastgoal): New static variables (moved from auto in main).
2819 (main): Don't process OTHER_ARGS at all.
2820 Don't set variable MAKEOVERRIDES at all; define MAKE to just
2822 (init_switches): Prepend a - {return in order} instead of a +
2824 (decode_switches): Don't set OTHER_ARGS at all.
2825 Grok '\0' return from getopt_long as non-option argument; try
2826 variable definition and (if !ENV) enter goal targets here.
2827 (decode_env_switches): Use allocated_variable_expand to store value.
2828 Use find_next_token to simplify word-splitting loop. Don't
2829 prepend a dash to uninterpreted value. Instead, if split into
2830 only one word, try variable definition and failing that prepend a
2831 dash to the word and pass it to decode_switches as a single arg.
2833 Wed Sep 7 03:02:46 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2835 * remake.c (notice_finished_file): Only recheck modtimes if
2836 FILE->command_state was cs_running on entry (meaning the commands
2838 (update_file_1): Whenever we set FILE->update_status, call
2839 notice_finished_file instead of just set_command_state.
2840 * job.c (start_job_command): Whenever we set
2841 CHILD->file->update_status, call notice_finished_file instead of
2842 just set_command_state.
2844 Tue Sep 6 19:13:54 1994 Roland McGrath <roland@geech.gnu.ai.mit.edu>
2846 * default.c: Add missing ".
2848 * job.c: Changed all assignments of command_state members to calls
2849 to set_command_state.
2850 * remake.c: Likewise.
2851 * file.c (set_command_state): New function.
2852 * file.h: Declare set_command_state.
2854 * main.c (init_switches): Put a + first in options.
2856 Mon Jul 25 18:07:46 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2858 Merge MSDOS/GO32 port from DJ Delorie <dj@ctron.com>.
2859 * vpath.c: Changed all uses of ':' to PATH_SEPARATOR_CHAR.
2860 * main.c (directory_before_chdir): New variable, moved out of main
2862 (main) [__MSDOS__]: Look for \ or : to delimit last component of
2863 PROGRAM. Don't frob ARGV[0] before setting MAKE_COMMAND variable.
2864 (die): Change back to `directory_before_chdir' before dying.
2865 * make.h (PATH_SEPARATOR_CHAR): New macro; differing defns for
2866 [__MSDOS__] and not.
2867 * job.c [__MSDOS__]: Include <process.h>.
2868 [__MSDOS__] (dos_pid, dos_status, dos_bname, dos_bename,
2869 dos_batch_file): New variables.
2870 (reap_children) [__MSDOS__]: Don't call wait; just examine those vars.
2871 (unblock_sigs) [__MSDOS__]: Do nothing.
2872 (start_job_command) [__MSDOS__]: Use spawnvpe instead of vfork & exec.
2873 (load_too_high) [__MSDOS__]: Always return true.
2874 (search_path) [__MSDOS__]: Check for : or / in FILE to punt.
2875 Use PATH_SEPARATOR_CHAR instead of ':'.
2876 (construct_command_argv_internal) [__MSDOS__]: Wholly different
2877 values for sh_chars and sh_cmds. Wholly new code to handle shell
2879 * function.c (expand_function: `shell') [__MSDOS__]: Wholly new
2881 * dir.c [__MSDOS__] (dosify): New function.
2882 (dir_contents_file_exists_p) [__MSDOS__]: Call it on FILENAME and
2883 process the result instead of FILENAME itself.
2884 (file_impossible_p) [__MSDOS__]: Likewise.
2885 * default.c [__MSDOS__]: Define GCC_IS_NATIVE.
2886 (default_suffix_rules) [__MSDOS__]: Use `y_tab.c' instead of `y.tab.c'.
2887 (default_variables) [GCC_IS_NATIVE]: Set CC and CXX to `gcc', YACC to
2888 `bison -y', and LEX to `flex'.
2889 * configure.bat, configh.dos: New files.
2890 * commands.c (fatal_error_signal) [__MSDOS__]: Just remove
2891 intermediates and exit.
2893 * commands.c (set_file_variables): Add parens in length
2894 computation in .SUFFIXES dep loop to quiet compiler warning. From
2897 * read.c (read_makefile): Free FILENAME if we allocated it. From
2900 Mon Jul 4 17:47:08 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2902 * misc.c (safe_stat): New function, EINTR-safe wrapper around stat.
2903 * vpath.c (selective_vpath_search): Use safe_stat in place of stat.
2904 * read.c (construct_include_path): Use safe_stat in place of stat.
2905 * job.c (search_path): Use safe_stat in place of stat.
2906 * dir.c (find_directory): Use safe_stat in place of stat.
2907 * commands.c (delete_target): Use safe_stat in place of stat.
2908 * arscan.c (ar_member_touch) [EINTR]: Do EINTR looping around fstat.
2909 * remake.c (name_mtime): Use safe_stat in place of stat.
2910 (touch_file) [EINTR]: Do EINTR looping around fstat.
2912 Fri Jun 24 05:40:24 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2914 * read.c (read_makefile): Check for a shell command first, and
2915 then strip leading tabs before further checking if it's not a
2918 * make.h [__arm]: Undefine POSIX.
2919 [!__GNU_LIBRARY__ && !POSIX && !_POSIX_VERSION]: Don't declare system
2920 functions that return int.
2922 * job.c (construct_command_argv_internal): After swallowing a
2923 backslash-newline combination, if INSTRING is set goto string_char
2924 (new label) for normal INSTRING handling code.
2926 Sat Jun 4 01:11:20 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2928 * configure.in: Don't check for sys_siglist and _sys_siglist with
2929 AC_HAVE_FUNCS. Instead use two AC_COMPILE_CHECKs.
2931 Mon May 23 18:20:38 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2933 * Version 3.71.1 released.
2935 * make.h [!__GNU_LIBRARY__ && !POSIX]: Also test #ifndef
2936 _POSIX_VERSION for these declarations.
2938 * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Remove bogus #ifndefs
2939 around #undefs of HAVE_SETREUID and HAVE_SETREGID.
2941 Sat May 21 16:26:38 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2943 * Version 3.71 released.
2945 * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Don't test [HAVE_SETUID]
2946 and [HAVE_SETGID]. Every system has those, and configure doesn't
2949 * make.h [_POSIX_VERSION]: Don't #define POSIX #ifdef ultrix.
2951 * compatMakefile (loadavg): Depend on and use loadavg.c instead of
2953 (loadavg.c): Link or copy it from getloadavg.c.
2954 (distclean): Remove loadavg.c.
2956 Mon May 16 22:59:04 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2960 * misc.c [GETLOADAVG_PRIVILEGED] [! POSIX]: Undefine HAVE_SETEUID
2963 * default.c (default_terminal_rules): In SCCS rules, put
2964 $(SCCS_OUTPUT_OPTION) before $<. On some systems -G is grokked
2965 only before the file name.
2966 * configure.in (SCCS_GET_MINUS_G check): Put -G flag before file name.
2968 Tue May 10 16:27:38 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2970 * job.c (construct_command_argv_internal): Swallow
2971 backslash-newline combinations inside '' strings too.
2973 Thu May 5 04:15:10 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2975 * read.c (do_define): Call collapse_continuations on each line
2978 Mon Apr 25 19:32:02 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
2980 * job.c (construct_command_argv_internal): Notice newline inside
2981 '' string when RESTP is non-null.
2983 Fri Apr 22 17:33:30 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
2987 * remake.c (update_goal_chain): Reset FILE to G->file after the
2988 double-colon loop so it is never null for following code.
2990 * read.c (read_makefile): Fix `override define' parsing to skip
2991 whitespace after `define' properly.
2993 * compatMakefile (srcdir): Define as @srcdir@; don't reference
2995 (glob/Makefile): New target.
2997 Thu Apr 21 16:16:55 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3001 * misc.c (remove_comments): Use find_char_unquote.
3002 * make.h (find_char_unquote): Declare it.
3003 * read.c (find_char_unquote): New function, generalized from
3005 (find_percent, find_semicolon, parse_file_seq): Use that.
3007 Wed Apr 20 18:42:39 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3009 * implicit.c (pattern_search): Always allocate new storage for
3010 FILE->stem. It is not safe to store STEM's address because it
3011 might be auto storage.
3013 * configure.in: Check for seteuid and setegid.
3014 * misc.c [HAVE_SETEUID]: Declare seteuid.
3015 [HAVE_SETEGID]: Declare setegid.
3016 (make_access, user_access) [HAVE_SETEUID]: Use seteuid.
3017 [HAVE_SETEGID]: Use setegid.
3019 * remake.c (update_goal_chain): Set STATUS to FILE->update_status,
3020 to preserve whether it's 2 for error or 1 for -q trigger. When
3021 STATUS gets nonzero and -q is set, always stop immediately.
3022 * main.c (main, decode_switches): Die with 2 for errors.
3023 (main): Accept 2 return from update_goal_chain and die with that.
3024 * misc.c (fatal, makefile_fatal): Die with 2; 1 is reserved for -q
3026 * job.c (reap_children): Die with 2 for error.
3027 (start_job_command): Set update_status to 2 for error. Set it to
3028 1 when we would run a command and question_flag is set.
3030 * read.c (read_makefile): Don't mark makefiles as precious. Just
3031 like other targets, they can be left inconsistent and in need of
3032 remaking by aborted commands.
3034 * read.c (read_makefile): Write no error msg for -include file.
3036 Tue Apr 5 05:22:19 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3038 * commands.c (fatal_error_signal): Don't unblock signals.
3040 * file.h (struct file): Change member `double_colon' from flag to
3042 * read.c (record_files): Set double_colon pointer instead of flag.
3043 * main.c (main): When disqualifying makefiles for updating, use
3044 double_colon pointer to find all entries for a file.
3045 * file.c (enter_file): If there is already a double-colon entry
3046 for the file, set NEW->double_colon to that pointer.
3047 (file_hash_enter): Use FILE->double_colon to find all entries to
3049 * remake.c (update_goal_chain): Do inner loop on double-colon entries.
3050 (update_file): Use FILE->double_colon pointer to find all entries.
3051 (f_mtime): Likewise.
3052 (notice_finished_file): Propagate mtime change to all entries.
3054 * variable.c (try_variable_definition): Return after abort.
3056 Fri Apr 1 18:44:15 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3058 * read.c (read_makefile): Remove unused variable.
3059 (parse_file_seq): When removing an elt that is just `)', properly
3060 fix up the previous elt's next pointer.
3062 Mon Mar 28 18:31:49 1994 Roland McGrath (roland@mole.gnu.ai.mit.edu)
3064 * configure.in: Do AC_SET_MAKE.
3065 * GNUmakefile (Makefile.in): Edit MAKE assignment into @SET_MAKE@.
3067 Fri Mar 4 00:02:32 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3069 * function.c (subst_expand): If BY_WORD or SUFFIX_ONLY is set and
3070 the search string is the empty string, find a match at the end of
3071 each word (using end_of_token in place of sindex).
3073 * misc.c (end_of_token): Don't treat backslashes specially; you
3074 can no longer escape blanks with backslashes in export, unexport,
3075 and vpath. This was never documented anyway.
3077 Thu Mar 3 23:53:46 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3079 * read.c (read_makefile): Variable name for `define' is not just
3080 first token; use whole rest of line and strip trailing blanks.
3082 Wed Feb 16 16:03:45 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3086 * read.c (read_makefile): Add -d msg stating args.
3088 * read.c (read_makefile): Use isspace to skip over leading
3089 whitespace, and explicitly avoid skipping over tabs. Don't want
3090 to skip just spaces though; formfeeds et al should be skipped.
3092 * default.c (default_variables) [__hpux]: Add f in ARFLAGS.
3094 * arscan.c (ar_name_equal) [__hpux]: Subtract 2 instead of 1 from
3095 sizeof ar_name for max length to compare.
3097 * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Undefine HAVE_SETREUID
3098 #ifdef HAVE_SETUID; likewise HAVE_SETREGID and HAVE_SETGID.
3100 * main.c (main): Call user_access after setting `program', in case
3101 it needs to use it in an error message.
3103 * read.c (read_makefile): Ignore an empty line starting with a tab.
3105 Thu Feb 10 21:45:31 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3107 * configure.in (AC_SYS_SIGLIST_DECLARED): Use this instead of
3108 AC_COMPILE_CHECK that is now its contents.
3110 Fri Feb 4 16:28:54 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3112 * make.h: #undef strerror after #include <string.h>.
3113 [! ANSI_STRING]: Declare strerror.
3115 Thu Feb 3 02:21:22 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3117 * misc.c (strerror): #undef any macro before function definition.
3119 Mon Jan 31 19:07:23 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3121 * variable.c (try_variable_definition): Calculate BEG before loop
3122 to strip blanks by decrementing END. Don't decr END to before BEG.
3124 * read.c (read_makefile): Skip over leading space characters, but
3125 not tabs, after removing continuations and comments (it used to
3128 Tue Jan 25 16:45:05 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3130 * variable.c (define_automatic_variables): In $(@D) et al, use
3131 patsubst to remove trailing slash.
3133 * commands.c (delete_target): New function, broken out of
3134 delete_child_targets. Check for archive members and give special msg.
3135 (delete_child_targets): Use delete_target.
3137 Mon Jan 17 17:03:22 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3139 * default.c (default_suffix_rules): Use $(TEXI2DVI_FLAGS) in
3140 texi2dvi rules. Use $(MAKEINFO_FLAGS) in makeinfo rules.
3142 Tue Jan 11 19:29:55 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3144 * GNUmakefile (tarfiles): Omit make-doc.
3145 (make-$(version).tar): Include make.info*.
3147 Fri Jan 7 16:27:00 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3149 * compatMakefile (configure, config.h.in): Comment out rules.
3151 Thu Jan 6 18:08:08 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3153 * compatMakefile (binprefix, manprefix): New variables.
3154 (instname): Variable removed.
3155 (install): Use $({bin,man}prefix)make in place of $(instname).
3156 File targets likewised renamed.
3158 Mon Jan 3 17:50:25 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3160 * Version 3.70 released.
3162 Thu Dec 23 14:46:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3166 * read.c (parse_file_seq): Inside multi-word archive ref
3167 translation loop, check NEW1==0 at end and break out of the loop.
3169 * GNUmakefile (make-$(version).tar): Distribute install.sh.
3170 * install.sh: New file.
3172 * configure.in (SCCS_GET_MINUS_G check): Put redirection for admin
3173 cmds outside subshell parens, to avoid "command not found" msgs
3176 Wed Dec 22 17:00:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3178 * configure.in (SCCS_GET_MINUS_G check): Put -G flag last in get cmd.
3179 Redirect output & error from get to /dev/null.
3180 Fix reversed sense of test.
3182 Fri Dec 17 15:31:36 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3184 * configure.in (SCCS_GET_MINUS_G check): Use parens instead of
3185 braces inside if condition command; some shells lose.
3187 Thu Dec 16 15:10:23 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3191 * arscan.c [M_UNIX]: Move #undef M_XENIX for PORTAR stuff.
3192 (PORTAR) [M_XENIX]: Define to 0 instead of 1.
3194 * main.c (define_makeflags): Only export MAKEFLAGS if !ALL.
3196 Wed Dec 15 17:47:48 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3198 * main.c (main): Cast result of pointer arith to unsigned int
3199 before passing to define_variable for envars. Matters when
3200 sizeof(unsigned)!=sizeof(ptrdiff_t).
3202 Tue Dec 14 14:21:16 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3204 * configure.in: Add new check for SCCS_GET_MINUS_G.
3205 * config.h.in: Add #undef SCCS_GET_MINUS_G.
3206 * default.c (default_terminal_rules): Use `$(SCCS_OUTPUT_OPTION)' in
3207 place of `-G $@' in SCCS commands.
3208 (default_variables) [SCCS_GET_MINUS_G]: Define SCCS_OUTPUT_OPTION
3211 * configure.in (AC_OUTPUT): Put touch stamp-config in second arg
3212 (so it goes in config.status), rather than afterward.
3214 * ar.c (ar_member_date): Don't call enter_file on the archive file
3215 if it doesn't exist (by file_exists_p).
3217 * compatMakefile ($(infodir)/make.info): Replace `$$d/foo.info'
3218 with `$$dir/make.info' in install-info invocation (oops).
3220 * vpath.c (construct_vpath_list): Only set LASTPATH set PATH when
3221 we do not unlink and free PATH.
3223 * file.c (print_file_data_base): Fix inverted calculation for
3224 average files per hash bucket.
3226 * read.c (readline): When we see a NUL, give only a warning and
3227 synthesize a newline to terminate the building line (used to
3228 fatal). Move fgets call into the loop condition, and after the
3229 loop test ferror (used to test !feof in the loop).
3231 Fri Dec 3 16:40:31 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3233 * configure.in: Check for strerror in AC_HAVE_FUNCS.
3235 Thu Dec 2 15:37:50 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3237 Differentiate different flavors of missing makefile error msgs,
3238 removing gratuitous `fopen: ' and giving caller for included makefiles.
3239 * misc.c [! HAVE_STRERROR]: Define our own strerror here.
3240 (perror_with_name, pfatal_with_name): Use strerror instead of
3241 replicating its functionality.
3242 * read.c (read_makefile): Return int instead of void.
3243 (read_all_makefiles, read_makefile): Change callers to notice zero
3244 return and give error msg.
3246 Thu Nov 11 11:47:36 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3250 * default.c: Put `-G $@' before $< in SCCS cmds.
3252 Wed Nov 10 06:06:14 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3254 * read.c (read_makefile): After trying a variable defn, notice if
3255 the line begins with a tab, and diagnose an error.
3257 Sun Nov 7 08:07:37 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3261 Wed Nov 3 06:54:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3265 * implicit.c (try_implicit_rule): Look for a normal rule before an
3268 Fri Oct 29 16:45:28 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3270 * function.c (expand_function: `sort'): Double NWORDS when it
3271 overflows, instead of adding five.
3273 * compatMakefile (clean): Remove loadavg.
3275 Wed Oct 27 17:58:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3279 * file.h (NEW_MTIME): Define new macro.
3280 * main.c (main): Set time of NEW_FILES to NEW_MTIME, not to
3281 current time returned from system. Removed variable NOW.
3282 * remake.c (notice_finished_file): Use NEW_MTIME in place of
3283 current time here too.
3285 Tue Oct 26 19:45:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3289 * remake.c (update_file_1): Don't clear MUST_MAKE when FILE has no
3290 cmds and !DEPS_CHANGED unless also !NOEXIST.
3292 Mon Oct 25 15:25:21 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3294 * read.c (parse_file_seq): When converting multi-word archive
3295 refs, ignore a word beginning with a '('.
3297 Fri Oct 22 02:53:38 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3299 * configure.in: Check for sys/timeb.h.
3300 * make.h [HAVE_SYS_TIMEB_H]: Test this before including it.
3302 Thu Oct 21 16:48:17 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3306 * rule.c (convert_suffix_rule): New local TARGPERCENT. Set it to
3307 TARGNAME+1 for "(%.o)", to TARGNAME for "%.?". Use it in place of
3308 TARGNAME to initialize PERCENTS[0].
3310 Mon Oct 18 06:49:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3312 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
3313 Remove AC_USG; it is no longer used.
3315 * file.c (print_file): New function, broken out of
3316 print_file_data_base.
3317 (print_file_data_base): Call it.
3318 * rule.c (print_rule): New function, broken out of
3319 print_rule_data_base.
3320 (print_rule_data_base): Call it.
3322 Thu Oct 14 14:54:03 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3324 * default.c (install_default_suffix_rules): New function, broken
3325 out of install_default_implicit_rules.
3326 (install_default_implicit_rules): Move suffix rule code there.
3327 * make.h: Declare install_default_suffix_rules.
3328 * main.c (main): Call install_default_suffix_rules before reading
3329 makefiles. Move convert_to_pattern call before
3330 install_default_implicit_rules.
3332 * job.h (struct child): Make `pid' member type `pid_t' instead of
3335 * compatMakefile (RANLIB): New variable, set by configure.
3336 (glob/libglob.a): Pass RANLIB value down to submake.
3338 Fixes for SCO 3.2 "devsys 4.2" from pss@tfn.com (Peter Salvitti).
3339 * make.h: Include <sys/timeb.h> before <time.h> for SCO lossage.
3340 * job.c [! getdtablesize] [! HAVE_GETDTABLESIZE]: If NOFILE is not
3341 defined but NOFILES_MAX is, define it to be that.
3343 Mon Oct 11 19:47:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3345 * GNUmakefile (make-$(version).tar): Depend on acconfig.h, so it
3348 Sun Oct 3 15:15:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3350 * default.c (default_terminal_rules): Add `-G $@' to SCCS get cmds.
3352 Tue Sep 28 14:18:20 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3354 * job.c (construct_command_argv_internal): Add ^ to SH_CHARS; it
3355 is another symbol for | in some shells.
3356 * main.c (main): Add it to CMD_DEFS quoting list as well.
3358 Mon Sep 20 18:05:24 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3360 * job.c (construct_command_argv_internal): Remove '=' from
3361 SH_CHARS. Only punt on '=' if it is unquoted in a word before the
3362 first word without an unquoted '='.
3364 * main.c (define_makeflags): Set v_export for MAKEFLAGS.
3366 Fri Sep 17 00:37:18 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3368 * remake.c (update_file_1): Use .DEFAULT cmds for phony targets.
3370 * make.h [_AIX && _POSIX_SOURCE]: Define POSIX.
3372 * commands.c (delete_child_targets): Don't delete phony files.
3374 * job.c (start_job_command): Set COMMANDS_RECURSE in FLAGS if we
3375 see a `+' at the beginning of the command line.
3377 Thu Sep 9 17:57:14 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3381 Wed Sep 8 20:14:21 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3383 * main.c (define_makeflags): Define MAKEFLAGS with o_file, not o_env.
3385 Mon Aug 30 12:31:58 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3387 * expand.c (variable_expand): Fatal on an unterminated reference.
3389 Thu Aug 19 16:27:53 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3393 * variable.c (define_automatic_variables): Define new o_default
3394 variable `MAKE_VERSION' from version_string and remote_description.
3396 * make.h (version_string, remote_description): Declare these here.
3397 * main.c: Don't declare version_string.
3398 (print_version): Don't declare remote_description.
3400 Wed Aug 18 15:01:24 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3402 * read.c (read_makefile): Free space pointed to by CONDITIONALS
3403 before restoring the old pointer.
3405 Mon Aug 16 17:33:36 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3407 * compatMakefile ($(objs)): Depend on config.h.
3409 * GNUmakefile (build.sh.in): Depend on compatMakefile.
3411 * configure.in: Touch stamp-config after AC_OUTPUT.
3413 Fri Aug 13 16:04:22 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3417 Thu Aug 12 17:18:57 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3419 * make.h: Include <config.h> instead of "config.h".
3421 Wed Aug 11 02:35:25 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3423 * main.c (main): Make all variables interned from ENVP be v_export.
3424 * variable.c (try_variable_definition): In v_default case, don't
3425 check for an o_file variable that `getenv' finds.
3427 * job.c (reap_children): New local variable ANY_LOCAL; set it
3428 while setting ANY_REMOTE. If !ANY_LOCAL, don't wait for local kids.
3430 * main.c (main): Don't call decode_env_switches on MFLAGS. DOC THIS.
3432 * function.c (expand_function): #if 0 out freeing of ENVP since it
3435 Mon Aug 9 17:37:20 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3439 * remote-stub.c (remote_status): Set errno to ECHILD before return.
3440 * job.c (reap_children): Scan the chain for remote children and
3441 never call remote_status if there are none.
3443 * function.c (expand_function: `shell'): #if 0 out calling
3444 target_environment; just set ENVP to environ instead.
3446 * job.c (reap_children): Check for negative return from
3447 remote_status and fatal for it.
3448 When blocking local child wait returns 0, then try a blocking call
3451 Tue Aug 3 00:19:00 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3453 * compatMakefile (clean): Delete make.info* and make.dvi here.
3454 (distclean): Not here.
3456 * dep.h (RM_*): Use #defines instead of enum to avoid lossage from
3457 compilers that don't like enum values used as ints.
3459 Mon Aug 2 16:46:34 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3461 * compatMakefile (loadavg): Add $(LOADLIBES).
3463 Sun Aug 1 16:01:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3467 * compatMakefile (loadavg, check-loadavg): New targets.
3468 (check): Depend on check-loadavg.
3470 * compatMakefile (glob/libglob.a): Depend on config.h.
3472 * misc.c (log_access): Write to stderr instead of stdout.
3474 Fri Jul 30 00:07:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3478 Thu Jul 29 23:26:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3480 * configure.in (SYS_SIGLIST_DECLARED): In test program include
3481 <unistd.h> #ifdef HAVE_UNISTD_H.
3483 * compatMakefile (.PHONY): Put after `all' et al.
3485 * configure.in: Add AC_IRIX_SUN.
3487 Wed Jul 28 17:41:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3491 Mon Jul 26 14:36:49 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3495 Sun Jul 25 22:09:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3499 * compatMakefile ($(infodir)/make.info): Don't use $(instname).
3500 Run install-info script if present.
3502 Fri Jul 23 16:03:50 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3504 * make.h [STAT_MACROS_BROKEN]: Test this instead of [uts].
3506 * configure.in: Add AC_STAT_MACROS_BROKEN.
3508 Wed Jul 14 18:48:11 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3512 * read.c (read_makefile): Recognize directive `-include', like
3513 `include' but sets RM_DONTCARE flag.
3515 * variable.c (target_environment): If FILE is nil, use
3516 current_variable_set_list in place of FILE->variables.
3517 * function.c (expand_function: `shell'): Get an environment for
3518 the child from target_environment instead of using environ.
3520 * dep.h: Declare read_all_makefiles here.
3521 (RM_*): Define new enum constants.
3522 * read.c (read_makefile): Second arg is FLAGS instead of TYPE.
3523 Treat it as a bit mask containing RM_*.
3524 (read_all_makefiles): For default makefiles, set D->changed to
3525 RM_DONTCARE instead of 1.
3526 * main.c: Don't declare read_all_makefiles here.
3527 (main): Check `changed' member of read_makefiles elts for RM_*
3528 flags instead of specific integer values.
3530 Mon Jul 12 22:42:17 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3532 * make.h [sequent && i386]: #undef POSIX. From trost@cse.ogi.edu.
3534 Thu Jul 8 19:51:23 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3536 * vpath.c (construct_vpath_list): If ELEM is zero 0, free PATTERN
3538 (build_vpath_lists): Empty `vpaths' around construct_vpath_list
3539 call for $(VPATH). Expand $(strip $(VPATH)), not just $(VPATH).
3541 * rule.c (convert_suffix_rule): Use alloca instead of xmalloc for
3542 PERCENTS, whose storage is not consumed by create_pattern_rule.
3544 * make.h [__mips && _SYSTYPE_SVR3]: #undef POSIX.
3546 Wed Jun 30 18:11:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3550 * rule.c (max_pattern_targets): New variable.
3551 (count_implicit_rule_limits): Compute its value.
3552 * rule.h: Declare it.
3553 * implicit.c (pattern_search): Make TRYRULES max_target_patterns
3554 times bigger. Move adding new TRYRULES elt inside the inner
3555 targets loop, so each matching target gets its own elt in MATCHES
3556 and CHECKED_LASTSLASH.
3558 * file.c (remove_intermediates): If SIG!=0 say `intermediate file'
3559 instead of just `file' in error msg.
3561 Fri Jun 25 14:55:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3563 * job.c (construct_command_argv): Turn off
3564 --warn-undefined-variables around expansion of SHELL and IFS.
3565 * read.c (tilde_expand): Likewise for HOME.
3566 (read_all_makefiles): Likewise for MAKEFILES.
3567 * vpath.c (build_vpath_lists): Likewise for VPATH.
3569 * main.c (warn_undefined_variables_flag): New flag variable.
3570 (switches): Add --warn-undefined-variables.
3571 * make.h (warn_undefined_variables_flag): Declare it.
3572 * expand.c (warn_undefined): New function.
3573 (reference_variable): Call it if the variable is undefined.
3574 (variable_expand): In substitution ref, call warn_undefined if the
3575 variable is undefined.
3577 * default.c (default_pattern_rules): Add `%.c: %.w %.ch' and
3578 `%.tex: %.w %.ch' rules.
3579 (default_suffix_rules: .w.c, .w.tex): Pass three args: $< - $@.
3580 (default_suffixes): Add `.ch'.
3582 Mon Jun 21 17:55:39 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3584 * default.c (default_suffixes): Replace `.cweb' with `.w'.
3585 (default_suffix_rules): Rename `.cweb.c' and `.cweb.tex' to `.w.c'
3588 Fri Jun 11 14:42:09 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3590 * compatMakefile ($(bindir)/$(instname)): Add missing backslash.
3592 Thu Jun 10 18:14:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3596 * read.c (multi_glob): Don't free OLD and OLD->name in the
3597 FOUND!=0 fork. Use new block-local variable F instead of
3600 * ar.c (glob_pattern_p): New function, snarfed from glob/glob.c.
3601 (ar_glob): Call it; return nil immediately if MEMBER_PATTERN
3602 contains no metacharacters.
3604 Wed Jun 9 16:25:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3606 * ar.c (ar_glob{_match,_alphacompare}): New function.
3608 * dep.h [! NO_ARCHIVES]: Declare it.
3609 * read.c (multi_glob) [! NO_ARCHIVES]: Use it on archive member elts.
3611 * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
3612 multi_glob (which doesn't take a 3rd arg).
3613 * rule.c (install_pattern_rule): Likewise.
3614 * default.c (set_default_suffixes): Here too.
3615 * function.c (string_glob): Don't pass gratuitous arg to multi_glob.
3617 * read.c (parse_file_seq) [! NO_ARCHIVES]: Add post-processing
3618 loop to translate archive refs "lib(a b)" into "lib(a) lib(b)".
3620 Mon Jun 7 19:26:51 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3622 * compatMakefile (installdirs): Actually pass directory names.
3623 ($(bindir)/$(instname)): Test chgrp&&chmod exit status with `if';
3624 if it fails, echo a warning msg, but don't make the rule fail.
3626 * read.c (tilde_expand): New function, broken out of tilde_expand.
3627 (multi_glob): Call it.
3628 (construct_include_path): Expand ~ in directory names.
3629 * dep.h: Declare tilde_expand.
3630 * main.c (enter_command_line_file): Expand ~ at the start of NAME.
3631 (main): Expand ~ in -C args.
3632 * read.c (read_makefile): Expand ~ in FILENAME unless TYPE==2.
3634 Fri Jun 4 13:34:47 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3636 * main.c (decode_env_switches): Use xmalloc instead of alloca for ARGS.
3638 * main.c (main): Put result of alloca in temporary variable with
3639 simple assignment, to make SGI compiler happy.
3641 Thu Jun 3 20:15:46 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3645 * main.c (main): Before re-execing, remove intermediate files, and
3646 print the data base under -p. Sexier debugging message.
3648 * implicit.c (pattern_search): Allocate an extra copy of the name
3649 of a winning intermediate file when putting it in FOUND_FILES.
3651 Wed Jun 2 16:38:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3653 * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
3654 multi_glob (which doesn't take a 3rd arg).
3656 * dir.c (dir_contents_file_exists_p): When reading dirents, ignore
3657 chars within D_NAMLEN that are NULs.
3659 * main.c (decode_switches): Don't savestring ARGV[0] to put it
3661 For string switch, don't savestring `optarg'.
3662 (main): Don't free elts of makefiles->list that are "-".
3663 Use alloca'd rather than savestring'd storage for elts of
3664 makefiles->list that are temporary file names.
3665 * read.c (read_all_makefiles): Don't free *MAKEFILES.
3666 * file.c (enter_file): Don't strip `./'s.
3667 * main.c (enter_command_line_file): New function.
3668 (main): Use it in place of enter_file for command-line goals from
3669 other_files, and for old_files and new_files.
3671 Mon May 31 18:41:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3675 * compatMakefile (.SUFFIXES): Add .info.
3676 ($(infodir)/$(instname).info): Find make.info* in cwd if there,
3677 else in $srcdir. Use basename to remove dir name from installed name.
3679 Thu May 27 17:35:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3681 * implicit.c (pattern_search): When interning FOUND_FILES, try
3682 lookup_file first; if found, free the storage for our copy of the name.
3684 Wed May 26 14:31:20 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3688 * main.c (decode_switches): In usage msg, write `--switch=ARG' or
3689 `--switch[=OPTARG]' rather than `--switch ARG' or `--switch [ARG]'.
3691 Mon May 24 16:17:31 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3693 * rule.c (convert_suffix_rule): New function.
3694 (convert_to_pattern): Use it instead of doing all the work here
3696 For target suffix `.a', generate both the archive magic rule and
3699 * compatMakefile (distclean): Remove stamp-config.
3701 Sat May 22 16:15:18 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3705 * file.c (remove_intermediates): Don't write extra space after `rm'.
3707 * main.c (struct command_switch.type): Remove `usage_and_exit'.
3708 (print_usage_flag): New variable.
3709 (switches: --help): Make type `flag', to set print_usage_flag.
3710 (init_switches): Remove `usage_and_exit' case.
3711 (decode_switches): Likewise.
3712 (decode_switches): Print usage if print_usage_flag is set.
3713 When printing usage, die with status of BAD.
3714 (main): Die with 0 if print_version_flag.
3716 Fri May 21 16:09:28 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3720 Wed May 19 21:30:44 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3722 * compatMakefile (installdirs): New target.
3723 (install): Depend on it.
3725 Sun May 16 20:15:07 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3729 Fri May 14 16:40:09 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3731 * vpath.c (construct_vpath_list): In removal loop for DIRPATH==0,
3732 set LASTPATH to PATH, not NEXT.
3734 * dir.c (read_dirstream): Break out of loop after incrementing
3735 DS->buckets such that it reaches DIRFILE_BUCKETS; avoid trying to
3736 dereference DS->contents->files[DIRFILE_BUCKETS].
3738 * read.c (read_makefile): Clear no_targets after reading a
3739 targetful rule line.
3741 * main.c (main): If print_version_flag is set, exit after printing
3743 (switches): Change --version docstring to say it exits.
3745 * make.h [butterfly]: #undef POSIX.
3747 Wed May 12 15:20:21 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3751 * arscan.c (ar_scan) [! AIAMAG]: Don't declare LONG_NAME.
3752 [AIAMAG]: Pass TRUNCATE flag arg to (*FUNCTION), always zero.
3754 * function.c (handle_function): Use fatal instead of
3755 makefile_fatal when reading_filename is nil.
3757 * configure.in: Add AC_GETGROUPS_T.
3758 * job.c (search_path): Use GETGROUPS_T in place of gid_t.
3760 Sun May 9 15:41:25 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3764 Fri May 7 18:34:56 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3766 * function.c (handle_function): Fatal for unmatched paren.
3768 Thu May 6 16:13:41 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3772 * commands.c (handling_fatal_signal): New variable.
3773 (fatal_error_signal): Set it.
3774 * job.c (reap_children): Avoid nonreentrant operations if that is set.
3775 * make.h: Declare handling_fatal_signal.
3777 * expand.c (reference_variable): New function, snippet of code
3778 broken out of simple-reference case of variable_expand.
3779 (variable_expand): Use it for simple refs.
3780 (variable_expand): When checking for a computed variable name,
3781 notice a colon that comes before the final CLOSEPAREN. Expand
3782 only up to the colon, and then replace the pending text with a
3783 copy containing the expanded name and fall through to subst ref
3785 (variable_expand): Don't bother expanding the name if a colon
3786 appears before the first $.
3787 (expand_argument): Use alloca instead of savestring.
3788 (variable_expand): For subst ref, expand both sides of = before
3789 passing to [pat]subst_expand. Use find_percent instead of lindex
3790 to check the lhs for a %.
3792 Wed May 5 14:45:52 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3796 Mon May 3 17:00:32 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3798 * arscan.c (ar_name_equal) [AIAMAG]: Abort if TRUNCATED is nonzero.
3800 * read.c (read_makefile): Pass extra arg of 1 to parse_file_seq,
3803 Thu Apr 29 19:47:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3807 * arscan.c (ar_scan): New local flag var LONG_NAME. Set it when
3808 we read the member name in any of the fashions that allow it to be
3809 arbitrarily long. Pass its negation to FUNCTION.
3810 (describe_member): Take TRUNCATED from ar_scan and print it.
3811 (ar_name_equal): Take new arg TRUNCATED; if nonzero, compare only
3812 the first sizeof (struct ar_hdr.ar_name) chars.
3813 (ar_member_pos): Take TRUNCATED from ar_scan, pass to ar_name_equal.
3814 * ar.c (ar_member_date_1): Likewise.
3816 Wed Apr 28 21:18:22 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3818 * job.c (reap_children): Before calling start_job_command to start
3819 the next command line, reset C->remote by calling start_remote_job_p.
3821 Mon Apr 26 15:56:15 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3823 * arscan.c (ar_scan): New local var NAMEMAP.
3824 In loop, rename NAME to NAMEBUF; new var NAME is a pointer; new
3825 flag IS_NAMEMAP. When extracting the member name, always put a
3826 null at its end first. If the name is "//" or "/ARFILENAMES", set
3827 IS_NAMEMAP. If we have already read in NAMEMAP, and NAME looks
3828 like " /N", get full name from NAMEMAP+N.
3829 Else if NAME looks like "#1/N", read N chars from the
3830 elt data to be the full name. At end of loop, if IS_NAMEMAP, read
3831 the elt's data into alloca'd NAMEMAP.
3832 (ar_name_equal): #if 0 truncating code.
3834 * make.h: Don't declare vfork at all. It returns int anyway,
3835 unless <unistd.h> declared it; and we conflicted with some systems.
3837 * main.c (define_makeflags): If FLAGSTRING[1] is '-', define
3838 MAKEFLAGS to all of FLAGSTRING, not &FLAGSTRING[1]. Don't want to
3839 define it to something like "-no-print-directory".
3840 Use %g format instead of %f for floating-valued things.
3842 Thu Apr 22 18:40:58 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3844 * GNUmakefile (Makefile.in): Use a substitution ref on nolib-deps
3845 to change remote-%.dep to remote-stub.dep.
3847 Wed Apr 21 15:17:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3851 Fri Apr 16 14:22:22 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3853 * compatMakefile (install): Remove - prefix from chgrp+chmod.
3857 Thu Apr 15 18:24:07 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3859 * acconfig.h: New file; contains "#undef SCCS_GET" for autoheader.
3860 * configure.in: If /usr/sccs/get exists, define SCCS_GET to that,
3862 * default.c (default_variables): Set GET to macro SCCS_GET.
3864 * read.c (parse_file_seq): Take extra arg STRIP; strip `./' only
3865 if nonzero. I hope this is the last time this argument is added
3867 (read_makefile): Pass it 1 when parsing include file names.
3868 Pass it 1 when parsing target file names.
3869 Pass it 1 when parsing static pattern target pattern names.
3870 * rule.c (install_pattern_rule): Pass it 1 when parsing rule deps.
3871 * default.c (set_default_suffixes): Pass it 1 when parsing
3873 * function.c (string_glob): Pass it 0 here.
3875 Wed Apr 14 11:32:05 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3877 * misc.c (log_access): New function.
3878 ({init,user,make,child}_access): Call it.
3879 (child_access): Abort if !access_inited.
3881 * main.c (switches: --no-print-directory): Use 1 instead of -1 for
3882 single-letter option.
3883 (init_switches, decode_switches, define_makeflags): An option with
3884 no single-letter version is no longer indicated by a value of -1;
3885 instead a value that is !isalnum.
3886 (init_switches): Don't put such switches into the string, only
3887 into the long_option table.
3889 * make.h [!NSIG] [!_NSIG]: #define NSIG 32.
3891 * job.c [HAVE_WAITPID]: Remove #undef HAVE_UNION_WAIT. AIX's
3892 bsdcc defined WIF* to use union wait.
3894 * main.c (struct command_switch): Change member `c' to type int.
3895 (switches): Make const.
3896 (decode_switches): Use `const struct command_switch *'.
3897 (define_makeflags): Likewise.
3899 * default.c (default_suffix_rules): Add `-o $@' to makeinfo rules.
3901 Mon Apr 12 12:30:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3905 * configure.in (AC_HAVE_HEADERS): Check for string.h and memory.h.
3906 Removed AC_MEMORY_H.
3907 * make.h [USG, NeXT]: Don't test these.
3908 [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
3909 [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
3910 [! ANSI_STRING]: Put decls of bcopy et al here.
3911 [sparc]: Don't test this for alloca.h; HAVE_ALLOCA_H is sufficient.
3912 [HAVE_SIGSETMASK]: Test this rather than USG.
3913 [__GNU_LIBRARY__ || POSIX]: Don't #include <unistd.h> again.
3914 * main.c (main): Handle SIGCHLD if defined, and SIGCLD if defined.
3915 It doesn't hurt to do both if they are both defined, and testing
3917 * dir.c: Rationalize directory header conditionals.
3918 * arscan.c [HAVE_FCNTL_H]: Test this rather than USG || POSIX.
3920 * default.c (default_suffixes): Add `.txinfo'.
3921 (default_suffix_rules): Add `.txinfo.info' and `.txinfo.dvi' rules.
3923 * variable.c (try_variable_definition): Replace RECURSIVE flag
3924 with enum FLAVOR, which can be simple, recursive, or append.
3925 Recognize += as append flavor. Set new variable VALUE in a switch
3926 on FLAVOR. For append flavor, prepend the variable's old value.
3927 If the variable was previously defined recursive, set FLAVOR to
3928 recursive; if it was defined simple, expand the new value before
3929 appending it to the old value. Pass RECURSIVE flag to
3930 define_variable iff FLAVOR == recursive.
3932 * variable.c (try_variable_definition): Use alloca and bcopy for
3933 NAME, instead of savestring. Might as well use stack storage
3934 since we free it immediately anyway.
3936 Thu Apr 8 18:04:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3938 * job.c (start_waiting_jobs): Move decl of JOB outside of loop.
3940 * main.c (define_makeflags): Rename `struct flag' member `switch'
3941 to `cs', which is not a reserved word.
3943 Wed Apr 7 15:30:51 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3945 * job.c (new_job): Call start_waiting_jobs first thing.
3946 (start_waiting_job): Changed return type from void to int.
3947 Return 0 when putting the child on the waiting_jobs chain.
3948 (start_waiting_jobs): Don't check load and job_slots here.
3949 Always take a job off the chain and call start_waiting_job on it;
3950 give up and return when start_waiting_job returns zero.
3952 * main.c (define_makeflags: struct flag): Change member `char c' to
3953 `struct command_switch *switch'.
3954 (ADD_FLAG): Set that to CS instead of CS->c.
3955 If CS->c is -1, increment FLAGSLEN for the long name.
3956 When writing out FLAGS, handle FLAGS->switch->c == -1 and write
3957 the long name instead.
3959 * compatMakefile (stamp-config): New target of old config.h rule.
3960 Touch stamp-config after running config.status.
3961 (config.h): Just depend on stamp-config, and have empty commands.
3963 Mon Apr 5 20:14:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3965 * job.c [HAVE_WAITPID]: #undef HAVE_UNION_WAIT.
3967 * configure.in (AC_HAVE_FUNCS): Check for psignal.
3969 Fri Apr 2 17:15:46 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3971 * main.c (long_option_aliases): Remove "new"; it is already an
3972 unambiguous prefix of "new-file".
3974 Sun Mar 28 16:57:17 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3978 Wed Mar 24 14:26:19 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3980 * vpath.c (selective_vpath_search): When adding the
3981 name-within-directory at the end of NAME, and we don't add a
3982 slash, don't copy FILENAME in one char too far into NAME.
3984 * variable.c (define_automatic_variables): Find default_shell's
3985 length with strlen, not numerology.
3987 Wed Mar 17 20:02:27 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3989 * main.c (define_makeflags): Add the elts of a string option in
3990 reverse order, so they come out right when reversed again.
3992 Fri Mar 12 15:38:45 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3994 * compatMakefile (make.info): Use `-o make.info'.
3996 Thu Mar 11 14:13:00 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3998 * compatMakefile (REMOTE): Set to @REMOTE@; change comments to
4000 (objs): Replace remote.o with remote-$(REMOTE).o.
4001 (srcs): Replace remote.c with remote-$(REMOTE).c.
4002 (remote.o): Rule removed.
4004 * configure.in (REMOTE): Subst this in Makefile et al; default "stub".
4005 Use AC_WITH to grok --with-customs arg to set REMOTE=cstms.
4006 * GNUmakefile (build.sh.in): Filter out remote-% from objs list.
4007 * build.template (REMOTE): New var; set to @REMOTE@.
4008 (objs): Add remote-${REMOTE}.o.
4010 Wed Mar 10 15:12:24 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4014 * implicit.c (pattern_search): Fix "dependent"->"dependency" in
4015 "Rejecting impossible" -d msg.
4017 * file.c (file_hash_enter): New local vars {OLD,NEW}BUCKET. Store
4018 mod'd values there; never mod {OLD,NEW}HASH.
4020 Mon Mar 8 13:32:48 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4022 * remake.c [eta10]: Include <fcntl.h> instead of <sys/file.h>.
4024 * compatMakefile (VPATH): Set this to @srcdir@.
4025 (srcdir): Set this to $(VPATH).
4027 * main.c (main): New local var DIRECTORY_BEFORE_CHDIR. Save in it
4028 a copy of CURRENT_DIRECTORY after the first getcwd. Use it
4029 instead of CURRENT_DIRECTORY when chdir'ing back before re-execing.
4031 * remake.c (notice_finished_file): Pass missing SEARCH arg to f_mtime.
4033 * read.c (read_makefile): Remove extraneous arg to parse_file_seq.
4035 Mon Feb 22 14:19:38 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4037 * compatMakefile ($(infodir)/$(instname).info): Use , instead of /
4038 as the sed delimiter char.
4040 Sun Feb 21 14:11:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4044 * rule.h (struct rule): Removed `subdir' member.
4045 * rule.c (new_pattern_rule): No need to clear it.
4046 (count_implicit_rule_limits): Set the `changed' flag in each dep
4047 that refers to a nonexistent directory. No longer set rule-global
4048 `subdir' flag with that information.
4049 (print_rule_data_base): Don't record info on `subdir' flags.
4051 * implicit.c (pattern_search): Check the DEP->changed flag rather
4052 than the (now gone) RULE->subdir flag. Also test CHECK_LASTSLASH;
4053 if it is set, the file might exist even though the DEP->changed
4056 * rule.c (count_implicit_rule_limits): Pass "", not ".", as file
4057 name arg to dir_file_exists_p to check for existence of directory.
4059 * implicit.c (pattern_search): Inside dep-finding loop, set
4060 CHECK_LASTSLASH from the value recorded in CHECKED_LASTSLASH[I],
4061 rather than computing it anew.
4063 * commands.c (set_file_variables): Must alloca space for PERCENT
4064 and copy it, to avoid leaving the trailing `)' in the value.
4066 * misc.c (remove_comments): Fixed backslash-checking loop
4067 condition to allow it to look at the first char on the line.
4068 P2 >= LINE, not P2 > LINE.
4070 * compatMakefile ($(bindir)/$(instname)): Before moving $@.new to
4071 $@, rm $@.old and mv $@ to $@.old.
4073 * variable.c (try_variable_definition): Take new args FILENAME and
4074 LINENO. Fatal if the variable name is empty.
4075 * read.c (read_makefile): Change callers.
4076 * main.c (main): Likewise.
4078 * compatMakefile (group): Define to @KMEM_GROUP@, autoconf magic
4079 that configure will replace with the group owning /dev/kmem.
4081 Mon Feb 8 14:26:43 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4083 * vpath.c (vpath_search): Take second arg MTIME_PTR, pass thru to
4084 selective_vpath_search.
4085 (selective_vpath_search): Take second arg MTIME_PTR.
4086 If the dir cache thinks a file exists, stat it to make sure, and
4087 put the modtime in *MTIME_PTR.
4088 * remake.c (library_search): Take second arg MTIME_PTR.
4089 When we find a match, record its mtime there.
4090 Pass MTIME_PTR through to vpath_search to do same.
4091 (f_mtime): Pass &MTIME as new 2nd arg to {vpath,library}_search;
4092 store it in FILE->last_mtime if set nonzero.
4093 * implicit.c (pattern_search): Pass nil 2nd arg to vpath_search.
4095 * compatMakefile (remote.o): Prepend `$(srcdir)/' to `remote-*.c',
4096 so globbing looks somewhere it will find things.
4098 * compatMakefile ($(infodir)/$(instname).info): Install `make.info*'
4099 not `$(srcdir)/make.info*'; no need to use basename.
4101 Fri Feb 5 12:52:43 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4105 * compatMakefile (install): Add missing ;\s.
4107 Make -, @, and + prefixes on a pre-expanded command line affect
4108 all lines in the expansion, not just the first.
4109 * commands.h (struct commands): Replace `lines_recurse' member
4111 (COMMANDS_{RECURSE,SILENT,NOERROR}): New macros, bits to set in
4113 * commands.c (chop_commands): Set `lines_flags' instead of
4114 `lines_recurse'. Record not only + but also @ and - prefixes.
4115 * remake.c (notice_finished_file): Check the COMMANDS_RECURSE bit
4116 in FILE->cmds->lines_flags, rather than FILE->cmds->lines_recurse.
4117 * job.c (start_job_command): Replaced RECURSIVE and NOPRINT local
4118 var with FLAGS; initialize it to the appropriate `lines_flags' byte.
4119 Set CHILD->noerror if the COMMANDS_NOERROR bit is set in FLAGS.
4120 Set the COMMANDS_SILENT bit in FLAGS for a @ prefix.
4122 * remake.c (update_goal_chain): Set G->file to its prev after
4123 checking for G being finished, since that check needs to examine
4126 * configure.in (union wait check) [HAVE_WAITPID]: Try using
4127 waitpid with a `union wait' STATUS arg. If waitpid and union wait
4128 don't work together, we should not use union wait.
4132 * remake.c (update_goal_chain): When G->file->updated, move
4133 G->file to its prev. We aren't finished until G->file is nil.
4135 Thu Feb 4 12:53:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4137 * main.c (starting_directory): New global variable.
4138 (main): Set it to cwd after doing -Cs.
4139 (log_working_directory): Use it, rather than computing each time.
4140 * make.h: Declare it.
4142 * compatMakefile (SHELL): Define to /bin/sh for losing Unix makes.
4144 * main.c (decode_env_switches): Allocate (1 + LEN + 1) words for
4145 ARGV, rather than LEN words plus one byte.
4147 Wed Feb 3 18:13:52 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4149 * compatMakefile ($(bindir)/$(instname)): Put - before
4150 install_setgid command line, so its failure won't be an error.
4151 (infodir): New variable.
4152 (install): Depend on $(infodir)/$(instname).info.
4153 ($(infodir)/$(instname).info): New target.
4155 * read.c (read_makefile): If FILENAMES is nil when we see a line
4156 starting with a tab, don't treat it as a command. Just fall
4157 through, rather than giving an error.
4159 * read.c (read_makefile): If the NO_TARGETS flag is set when we see a
4160 command line, don't clear it before continuing. We want
4161 subsequent command lines to be ignored as well.
4163 * job.c (new_job): Before expanding each command line, collapse
4164 backslash-newline combinations that are inside var or fn references.
4166 Mon Feb 1 16:00:13 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4168 * compatMakefile (exec_prefix): Default to $(prefix), not /usr/local.
4170 * compatMakefile (make.info): Pass -I$(srcdir) to makeinfo.
4172 * job.c [POSIX] (unblock_sigs): Made global.
4173 [!POSIX] (unblock_sigs): Move defns to job.h.
4174 * job.h [POSIX] (unblock_sigs): Declare.
4176 Sun Jan 31 19:11:05 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4178 * read.c (read_makefile): In vpath parsing, after finding the
4179 pattern token, take entire rest of line as the search path, not
4180 just the next token.
4182 * compatMakefile (remote.o): Depend on remote-*.c.
4184 Thu Jan 28 16:40:29 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4186 * commands.c (set_file_variables): Don't define any F or D versions.
4187 * variable.c (define_automatic_variables): Define them here as
4188 recursively-expanded variables that use the dir and notdir funcs.
4190 * variable.c (target_environment): In v_default case, don't export
4191 o_default or o_automatic variables.
4193 * configure.in (union wait check): Remove ` and ' inside C code;
4194 they confuse the shell script.
4196 Mon Jan 25 13:10:42 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4200 * vpath.c (construct_vpath_list): When skipping further processing
4201 of an elt that is ".", don't also skip the code that pushes P past
4204 * compatMakefile (distclean): Don't remove make-*.
4206 * configure.in (HAVE_UNION_WAIT): Try to use WEXITSTATUS if it's
4207 defined. If one cannot use WEXITSTATUS with a `union wait'
4208 argument, we don't want to believe the system has `union wait' at all.
4210 * remake.c (update_file): Do nothing to print "up to date" msgs.
4211 (update_goal_chain): Do it here instead.
4212 Use the `changed' flag of each goal's `struct dep' to keep track
4213 of whether files_remade (now commands_started) changed around a
4214 call to update_file for that goal.
4215 When a goal is finished, and its file's update_status is zero (i.e.,
4216 success or nothing done), test the `changed' flag and give an "up
4217 to date" msg iff it is clear.
4218 * make.h (files_remade): Renamed to commands_started.
4219 * remake.c: Changed defn.
4220 (update_goal_chain): Changed uses.
4221 * job.c (start_job_command): Increment commands_started here.
4222 (reap_children): Not here.
4224 * remake.c (update_goal_chain): Don't do anything with files'
4225 `prev' members. update_file now completely handles this.
4227 * variable.c (target_environment): Don't expand recursive
4228 variables if they came from the environment.
4230 * main.c (define_makeflags): For flags with omitted optional args,
4231 store {"", 0} with ADD_FLAG. When constructing FLAGSTRING, a flag
4232 so stored cannot have more flags appended to the same word.
4234 Fri Jan 22 14:46:16 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4236 * variable.c (print_variable_set): In vars/bucket calculation,
4237 don't spuriously multiply by 100.
4241 * job.c [!HAVE_UNION_WAIT] (WTERMSIG, WCOREDUMP, WEXITSTATUS):
4242 Don't define if already defined.
4244 * remake.c (update_file): Don't keep track of the command_state before
4245 calling update_file_1. Remove local variable COMMANDS_FINISHED,
4246 and don't test it to decide to print the "is up to date" msg.
4247 Testing for files_remade having changed should always be sufficient.
4248 The old method lost when we are called in the goal chain run on a
4249 makefile, because the makefile's command_state is already
4250 `cs_finished' from the makefile chain run.
4252 * misc.c [HAVE_SETRE[GU]ID]: Test these to decl setre[gu]id.
4254 * configure.in: Rewrote wait checking.
4255 Use AC_HAVE_HEADERS to check for <sys/wait.h>.
4256 Use AC_HAVE_FUNCS to check for waitpid and wait3.
4257 Use a compile check to test just for `union wait'.
4258 * job.c: Rewrote conditionals accordingly.
4259 [HAVE_WAITPID]: Test this only to define WAIT_NOHANG.
4260 [HAVE_WAIT3]: Likewise.
4261 [HAVE_UNION_WAIT]: Test this to define WAIT_T and W*.
4263 * configure.in: Set CFLAGS and LDFLAGS before all checks.
4265 * dir.c: Add static forward decls of {open,read}_dirstream.
4267 Thu Jan 21 17:18:00 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4271 * job.c [NGROUPS_MAX && NGROUPS_MAX==0]: #undef NGROUPS_MAX.
4273 * compatMakefile (CFLAGS, LDFLAGS): Set to @CFLAGS@/@LDFLAGS@.
4274 * build.template (CFLAGS, LDFLAGS): Same here.
4275 * configure.in: AC_SUBST(CFLAGS) and LDFLAGS.
4276 Set them to -g if not defined in the environment.
4278 * remake.c (library_search): Use LIBNAME consistently, setting it
4279 only once, to be the passed name sans `-l'.
4280 Pass new var FILE to be modified by vpath_search.
4282 Mon Jan 18 14:53:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4286 * job.c (start_waiting_jobs): Return when job_slots_used is equal to
4289 * configure.in: Add AC_CONST for the sake of getopt.
4291 * read.c (read_makefile): Continue after parsing `override'
4292 directive, rather than falling through to lossage.
4293 Check for EOL or blank after "override define".
4295 * compatMakefile (.c.o, remote.o): Put $(CFLAGS) after other switches.
4297 Fri Jan 15 12:52:52 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4301 * main.c (define_makeflags): After writing everything into
4302 FLAGSTRING, only back up two chars if [-1] is a dash, meaning we
4303 just wrote " -". Always terminate the string at *P.
4305 * remake.c (library_search): When constructing names in std dirs,
4306 use &(*LIB)[2] for the stem, not LIBNAME (which points at the
4307 buffer we are writing into!).
4309 Thu Jan 14 13:50:06 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4311 * read.c (read_makefile): Set IN_IGNORED_DEFINE for "override
4312 define" when IGNORING is true.
4314 * compatMakefile (distclean): Remove config.status and build.sh.
4316 Wed Jan 13 16:01:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4320 * misc.c (xmalloc, xrealloc): Cast result of malloc/realloc to
4323 * arscan.c (ar_scan) [AIAMAG]: Cast read arg to (char *).
4325 * variable.c (define_automatic_variables): Override SHELL value for
4326 origin o_env_override as well as o_env.
4328 * GNUmakefile (build.sh.in): Don't replace %globobjs%. Instead,
4329 add the names of the glob objects (w/subdir) to %objs%.
4330 * build.template (globobjs): Removed.
4331 Take basename of $objs before linking.
4333 Tue Jan 12 12:31:06 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4337 * configure.in (AC_OUTPUT): Also edit build.sh.
4338 * build.template: New file.
4339 * GNUmakefile (build.sh.in): New rule to create it from build.template.
4340 (make-$(version).tar.Z): Depend on build.sh.in.
4342 * main.c (die): Call print_data_base if -p.
4343 (main): Don't call it here.
4345 * compatMakefile (defines): Add @DEFS@. configure should turn this
4346 into -DHAVE_CONFIG_H.
4348 Mon Jan 11 14:39:23 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4352 * misc.c (init_access): Surround with #ifdef GETLOADAVG_PRIVILEGED.
4353 ({make,user,child}_access) [! GETLOADAVG_PRIVILEGED]: Make no-op.
4354 * compatMakefile (install_setgid): New var, set by configure.
4355 (install): Install setgid $(group) only if $(install_setgid) is true.
4357 Fri Jan 8 15:31:55 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4359 * job.c (load_too_high): If getloadavg fails with errno==0, give a
4360 message saying that load limits are not supported.
4362 * vpath.c (construct_vpath_list): Rewrote path deletion code to
4363 not try to use PATH's next link after freeing PATH.
4365 * main.c (define_makeflags): Rewritten; now handles string-valued
4366 option, and has no arbitrary limits.
4367 (switches): Set `toenv' flag for -I and -v.
4369 * main.c (decode_env_switches): Cast return value of alloca to char *.
4371 * misc.c (child_access) [HAVE_SETREUID, HAVE_SETREGID]: Use
4372 setre[gu]id in place of set[gu]id.
4374 Wed Jan 6 15:06:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4376 * main.c (main): Define MAKEOVERRIDES, MAKE, and MAKE_COMMAND with
4379 * make.h [POSIX]: Don't test this to use ANSI_STRING.
4380 Testing STDC_HEADERS should be sufficient.
4382 * job.h: Declare start_waiting_jobs.
4384 * read.c (read_makefile): Add missing parens in if stmt that find
4385 conditional directives.
4387 * main.c (main): Declare init_dir.
4388 * implicit.c (pattern_search): Always use two % specs in a
4389 DEBUGP2, and always pass two non-nil args.
4390 Cast field width args to int.
4391 Add missing parens in !RULE->subdir if stmt.
4392 * function.c (expand_function, patsubst_expand): Add parens around
4393 assignments inside `while' stmts.
4394 * commands.c (print_commands): Cast field width args to int.
4396 * read.c (do_define): Cast return value of alloca to (char *).
4398 * main.c (init_switches): New function, broken out of decode_switches.
4399 (decode_switches): Take new arg ENV. If set, ignore non-option
4400 args; print no error msgs; ignore options with clear `env' flags.
4401 (decode_env_switches): Rewritten to chop envar value into words
4402 and pass them to decode_switches.
4403 (switches): Set `env' flag for -I and -v.
4405 * dir.c (init_dir): Cast free to __glob_closedir_hook's type.
4407 Tue Jan 5 14:52:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4411 * job.c [HAVE_SYS_WAIT || !USG]: Don't #include <sys/time.h> and
4412 <sys/resource.h>. <sys/time.h> interacts badly with <time.h>, and
4413 we don't need these anyway.
4415 * configure.in (AC_HAVE_FUNCS): Check for setre[gu]id.
4416 * misc.c ({user,make}_access): Test #ifndef HAVE_SETRE[GU]ID, not
4417 #ifdef POSIX || USG. SunOS 4.1 is supposedly POSIX.1 compliant,
4418 but its set[gu]id functions aren't; its setre[gu]id functions work.
4420 * misc.c ({user,make,child}_access): Give name of caller in error msgs.
4422 * job.c (load_too_high): Say "cannot enforce load limit" in error msg.
4424 * configure.in: Call AC_PROG_CC.
4425 * compatMakefile (CC): Define to @CC@ (autoconf magic).
4427 * compatMakefile: Add .NOEXPORT magic target.
4429 Mon Jan 4 17:00:03 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4431 * main.c (print_version): Updated copyright to include 93.
4433 Thu Dec 31 12:26:15 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4435 * make.h [_AIX]: Don't declare alloca.
4437 Tue Dec 29 13:45:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4441 * compatMakefile (objs): Add signame.o.
4442 (srcs): Add signame.[ch].
4444 * compatMakefile (srcs): Add config.h.in.
4445 (remote.o): Add -I. before -I$(srcdir).
4447 Mon Dec 28 15:51:26 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4451 * read.c (readline): Fatal when LEN==0, indicating a line starting
4453 (readline): Take new arg LINENO, for use in error msg.
4454 (read_makefile, do_define): Pass it.
4456 * compatMakefile (glob/libglob.a): Pass -DHAVE_CONFIG_H in CPPFLAGS.
4457 (.c.o): Add -I. before -I$(srcdir).
4459 Wed Dec 23 12:12:04 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4461 * read.c (read_makefile): Accept and ignore a rule with no targets.
4463 * compatMakefile (ALLOCA_SRC): New variable.
4464 (srcs): Include its value.
4466 * read.c (struct conditional): Renamed member `max_ignoring' to
4467 `allocated'; added new member `seen_else'.
4468 (conditional_line): Initialize seen_else flag when starting an `if...';
4469 set it when we see an `else'; fatal if set when we see `else'.
4470 (read_makefile): Fatal "missing `endif'" if there are any pending
4471 conditionals, not just if we are still ignoring.
4473 Tue Dec 22 15:36:28 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4475 * compatMakefile (manext): Set to 1, not l.
4476 ($(mandir)/$(instname).$(manext)): Use $(srcdir) for make.man in cmds.
4478 * file.c (file_hash_enter): Don't call uniquize_deps here.
4479 * read.c (record_files): Likewise.
4480 * implicit.c (pattern_search): Likewise.
4481 * commands.c (set_file_variables): Call it only here.
4483 * default.c (default_variables) [__convex__]: FC=fc.
4485 * variable.c (target_environment): Expand the values of recursively
4486 expanded variables when putting them into the environment.
4487 * expand.c (recursively_expand): Made global.
4488 * make.h (recursively_expand): Declare it.
4490 * remake.c (check_dep): Set FILE->command_state to cs_deps_running
4491 when a dep's command_state is cs_running or cs_deps_running.
4493 * read.c (read_makefile): Changed error msg for spurious cmds to
4494 not say "first target".
4496 Sun Dec 20 17:56:09 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
4498 * configure.in: Do AC_CONFIG_HEADER right after AC_INIT.
4499 * make.h (HAVE_CONFIG_H): #include "config.h", then #define this.
4500 * compatMakefile (config.h, configure, config.h.in): New rules.
4501 (defines): Removed @DEFS@.
4503 Thu Dec 17 16:11:40 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4505 * compatMakefile (realclean): Just depend on distclean; no cmds.
4506 (distclean): Do what realclean did before; also remove Makefile and
4507 config.h; don't remove configure.
4508 (info, dvi): New targets; depend on make.{info,dvi}.
4509 (doc): Removed target.
4510 (MAKEINFO, TEXI2DVI): New vars.
4511 (make.info, make.dvi): Use them instead of explicit cmds.
4513 Wed Dec 16 16:25:24 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4515 * configure.in: Added fcntl.h to AC_HAVE_HEADERS. getloadavg cares.
4517 Wed Dec 9 15:21:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4519 * main.c (long_option_aliases): Add --new-file alias for -W.
4521 * default.c (default_variables): Change all C++ to CXX and C++FLAGS
4524 * read.c (do_define): Expand the variable name before using it.
4526 * main.c (main): Define variable "MAKE_COMMAND" to argv[0];
4527 define "MAKE=$(MAKE_COMMAND) $(MAKEOVERRIDES)" always.
4529 * remake.c (library_search): Search for libNAME.a in cwd; look in
4530 vpath before looking in standard dirs, not after.
4531 Changed order of std dirs to: /lib, /usr/lib, ${prefix}/lib.
4533 Mon Nov 23 14:57:34 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4535 * default.c (default_pattern_rules, default_terminal_rules): Added
4536 brackets around initializers.
4538 * variable.c (try_variable_definition): Don't check for LINE[0]=='\t'.
4539 (try_variable_definition): Expand the name before defining the var.
4541 * job.c (init_siglist): Removed function.
4542 Removed decl of `sys_siglist'.
4543 * make.h [! HAVE_SYS_SIGLIST]: #include "signame.h".
4544 [HAVE_SYS_SIGLIST && !SYS_SIGLIST_DECLARED]: Declare sys_siglist
4545 only under these conditions.
4546 * main.c (main): Don't declare init_siglist.
4547 (main) [! HAVE_SYS_SIGLIST]: Call signame_init instead of init_siglist.
4549 Wed Nov 18 14:52:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4551 * read.c (record_files): Don't try to append to FIRSTDEPS if it's
4552 nil; instead just set it to MOREDEPS.
4554 Mon Nov 16 17:49:17 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4556 * vpath.c (construct_vpath_list): Initialize P to DIRPATH before
4557 loop that sets MAXELEM.
4559 Fri Nov 13 18:23:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4563 Thu Nov 12 15:45:31 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4565 * job.c (start_job_command): Under -n, increment files_remade after
4566 processing (i.e., printing) all command lines.
4568 Tue Nov 10 15:33:53 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4570 * read.c (record_files): Append new deps if this rule has no
4571 commands; prepend them to existing deps if this rule has no commands.
4573 * dir.c (open_dirstream): Return nil if DIR->contents->files is nil.
4575 * read.c (parse_file_seq): Removed last arg STRIP. Always strip `./'s.
4576 (read_makefile): Changed callers.
4577 * function.c (string_glob): Likewise.
4578 * rule.c (install_pattern_rule): Likewise.
4580 Mon Nov 9 17:50:16 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4582 * remake.c (files_remade): Made global.
4583 (notice_finished_file): Don't increment files_remade here; this
4584 function gets called in many situations where no remaking was in
4586 * job.c (reap_children): Do it here instead, when we know that
4587 actual commands have been run for the file.
4588 * make.h (files_remade): Declare it.
4590 Thu Nov 5 18:26:10 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4592 * vpath.c (construct_vpath_list): Allow blanks as well as colons to
4593 separate elts in the search path.
4595 * read.c (read_makefile): Don't fatal on extra tokens in `vpath'.
4596 The search path can contain spaces now.
4598 Tue Nov 3 20:44:32 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4600 * compatMakefile (check): New target; no-op.
4602 * file.c (file_hash_enter): Mod OLDHASH by FILE_BUCKETS after
4603 testing for OLDHASH==0 but before using the value.
4604 (rename_file): Don't mod OLDHASH by FILE_BUCKETS before passing it
4607 * file.c (rename_file): Notice when OLDFILE->cmds came from
4608 default.c, and don't try to print ->filename in that case.
4610 Sun Oct 25 01:48:23 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4612 * remake.c (update_file): Don't process F->also_make here.
4613 (notice_finished_file): Don't process FILE->also_make if no attempt
4614 to update FILE was actually made.
4615 Fixed to call f_mtime directly to refresh their modtimes.
4617 Sat Oct 24 22:08:59 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4619 * read.c (find_percent): Don't increment P again after skipping
4622 * expand.c (variable_expand): In call to patsubst_expand, don't
4623 find `%'s ourselves; let that function do it.
4625 * read.c (read_makefile: record_waiting_files): Don't call
4626 record_files if FILENAMES is nil.
4627 (read_makefile): All alternatives in the parsing, except for rule
4628 lines, fall through to the end of the loop. At the end of the
4629 loop, do record_waiting_files so we notice later spurious cmds.
4631 Fri Oct 23 15:57:37 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4633 * variable.c (define_automatic_variables): Free old value of SHELL
4634 before replacing it.
4636 Thu Oct 15 18:57:56 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4638 * compatMakefile (.c.o): Add -I$(srcdir)/glob to flags.
4640 * dir.c (open_dirstream): Cast return value to __ptr_t.
4642 * default.c (default_variables: "GET") [_IBMR2]: Use USG defn.
4644 * make.h (MAXPATHLEN): Moved out of #ifndef POSIX.
4645 (GET_PATH_MAX): Moved from #ifdef POSIX to #ifdef PATH_MAX #else.
4646 Define as (get_path_max ()).
4647 [! PATH_MAX] (NEED_GET_PATH_MAX): Define.
4648 [! PATH_MAX] (get_path_max): Declare fn.
4649 * misc.c [NEED_GET_PATH_MAX] (get_path_max): New function.
4651 Mon Oct 12 13:34:45 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4655 * job.c (sys_siglist): Only declare #ifndef SYS_SIGLIST_DECLARED.
4656 * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
4657 SYS_SIGLIST_DECLARED.
4659 * dir.c (file_impossible): When initializing DIR->contents, set
4660 DIR->contents->dirstream to nil.
4662 * compatMakefile (GLOB): Define new variable.
4663 (objs): Use it, rather than glob/libglob.a explicitly.
4665 * read.c (parse_file_seq): When stripping "./", handle cases like
4666 ".///foo" and "./////".
4667 * file.c (lookup_file, enter_file): Likewise.
4669 Sun Oct 11 17:00:35 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4671 * dir.c (struct dirstream, {open,read}_dirstream): New
4672 data type and functions to read a directory sequentially.
4673 (init_dir): New function to hook it into glob.
4674 * main.c (main): Call init_dir.
4676 * compatMakefile (objs): Added glob/libglob.a.
4677 * configure.in: Remove code to test for glob.
4679 Fri Oct 9 12:08:30 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4681 * read.c (record_files): Generalized test for NAME pointing
4682 somewhere into F->name.
4684 * variable.c (define_variable_in_set): Free old value when replacing.
4686 * read.c (do_define): Free the linebuffer before returning.
4687 (record_files): When clearing .SUFFIXES deps, free their data.
4688 (multi_glob): Free OLD and its data when replacing it with results
4691 * commands.c (set_file_variables): Use alloca in place of xmalloc
4692 for temp space for $^, $?, et al.
4694 * dir.c (struct directory): New member `contents' replaces `files'
4696 (struct directory_contents): New type.
4697 (directories_contents): New hash table.
4698 (dir_struct_file_exists_p): Take a struct directory_contents.
4699 (dir_file_exists_p): Pass it the `contents' member of the dir found.
4700 (dir_struct_file_exists_p): Renamed to dir_contents_file_exists_p;
4701 made static. Return 0 if DIR is nil (meaning it couldn't be stat'd).
4702 (dir_file_exists_p, find_directory): Change all callers.
4703 (file_impossible): Use DIR->contents, initializing it if nil.
4704 (print_dir_data_base): Use DIR->contents, and print out device and
4705 inode numbers with each directory.
4707 * Changes for performance win from John Gilmore <gnu@cygnus.com>:
4708 * dir.c (DIRECTORY_BUCKETS): Increase to 199.
4709 (DIRFILE_BUCKETS): Decrease to 107.
4710 (find_directory): Allocate and zero a multiple of
4711 sizeof (struct dirfile *), not of sizeof (struct dirfile).
4712 (dir_struct_file_exists_p): New function, nearly all code from
4714 (dir_file_exists_p): Just call find_directory+dir_struct_file_exists_p.
4715 * vpath.c (selective_vpath_search): Remove redundant
4716 dir_file_exists_p call.
4718 * configure.in: Comment out glob check; always use our code.
4720 Fri Oct 2 19:41:20 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4722 * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
4723 HAVE_SYS_SIGLIST; after doing #define sys_siglist _sys_siglist, we
4726 Wed Sep 30 19:21:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4728 * main.c (main): Don't do -w automatically if -s.
4730 Tue Sep 29 21:07:55 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4732 * main.c (printed_version): Move variable inside print_version.
4733 (print_version): Return immediately if printed_version is set.
4734 (die): Don't test printed_version here.
4735 (decode_switches): Under -v, do print_version before giving usage.
4736 (DESCRIPTION_COLUMN): New macro.
4737 (decode_switches): Use it when printing the usage message.
4738 Leave at least two spaces between options and their descriptions.
4740 Fri Sep 25 13:12:42 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4744 Wed Sep 16 16:15:22 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4746 * read.c (read_makefile): Save errno value from trying to open
4747 FILENAME, and restore it before erring; otherwise we get the errno
4748 value from the last elt of the search path.
4750 Tue Sep 15 15:12:47 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4752 * main.c (long_option_aliases): Add --stop for -S.
4754 * read.c (word1eq): Do strncmp before dereferencing someplace that
4755 may be out in space.
4757 Wed Sep 9 15:50:41 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4759 * remake.c (notice_finished_file): If all the command lines were
4760 recursive, don't do the touching.
4762 * job.c (start_job_command): Don't check for + here.
4763 * commands.c (chop_commands): Do it here instead.
4765 * default.c (default_terminal_rules): Prepend + to cmds for RCS.
4767 Wed Sep 2 17:53:08 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4769 * compatMakefile (objs): Include $(ALLOCA).
4771 * make.h [CRAY]: Move #define signal bsdsignal to before #includes.
4773 Thu Aug 27 17:45:43 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
4775 * read.c (default_include_directories): Add INCLUDEDIR first.
4776 * compatMakefile (includedir): Define.
4777 (defines): Add -D for INCLUDEDIR="$(includedir)".
4779 * read.c (read_makefile): Grok multiple files in `include';
4782 * remake.c (library_search): New function.
4783 (library_file_mtime): Remove function.
4784 (f_mtime): Use library_search instead of library_file_mtime.
4785 * compatMakefile (libdir): Define.
4786 (defines): Add -D for LIBDIR="$(libdir)".
4787 * make.texinfo (Libraries/Search): Document change.
4789 * file.c (rename_file): Fix file_hash_enter call with missing arg.
4791 Wed Aug 26 17:10:46 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4795 * main.c (main): Set command_state to cs_finished for temp files
4796 made for stdin makefiles.
4798 * main.c (decode_switches): Don't tell getopt to return non-option
4800 Ignore an argument of `-'.
4802 Thu Aug 20 13:36:04 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4804 * job.c (start_job_command): If (touch_flag && !RECURSIVE), ignore
4805 the command line and go to the next.
4806 (notice_finished_file): Under -t, touch FILE.
4807 * remake.c (remake_file): Don't touch it here.
4809 Wed Aug 19 16:06:09 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4811 * function.c (pattern_matches): Use temporary for strlen (WORD)
4812 instead of two function calls.
4814 * compatMakefile (LOAD_AVG): Remove variable and comments.
4816 Tue Aug 18 14:58:58 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4818 * make.texinfo (Running): Node renamed to `make Invocation'.
4820 Fri Aug 14 12:27:10 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4822 * arscan.c (ar_name_equal): Don't compare [MAX-3..MAX] if
4825 Thu Aug 13 17:50:09 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4829 * main.c: Don't #include <time.h>; make.h already does.
4831 Mon Aug 10 17:03:01 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4833 * implicit.c (pattern_search): Fixed copying of suffix when building
4836 * function.c (expand_function: `shell'): Make sure BUFFER is
4837 null-terminated before replacing newlines.
4839 * compatMakefile (mandir): Use man$(manext), not always manl.
4841 Sun Aug 2 01:42:50 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4843 * rule.c (new_pattern_rule): Not static.
4844 * rule.h: Declare it.
4846 * file.c (file_hash_enter): New function, most code from rename_file.
4847 (rename_file): Call it.
4848 * file.h (file_hash_enter): Declare it.
4852 Thu Jul 30 15:40:48 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4854 * main.c (decode_switches): Handle usage_and_exit when building
4855 long options vector.
4857 * default.c (default_terminal_rules): Make RCS rules use $(CHECKOUT,v).
4858 (default_variables): Define CHECKOUT,v (hairy).
4860 * make.h [!HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
4861 sys_siglist to _sys_siglist.
4863 Sun Jul 26 16:56:32 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4865 * NEWS: Add header and tail copyright info like Emacs NEWS.
4867 * make.h [ANSI_STRING]: Don't #define index, rindex, bcmp, bzero,
4868 bcopy if already #define'd.
4869 [STDC_HEADERS] (qsort, abort, exit): Declare here.
4870 [! __GNU_LIBRARY__ && !POSIX]: Not here.
4872 * make.h [_AIX]: #pragma alloca first thing.
4874 * job.c (start_waiting_job): Set the command_state to cs_running
4875 when we queue a job on waiting_jobs.
4877 Fri Jul 24 02:16:28 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4879 * variable.c (define_automatic_variables): Use "" instead of nil
4882 Thu Jul 23 22:31:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4886 * main.c (struct command_switch.type): Add alternative usage_and_exit.
4887 (command_switches): Add -h/--help.
4889 Thu Jul 16 14:27:50 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4891 * GNUmakefile (make-$(version).tar.Z): Include NEWS, not CHANGES.
4892 * README.template: Mention NEWS.
4893 * CHANGES: Renamed to NEWS.
4895 * main.c [! STDC_HEADERS] [sun]: Don't declare exit.
4897 Tue Jul 14 18:48:41 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4899 * main.c (main): Set -o files' command_states to cs_finished.
4901 * rule.c (count_implicit_rule_limits): Decrement num_pattern_rules
4902 when tossing a rule.
4904 * main.c (main): Use alloca only in simple local var assignment,
4905 for braindead SGI compiler.
4907 * rule.c (print_rule_data_base): Barf if num_pattern_rules is
4908 inconsistent with the number computed when listing them.
4910 Mon Jul 13 17:51:53 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4912 * commands.c (set_file_variables): For $? and $^ elts that are archive
4913 member refs, use member name only.
4915 Fri Jul 10 00:05:04 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4917 * variable.h (struct variable.export): Add new alternative v_ifset.
4918 * variable.c (target_environment): Check for it.
4919 (define_automatic_variables): Set it for MAKEFILES.
4921 Thu Jul 9 21:24:28 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4923 * compatMakefile (objs): Remove getloadavg.o; $(extras) gets it.
4924 (remote.o): Use $(srcdir)/remote.c, not $remote.c<.
4925 (distclean, mostlyclean): New targets.
4927 Tue Jul 7 19:12:49 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4931 * compatMakefile (config.status): Remove rule.
4933 * job.c (start_waiting_job): Free C after using C->file, not before.
4935 Sat Jul 4 20:51:49 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4937 * commands.c, job.c, main.c, make.h, remote-cstms.c: Use #ifdef
4938 HAVE_* instead of #ifndef *_MISSING.
4939 * configure.in: Use AC_HAVE_FUNCS instead of AC_MISSING_FUNCS (gone).
4941 Thu Jul 2 18:47:52 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4943 * main.c (main): makelevel>0 or -C implies -w.
4945 Tue Jun 30 20:50:17 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4947 * file.c, job.c, function.c: Don't #include <errno.h>.
4948 make.h: Do it here instead.
4949 * arscan.c (ar_member_touch): Don't declare errno.
4951 Thu Jun 25 17:06:55 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4953 * GNUmakefile (make-$(version).tar.Z): Depend on INSTALL, configure.in.
4955 * remake.c (update_file): If commands or deps are running after
4956 update_file_1 returns, break out of the :: rule (->prev) loop and
4959 * job.c (job_next_command): New function; code from start_job.
4960 (start_job_command): Renamed from start_job. Call job_next_command
4961 and recurse for empty command lines and -n.
4962 (start_waiting_job): Call start_job_command, not start_job.
4963 (new_job): Call job_next_command to prime the child structure, and
4964 then call start_waiting_job.
4965 (reap_children): Use job_next_command and start_job_command.
4966 (start_waiting_job): Call start_remote_job_p here, and store its
4967 result in C->remote. If zero, check the load average and
4968 maybe put C on waiting_jobs.
4969 (start_job_command): Test CHILD->remote rather than calling
4970 start_remote_job_p. Don't do load avg checking at all here.
4972 * main.c (main): Don't handle SIGILL, SIGIOT, SIGEMT, SIGBUS,
4973 SIGSEGV, SIGFPE or SIGTRAP.
4975 * compatMakefile (glob/libglob.a): Don't pass srcdir to sub-make.
4976 configure will set it in glob/Makefile.
4978 Wed Jun 24 19:40:34 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4980 * dir.c [DIRENT] (direct): Don't define to dirent.
4981 [! DIRENT] (direct): Define to dirent.
4982 (dir_file_exists_p): Use struct dirent instead of struct direct.
4984 * make.h (getcwd): No space between macro and ( for args!
4986 * job.c (start_job): Don't put the job on waiting_jobs if
4989 * make.texinfo (Missing): Shortened title.
4991 Tue Jun 23 18:42:21 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4993 * file.c (remove_intermediates): Print "rm" commands under -n.
4995 Mon Jun 22 16:20:02 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4999 Fri Jun 19 16:20:26 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5001 * arscan.c [M_UNIX]: #undef M_XENIX.
5003 Wed Jun 17 17:59:28 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5005 * default.c (default_terminal_rules): Put @ prefix on RCS cmds.
5007 Tue Jun 16 19:24:17 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5009 * compatMakefile (getloadavg.o): Removed special rule.
5010 (CFLAGS): Don't include $(defines).
5011 (.c.o): Define suffix rule.
5012 (glob/libglob.a): Pass CPPFLAGS=$(defines) to submake.
5013 (GETOPT_SRC, srcs, tagsrcs): Prefix files with $(srcdir)/.
5015 * arscan.c (ar_name_equal): Moved local vars inside #if'd block.
5017 * make.h (max): Removed.
5018 * expand.c (variable_buffer_output): Don't use it.
5020 * compatMakefile (INSTALL): Define.
5021 (Makefile): New rule to make from Makefile.in.
5024 (getloadavg.o, remote.o): Use autoconf $foo< hack.
5026 * commands.c (fatal_error_signal): Removed return.
5028 Mon Jun 15 17:42:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5032 * make.texinfo (Summary): New node.
5033 (Special Targets): Mention .EXPORT_ALL_VARIABLES here.
5035 * variable.c (max): Moved to make.h.
5037 * compatMakefile (objs, srcs): Added ar & arscan.
5039 * job.c (start_waiting_job): New function, 2nd half of new_job.
5041 (start_waiting_jobs): New function.
5042 * remake.c (update_goal_chain): Call start_waiting_jobs at the top
5044 * compatMakefile (objs, srcs): Removed load, added getloadavg.
5046 Fri Jun 12 19:33:16 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5048 * job.c (load_too_high): New function. Uses getloadavg.
5049 (waiting_jobs): New variable.
5050 (start_job): Don't call wait_to_start_job. Instead, if
5051 load_too_high returns nonzero, add the child to the
5052 `waiting_jobs' chain and return without starting the job.
5054 Thu Jun 11 00:05:28 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5056 * expand.c (variable_buffer_output): Made global again.
5057 * variable.h: And declare it.
5059 * arscan.c (PORTAR): Define for all systems if PORT5AR is not defined.
5060 (AR_NAMELEN, AR_TRAILING_SLASH): Removed.
5061 (ar_scan): Don't use it. Don't #ifdef AR_TRAILING_SLASH; just look
5062 for a slash in the archive at run time.
5063 (ar_name_equal): Rewrote .o hacking to not use AR_NAMELEN, and to
5064 cope with trailing-slash and non-trailing-slash archives.
5066 * main.c (main) [! SETVBUF_REVERSED]: Test this instead of USGr3 et al.
5067 [SETVBUF_REVERSED]: Always allocate a buffer ourselves.
5069 * load.c (load_average) [sgi]: Use sysmp call.
5071 * compatMakefile (INSTALL_DATA, INSTALL_PROGRAM): Define.
5072 ($(bindir)/$(instname), $(mandir)/make.$(manext)): Use them.
5074 * make.h [HAVE_VFORK_H]: #include <vfork.h>.
5075 (vfork, VFORK_NAME): Don't define.
5076 * job.c (start_job): Use "vfork" in place of VFORK_NAME.
5078 * make.h [HAVE_LIMITS_H, HAVE_SYS_PARAM_H]: If #define'd, #include
5079 the each file. Rearranged PATH_MAX hacking.
5080 * job.c: Rearranged NGROUPS_MAX hacking.
5082 * remake.c (fstat, time): Don't declare.
5084 * compatMakefile (defines): Value is @DEFS@.
5085 (LOADLIBES): Value is @LIBS@.
5086 (extras): Value is @LIBOBJS@.
5087 (ARCHIVES, ARCHIVES_SRC, ALLOCASRC): Removed.
5088 * arscan.c, ar.c: Surround body with #ifndef NO_ARCHIVES.
5090 * misc.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl get*id.
5092 * make.h [GETCWD_MISSING]: Test instead of !USG && !POSIX et al.
5093 (getcwd): Just declare if present. If not, declare as a macro
5094 using getwd, and declare getwd.
5095 [PATH_MAX] (GET_PATH_MAX): #define to PATH_MAX.
5096 * main.c (main, log_working_directory): Use getcwd instead of getwd.
5098 * main.c (main) [SETLINEBUF_MISSING]: Test this instead of USG.
5100 * make.h (SIGHANDLER, SIGNAL): Removed.
5101 (RETSIGTYPE): Define if not #define'd.
5102 * main.c (main): Use signal in place of SIGNAL.
5104 * main.c [SYS_SIGLIST_MISSING]: Test instead of USG.
5106 * job.c (search_path) [GETGROUPS_MISSING]: Test instead of USG.
5107 [HAVE_UNISTD_H]: Test instead of POSIX to not decl getgroups.
5109 * main.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl chdir.
5110 [! STDC_HEADERS]: Test instead of !POSIX to decl exit & atof.
5112 * job.c (child_handler), commands.c (fatal_error_signal): Return
5113 RETSIGTYPE instead of int.
5114 * main.c (main): Declare fatal_error_signal and child_handler here
5115 to return RETSIGTYPE; removed top-level decl of former.
5117 * commands.c (fatal_error_signal), job.c (unblock_sigs, start_job),
5118 main.c [SIGSETMASK_MISSING]: Test this instead of USG.
5120 Wed Jun 10 22:06:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5122 * job.c [HAVE_WAITPID]: Test this instead of USG.
5123 [! HAVE_UNISTD_H]: Test this instead of !POSIX to declare misc fns.
5124 (GID_T): Don't #define.
5125 (search_path): Use gid_t instead of GID_T.
5126 [GETDTABLESIZE_MISSING, SYS_SIGLIST_MISSING, DUP2_MISSING]: Test
5127 these individually instead of USG for all.
5128 * make.h (ctime): Don't declare. #include time.h instead.
5129 [HAVE_UNISTD_H]: #include <unistd.h> and #define POSIX #ifdef
5131 * dir.c [__GNU_LIBRARY__] (D_NAMLEN): Define to use d_namlen member.
5132 * make.h [NEED_MEMORY_H]: Only include memory.h #ifdef this.
5134 * arscan.c: Removed #ifdef mess about string.h et al.
5135 Just #include make.h instead.
5136 * make.h (fstat, atol): Declare.
5138 * commands.c (fatal_error_signal): Don't use sigmask to check for
5139 propagated signals; use ||s instead.
5140 (PROPAGATED_SIGNAL_MASK): Removed.
5141 (fatal_error_signal) [POSIX]: Use sigprocmask in place of sigsetmask.
5143 * variable.c (variable_buffer, variable_buffer_length,
5144 initialize_variable_output, variable_output): Moved to expand.c;
5146 (struct output_state, save_variable_output,
5147 restore_variable_output): Removed.
5148 * expand.c (initialize_variable_output): Put a NUL at the beginning
5149 of the new buffer after allocating it.
5150 (allocated_variable_expand_for_file): Don't use
5151 {save,restore}_variable_output. Do it by hand instead, keeping
5152 state on the stack instead of malloc'ing it.
5153 (allocated_variable_expand): Removed.
5154 * variable.h (allocated_variable_expand): Define here as macro.
5155 (variable_buffer_output, initialize_variable_output,
5156 save_variable_output, restore_variable_output): Removed decls.
5158 * read.c (conditional_line): For an if cmd, if any elt of the
5159 conditionals stack is ignoring, just push a new level that ignores
5160 and return 1; don't evaluate the condition.
5162 Thu Jun 4 21:01:20 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5164 * main.c (main): Put #ifdef's around frobbing SIGSYS and SIGBUS.
5166 * job.c (getdtablesize): Don't declare or #define if already #define'd.
5168 Wed Jun 3 23:42:36 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5170 * file.c (snap_deps): If `.EXPORT_ALL_VARIABLES' is a target, set
5171 export_all_variables.
5172 * make.texinfo (Variables/Recursion): Document .EXPORT_ALL_VARIABLES.
5174 Tue Jun 2 21:08:35 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5178 * commands.c (set_file_variables): Calculate length for ^D and ?D
5179 individually, making sure to give them at least enough space for "./".
5181 * make.h [CRAY]: #define signal to bsdsignal.
5183 * default.c (default_variables) [CRAY]: Define PC, SEGLDR,
5184 CF77PPFLAGS, CF77PP, CFT, CF, and FC.
5186 * arscan.c (AR_HDR_SIZE): Define to sizeof (struct ar_hdr), if it
5187 wasn't defined by <ar.h>.
5189 Thu May 28 00:56:53 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5193 Tue May 26 01:26:30 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5195 * rule.c (new_pattern_rule): Initialize LASTRULE to nil, not
5198 Mon May 25 19:02:15 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5200 * main.c (decode_switches): Initialize all the long_option elt members.
5202 Thu May 21 16:34:24 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
5204 * make.texinfo (Text Functions): Correct filter-out description.
5206 Tue May 19 20:50:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5208 * compatMakefile (realclean): Don't remove backup files.
5210 * main.c (decode_switches): Allocate ARGC+1 elts in `other_args'.
5212 Sun May 17 16:38:48 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5216 Thu May 14 16:42:33 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5218 * job.c (reap_children): Don't die if wait returns EINTR.
5220 Wed May 13 18:28:25 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5222 * job.c (reap_children): Always run the next command for a
5223 successful target. If we are going to die, we don't want to leave
5224 the target partially made.
5226 Tue May 12 00:39:19 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5228 * job.c (construct_command_argv_internal): After loop, if we only
5229 have one word, check it for being a shell command.
5231 * main.c (decode_switches): Allocate ARGC slots in other_args to
5232 begin with, so we never need to worry about growing it.
5233 If we get a non-option arg and POSIXLY_CORRECT is in the
5234 environment, break out of the loop. After the loop, add all remaining
5235 args to other_args list.
5237 * main.c (decode_switches): For positive_int and floating switches
5238 when optarg is nil, use next arg if it looks right (start with a
5239 digit, or maybe decimal point for floating).
5241 * variable.c (define_automatic_variables): Always set SHELL to
5242 default if it comes from the environment. Set its export bit.
5243 * make.texinfo (Environment): Document change.
5245 Mon May 11 00:32:46 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5249 * compatMakefile (tags, TAGS): Use vars for cmds.
5250 (ETAGS, CTAGS): Define.
5252 * main.c (decode_switches): If a switches elt has a nil long_name,
5253 make the long option name elt be "".
5254 Fixed loop to not ignore all the options.
5256 * make.texinfo (Option Summary): Added long options.
5258 * main.c (switches): Changed -m's description to "-b".
5259 (decode_switches): When printing the usage message, don't print
5260 switches whose descriptions start with -.
5261 When constructing the list of names for switch -C, search the
5262 switches vector for switches whose descriptions are "-C".
5264 * main.c (switches): Call -S --no-keep-going, not --dont-keep-going.
5265 Call -I --include-dir, not --include-path.
5266 (long_option_aliases): Added --new == -W, --assume-new == -W,
5267 --assume-old == -o, --max-load == -l, --dry-run == -n, --recon == -n,
5270 * main.c (switches): Removed bogus "silent" elt.
5271 (long_option_aliases): Define new var.
5272 (decode_switches): Add long_option_aliases onto the end of the long
5273 options vector created for getopt_long.
5274 Look through long_option_aliases for extra names to list
5277 Sat May 9 00:21:05 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5279 * main.c (log_working_directory): Fixed to properly not print the
5280 leaving message when we haven't printed the entering message.
5282 Fri May 8 21:55:35 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5284 * main.c (struct command_switch): Added elts `long_name',
5285 `description', and `argdesc'.
5286 (switches): Added initializers for new members.
5287 (decode_switches): Rewritten to use getopt_long.
5288 * compatMakefile (GETOPT, GETOPT_SRC): Define.
5289 (objs, srcs): Include them.
5291 * job.c (child_died): Renamed to dead_children; made static.
5292 (child_handler): Increment dead_children instead of setting child_died.
5293 (reap_children): Decrement dead_children instead of clearing
5294 child_died. The point of all this is to avoid printing "waiting
5295 for unfinished jobs" when we don't actually need to block.
5296 This happened when multiple SIGCHLDs before reap_children was called.
5298 * job.c (reap_children): If ERR is set, so we don't call start_job
5299 on the child being reaped, instead set its command_state to
5301 (reap_children, child_handler, new_job): I added several
5302 debugging printf's while fixing this. I left them in if (debug_flag)
5303 because they may be useful for debugging this stuff again.
5305 Wed May 6 22:02:37 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5307 * read.c (read_makefile): v_export is not 1.
5309 Mon May 4 17:27:37 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5313 * variable.c (export_all_variables): New variable.
5314 (target_environment): Export variables whose `export' member is
5315 v_default if export_all_variables is set and their names are benign.
5316 * variable.h: Declare export_all_variables.
5317 * read.c (read_makefile): If export or unexport is given with no
5318 args, set or clear export_all_variables, respectively.
5320 * variable.c (target_environment): Exclude MAKELEVEL in the loop,
5321 so it isn't duplicated when we add it at the end.
5323 Sun May 3 17:44:48 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5327 * variable.h (struct variable): Added new member `export'.
5328 * variable.c (define_variable_in_set): Initialize it to v_default.
5329 (target_environment): Don't check for .NOEXPORT.
5330 Export variables whose `export' member is v_default and that would
5331 have been exported under .NOEXPORT, and variables whose `export'
5333 (try_variable_definition): Return the variable defined.
5334 * variable.h (try_variable_definition): Changed decl.
5335 * read.c (read_makefile): Recognize `export' and `unexport' directives.
5337 Fri May 1 11:39:38 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5339 * main.c (main) [POSIX]: Reversed args to sigaddset.
5341 Thu Apr 30 17:33:32 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5343 * job.c [POSIX || !USG] (unblock_sigs): New fn.
5344 (start_job): Block signals before forking.
5345 (new_job): Unblock signals after putting the new child on the chain.
5346 * main.c (main) [POSIX]: Use sigset_t fatal_signal_set instead of
5347 int fatal_signal_mask.
5349 * load.c [sgi] (LDAV_CVT): Define.
5351 Wed Apr 29 17:15:59 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5355 * load.c (load_average) [sgi]: Clear the high bit of the address
5356 from the symbol table before looking it up in kmem.
5358 * misc.c (fatal, makefile_fatal): Put *** in fatal error messages.
5359 (remake_file): No longer needed in message here.
5361 * main.c (die): Call reap_children with BLOCK==1.
5363 Tue Apr 28 20:44:35 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5365 * rule.c (freerule): Don't set LASTRULE->next if LASTRULE is nil.
5367 Sun Apr 26 15:09:51 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5369 * rule.c (count_implicit_rule_limits): Initialize LASTRULE to nil,
5370 not to head of chain. Extract next ptr before we might do
5371 freerule, and use that for next iteration.
5372 (freerule): Still do next ptr frobbing if LASTRULE is nil.
5374 Tue Apr 21 03:16:29 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5376 * job.c (child_error): Removed extra %s from error msg format.
5380 * job.c (reap_children): Don't start later commands in a sequence
5383 * job.c (new_job): Always call reap_children with BLOCK==0 first thing.
5385 * job.c (reap_children): New function; work that used to be done in
5387 (child_died): New global var.
5388 (child_handler): Now just sets child_died.
5389 (wait_for_children): Removed.
5390 (unknown_children_possible, block_signals, unblock_signals,
5391 push_signals_blocked_p, pop_signals_blocked_p): Removed.
5392 (child_execute_job): Removed call to unblock_signals.
5393 (new_job): Removed calls to push_signals_blocked_p and
5394 pop_signals_blocked_p.
5395 * job.h: Declare reap_children, not wait_for_children.
5396 * commands.c (fatal_error_signal), job.c (new_job),
5397 load.c [LDAV_BASED] (wait_to_start_job), main.c (die),
5398 remake.c (update_goal_chain), function.c (expand_function: `shell'):
5399 Changed wait_for_children calls to reap_children.
5400 Some needed to be loops to wait for all children to die.
5401 * commands.c (fatal_error_signal), main.c (main,
5402 log_working_directory), function.c (expand_function): Removed calls
5403 to push_signals_blocked_p and pop_signals_blocked_p.
5404 * job.h: Removed decls.
5406 * job.h: Added copyright notice.
5408 Wed Apr 15 02:02:40 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5410 * job.c (child_error): No *** for ignored error.
5412 Tue Apr 14 18:31:21 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5414 * implicit.c (DEBUGP2): Use do ... while (0) instead of if ... else to
5415 avoid compiler warnings.
5417 * read.c (parse_file_seq): Don't remove ./ when it is followed by a
5420 Mon Apr 13 21:56:15 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5422 * make.h (DEBUGPR): Use do ... while (0) instead of if ... else to
5423 avoid compiler warnings.
5425 * remake.c (notice_finished_file): Run file_mtime on the also_make
5426 files, so vpath_search can happen.
5428 * GNUmakefile (tests): Use perl test suite from csa@sw.stratus.com.
5429 (alpha-files): Include test suite tar file.
5431 Fri Apr 3 00:50:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5435 Wed Apr 1 05:31:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5437 * remake.c (update_file, update_file_1): Do check_renamed on elts
5438 of dep chains when traversing them. Something unrelated might have
5439 renamed one of the files the dep chain points to.
5441 * file.c (rename_file): If FILE has been renamed, follow its
5442 `renamed' ptr, so we get to the final real FILE. Using the renamed
5443 ones loses because they are not in the hash table, so the removal
5444 code loops infinitely.
5446 * read.c (read_all_makefiles): Clobber null terminator into
5447 MAKEFILES expansion, so string passed to read_makefile is properly
5450 Mon Mar 30 20:18:02 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5452 * commands.c (set_file_variables): $* for archive member with
5453 explicit cmds is stem of member, not of whole `lib(member)'.
5455 Thu Mar 26 15:24:38 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5459 Tue Mar 24 05:20:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5461 * rule.c (new_pattern_rule): Rules are identical only if all their
5462 targets match (regardless of order).
5464 Wed Mar 11 13:49:54 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5466 * remake.c (remake_file): Changed error "no way to make" to "no
5467 rule to make". Fiat Hugh.
5469 * make.texinfo (Last Resort): Describe %:: rules and new .DEFAULT
5472 * remake.c (update_file_1): Only use .DEFAULT cmds if FILE is not a
5475 Tue Mar 10 18:13:13 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
5477 * remote-stub.c, remote-cstms.c (start_remote_job): Take new arg,
5478 environment to pass to child.
5479 * job.c (start_job): Pass it.
5481 Mon Mar 9 19:00:11 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5483 * file.c (enter_file): Also strip ./s here, to get command-line
5486 * remote-cstms.c: Add comment telling people to leave me alone.
5488 * compatMakefile (manpage install): Remove target before copying.
5490 Tue Mar 3 18:43:21 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5492 * make.texinfo (Missing): Renamed to "Incompatibilities and ...".
5493 Added paragraph describing $? incompatibility with Unix and POSIX.2.
5495 Sun Mar 1 15:50:54 1992 Roland McGrath (roland@nutrimat.gnu.ai.mit.edu)
5497 * function.c (expand_function: `shell'): Don't declare fork or pipe.
5498 Use vfork instead of fork.
5500 Tue Feb 25 22:05:32 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
5502 * make.texinfo (Chained Rules): Clarify .PRECIOUS to save
5505 * load.c [sun] (LDAV_CVT): Define to divide by FSCALE.
5507 Sun Feb 16 02:05:16 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
5511 Sat Feb 15 17:12:20 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
5513 * compatMakefile (makeinfo): Use emacs batch-texinfo-format fn.
5515 Fri Feb 14 00:11:55 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
5517 * read.c (read_makefile): Correctly handle define & endef in ifdefs.
5519 * read.c (record_files): Pass arg for %s in error msg.
5521 * main.c (main) [__IBMR2, POSIX]: Use correct (a la USGr3) setvbuf
5524 Wed Feb 12 12:07:39 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
5526 * make.texinfo (Libraries/Search): Say it does /usr/local/lib too.
5528 Sun Feb 9 23:06:24 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5530 * read.c (read_makefile): Check for extraneous `endef' when ignoring.
5532 Thu Feb 6 16:15:48 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5536 Tue Feb 4 20:04:46 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5538 * job.c (construct_command_argv_internal): Correctly ignore
5539 whitespace after backslash-NL.
5541 Fri Jan 31 18:30:05 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5543 * compatMakefile: Ignore errors from chgrp and chmod when installing.
5545 Wed Jan 29 18:13:30 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5547 * main.c (main): When setting MAKELEVEL in the env to re-exec,
5548 allocate space so as not to clobber past the end of the old string.
5550 * make.h [HAVE_ALLOCA_H]: Include <alloca.h>
5551 * compatMakefile (defines): Document HAVE_ALLOCA_H.
5553 Mon Jan 20 13:40:05 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5555 * make.h [VFORK_MISSING]: Use fork instead.
5556 * compatMakefile (defines): Document same.
5558 * job.c (construct_command_argv_internal): Don't create an empty
5559 arg if backslash-NL is at beginning of word.
5561 Sun Jan 19 16:26:53 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5563 * main.c [DGUX]: Call setvbuf as for USGr3.
5565 * job.c (construct_command_argv_internal): Notice correctly that
5566 backslash-NL is the end of the arg (because it is replaced with a
5569 Thu Jan 16 18:42:38 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5571 * job.c (construct_command_argv_internal): If SHELL is nil, set it
5572 to default_shell before proceeding.
5574 * make.h [sgi]: No alloca.h, after all.
5576 Wed Jan 15 12:30:04 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5578 * read.c (multi_glob): Cons up the chain of the results of glob
5579 from back to front, so it comes out in forward order.
5581 * job.c (construct_command_argv_internal): Don't eat char following
5584 Mon Jan 13 19:16:56 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5588 * default.c (default_variables) [ultrix]: GET=get, like USG.
5590 * job.c (construct_command_argv_internal): Remove tabs following
5591 backslash-NL combos in the input line, so they don't show up when
5592 that line is printed.
5594 * read.c (read_makefile): Don't collapse_continuations the line on
5595 input; do it on the copy we do remove_comments on.
5596 For rule lines, collapse_continuations the line after chopping
5597 ";cmds" off the end, so we don't eat conts in the cmds.
5598 Give error for ";cmds" with no rule.
5599 * job.c (construct_command_argv_internal): Eat backslash-NL combos
5600 when constructing the line to recurse on for slow, too.
5602 Sat Jan 11 02:20:27 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5604 * file.c (enter_file): Don't strip leading `./'s.
5605 * read.c (parse_file_seq): Take new arg STRIP; if nonzero, do it here.
5606 * default.c (set_default_suffixes), function.c (string_glob),
5607 read.c (read_makefile), rule.c (install_pattern_rule): Change callers.
5609 * default.c (default_variables) [_IBMR2]: FC=xlf
5611 * job.c (construct_command_argv_internal): Turn backslash-NL and
5612 following whitespace into a single space, rather than just eating
5615 * make.texinfo (Copying): @include gpl.texinfo, rather than
5616 duplicating its contents.
5618 Fri Nov 8 20:06:03 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5620 * job.c (construct_command_argv_internal): Make sure not to bother
5621 processing an empty line.
5625 * job.c (construct_command_argv_internal): Always recurse for slow;
5626 simple case didn't handle finding newlines.
5628 Tue Nov 5 18:51:10 1991 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
5630 * job.c (construct_command_argv_internal): Set RESTP properly when
5631 slow; don't \ify past a newline.
5633 Fri Nov 1 19:34:28 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5635 * make.h [sgi]: #include <alloca.h>.
5639 See ChangeLog.1 for earlier changes.