1 2007-07-04 Paul Smith <psmith@gnu.org>
3 * (ALL FILES): Update to GPLv3.
4 * (ALL FILES): Update copyright for 2007.
6 * main.c (print_version): Move the host type info to the second line.
8 2007-06-29 Thiemo Seufer <ths@mips.com>
10 * maintMakefile: Update Translation Project location.
12 2007-06-13 Paul Smith <psmith@gnu.org>
14 * doc/make.texi (Reading Makefiles): "Expansion of deferred" ->
15 "Expansion of a deferred"
16 Fixes Savannah bug #20018.
18 * expand.c (variable_expand_for_file): Preserve the value of
19 reading_file rather than setting it to 0 at the end.
20 Fixes Savannah bug #20033.
22 2007-05-11 Paul Smith <psmith@gnu.org>
24 * job.c (new_job): Add debug info to specify where make found the
25 command script it is running to build a target.
26 Fixes Savannah bug #18617.
28 * default.c (default_suffixes,default_suffix_rules,default_variables):
29 Add support for Objective C. Fixes Savannah bug #16389.
30 Based on a patch provided by Peter O'Gorman <peter@pogma.com>.
32 * function.c (func_lastword): Initialize p.
34 * doc/make.texi (Eval Function, Implicit Variables, Special Targets):
35 Doc fixes noticed by Bob <twobanjobob@sbcglobal.net>. Patch from
36 Dave Korn <dave.korn@artimi.com>
38 2007-05-08 Paul Smith <psmith@gnu.org>
40 Fix Savannah bug #19656:
42 * configure.in: Check for strcasecmp(), strcmpi(), and stricmp().
44 * make.h: Change all case-insensitive string compares to use
45 strcasecmp() (from POSIX). If we don't have that but do have one
46 of the others, define strcasecmp to be one of those instead. If
47 we don't have any, declare a prototype for our own version.
49 * misc.c (strcasecmp): Use this if we can't find any native
50 case-insensitive string comparison function.
51 * vmsfunctions.c: Remove strcmpi(); we'll use misc.c:strcasecmp().
52 * main.c (find_and_set_default_shell): Use strcasecmp() instead of
54 * job.c (_is_unixy_shell, construct_command_argv_internal): Use
55 strcasecmp() instead of stricmp().
56 * hash.h (ISTRING_COMPARE, return_ISTRING_COMPARE): Use strcasecmp()
58 * acinclude.m4: Remove the strcasecmp() check from here.
60 2007-03-21 Paul Smith <psmith@gnu.org>
62 * configure.in: Don't turn on case-insensitive file system support
63 if --disable-... is given. Fixes Savannah bug #19348.
65 2007-03-19 Paul Smith <psmith@gnu.org>
67 * ALL: Use the strcache for all file name strings, or other
68 strings which we will never free. The goal is to save memory by
69 avoiding duplicate copies of strings. However, at the moment this
70 doesn't save much memory in most situations: due to secondary
71 expansion we actually save prerequisite lists twice (once before
72 the secondary expansion, and then again after it's been parsed
73 into individual file names in the dep list). We will resolve this
74 in a future change, by doing the parsing up-front for targets
75 where secondary expansion is not set.
77 Moving things into the strcache also allows us to use const
78 pointers in many more places.
80 2007-01-03 Paul Smith <psmith@gnu.org>
82 * make.h (ENULLLOOP): Reset errno after each failed invocation of
83 the function, not just the first. Fixes Savannah bug #18680.
85 2006-11-18 Paul Smith <psmith@gnu.org>
87 * strcache.c (strcache_add_len): Don't allocate a new buffer
88 unless the string is not already nil-terminated. Technically this
89 is a violation of the standard, since we may be passed an array
90 that is not long enough to test one past. However, in make this
91 is never true since we only use nil-terminated strings or
94 * read.c (eval, do_define): Use cmd_prefix instead of '\t'.
96 * main.c: New global cmd_prefix, defaults to '\t'.
97 * job.c (construct_command_argv_internal): Use cmd_prefix instead
101 (dir_contents_file_exists_p): Check for an error return from
102 readdir(), just in case.
104 * commands.c: Constified.
105 * default.c: Constified.
106 * expand.c: Constified.
107 * function.c: Partial constification.
108 * variable.c: Partial constification.
109 * vmsify.c: Constification. Hard to test this but I hope I didn't
111 * vpath.c: Partial constification.
112 * w32/pathstuff.c: Partial constification.
114 2006-11-16 Eli Zaretskii <eliz@gnu.org>
116 * main.c (main) [HAVE_DOS_PATHS]: Treat DOS style argv[0] with
117 backslashes and drive letters as absolute.
119 2006-10-22 Paul Smith <psmith@gnu.org>
121 * main.c (struct command_switch): Use const and void*.
123 2006-10-21 Paul Smith <psmith@gnu.org>
126 * arscan.c: Constified.
128 2006-09-30 Paul Smith <psmith@gnu.org>
130 * doc/make.texi (MAKEFILE_LIST Variable): Modify reference to
131 point to lastword since the example was updated.
132 Fixes Savannah bug #16304.
133 (Secondary Expansion): Correct example description.
134 Fixes Savannah bug #16468.
135 (Makefile Contents): Clarify that comments cannot appear within
136 variable references or function calls.
137 Fixes Savannah bug #16577.
138 (Special Targets): Clarify how .NOTPARALLEL works in recursion.
139 Fixes Savannah bug #17701.
140 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>:
141 (Prerequisite Types): Added an example of using order-only
142 prerequisites. Fixes Savannah bug #17880.
143 (Rule Syntax): "lise" -> "list"
144 (Multiple Rules): ... -> @dots{}
145 (Splitting Lines): ditto.
147 * remake.c (update_file_1): Prereqs that don't exist should be
148 considered changed, for the purposes of $?.
149 Fixes Savannah bug #16051.
151 * make.1: Remove extraneous "+".
152 Fixes Savannah bug #16652.
154 2006-09-06 Paul D. Smith <psmith@gnu.org>
156 * configure.in: Include sys/types.h when checking for sys/wait.h.
158 2006-08-18 Eli Zaretskii <eliz@gnu.org>
160 * configure.in (PATH_SEPARATOR_CHAR): Define to the value of
163 * make.h (PATH_SEPARATOR_CHAR): Define only if still undefined.
164 Normally, it is defined in config.h.
166 * config/dospaths.m4 <ac_cv_dos_paths>: Define to yes on Cygwin as
169 * job.c (construct_command_argv_internal) [HAVE_DOS_PATHS]: Define
170 sh_chars_sh for Windows platforms that emulate Unix.
172 2006-05-07 Paul D. Smith <psmith@gnu.org>
174 * README.OS2.template: Updates provided by Andreas Buening
175 <andreas.buening@nexgo.de>.
177 2006-04-30 Paul D. Smith <psmith@gnu.org>
179 * make.h: Include <direct.h> if HAVE_DIRECT_H.
180 * config.h.W32.template (HAVE_DIRECT_H): Set it if it's available.
182 2006-04-26 Paul D. Smith <psmith@gnu.org>
184 * README.cvs: Add a reminder to notify the GNU translation robot.
186 * doc/make.texi: Change @direcategory (requested by Karl Berry).
188 2006-04-20 Paul D. Smith <psmith@gnu.org>
190 * maintMakefile (po-check): Use Perl instead of grep -E, for systems
191 that don't have extended grep.
192 (cvsclean): Use $(PERL) instead of perl.
194 2006-04-09 Paul D. Smith <psmith@gnu.org>
196 * maintMakefile: Add some extra warning options (GCC 4.1 only?)
198 * expand.c, implicit.c, main.c, read.c: Rename variables so that
199 inner-scope variables don't mask outer-scope variables.
201 * ar.c, arscan.c, commands.c, default.c, dir.c, expand.c, file.c:
202 * function.c, getloadavg.c, implicit.c, job.c, main.c, misc.c, read.c:
203 * remake.c, remote-cstms.c, rule.c, strcache.c, variable.c:
204 * vmsfunctions.c, vmsify.c, vpath.c: Remove all casts of returned
205 values from memory allocation functions: they return void* and so
206 don't need to be cast. Also remove (char *) casts of arguments to
209 * configure.in: Remove checks for memcpy/memmove/strchr.
211 * make.h: Remove bcmp/bcopy/bzero/strchr/strrchr macros.
213 * ar.c, arscan.c, commands.c, dir.c: Convert all bzero/bcopy/bcmp
214 calls to memset/memcpy/memmove/memcmp calls.
215 * expand.c, file.c, function.c, getloadavg.c, implicit.c: Ditto.
216 * job.c, main.c, misc.c, read.c, remake.c, rule.c: Ditto.
217 * variable.c, vpath.c: Ditto.
219 * make.h (EXIT_FAILURE): Should be 1, not 0.
221 2006-04-06 Paul D. Smith <psmith@gnu.org>
223 * configure.in: Removed AM_C_PROTOTYPES. Starting now on we
224 require an ISO C 1989 standard compiler and runtime library.
226 * Makefile.am: Remove the ansi2knr feature.
228 * make.h: Remove the PARAMS() macro definition and all uses of it.
230 * amiga.h, ar.c, arscan.c: Remove all uses of the PARAMS() macro.
231 * commands.c, commands.h, config.h-vms.template: Ditto.
232 * dep.h, dir.c, expand.c, filedef.h, function.c: Ditto.
233 * implicit.c, job.c, job.h, main.c, read.c, remake.c: Ditto.
234 * rule.c, rule.h, variable.h, vmsdir.h, vmsjobs.c, vpath.c: Ditto.
238 2006-04-01 Paul D. Smith <psmith@gnu.org>
240 Version 3.81 released.
242 * NEWS: Updated for 3.81.
244 * README.cvs: Mention that vpath builds are not supported out of
245 CVS. Fixes Savannah bug #16236.
246 Remove update of make.texi from the list of things to do; we use
249 2006-03-26 Paul D. Smith <psmith@gnu.org>
251 * doc/make.texi: Clean up licensing. Use @copying and version.texi
252 support from automake, as described in the Texinfo manual.
254 2006-03-25 Eli Zaretskii <eliz@gnu.org>
256 * implicit.c (pattern_search) [HAVE_DOS_PATHS]: Don't compare b
257 with lastslash, since the latter points to filename, not to
259 * job.c (construct_command_argv_internal) [HAVE_DOS_PATHS]:
260 Declare and define sh_chars_sh[].
262 2006-03-23 Paul D. Smith <psmith@gnu.org>
264 * configure.in: Look for build.sh.in in $srcdir so it will be
265 built for remote configurations as well.
267 * Makefile.am: Make sure to clean up build.sh during distclean.
268 Fixes Savannah bug #16166.
270 * misc.c (log_access): Takes a const char *.
271 * function.c (fold_newlines): Takes an unsigned int *.
272 Both fixes for Savannah bug #16170.
274 2006-03-22 Boris Kolpackov <boris@kolpackov.net>
276 * implicit.c (pattern_search): Call set_file_variables only
277 if we have prerequisites that need second expansion. Fixes
280 2006-03-19 Paul D. Smith <psmith@gnu.org>
282 * remake.c (update_file): Add alloca(0) to clean up alloca'd
283 memory on hosts that don't support it directly.
285 * README.cvs: Add information on steps for making a release (to
286 make sure I don't forget any).
288 * main.c (clean_jobserver): Move jobserver cleanup code into a new
290 (die): Cleanup code was removed from here; call the new function.
291 (main): If we are re-execing, clean up the jobserver first so we
292 don't leak file descriptors.
293 Reported by Craig Fithian <craig.fithian@citigroup.com>
295 2006-03-17 Paul D. Smith <psmith@gnu.org>
297 * maintMakefile (do-po-update): Rewrite this rule to clean up and
298 allow multiple concurrent runs.
299 Patch from Joseph Myers <joseph@codesourcery.com>
301 2006-03-17 Boris Kolpackov <boris@kolpackov.net>
303 * dep.h (struct dep): Add the stem field.
304 * misc.c (alloc_dep, free_dep): New functions.
305 (copy_dep_chain): Copy stem.
306 (free_dep_chain): Use free_dep.
307 * read.c (record_files): Store stem in the dependency line.
308 * file.c (expand_deps): Use stem stored in the dependency line. Use
309 free_dep_chain instead of free_ns_chain.
310 * implicit.c (pattern_search): Use alloc_dep and free_dep.
311 * read.c (read_all_makefiles, eval_makefile, eval): Ditto.
312 * main.c (main, handle_non_switch_argument): Ditto.
313 * remake.c (check_dep): Ditto.
314 * rule.c (convert_suffix_rule, freerule): Ditto.
316 2006-03-14 Paul D. Smith <psmith@gnu.org>
318 * expand.c (variable_append): Instead of appending everything then
319 expanding the result, we expand (or not, if it's simple) each part
321 (allocated_variable_append): Don't expand the final result.
322 Fixes Savannah bug #15913.
324 2006-03-09 Paul Smith <psmith@gnu.org>
326 * remake.c (update_file_1): Revert the change of 3 Jan 2006 which
327 listed non-existent files as changed. Turns out there's a bug in
328 the Linux kernel builds which means that this change causes
329 everything to rebuild every time. We will re-introduce this fix
330 in the next release, to give them time to fix their build system.
331 Fixes Savannah bug #16002.
332 Introduces Savannah bug #16051.
334 * implicit.c (pattern_search) [DOS_PATHS]: Look for DOS paths if
335 we *don't* find UNIX "/".
336 Reported by David Ergo <david.ergo@alterface.com>
338 2006-03-04 Eli Zaretskii <eliz@gnu.org>
340 * variable.c (do_variable_definition) [WINDOWS32]: Call the shell
341 locator function find_and_set_default_shell if SHELL came from the
344 2006-02-20 Paul D. Smith <psmith@gnu.org>
346 * variable.c (merge_variable_set_lists): It's legal for *setlist0
347 to be null; don't core in that case.
349 2006-02-19 Paul D. Smith <psmith@gnu.org>
351 * commands.c (set_file_variables): Realloc, not malloc, the static
352 string values to avoid memory leaks.
354 * expand.c (recursively_expand_for_file): Only set reading_file to
355 an initialized value.
357 * implicit.c (pattern_search): We need to make a copy of the stem
358 if we get it from an intermediate dep, since those get freed.
360 * file.c (lookup_file) [VMS]: Don't lowercase special targets that
362 (enter_file) [VMS]: Ditto.
363 Patch provided by Hartmut Becker <Hartmut.Becker@hp.com>.
365 2006-02-24 Eli Zaretskii <eliz@gnu.org>
367 * job.c (construct_command_argv_internal): Fix last change.
369 * w32/subproc/sub_proc.c (process_pipe_io): Make dwStdin,
370 dwStdout, and dwStderr unsigned int: avoids compiler warnings in
371 the calls to _beginthreadex.
373 * expand.c (recursively_expand_for_file): Initialize `save' to
374 prevent compiler warnings.
376 2006-02-18 Eli Zaretskii <eliz@gnu.org>
378 * job.c (construct_command_argv_internal): Don't create a temporary
379 script/batch file if we are under -n. Call _setmode to switch the
380 script file stream to text mode.
382 2006-02-17 Paul D. Smith <psmith@gnu.org>
384 * variable.c (merge_variable_set_lists): Don't try to merge the
385 global_setlist. Not only is this useless, but it can lead to
386 circularities in the linked list, if global_setlist->next in one
387 list gets set to point to another list which also ends in
389 Fixes Savannah bug #15757.
391 2006-02-15 Paul D. Smith <psmith@gnu.org>
393 Fix for Savannah bug #106.
395 * expand.c (expanding_var): Keep track of which variable we're
396 expanding. If no variable is being expanded, it's the same as
398 * make.h (expanding_var): Declare it.
399 * expand.c (recursively_expand_for_file): Set expanding_var to the
400 current variable we're expanding, unless there's no file info in
401 it (could happen if it comes from the command line or a default
402 variable). Restore it before we exit.
403 * expand.c (variable_expand_string): Use the expanding_var file
404 info instead of the reading_file info.
405 * function.c (check_numeric): Ditto.
407 (func_wordlist): Ditto.
409 (expand_builtin_function): Ditto.
410 (handle_function): Ditto.
412 2006-02-14 Paul D. Smith <psmith@gnu.org>
414 * read.c (eval): Even if the included filenames expands to the
415 empty string we still need to free the allocated buffer.
417 * implicit.c (pattern_search): If we allocated a variable set for
418 an impossible file, free it.
419 * variable.c (free_variable_set): New function.
420 * variable.h: Declare it.
422 * read.c (read_all_makefiles): Makefile names are kept in the
423 strcache, so there's never any need to alloc/free them.
426 * main.c (main): Add "archives" to the .FEATURES variable if
427 archive support is enabled.
428 * doc/make.texi (Special Variables): Document it.
430 2006-02-13 Paul D. Smith <psmith@gnu.org>
432 * implicit.c (pattern_search): Add checking for DOS pathnames to
433 the pattern rule target LASTSLASH manipulation.
434 Fixes Savannah bug #11183.
436 2006-02-11 Paul D. Smith <psmith@gnu.org>
438 * (ALL FILES): Updated copyright and license notices.
440 2006-02-10 Paul D. Smith <psmith@gnu.org>
442 A new internal capability: the string cache is a read-only cache
443 of strings, with a hash table interface for fast lookup. Nothing
444 in the cache will ever be freed, so there's no need for reference
445 counting, etc. This is the beginning of a full solution for
446 Savannah bug #15182, but for now we only store makefile names here.
448 * strcache.c: New file. Implement a read-only string cache.
449 * make.h: Add prototypes for new functions.
450 * main.c (initialize_global_hash_tables): Initialize the string cache.
451 (print_data_base): Print string cache stats.
452 * read.c (eval_makefile): Use the string cache to store makefile
453 names. Rewrite the string allocation to be sure we free everything.
455 2006-02-10 Eli Zaretskii <eliz@gnu.org>
457 * dir.c (dir_contents_file_exists_p): Don't opendir if the
458 directory time stamp didn't change, except on FAT filesystems.
459 Suggested by J. David Bryan <jdbryan@acm.org>.
461 2006-02-09 Paul D. Smith <psmith@gnu.org>
463 * function.c (func_or): Implement a short-circuiting OR function.
464 (func_and): Implement a short-circuiting AND function.
465 (function_table_init): Update the table with the new functions.
466 * doc/make.texi (Conditional Functions): Changed the "if" section
467 to one on general conditional functions. Added documentation for
468 $(and ...) and $(or ...) functions.
469 * NEWS: Note new $(and ...) and $(or ...) functions.
471 2006-02-08 Boris Kolpackov <boris@kolpackov.net>
473 * job.h (struct child): Add the dontcare bitfield.
474 * job.c (new_job): Cache dontcare flag.
475 * job.c (reap_children): Use cached dontcare flag instead of the
476 one in struct file. Fixes Savannah bug #15641.
478 2006-02-06 Paul D. Smith <psmith@gnu.org>
480 * vpath.c (selective_vpath_search): If the file we find has a
481 timestamp from -o or -W, use that instead of the real time.
482 * remake.c (f_mtime): If the mtime is a special token from -o or
483 -W, don't overwrite it with the real mtime.
484 Fixes Savannah bug #15341.
486 Updates from Markus Mauhart <qwe123@chello.at>:
488 * w32/subproc/sub_proc.c (process_begin): Remove no-op tests.
489 (process_signal, process_last_err, process_exit_code): Manage
490 invalid handle values.
491 (process_{outbuf,errbuf,outcnt,errcnt,pipes}): Unused and don't
492 manage invalid handles; remove them.
493 * job.c (start_job_command) [WINDOWS32]: Jump out on error.
494 * config.h.W32.template [WINDOWS32]: Set flags for Windows builds.
495 * README.cvs: Updates for building from CVS.
497 2006-02-05 Paul D. Smith <psmith@gnu.org>
499 * file.c (enter_file): Keep track of the last double_colon entry,
500 to avoid walking the list every time we want to add a new one.
501 Fixes Savannah bug #15533.
502 * filedef.h (struct file): Add a new LAST pointer.
504 * dir.c (directory_contents_hash_cmp): Don't use subtraction to do
505 the comparison. For 64-bits systems the result of the subtraction
506 might not fit into an int. Use comparison instead.
507 Fixes Savannah bug #15534.
509 * doc/make.texi: Update the chapter on writing commands to reflect
510 the changes made in 3.81 for backslash/newline and SHELL handling.
512 2006-02-01 Paul D. Smith <psmith@gnu.org>
514 * dir.c (dir_contents_file_exists_p) [WINDOWS32]: Make sure
515 variable st is not used when it's not initialized.
516 Patch from Eli Zaretskii <eliz@gnu.org>.
518 2006-01-31 Paul D. Smith <psmith@gnu.org>
520 * README.W32.template: Applied patch #4785 from
521 Markus Mauhart <qwe123@chello.at>.
522 * README.cvs: Applied patch #4786 from
523 Markus Mauhart <qwe123@chello.at>.
524 * make_msvc_net2003.vcproj [WINDOWS32]: New version from
525 J. Grant <jg@jguk.org>.
527 * main.c: Update the copyright year in the version output.
528 * prepare_w32.bat: Remove this file from the distribution.
530 2006-01-21 Eli Zaretskii <eliz@gnu.org>
532 * remake.c (update_goal_chain): Set g->changed instead of
533 incrementing it, as it is only 8-bit wide, and could overflow if
534 many commands got started in update_file.
536 * w32/include/sub_proc.h: Add a prototype for process_used_slots.
538 * w32/subproc/sub_proc.c: Change dimension of proc_array[] to
539 MAXIMUM_WAIT_OBJECTS.
540 (process_wait_for_any_private): Change dimension of handles[]
541 array to MAXIMUM_WAIT_OBJECTS.
542 (process_used_slots): New function.
543 (process_register): Don't register more processes than the
544 available number of slots.
545 (process_easy): Don't start new processes if all slots are used up.
547 * job.c (load_too_high, start_waiting_jobs) [WINDOWS32]: If there
548 are already more children than sub_proc.c can handle, behave as if
549 the load were too high.
550 (start_job_command): Fix a typo in error message when process_easy
553 2006-01-14 Eli Zaretskii <eliz@gnu.org>
555 * main.c (main) [WINDOWS32]: Don't refuse to run with -jN, even if
556 the shell is not sh.exe.
558 * job.c (create_batch_file): Renamed from create_batch_filename;
559 all callers changed. Don't close the temporary file; return its
560 file descriptor instead. New arg FD allows to return the file
562 (construct_command_argv_internal): Use _fdopen instead of fopen to
565 2006-01-04 Paul D. Smith <psmith@gnu.org>
567 * readme.vms: Updates for case-insensitive VMS file systems from
568 Hartmut Becker <Hartmut.Becker@hp.com>.
569 * dir.c (vms_hash): Ditto.
570 * vmsify.c (copyto): Ditto.
571 * vmsfunctions.c (readdir): Ditto.
573 * make.1: Add a section on the exit codes for make.
575 * doc/make.texi: A number of minor updates to the documentation.
577 2006-01-03 Paul D. Smith <psmith@gnu.org>
579 * remake.c (update_file_1): Mark a prerequisite changed if it
582 * read.c (eval): Be sure to strip off trailing whitespace from the
583 prerequisites list properly. Also, initialize all fields in
584 struct dep when creating a new one.
586 2005-12-28 Paul D. Smith <psmith@gnu.org>
588 * config.h.W32.template [WINDOWS32]: Add in some pragmas to
589 disable warnings for MSC.
590 Patch by Rob Tulloh <rtulloh@yahoo.com>.
592 2005-12-17 Eli Zaretskii <eliz@gnu.org>
594 * doc/make.texi (Execution): Add a footnote about changes in
595 handling of backslash-newline sequences. Mention the differences
596 on MS-DOS and MS-Windows.
598 * NEWS: More details about building the MinGW port and a pointer
599 to README.W32. Fix the section name that describes the new
600 backward-incompatible processing of backslash-newline sequences.
601 The special processing of SHELL set to "cmd" is only relevant to
602 MS-Windows, not MS-DOS.
604 2005-12-17 Eli Zaretskii <eliz@gnu.org>
606 * main.c (handle_runtime_exceptions): Cast exrec->ExceptionAddress
607 to DWORD, to avoid compiler warnings.
608 * job.c (exec_command): Cast hWaitPID and hPID to DWORD, and
609 use %ld in format, to avoid compiler warnings.
611 * doc/make.texi (Special Targets): Fix a typo.
612 (Appending): Fix cross-reference to Setting.
613 (Special Variables, Secondary Expansion, File Name Functions)
614 (Flavor Function, Pattern Match, Quick Reference): Ensure two
615 periods after a sentence.
616 (Execution): Add @: after "e.g.".
617 (Environment): Fix punctuation.
618 (Target-specific, Call Function, Quick Reference): Add @: after "etc."
619 (Shell Function, Target-specific): Add @: after "vs."
621 2005-12-14 Boris Kolpackov <boris@kolpackov.net>
623 * read.c (record_target_var): Initialize variable's export field
624 with v_default instead of leaving it "initialized" by whatever
625 garbage happened to be on the heap.
627 2005-12-12 Paul D. Smith <psmith@gnu.org>
629 * make.1: Fix some display errors and document all existing options.
630 Patch provided by Mike Frysinger <vapier@gentoo.org>.
632 2005-12-11 Paul D. Smith <psmith@gnu.org>
634 * implicit.c (pattern_search): If 2nd expansion is not set for
635 this implicit rule, replace the pattern with the stem directly,
636 and don't re-expand the variable list. Along with the other
637 .SECONDEXPANSION changes below, fixes bug #13781.
639 2005-12-09 Boris Kolpackov <boris@kolpackov.net>
641 * implicit.c (pattern_search): Mark other files that this rule
642 builds as targets so that they are not treated as intermediates
643 by the pattern rule search algorithm. Fixes bug #13022.
645 2005-12-07 Boris Kolpackov <boris@kolpackov.net>
647 * remake.c (notice_finished_file): Propagate the change of
648 modification time to all the double-colon entries only if
649 it is the last one to be updated. Fixes bug #14334.
651 2005-11-17 Boris Kolpackov <boris@kolpackov.net>
653 * function.c (func_flavor): Implement the flavor function which
654 returns the flavor of a variable.
655 * doc/make.texi (Functions for Transforming Text): Document it.
656 * NEWS: Add it to the list of new functions.
658 2005-11-14 Boris Kolpackov <boris@kolpackov.net>
660 * read.c (construct_include_path): Set the .INCLUDE_DIRS special
662 * doc/make.texi (Special Variables): Document .INCLUDE_DIRS.
663 * NEWS: Add .INCLUDE_DIRS to the list of new special variables.
665 2005-10-26 Paul Smith <psmith@gnu.org>
667 * read.c (record_files): Don't set deps flags if there are no deps.
668 * maintMakefile: We only need to build the templates when we are
669 creating a distribution, so don't do it for "all".
671 2005-10-24 Paul D. Smith <psmith@gnu.org>
673 Make secondary expansion optional: its enabled by declaring the
674 special target .SECONDEXPANSION.
676 * NEWS: Update information on second expansion capabilities.
677 * doc/make.texi (Secondary Expansion): Document the
678 .SECONDEXPANSION special target and its behavior.
679 * dep.h (struct dep): Add a flag STATICPATTERN, set to true if the
680 prerequisite list was found in a static pattern rule.
681 (free_dep_chain): Declare a prototype.
682 * file.c (parse_prereqs): New function: break out some complexity
684 (expand_deps): If we aren't doing second expansion, replace % with
685 the stem for static pattern rules. Call the new function.
686 * filedef.h (parse_prereqs): Declare a prototype.
687 * implicit.c (pattern_search): Initialize the new staticpattern
689 * main.c (second_expansion): Declare a global variable to remember
690 if the special target has been seen. Initialize the new
691 staticpattern field for prerequisites.
692 * make.h: Extern for second_expansion.
693 * misc.c (free_dep_chain): New function: frees a struct dep list.
694 * read.c (read_all_makefiles): Initialize the staticpattern field.
695 (eval_makefile): Ditto.
696 (record_files): Check for the .SECONDEXPANSION target and set
697 second_expansion global if it's found.
698 Use the new free_dep_chain() instead of doing it by hand.
699 Set the staticpattern field for prereqs of static pattern targets.
701 2005-10-16 Paul D. Smith <psmith@gnu.org>
703 * main.c (main): Set CURDIR to be a file variable instead of a
704 default, so that values of CURDIR inherited from the environment
705 won't override the make value.
707 2005-09-26 Paul D. Smith <psmith@gnu.org>
709 * job.c (construct_command_argv_internal): If the line is empty
710 remember to free the temporary argv strings.
713 2005-09-16 Paul D. Smith <psmith@gnu.org>
715 * job.c (start_job_command): The noerror flag is a boolean (single
716 bit); set it appropriately.
717 Reported by Mark Eichin <eichin@metacarta.com>
719 2005-08-29 Paul D. Smith <psmith@gnu.org>
721 * function.c (func_error): On Windows, output from $(info ...)
722 seems to come in the wrong order. Try to force it with fflush().
724 2005-08-10 Boris Kolpackov <boris@kolpackov.net>
726 * read.c (record_files): Move code that sets stem for static
727 pattern rules out of the if (!two_colon) condition so it is
728 also executed for two-colon rules. Fixes Savannah bug #13881.
730 2005-08-08 Paul D. Smith <psmith@gnu.org>
732 * make.h: Don't test that __STDC__ is non-0. Some compilers
733 (Windows for example) set it to 0 to denote "ISO C + extensions".
736 2005-08-07 Paul D. Smith <psmith@gnu.org>
738 * w32/pathstuff.c (getcwd_fs): Fix warning about assignment in a
739 conditional (slightly different version of a fix from Eli).
741 Fix a bug reported by Michael Matz <matz@suse.de>: patch included.
742 If make is running in parallel without -k and two jobs die in a
743 row, but not too close to each other, then make will quit without
744 waiting for the rest of the jobs to die.
746 * main.c (die): Don't reset err before calling reap_children() the
747 second time: we still want it to be in the error condition.
748 * job.c (reap_children): Use a static variable, rather than err,
749 to control whether or not the error message should be printed.
751 2005-08-06 Eli Zaretskii <eliz@gnu.org>
753 * w32/subproc/sub_proc.c: Include signal.h.
754 (process_pipe_io, process_file_io): Pass a pointer to a local
755 DWORD variable to GetExitCodeProcess. If the exit code is
756 CONTROL_C_EXIT, put SIGINT into pproc->signal.
758 * job.c [WINDOWS32]: Include windows.h.
759 (main_thread) [WINDOWS32]: New global variable.
760 (reap_children) [WINDOWS32]: Get the handle for the main thread
761 and store it in main_thread.
763 * commands.c [WINDOWS32]: Include windows.h and w32err.h.
764 (fatal_error_signal) [WINDOWS32]: Suspend the main thread before
765 doing anything else. When we are done, close the main thread
766 handle and exit with status 130.
768 2005-07-30 Eli Zaretskii <eliz@gnu.org>
770 * w32/subproc/sub_proc.c (process_begin): Don't pass a NULL
773 * main.c (find_and_set_default_shell): If found a DOSish shell,
774 set sh_found and the value of default_shell, and report the
775 findings in debug mode.
777 * job.c (construct_command_argv_internal): Check unixy_shell, not
778 no_default_sh_exe, to decide whether to use Unixy or DOSish
781 * README.W32: Update with info about the MinGW build.
783 * build_w32.bat: Support MinGW.
785 * w32/subproc/build.bat: Likewise.
787 * w32/subproc/sub_proc.c (process_easy): Fix format strings for
790 * function.c (windows32_openpipe): Fix format strings for printing
793 * job.c (reap_children) [WINDOWS32]: Don't declare 'status' and
795 (start_job_command): Fix format string for printing the result of
797 (start_job_command) [WINDOWS32]: Do not define.
798 (exec_command): Fix format string for printing HANDLE args.
800 * main.c (handle_runtime_exceptions): Fix sprintf format strings
801 to avoid compiler warnings.
802 (open_tmpfile): Declare fd only if HAVE_FDOPEN is defined.
803 (Note: some of these fixes were submitted independently by J. Grant)
805 2005-07-30 J. Grant <jg@jguk.org>
807 * prepare_w32.bat: Copy config.h.w32 to config.h if not exist.
808 * make_msvc_net2003.vcproj, make_msvc_net2003.sln: MSVC Project files.
809 * Makefile.am (EXTRA_DIST): Add MSVC Project files.
811 2005-07-15 Paul Smith <psmith@gnu.org>
813 * job.c (construct_command_argv_internal) [DOS,WINDOWS32,OS/2]: If
814 we don't have a POSIX shell, then revert to the old
815 backslash-newline behavior (where they are stripped).
818 2005-07-08 Paul D. Smith <psmith@gnu.org>
820 * config.h.W32.template: Reorder to match the standard config.h,
821 for easier comparisons.
822 From J. Grant <jg@jguk.org>
824 * maintMakefile: Remove .dep_segment before overwriting it, in
825 case it's not writable or noclobber is set.
826 * expand.c (variable_expand_string): Cast result of pointer
827 arithmetic to avoid a warning.
828 * main.c (switches): Add full-fledged final initializer.
830 2005-07-06 Paul D. Smith <psmith@gnu.org>
832 * configure.in: IRIX has _sys_siglist. Tru64 UNIX has __sys_siglist.
833 * signame.c (strsignal): If we found _sys_siglist[] or
834 __sys_siglist[] use those instead of sys_siglist[].
835 From Albert Chin <china@thewrittenword.com>
837 2005-07-04 Paul D. Smith <psmith@gnu.org>
839 * config.h-vms.template [VMS]: Latest VMS has its own glob() and
840 globfree(); set up to use the GNU versions.
841 From Martin Zinser <zinser@zinser.no-ip.info>
843 2005-07-03 Paul D. Smith <psmith@gnu.org>
845 From J. Grant <jg@jguk.org>:
847 * README.W32.template: Update the Windows and tested MSVC versions.
848 * NMakefile.template (CFLAGS_any): Change warning level from W3 to W4.
849 * w32/subproc/NMakefile (CFLAGS_any): Ditto.
850 * build_w32.bat: Ditto.
851 * w32/subproc/build.bat: Ditto.
853 2005-06-28 Paul D. Smith <psmith@gnu.org>
855 * signame.c: HAVE_DECL_* macros are set to 0, not undef, if the
856 declaration was checked but not present.
858 2005-06-27 Paul D. Smith <psmith@gnu.org>
860 * dir.c (find_directory): Change type of fs_serno/fs_flags/fs_len
861 to unsigned long. Fixes Savannah bug #13550.
863 * w32/subproc/sub_proc.c: Remove (HANDLE) casts on lvalues.
864 (process_pipe_io): Initialize tStdin/tStdout/tStderr variables.
865 Fixes Savannah bug #13551.
867 2005-06-26 Paul D. Smith <psmith@gnu.org>
869 * make.h: Fix bug in ANSI_STRING/strerror() handling; only define
870 it if ANSI_STRING is not set.
872 2005-06-25 Paul D. Smith <psmith@gnu.org>
874 * read.c (eval): If no filenames are passed to any of the
875 "include" variants, don't print an error.
876 * doc/make.texi (Include): Document this.
877 Fixes Savannah bug #1761.
879 * job.c (construct_command_argv_internal): Sanitize handling of
880 backslash/newline pairs according to POSIX: that is, keep the
881 backslash-newline in the command script, but remove a following
882 TAB character, if present. In the fast path, make sure that the
883 behavior matches what the shell would do both inside and outside
884 of quotes. In the slow path, quote the backslash and put a
885 literal newline in the string.
886 Fixes Savannah bug #1332.
887 * doc/make.texi (Execution): Document the new behavior and give
889 * NEWS: Make a note of the new behavior.
891 * make.h [WINDOWS32]: #include <direct.h>.
892 Fixes Savannah bug #13478.
894 * remake.c (name_mtime): If the stat() of a file fails and the -L
895 option was given and the file is a symlink, take the best mtime of
896 the symlink we can get as the mtime of the file and don't fail.
897 Fixes Savannah bug #13280.
899 * read.c (find_char_unquote): Accept a new argument IGNOREVARS.
900 If it's set, then don't stop on STOPCHARs or BLANKs if they're
901 inside a variable reference. Make this function static as it's
903 (eval): Call find_char_unquote() with IGNOREVARS set when we're
904 parsing an unexpanded line looking for semicolons.
905 Fixes Savannah bug #1454.
906 * misc.c (remove_comments): Move this to read.c and make it static
907 as it's only used there. Call find_char_unquote() with new arg.
908 * make.h: Remove prototypes for find_char_unquote() and
909 remove_comments() since they're static now.
911 * main.c (main): If we see MAKE_RESTARTS in the environment, unset
912 its export flag and obtain its value. When we need to re-exec,
913 increment the value and add it into the environment.
914 * doc/make.texi (Special Variables): Document MAKE_RESTARTS.
915 * NEWS: Mention MAKE_RESTARTS.
916 * main.c (always_make_set): New variable. Change the -B option to
917 set this one instead.
918 (main): When checking makefiles, only set always_make_flag if
919 always_make_set is set AND the restarts flag is 0. When building
920 normal targets, set it IFF always_make_set is set.
921 (main): Avoid infinite recursion with -W, too: only set what-if
922 files to NEW before we check makefiles if we've never restarted
923 before. If we have restarted, set what-if files to NEW _after_ we
925 Fixes Savannah bug #7566:
927 2005-06-17 Paul D. Smith <psmith@gnu.org>
929 * default.c: Change VMS implicit rules to use $$$$ instead of $$
930 in the prerequisites list.
932 2005-06-12 Paul D. Smith <psmith@gnu.org>
934 Fix Savannah bug # 1328.
936 * configure.in: Check for atexit().
937 * misc.c (close_stdout): Test stdout to see if writes to it have
938 failed. If so, be sure to exit with a non-0 error code. Based on
939 code found in gnulib.
941 * main.c (main): Install close_stdout() with atexit().
943 2005-06-10 Paul D. Smith <psmith@gnu.org>
945 VMS build updates from Hartmut Becker <Hartmut.Becker@hp.com>:
947 * vmsjobs.c [VMS]: Updates to compile on VMS: add some missing
948 headers; make vmsWaitForChildren() static; extern vmsify().
949 * job.c [VMS]: Move vmsWaitForChildren() prototype to be global.
950 Don't create child_execute_job() here (it's in vmsjobs.c).
951 * makefile.vms (job.obj) [VMS]: Add vmsjobs.c as a prerequisite.
953 2005-06-09 Paul D. Smith <psmith@gnu.org>
955 * variable.c (push_new_variable_scope): File variables point
956 directly to the global_setlist variable. So, inserting a new
957 scope in front of that has no effect on those variables: they
958 don't go through current_variable_set_list. If we're pushing a
959 scope and the current scope is global, push it "the other way" so
960 that the new setlist is in the global_setlist variable, and
961 next points to a new setlist with the global variable set.
962 (pop_variable_scope): Properly undo a push with the new
964 Fixes Savannah bug #11913.
966 2005-05-31 Boris Kolpackov <boris@kolpackov.net>
968 * job.c (reap_children): Don't die of the command failed but
969 the dontcare flag is set. Fixes Savannah bug #13216.
971 * implicit.c (pattern_search): When creating a target from
972 an implicit rule match, lookup pattern target and set precious
973 flag in a newly created target. Fixes Savannah bug #13218.
975 2005-05-13 Paul D. Smith <psmith@gnu.org>
977 Implement "if... else if... endif" syntax.
979 * read.c (eval): Push all checks for conditional words ("ifeq",
980 "else", etc.) down into the conditional_line() function.
981 (conditional_line): Rework to allow "else if..." clause. New
982 return value -2 for lines which are not conditionals. The
983 ignoring flag can now also be 2, which means "already parsed a
984 true branch". If that value is seen no other branch of this
985 conditional can be considered true. In the else parsing if there
986 is extra text after the else, invoke conditional_line()
987 recursively to see if it's another conditional. If not, it's an
988 error. If so, raise the conditional value to this level instead
989 of creating a new conditional nesting level. Special check for
990 "else" and "endif", which aren't allowed on the "else" line.
991 * doc/make.texi (Conditional Syntax): Document the new syntax.
993 2005-05-09 Paul D. Smith <psmith@gnu.org>
995 * Makefile.am (EXTRA_make_SOURCES): Add vmsjobs.c
996 (MAYBE_W32): Rework how SUBDIRS are handled so that "make dist"
997 recurses to the w32 directory, even on non-Windows systems. Use
998 the method suggested in the automake manual.
999 * configure.in: Add w32/Makefile to AC_CONFIG_FILES.
1000 * maintMakefile (gnulib-url): They moved the texinfo.tex files.
1002 2005-05-07 Paul D. Smith <psmith@gnu.org>
1004 * main.c (die): If we're dying with a fatal error (not that a
1005 command has failed), write back any leftover tokens before we go.
1007 * job.c (set_child_handler_action_flags): If there are jobs
1008 waiting for the load to go down, set an alarm to go off in 1
1009 second. This allows us to wake up from a potentially long-lasting
1010 read() and start a new job if the load has gone down. Turn it off
1012 (job_noop): Dummy signal handler function.
1013 (new_job): Invoke it with the new semantics.
1015 * docs/make.texi: Document secondary expansion. Various cleanups
1018 2005-05-03 Paul D. Smith <psmith@gnu.org>
1020 Rename .DEFAULT_TARGET to .DEFAULT_GOAL: in GNU make terminology
1021 the targets which are to ultimately be made are called "goals";
1022 see the GNU make manual. Also, MAKECMDGOALS, etc.
1024 * filedef.h, read.c, main.c: Change .DEFAULT_TARGET to
1025 .DEFAULT_GOAL, and default_target_name to default_goal_name.
1026 * doc/make.texi (Special Variables): Document .DEFAULT_GOAL.
1028 2005-05-02 Paul D. Smith <psmith@gnu.org>
1030 * job.c, vmsjobs.c (vmsWaitForChildren, vms_redirect,
1031 vms_handle_apos, vmsHandleChildTerm, reEnableAst, astHandler,
1032 tryToSetupYAst, child_execute_job) [VMS]: Move VMS-specific
1033 functions to vmsjobs.c. #include it into jobs.c.
1035 Grant Taylor <gtaylor@picante.com> reports that -j# can lose
1036 jobserver tokens. I found that this happens when an exported
1037 recursive variable contains a $(shell ...) function reference: in
1038 this situation we could "forget" to write back a token.
1040 * job.c, job.h: Add variable jobserver_tokens: counts the tokens
1041 we have. It's not reliable to depend on the number of children in
1042 our linked list so keep a separate count.
1043 (new_job): Check jobserver_tokens rather than children &&
1044 waiting_jobs. Increment jobserver_tokens when we get one.
1045 (free_child): If jobserver_tokens is 0, internal error. If it's
1046 >1, write a token back to the jobserver pipe (we don't write a
1047 token for the "free" job). Decrement jobserver_tokens.
1049 * main.c: Add variable master_job_slots.
1050 (main): Set it to hold the number of jobs requested if we're the
1051 master process, when using the jobserver.
1052 (die): Sanity checks: first test jobserver_tokens to make sure
1053 this process isn't holding any tokens we didn't write back.
1054 Second, if master_job_slots is set count the tokens left in the
1055 jobserver pipe and ensure it's the same as master_job_slots (- 1).
1057 2005-04-24 Paul D. Smith <psmith@gnu.org>
1059 Grant Taylor <gtaylor@picante.com> reports that -j# in conjunction
1060 with -l# can lose jobserver tokens, because waiting jobs are not
1061 consulted properly when checking for the "free" token.
1063 * job.c (free_child): Count waiting_jobs as having tokens.
1064 * job.c (new_job): Ditto. Plus, call start_waiting_jobs() here to
1065 handle jobs waiting for the load to drop.
1067 2005-04-23 Paul D. Smith <psmith@gnu.org>
1069 * main.c (main): Be careful to not core if a variable setting in
1070 the environment doesn't contain an '='. This is illegal but can
1071 happen in broken setups.
1072 Reported by Joerg Schilling <schilling@fokus.fraunhofer.de>.
1074 2005-04-12 Paul D. Smith <psmith@gnu.org>
1076 The second expansion feature causes significant slowdown. Timing
1077 a complex makefile (GCC 4.1) shows a slowdown from .25s to just
1078 read the makefile before the feature, to 11+s to do the same
1079 operations after the feature. Additionally, memory usage
1080 increased drastically. To fix this I added some intelligence that
1081 avoids the overhead of the second expansion unless it's required.
1083 * dep.h: Add a new boolean field, need_2nd_expansion.
1085 * read.c (eval): When creating the struct dep for the target,
1086 check if the name contains a "$"; if so set need_2nd_expansion to 1.
1087 (record_files): If there's a "%" in a static pattern rule, it gets
1088 converted to "$*" so set need_2nd_expansion to 1.
1090 * file.c (expand_deps): Rework to be more efficient. Only perform
1091 initialize_file_variables(), set_file_variables(), and
1092 variable_expand_for_file() if the need_2nd_expansion is set.
1094 * implicit.c (pattern_search): Default need_2nd_expansion to 0.
1095 (pattern_search): Ditto.
1096 * main.c (handle_non_switch_argument): Ditto.
1098 * read.c (read_all_makefiles): Ditto.
1099 (eval_makefile): Ditto.
1101 2005-04-07 Paul D. Smith <psmith@gnu.org>
1103 * main.c (main) [WINDOWS32]: Export PATH to sub-shells, not Path.
1104 * variable.c (sync_Path_environment): Ditto.
1105 Patch by Alessandro Vesely. Fixes Savannah bug #12209.
1107 * main.c (main): Define the .FEATURES variable.
1108 * NEWS: Announce .FEATURES.
1109 * doc/make.texi (Special Variables): Document .FEATURES.
1111 * remake.c (check_dep): If a file is .PHONY, update it even if
1112 it's marked intermediate. Fixes Savannah bug #12331.
1114 2005-03-15 Boris Kolpackov <boris@kolpackov.net>
1116 * file.c (expand_deps): Factor out the second expansion and
1117 prerequisite line parsing logic from snap_deps().
1119 * file.c (snap_deps): Use expand_deps(). Expand and parse
1120 prerequisites of the .SUFFIXES special target first. Fixes
1121 Savannah bug #12320.
1123 2005-03-13 Paul D. Smith <psmith@gnu.org>
1125 * main.c (main) [MSDOS]: Export SHELL in MSDOS. Requested by Eli
1128 2005-03-11 Paul D. Smith <psmith@gnu.org>
1130 * signame.c (strsignal): HAVE_DECL_SYS_SIGLIST is 0 when not
1131 available, not undefined (from Earnie Boyd).
1133 2005-03-10 Boris Kolpackov <boris@kolpackov.net>
1135 * implicit.c (pattern_search): Mark an intermediate target as
1136 precious if it happened to be a prerequisite of some (other)
1137 target. Fixes Savannah bug #12267.
1139 2005-03-09 Paul D. Smith <psmith@gnu.org>
1141 * read.c (eval_makefile): Add alloca(0).
1142 (eval_buffer): Ditto.
1144 2005-03-09 Boris Kolpackov <boris@kolpackov.net>
1146 * main.c (main): Use o_file instead of o_default when defining
1147 the .DEFAULT_TARGET special variable.
1148 * read.c (eval): Use define_variable_global() instead of
1149 define_variable() when setting new value for the .DEFAULT_TARGET
1150 special variable. Fixes Savannah bug #12266.
1152 2005-03-04 Boris Kolpackov <boris@kolpackov.net>
1154 * imlicit.c (pattern_search): Mark files for which an implicit
1155 rule has been found as targets. Fixes Savannah bug #12202.
1157 2005-03-04 Paul D. Smith <psmith@gnu.org>
1160 * doc/make.texi (Automatic Variables): Document $|.
1162 2005-03-03 Boris Kolpackov <boris@kolpackov.net>
1164 * read.c (record_files): Instead of substituting % with
1165 actual stem value in dependency list replace it with $*.
1166 This fixes stem triple expansion bug.
1168 * implicit.c (pattern_search): Copy stem to a separate
1169 buffer and make it a properly terminated string. Assign
1170 this buffer instead of STEM (which is not terminated) to
1171 f->stem. Instead of substituting % with actual stem value
1172 in dependency list replace it with $*. This fixes stem
1173 triple expansion bug.
1175 2005-03-01 Paul D. Smith <psmith@gnu.org>
1177 * commands.c (fatal_error_signal) [WINDOWS32]: Don't call kill()
1178 on Windows, as it takes a handle not a pid. Just exit.
1179 Fix from patch #3679, provided by Alessandro Vesely.
1181 * configure.in: Update check for sys_siglist[] from autoconf manual.
1182 * signame.c (strsignal): Update to use the new autoconf macro.
1184 2005-03-01 Boris Kolpackov <boris@kolpackov.net>
1186 * read.c (record_files): Add a check for the list of prerequisites
1187 of a static pattern rule being empty. Fixes Savannah bug #12180.
1189 2005-02-28 Paul D. Smith <psmith@gnu.org>
1191 * doc/make.texi (Text Functions): Update docs to allow the end
1192 ordinal for $(wordlist ...) to be 0.
1193 * function.c (func_wordlist): Fail if the start ordinal for
1194 $(wordlist ...) is <1. Matches documentation.
1195 Resolves Savannah support request #103195.
1197 * remake.c (update_goal_chain): Fix logic for stopping in -q:
1198 previously we were stopping when !-q, exactly the opposite. This
1199 has been wrong since version 1.34, in 1994!
1200 (update_file): If we got an error don't break out to run more
1201 double-colon rules: just return immediately.
1202 Fixes Savannah bug #7144.
1204 2005-02-27 Paul D. Smith <psmith@gnu.org>
1206 * misc.c (end_of_token): Make argument const.
1207 * make.h: Update prototype.
1209 * function.c (abspath, func_realpath, func_abspath): Use
1210 PATH_VAR() and GET_PATH_MAX instead of PATH_MAX.
1211 * dir.c (downcase): Use PATH_VAR() instead of PATH_MAX.
1212 * read.c (record_files): Ditto.
1213 * variable.c (do_variable_definition): Ditto.
1215 * function.c (func_error): Create a new function $(info ...) that
1216 simply prints the message to stdout with no extras.
1217 (function_table_init): Add new function to the table.
1218 * NEWS: Add $(info ...) reference.
1219 * doc/make.texi (Make Control Functions): Document it.
1221 New feature: if the system supports symbolic links, and the user
1222 provides the -L/--check-symlink-time flag, then use the latest
1223 mtime between the symlink(s) and the target file.
1225 * configure.in (MAKE_SYMLINKS): Check for lstat() and
1226 readlink(). If both are available, define MAKE_SYMLINKS.
1227 * main.c: New variable: check_symlink_flag.
1228 (usage): Add a line for -L/--check-symlink-times to the help string.
1229 (switches): Add -L/--check-symlink-times command line argument.
1230 (main): If MAKE_SYMLINKS is not defined but the user specified -L,
1231 print a warning and disable it again.
1232 * make.h: Declare check_symlink_flag.
1233 * remake.c (name_mtime): If MAKE_SYMLINKS and check_symlink_flag,
1234 if the file is a symlink then check each link in the chain and
1235 choose the NEWEST mtime we find as the mtime for the file. The
1236 newest mtime might be the file itself!
1237 * NEWS: Add information about this new feature.
1238 * doc/make.texi (Options Summary): Add -L/--check-symlink-times docs.
1240 Avoid core dumps described in Savannah bug # 12124:
1242 * file.c: New variable snapped_deps remember whether we've run
1244 (snap_deps): Set it.
1245 * filedef.h: Extern it.
1246 * read.c (record_files): Check snapped_deps; if it's set then
1247 we're trying to eval a new target/prerequisite relationship from
1248 within a command script, which we don't support. Fatal.
1250 2005-02-28 Boris Kolpackov <boris@kolpackov.net>
1252 Implementation of the .DEFAULT_TARGET special variable.
1254 * read.c (eval): If necessary, update default_target_name when
1256 * read.c (record_files): Update default_target_file if
1257 default_target_name has changed.
1258 * main.c (default_target_name): Define.
1259 * main.c (main): Enter .DEFAULT_TARGET as make variable. If
1260 default_target_name is set use default_target_file as a root
1262 * filedef.h (default_target_name): Declare.
1263 * dep.h (free_dep_chain):
1264 * misc.c (free_dep_chain): Change to operate on struct nameseq
1265 and change name to free_ns_chain.
1266 * file.c (snap_deps): Update to use free_ns_chain.
1268 2005-02-27 Boris Kolpackov <boris@kolpackov.net>
1270 Implementation of the second expansion in explicit rules,
1271 static pattern rules and implicit rules.
1273 * read.c (eval): Refrain from chopping up rule's dependencies.
1274 Store them in a struct dep as a single dependency line. Remove
1275 the code that implements SySV-style automatic variables.
1277 * read.c (record_files): Adjust the code that handles static
1278 pattern rules to expand all percents instead of only the first
1279 one. Reverse the order in which dependencies are stored so that
1280 when the second expansion reverses them again they appear in
1281 the makefile order (with some exceptions, see comments in
1282 the code). Remove the code that implements SySV-style automatic
1285 * file.c (snap_deps): Implement the second expansion and chopping
1286 of dependency lines for explicit rules.
1288 * implicit.c (struct idep): Define an auxiliary data type to hold
1289 implicit rule's dependencies after stem substitution and
1292 * implicit.c (free_idep_chain): Implement.
1294 * implicit.c (get_next_word): Implement helper function for
1295 parsing implicit rule's dependency lines into words taking
1296 into account variable expansion requests. Used in the stem
1299 * implicit.c (pattern_search): Implement the second expansion
1300 for implicit rules. Also fixes bug #12091.
1302 * commands.h (set_file_variables): Declare.
1303 * commands.c (set_file_variables): Remove static specifier.
1305 * dep.h (free_dep_chain): Declare.
1306 * misc.c (free_dep_chain): Implement.
1308 * variable.h (variable_expand_for_file): Declare.
1309 * expand.c (variable_expand_for_file): Remove static specifier.
1311 * make.h (strip_whitespace): Declare.
1312 * function.c (strip_whitespace): Remove static specifier.
1314 2005-02-26 Paul D. Smith <psmith@gnu.org>
1316 * main.c (main): Check for ferror() when reading makefiles from stdin.
1317 Apparently some shells in Windows don't close pipes properly and
1320 2005-02-24 Jonathan Grant <jg@jguk.org>
1322 * configure.in: Add MinGW configuration options, and extra w32 code
1324 * Makefile.am: Add MinGW configuration options, and extra w32 code
1326 * main.c: Determine correct program string (after last \ without .exe).
1327 * subproc/sub_proc.c: `GetExitCodeProcess' from incompatible pointer
1329 * w32/Makefile.am: Import to build win32 lib of sub_proc etc.
1330 * subproc/w32err.c: MSVC thread directive not applied to MinGW builds.
1331 * tests/run_make_tests.pl, tests/test_driver.pl: MSYS testing
1332 environment support.
1334 2004-04-16 Dmitry V. Levin <ldv@altlinux.org>
1336 * function.c (func_shell): When initializing error_prefix, check
1337 that reading file name is not null. This fixes long-standing
1338 segfault in cases like "make 'a1=$(shell :)' 'a2:=$(a1)'".
1340 2005-02-09 Paul D. Smith <psmith@gnu.org>
1342 * maintMakefile: Update the CVS download URL to simplify them.
1343 Also, the ftp://ftp.gnu.org/GNUinfo site was removed so I'm
1344 downloading the .texi files from Savannah now.
1346 Fixed these issues reported by Markus Mauhart <qwe123@chello.at>:
1348 * main.c (handle_non_switch_argument): Only add variables to
1349 command_variables if they're not already there: duplicate settings
1350 waste space and can be confusing to read.
1352 * w32/include/sub_proc.h: Remove WINDOWS32. It's not needed since
1353 this header is never included by non-WINDOWS32 code, and it
1354 requires <config.h> to define which isn't always included first.
1356 * dir.c (read_dirstream) [MINGW]: Use proper macro names when
1357 testing MINGW32 versions.
1359 * main.c (log_working_directory): flush stdout to be sure the WD
1360 change is printed before any stderr messages show up.
1362 2005-02-01 Paul D. Smith <psmith@gnu.org>
1364 * maintMakefile (po_repo): Update the GNU translation site URL.
1366 2004-12-01 Paul D. Smith <psmith@gnu.org>
1368 * main.c (main): Change char* env_shell to struct variable shell_var.
1369 * variable.c (target_environment): Use new shell_var.
1371 2004-11-30 Paul D. Smith <psmith@gnu.org>
1373 * configure.in: The old way we avoided creating build.sh from
1374 build.sh.in before build.sh.in exists doesn't work anymore; we
1375 have to use raw M4 (thanks to Andreas Schwab <schwab@suse.de> for
1376 the help!). This also keeps automake from complaining.
1377 * Makefile.am (README): Add a dummy target so automake won't
1378 complain that this file doesn't exist when we checkout from CVS.
1379 * maintMakefile (.dep_segment): Rewrite this rule since newer
1380 versions of automake don't provide DEP_FILES.
1382 2004-11-30 Boris Kolpackov <boris@kolpackov.net>
1384 Implementation of `realpath' and `abspath' built-in functions.
1386 * configure.in: Check for realpath.
1387 * function.c (abspath): Return an absolute file name that does
1388 not contain any `.' or `..' components, nor repeated `/'.
1389 * function.c (func_abspath): For each name call abspath.
1390 * function.c (func_realpath): For each name call realpath
1391 from libc or delegate to abspath if realpath is not available.
1392 * doc/make.texi (Functions for File Names): Document new functions.
1393 * doc/make.texi (Quick Reference): Ditto.
1395 2004-11-28 Paul D. Smith <psmith@gnu.org>
1397 * main.c (main) [WINDOWS32]: Remove any trailing slashes from -C
1398 arguments. Fixes bug #10252.
1400 Fix for bug #1276: Handle SHELL according to POSIX requirements.
1402 * main.c (main): Set SHELL to v_noexport by default. Remember the
1403 original environment setting of SHELL in the env_shell variable.
1404 * main.h: Export new env_shell variable.
1405 * variable.c (target_environment): If we find a v_noexport
1406 variable for SHELL, add a SHELL variable with the env_shell value.
1407 * doc/make.texi (Quick Reference): Document the POSIX behavior.
1408 * doc/make.texi (Variables/Recursion): Ditto.
1410 2004-11-28 Paul D. Smith <psmith@gnu.org>
1412 * main.c (find_and_set_default_shell) [WINDOWS32]: check for
1413 equality of "cmd"/"cmd.exe", not inequality. Fixes bug #11155.
1414 Patch by Alessandro Vesely.
1416 2004-11-12 Paul D. Smith <psmith@gnu.org>
1418 * job.c (child_execute_job) [VMS]: Don't treat "#" as a comment on
1419 the command line if it's inside a string.
1420 Patch by: Hartmut Becker <Hartmut.Becker@hp.com>
1422 2004-10-21 Boris Kolpackov <boris@kolpackov.net>
1424 * function.c (func_lastword): New function: return last word
1425 from the list of words.
1426 * doc/make.texi: Document $(lastword ). Fix broken links in
1427 Quick Reference section.
1429 2004-10-06 Paul D. Smith <psmith@gnu.org>
1431 Apply patch from Alessandro Vesely, provided with bug # 9748.
1432 Fix use of tmpnam() to work with Borland C.
1434 * job.c (construct_command_argv_internal) [WINDOWS32]: Remove
1435 construction of a temporary filename, and call new function
1436 create_batch_filename().
1437 (create_batch_filename) [WINDOWS32]: New function to create a
1440 2004-10-05 Boris Kolpackov <boris@kolpackov.net>
1442 * read.c (record_target_var): Expand simple pattern-specific
1444 * variable.c (initialize_file_variables): Do not expand simple
1445 pattern-specific variable.
1447 2004-09-28 Boris Kolpackov <boris@kolpackov.net>
1449 * remake.c (update_file_1): When rebuilding makefiles inherit
1450 dontcare flag from a target that triggered update.
1452 2004-09-27 Boris Kolpackov <boris@kolpackov.net>
1454 * variable.c (initialize_file_variables): Mark pattern-specific
1455 variable as a per-target and copy export status.
1457 2004-09-21 Boris Kolpackov <boris@kolpackov.net>
1459 * file.c (snap_deps): Mark .PHONY prerequisites as targets.
1461 * implicit.c (pattern_search): When considering an implicit rule's
1462 prerequisite check that it is actually a target rather then
1463 just an entry in the file hashtable.
1465 2004-09-21 Paul D. Smith <psmith@gnu.org>
1467 * read.c (readstring): Fix some logic errors in backslash handling.
1468 (eval): Remove some unnecessary processing in buffer handling.
1469 (record_target_var): Assert that parse_variable_definition() succeeded.
1470 Reported by: Markus Mauhart <qwe123@chello.at>.
1472 * misc.c: Removed the sindex() function. All instances of this
1473 function were trivially replaceable by the standard strstr()
1474 function, and that function will always have better (or certainly
1475 no worse) performance than the very simple-minded algorithm
1476 sindex() used. This can matter with complex makefiles.
1477 * make.h: Remove the prototype for sindex().
1478 * function.c (subst_expand): Convert sindex() call to strstr().
1479 This means we no longer need to track the TLEN value so remove that.
1480 (func_findstring): Convert sindex() to strstr().
1481 * commands.c (chop_commands): Convert sindex() calls to strstr().
1482 Suggested by: Markus Mauhart <qwe123@chello.at>.
1484 * main.c (find_and_set_default_shell) [WINDOWS32]: Implement the
1485 idea behind Savannah Patch #3144 from david.baird@homemail.com.
1486 If SHELL is set to CMD.EXE then assume it's batch-mode and
1487 non-unixy. I wrote the code differently from the patch, though,
1488 to make it safer. This also resolves bug #9174.
1490 2004-09-20 Paul D. Smith <psmith@gnu.org>
1492 * expand.c (variable_expand_string): Modify to invoke
1493 patsubst_expand() instead of subst_expand(); the latter didn't
1494 handle suffix patterns correctly.
1495 * function.c (subst_expand): Remove the SUFFIX_ONLY parameter; it
1496 was used only from variable_expand_string() and is no longer used
1498 (func_subst): Ditto, on call to subst_expand().
1499 (patsubst_expand): Require the percent pointers to point to the
1500 character after the %, not to the % itself.
1501 * read.c (record_files): New call criteria for patsubst_expand().
1502 * variable.h: Remove SUFFIX_ONLY from subst_expand() prototype.
1503 This is to fix a bug reported by Markus Mauhart <qwe123@chello.at>.
1505 2004-09-19 Paul D. Smith <psmith@gnu.org>
1507 * function.c (subst_expand): Fix a check in by_word: look for a
1508 previous blank if we're beyond the beginning of the string, not
1509 the beginning of the word.
1510 Bugs reported by Markus Mauhart <qwe123@chello.at>.
1512 2004-05-16 Paul D. Smith <psmith@gnu.org>
1514 * remake.c (update_goal_chain): Change the argument specifying
1515 whether we're rebuilding makefiles to be a global variable,
1516 REBUILDING_MAKEFILES.
1517 (complain): Extract the code that complains about no rules to make
1518 a target into a separate function.
1519 (update_file_1): If we tried to rebuild a file during the makefile
1520 rebuild phase and it was dontcare, then no message was printed.
1521 If we then try to build the same file during the normal build,
1522 print a message this time.
1523 (remake_file): Don't complain about un-remake-able files when
1524 we're rebuilding makefiles.
1526 2004-05-11 Paul D. Smith <psmith@gnu.org>
1528 * job.c (construct_command_argv_internal): OS/2 patches from
1529 Andreas Buening <andreas.buening@nexgo.de>.
1531 2004-05-10 Paul D. Smith <psmith@gnu.org>
1533 * remake.c (update_file): Don't walk the double-colon chain unless
1534 this is a double-colon rule. Fix suggested by Boris Kolpackov
1535 <boris@kolpackov.net>.
1537 * makefile.vms (CFLAGS): Remove glob/globfree (see readme.vms docs)
1538 * readme.vms: New section describing OpenVMS support and issues.
1539 * default.c (default_variables): Add support for IA64.
1540 * job.c (tryToSetupYAst) [VMS]: On VMS running make in batch mode
1541 without some privilege aborts make with the error
1542 %SYSTEM-F-NOPRIV. It happens when setting up a handler for
1543 pressing Ctrl+Y and the input device is no terminal. The change
1544 catches this error and just continues.
1546 Patches by Hartmut Becker <Hartmut.Becker@hp.com>
1548 2004-04-25 Paul D. Smith <psmith@gnu.org>
1550 * commands.c (set_file_variables): Set $< properly in the face of
1551 order-only prerequisites.
1552 Patch from Boris Kolpackov <boris@kolpackov.net>
1554 2004-04-21 Bob Byrnes <byrnes@curl.com>
1556 * main.c (main): Notice failures to remake makefiles.
1558 2004-03-28 Paul D. Smith <psmith@gnu.org>
1560 Patches for Acorn RISC OS by Peter Naulls <peter@chocky.org>
1562 * job.c: No default shell for RISC OS.
1563 (load_too_high): Hard-code the return to 1.
1564 (construct_command_argv_internal): No sh_chars or sh_cmds.
1565 * getloadavg.c: Don't set LOAD_AVE_TYPE on RISC OS.
1567 2004-03-20 Paul D. Smith <psmith@gnu.org>
1569 * variable.c (do_variable_definition): Don't append from the
1570 global set if a previous non-appending target-specific variable
1571 definition exists. Reported by Oliver Schmidt <oschmidt@gmx.net>
1574 * expand.c (reference_variable): Don't give up on variables with
1575 no value that have the target-specific append flag set: they might
1576 have a value after all. Reported by Oliver Schmidt
1577 <oschmidt@gmx.net> (with fix) and also by Maksim A. Nikulin
1578 <nikulin@dx1cmd.inp.nsk.su>.
1580 * rule.c (count_implicit_rule_limits): Don't delete patterns which
1581 refer to absolute pathnames in directories that don't exist: some
1582 portion of the makefile could create those directories before we
1583 match the pattern. Fixes bugs #775 and #108.
1585 Fixes from Jonathan R. Grant <jg-make@jguk.org>:
1587 * main.c (main): Free makefile_mtimes if we have any.
1588 * README.W32.template: Update documentation for the current status
1589 of the MS-Windows port.
1590 * NMakefile.template (MAKE): Add "MAKE = nmake". A conflicting
1591 environment variable is sometimes already defined which causes the
1593 * main.c (debug_signal_handler): Only define this function if
1594 SIGUSR1 is available.
1596 Fixes for OS/2 from Andreas Beuning <andreas.buening@nexgo.de>:
1598 * configure.in [OS/2]: Relocate setting of HAVE_SA_RESTART for OS/2.
1599 * README.OS2.template: Documentation updates.
1600 * build.template: Add LIBINTL into LOADLIBES. Add $CFLAGS to the
1601 link line for safety.
1602 * maintMakefile (build.sh.in): Remove an extraneous ")".
1603 * job.c (child_execute_job): Close saved FDs.
1604 * job.c (exec_command) [OS/2]: exec_command(): If the command
1605 can't be exec'ed and if the shell is not Unix-sh, then try again
1606 with argv = { "cmd", "/c", ... }. Normally, this code is never
1607 reached for the cmd shell unless the command really doesn't exist.
1608 (construct_command_argv_internal) [OS/2]: The code for cmd
1609 handling now uses new_argv = { "cmd", "/c", "original line", NULL}.
1610 The CMD builtin commands are case insensitive so use strcasecmp().
1612 2004-03-19 Paul D. Smith <psmith@gnu.org>
1614 * read.c (do_define): Re-order line counter increment so the count
1615 is accurate (we were losing one line per define). Reported by
1616 Dave Yost <Dave@Yost.com>.
1618 2004-03-06 Paul D. Smith <psmith@gnu.org>
1620 * configure.in (HAVE_ANSI_COMPILER): Define if we have an ANSI/ISO
1622 * make.h: Convert uses of __STDC__ to HAVE_ANSI_COMPILER.
1623 * misc.c (message,error,fatal): Ditto.
1624 * configh.dos.template: Define HAVE_ANSI_COMPILER.
1625 * config.h.W32.template: Ditto.
1626 * config.h-vms.template: Ditto.
1627 * config.ami.template: Ditto.
1629 2004-03-04 Paul D. Smith <psmith@gnu.org>
1631 * README.template: Add a note about broken /bin/sh on SunOS
1632 4.1.3_U1 & 4.1.4. Fix up Savannah links.
1634 * misc.c (message, error, fatal): Don't use "..." if we're using
1635 varargs. ansi2knr should handle this but it doesn't work: it
1636 translates "..." to va_dcl etc. but _AFTER_ the preprocessor is
1637 done. On many systems (SunOS for example) va_dcl is a #define.
1638 So, force the use of the non-"..." version on pre-ANSI compilers.
1640 * maintMakefile (sign-dist): Create some rules to help automate
1641 the new GNU ftp upload method.
1643 2004-02-24 Paul D. Smith <psmith@gnu.org>
1645 * config.h.W32.template: Add HAVE_STDARG_H
1646 * config.h-vms.template: Ditto.
1647 * config.ami.template: Ditto.
1649 2004-02-23 Jonathan Grant <jg-make@jguk.org>
1651 * README.W32.template: Add a notation about -j with BATCH_MODE_ONLY.
1652 * build_w32.bat: Remove extra "+".
1654 2004-02-23 Paul D. Smith <psmith@gnu.org>
1656 * make.h: Create an UNUSED macro to mark unused parameters.
1657 * (many): Clean up warnings by applying UNUSED, fixing
1658 signed/unsigned incompatibilities, etc.
1660 * acinclude.m4 (AC_STRUCT_ST_MTIM_NSEC): Add quoting to silence
1662 * filedef.h: Name the command_state enumeration.
1663 * file.c (set_command_state): Use the enumeration in the function
1666 * configure.in: Explicitly set SET_MAKE to empty, to disable
1667 MAKE=make even when no make already exists. Fix bug #3823.
1669 2004-02-22 Paul D. Smith <psmith@gnu.org>
1671 * maintMakefile: Perl script to clean up all non-CVS files. Use
1672 it on all the subdirectories for the cvs-clean target.
1674 * main.c (decode_switches): Require non-empty strings for all our
1675 string command-line options. Fixes Debian bug # 164165.
1677 * configure.in: Check for stdarg.h and varargs.h.
1678 * make.h (USE_VARIADIC): Set this if we can use variadic functions
1679 for printing messages.
1680 * misc.c: Check USE_VARIADIC instead of (obsolete) HAVE_STDVARARGS.
1685 A number of patches for OS/2 support from Andreas Buening
1686 <andreas.buening@nexgo.de>:
1688 * job.c (child_handler) [OS/2]: Allow this on OS/2 but we have to
1689 disable the SIGCHLD handler.
1690 (reap_children) [OS/2]: Remove special handling of job_rfd.
1691 (set_child_handler_action_flags) [OS/2]: Use this function in OS/2.
1692 (new_job) [OS/2]: Disable the SIGCHLD handler on OS/2.
1693 * main.c (main) [OS/2]: Special handling for paths in OS/2.
1694 * configure.in [OS/2]: Force SA_RESTART for OS/2.
1695 * Makefile.am (check-regression): Use $(EXEEXT) for Windows-type
1698 2004-02-21 Paul D. Smith <psmith@gnu.org>
1700 * w32/subproc/sub_proc.c (process_easy) [W32]: Christoph Schulz
1701 <mail@kristov.de> reports that if process_begin() fails we don't
1702 handle the error condition correctly in all cases.
1703 * w32/subproc/w32err.c (map_windows32_error_to_string): Make sure
1704 to have a newline on the message.
1706 * job.c (construct_command_argv_internal): Add "test" to UNIX
1707 sh_cmds[]. Fixes Savannah bug # 7606.
1709 2004-02-04 Paul D. Smith <psmith@gnu.org>
1711 * job.c (vms_handle_apos) [VMS]: Fix various string handling
1712 situations in VMS DCL. Fixes Savannah bug #5533. Fix provided by
1713 Hartmut Becker <Hartmut.Becker@hp.com>.
1715 2004-01-21 Paul D. Smith <psmith@gnu.org>
1717 * job.c (load_too_high): Implement an algorithm to control the
1718 "thundering herd" problem when using -l to control job creation
1719 via the load average. The system only recomputes the load once a
1720 second but we can start many jobs in a second. To solve this we
1721 keep track of the number of jobs started in the last second and
1722 apply a weight to try to guess what a correct load would be.
1723 The algorithm was provided by Thomas Riedl <thomas.riedl@siemens.com>.
1724 Also fixes bug #4693.
1725 (reap_children): Decrease the job count for this second.
1726 (start_job_command): Increase the job count for this second.
1728 * read.c (conditional_line): Expand the text after ifn?def before
1729 checking to see if it's a single word. Fixes bug #7257.
1731 2004-01-09 Paul D. Smith <psmith@gnu.org>
1733 * file.c (print_file): Recurse to print all targets in
1734 double-colon rules. Fixes bug #4518, reported (with patch) by
1735 Andrew Chatham <chatham@google.com>.
1737 2004-01-07 Paul D. Smith <psmith@gnu.org>
1739 * acinclude.m4: Remove make_FUNC_SETVBUF_REVERSED.
1740 * configure.in: Change make_FUNC_SETVBUF_REVERSED to
1741 AC_FUNC_SETVBUF_REVERSED.
1743 * doc/make.texi (Target-specific): Fix Savannah bug #1772.
1744 (MAKE Variable): Fix Savannah bug #4898.
1746 * job.c (construct_command_argv_internal): Add "!" to the list of
1747 shell escape chars. POSIX sh allows it to appear before a
1748 command, to negate the exit code. Fixes bug #6404.
1750 * implicit.c (pattern_search): When matching an implicit rule,
1751 remember which dependencies have the ignore_mtime flag set.
1752 Original fix provided in Savannah patch #2349, by Benoit
1753 Poulot-Cazajous <Benoit.Poulot-Cazajous@jaluna.com>.
1755 2003-11-22 Paul D. Smith <psmith@gnu.org>
1757 * README.W32.template (Outputs): Clarification on -j with
1758 BATCH_MODE_ONLY_SEHLL suggested by Jonathan R. Grant
1761 2003-11-02 Paul D. Smith <psmith@gnu.org>
1763 * function.c (func_if): Strip all the trailing whitespace from the
1764 condition, then don't expand it. Fixed bug # 5798.
1766 * expand.c (recursively_expand_for_file): If we're expanding a
1767 variable with no file context, then use the variable's context.
1770 2003-10-21 Paul D. Smith <psmith@gnu.org>
1772 * main.c (log_working_directory): Add newlines to printf()s.
1774 * README.cvs: Add a note to ignore warnings during autoreconf.
1776 * maintMakefile (po_repo): Set a new URL for PO file updates.
1777 (get-config/config.guess get-config/config.sub): Get these files
1778 from the Savannah config project instead of ftp.gnu.org.
1780 2003-10-05 Paul Eggert <eggert@twinsun.com>
1782 * main.c (main): Avoid potential subscript error if environ has
1785 2003-08-22 Paul D. Smith <psmith@gnu.org>
1787 * misc.c (xmalloc, xrealloc): Add one to 0 sizes, to cater to
1788 systems which don't yet implement the C89 standard :-/.
1790 2003-07-18 Paul D. Smith <psmith@gnu.org>
1792 * dir.c (directory_contents_hash_1, directory_contents_hash_1)
1793 [WINDOWS32]: Initialize hash.
1795 2003-06-19 Earnie Boyd <earnie@uses.sf.net>
1797 * dir.c (read_dirstream): Provide a workaround for broken versions of
1798 the MinGW dirent structure.
1800 2003-05-30 Earnie Boyd <earnie@users.sf.net>
1802 * w32/include/dirent.h: Add __MINGW32__ filter.
1804 2003-05-30 Earnie Boyd <earnie@users.sf.net>
1806 * make.h: Add global declaration of *make_host.
1807 * main.c (print_usage): Remove local declaration of *make_host.
1808 (print_version): Display "This program built for ..." after Copyright
1811 2003-05-30 Earnie Boyd <earnie@users.sf.net>
1813 * doc/make.texi: Change "ifinfo" to "ifnottex" as suggested by the
1814 execution of "makeinfo --html make.texi".
1816 2003-04-30 Paul D. Smith <psmith@gnu.org>
1818 * build.template: Make some changes to maybe allow this script to
1819 work on DOS/Windows/OS2 systems. Suggested by Andreas Buening.
1821 * README.OS2.template: New file for OS/2 support. Original
1822 contributed by Andreas Buening.
1823 * configure.in: Invoke new pds_AC_DOS_PATHS macro to test for
1826 2003-04-19 Paul D. Smith <psmith@gnu.org>
1828 Fix bug #1405: allow a target to match multiple pattern-specific
1831 * rule.c (create_pattern_var, lookup_pattern_var): Move these to
1832 variable.c, where they've always belonged.
1833 * rule.h: Move the prototypes and struct pattern_var as well.
1834 * variable.c (initialize_file_variables): Invoke
1835 lookup_pattern_var() in a loop, until no more matches are found.
1836 If a match is found, create a new variable set for the target's
1837 pattern variables. Then merge the contents of each matching
1838 pattern variable set into the target's pattern variable set.
1839 (lookup_pattern_var): Change this function to be usable
1840 in a loop. It takes a starting position: if NULL, start at the
1841 beginning; if non-NULL, start with the pattern variable after that
1842 position, and return the next matching pattern.
1843 (create_pattern_var): Create a unique instance of
1844 pattern-specific variables for every definition in the makefile.
1845 Don't combine the same pattern together. This allows us to
1846 process the variable handling properly even when the same pattern
1847 is used multiple times.
1848 (parse_variable_definition): New function: break out the parsing
1849 of a variable definition line from try_variable_definition.
1850 (try_variable_definition): Call parse_variable_definition to
1852 (print_variable_data_base): Print out pattern-specific variables.
1853 * variable.h (struct variable): Remember when a variable is
1854 conditional. Also remember its flavor.
1855 (struct pattern_var): Instead of keeping a variable set, we just
1856 keep a single variable for each pattern.
1857 * read.c (record_target_var): Each pattern variable contains only a
1858 single variable, not a set, so create it properly.
1859 * doc/make.texi (Pattern-specific): Document the new behavior.
1861 2003-04-17 Paul D. Smith <psmith@gnu.org>
1863 * dir.c (file_exists_p) [VMS]: Patch provided with Bug #3018 by
1864 Jean-Pierre Portier <portierjp2@free.fr>. I don't understand the
1865 file/directory naming rules for VMS so I can't tell whether this
1868 2003-04-09 Paul D. Smith <psmith@gnu.org>
1870 * configure.in (HAVE_DOS_PATHS): Define this on systems that need
1871 DOS-style pathnames: backslash separators and drive specifiers.
1873 2003-03-28 Paul D. Smith <psmith@gnu.org>
1875 * file.c (snap_deps): If .SECONDARY with no targets is given, set
1876 the intermediate flag on all targets. Fixes bug #2515.
1878 2003-03-24 Paul D. Smith <psmith@gnu.org>
1880 * configure.in, Makefile.am, glob/Makefile.am, doc/Makefile.am:
1881 Upgrade to autoconf 2.57 and automake 1.7.3.
1883 * job.c: More OS/2 changes from Andreas Buening.
1885 * file.c (print_file): Fix variable initialization.
1888 * remake.c (notice_finished_file):
1890 * make.h (ENULLLOOP): Set errno = 0 before invoking the command;
1891 some calls (like readdir()) return NULL in valid situations
1892 without resetting errno. Fixes bug #2846.
1894 2003-02-25 Paul D. Smith <psmith@gnu.org>
1896 Port to OS/2 (__EMX__) by Andreas Buening <andreas.buening@nexgo.de>.
1898 * job.c (_is_unixy_shell) [OS/2]: New function.
1899 Set default shell to /bin/sh.
1900 (reap_children): Close the job_rfd pipe here since we don't use a
1902 (set_child_handler_action_flags): define this to empty on OS/2.
1903 (start_job_command): Close the jobserver pipe and use
1904 child_execute_job() instead of fork/exec.
1905 (child_execute_job): Rewrite to handle stdin/stdout FDs and spawn
1906 rather than exec'ing, then reconfigure stdin/stdout.
1907 (exec_command): Rewrite to use spawn instead of exec. Return the
1910 * main.c (main) [OS/2]: Call initialize_main(). Handle argv[0] as
1911 in DOS. Handle the TEMP environment variable as in DOS. Don't
1912 use a SIGCHLD handler on OS/2. Choose a shell as in DOS. Don't
1913 use -j in DOS mode. Use child_execute_job() instead of
1916 * function.c (func_shell) [OS/2]: Can't use fork/exec on OS/2: use
1919 * job.h [OS/2]: Move CLOSE_ON_EXEC here from job.c. Add
1920 prototypes that return values.
1922 * remake.c (f_mtime) [OS/2]: Handle FAT timestamp offsets for OS/2.
1924 * read.c (readline) [OS/2]: Don't handle CRLF specially on OS/2.
1925 * default.c (default_suffixes) [OS/2]: Set proper default suffixes
1927 * vpath.c (construct_vpath_list) [OS/2]: Handle OS/2 paths like
1930 2003-02-24 Paul D. Smith <psmith@gnu.org>
1932 * default.c [VMS]: New default rules for .cxx -> .obj compiles.
1933 * job.c (child_execute_job) [VMS]: New code for handling spawn().
1934 (child_execute_job) [VMS]: Handle error status properly.
1935 Patches provided by Hartmut Becker <Hartmut.Becker@compaq.com>.
1937 * function.c (func_shell): Use EINTRLOOP() while reading from the
1938 subshell pipe (Fixes bug #2502).
1939 * job.c (free_child): Use EINTRLOOP() while writing tokens to the
1941 * main.c (main): Ditto.
1943 2003-01-30 Paul D. Smith <psmith@gnu.org>
1945 * read.c (eval): eval() was not fully reentrant, because the
1946 collapsed buffer was static. Change it to be an automatic
1947 variable so that eval() can be invoked recursively.
1949 (eval): Apply patch # 1022: fix memory reference error on long
1950 target-specific variable lines.
1951 Patch provided by Steve Brown <Steve.Brown@macquarie.com>.
1953 * function.c (check_numeric): Combine the is_numeric() function
1954 into this function, since it's only called from one place.
1955 Constify this function. Have it print the incorrect string in the
1956 error message. Fixes bug #2407.
1957 (strip_whitespace): Constify.
1958 (func_if): Constify.
1959 * expand.c (expand_argument): Constify.
1961 2003-01-29 Paul D. Smith <psmith@gnu.org>
1963 Fix bug # 2169, also reported by other people on various systems.
1965 * make.h: Some systems, such as Solaris and PTX, do not fully
1966 implement POSIX-compliant SA_RESTART functionality; important
1967 system calls like stat() and readdir() can still fail with EINTR
1968 even if SA_RESTART has been set on the signal handler. So,
1969 introduce macros EINTRLOOP() and ENULLLOOP() which can loop on
1970 EINTR for system calls which return -1 or 0 (NULL), respectively,
1972 Also, remove the old atomic_stat()/atomic_readdir() and
1973 HAVE_BROKEN_RESTART handling.
1975 * configure.in: Remove setting of HAVE_BROKEN_RESTART.
1977 * arscan.c (ar_member_touch): Use EINTRLOOP() to wrap fstat().
1978 * remake.c (touch_file): Ditto.
1980 * commands.c (delete_target): Use EINTRLOOP() to wrap stat().
1981 * read.c (construct_include_path): Ditto.
1982 * remake.c (name_mtime): Ditto.
1983 * vpath.c (selective_vpath_search): Ditto.
1984 * dir.c (find_directory): Ditto.
1985 (local_stat): Ditto.
1986 (find_directory): Use ENULLLOOP() to wrap opendir().
1987 (dir_contents_file_exists_p): Use ENULLLOOP() to wrap readdir().
1989 * misc.c: Remove HAVE_BROKEN_RESTART, atomic_stat(), and
1990 atomic_readdir() handling.
1992 2003-01-22 Paul D. Smith <psmith@gnu.org>
1994 * function.c (func_call): Fix Bug #1744. If we're inside a
1995 recursive invocation of $(call ...), mask any of the outer
1996 invocation's arguments that aren't used by this one, so that this
1997 invocation doesn't "inherit" them accidentally.
1999 2002-12-05 Paul D. Smith <psmith@gnu.org>
2001 * function.c (subst_expand): Valery Khamenia reported a
2002 pathological performance hit when doing substitutions on very
2003 large values with lots of words: turns out we were invoking
2004 strlen() a ridiculous number of times. Instead of having each
2005 call to sindex() call strlen() again, keep track of how much of
2006 the text we've seen and pass the length to sindex().
2008 2002-11-19 Paul D. Smith <psmith@gnu.org>
2010 * README.cvs, configure.in: Upgrade to require autoconf 2.56.
2013 2002-11-16 Paul D. Smith <psmith@gnu.org>
2015 * NMakefile.template (OBJS): Add hash.c object file.
2016 * SMakefile.template (srcs): Ditto.
2017 * Makefile.ami (objs): Ditto.
2018 * build_w32.bat: Ditto.
2020 * Makefile.DOS.template: Remove extra dependencies.
2022 2002-10-25 Paul D. Smith <psmith@gnu.org>
2024 * expand.c (install_variable_buffer): New function. Install a new
2025 variable_buffer context and return the previous one.
2026 (restore_variable_buffer): New function. Free the current
2027 variable_buffer context and put a previously saved one back.
2028 * variable.h: Prototypes for {install,restore}_variable_buffer.
2029 * function.c (func_eval): Push a new variable_buffer context
2030 before we eval, then restore the old one when we're done.
2033 * read.c (install_conditionals): New function. Install a new
2034 conditional context and return the previous one.
2035 (restore_conditionals): New function. Free the current
2036 conditional context and put a previously saved one back.
2037 (eval): Use the {install,restore}_conditionals for "include"
2039 (eval_buffer): Use {install,restore}_conditionals to preserve the
2040 present conditional state before we evaluate the buffer.
2043 * doc/make.texi (Quick Reference): Add references to $(eval ...)
2045 (Recursion): Add a variable index entry for CURDIR.
2047 * README.cvs: Update to appropriate versions.
2048 * Makefile.am (nodist_loadavg_SOURCES): automake gurus point out I
2049 don't need to copy loadavg.c: automake is smart enough to create
2050 it for me. Still have a bug in automake related to ansi2knr tho.
2052 2002-10-14 Paul D. Smith <psmith@gnu.org>
2054 * remake.c (notice_finished_file): Only touch targets if they have
2055 at least one command (as per POSIX). Resolve Bug #1418.
2057 * *.c: Convert to using ANSI C-style function definitions.
2058 * Makefile.am: Enable the ansi2knr feature of automake.
2059 * configure.in: ditto.
2061 2002-10-13 Paul D. Smith <psmith@gnu.org>
2063 * commands.c (set_file_variables): Bug #1379: Don't use alloca()
2064 for automatic variable values like $^, etc. In the case of very
2065 large lists of prerequisites this causes problems. Instead reuse
2066 a static buffer (resizeable) for each variable.
2068 * read.c (eval): Fix Bug #1391: allow "export" keyword in
2069 target-specific variable definitions. Check for it and set an
2071 (record_target_var): Set the export field to v_export if the
2072 "exported" flag is set.
2073 * doc/make.texi (Target-specific): Document the ability to use
2076 * doc/make.texi: Change the name of the section on automatic
2077 variables from "Automatic" to "Automatic Variables". Added text
2078 clarifying the scope of automatic variables.
2080 2002-10-04 Paul D. Smith <psmith@gnu.org>
2082 * read.c (eval): Allow SysV $$@ variables to use {} braces as well
2084 (record_files): Ditto.
2086 * expand.c (variable_expand_string): In $(A:x=y) expansion limit
2087 the search for the '=' to only within the enclosing parens.
2089 2002-10-03 Paul D. Smith <psmith@gnu.org>
2091 Version 3.80 released.
2093 * dir.c: Change hash functions to use K&R function definition style.
2094 * function.c: Ditto.
2096 * variable.c: Ditto.
2098 Update to automake 1.7.
2100 * Makefile.am (AUTOMAKE_OPTIONS): Update to require 1.7.
2101 (pdf): Remove this target as automake now provides one.
2103 * configure.in: Change AM_CONFIG_HEADER to AC_CONFIG_HEADERS.
2105 2002-09-30 Martin P.J. Zinser <zinser@decus.de>
2107 * makefile.com: Updates for GNU make 3.80.
2108 * makefile.vms: Ditto.
2110 2002-09-23 Paul D. Smith <psmith@gnu.org>
2112 * read.c (enum make_word_type): Remove w_comment.
2113 (get_next_mword): Don't treat comment characters as special; where
2114 this function is used we will never see a comment (it's stripped
2115 before we get here) and treating comments specially means that
2116 targets like "foo\#bar" aren't handled properly.
2118 2002-09-18 Paul D. Smith <psmith@gnu.org>
2120 * doc/make.texi (Bugs): Update with some info on Savannah, etc.
2122 * read.c (eval): Expansion of arguments to export/unexport was
2123 ignoring all arguments after the first one. Change the algorithm
2124 to expand the whole line once, then parse the results.
2126 2002-09-17 Paul D. Smith <psmith@gnu.org>
2128 Fix Bug #940 (plus another bug I found while looking at this):
2130 * read.c (record_target_var): enter_file() will add a new entry if
2131 it's a double-colon target: we don't want to do that in this
2132 situation. Invoke lookup_file() and only enter_file() if it does
2133 not already exist. If the file we get back is a double-colon then
2134 add this variable to the "root" double-colon target.
2136 * variable.c (initialize_file_variables): If this file is a
2137 double-colon target but is not the "root" target, then initialize
2138 the root and make the root's variable list the parent of our
2141 2002-09-13 Paul D. Smith <psmith@gnu.org>
2143 * doc/make.texi (MAKE Variable): Add some indexing for "+".
2145 * hash.c (round_up_2): Get rid of a warning.
2147 2002-09-12 Paul D. Smith <psmith@gnu.org>
2149 * Makefile.am (loadavg_SOURCES, loadavg.c): Tiptoe around automake
2150 so it doesn't complain about getloadavg.c.
2152 * commands.c (set_file_variables): Make sure we always alloca() at
2153 least 1 character for the value of $? (for '\0').
2155 2002-09-11 Paul D. Smith <psmith@gnu.org>
2157 * hash.h (STRING_COMPARE, ISTRING_COMPARE, STRING_N_COMPARE): Fix
2158 macro to use RESULT instead of the incorrect _RESULT_.
2160 * make.h (HAVE_BROKEN_RESTART): Add prototypes for atomic_stat()
2161 and atomic_readdir(). We need to #include dirent.h to get this to
2163 * misc.c (atomic_readdir): Fix typos.
2165 2002-09-10 Paul D. Smith <psmith@gnu.org>
2167 * read.c (eval): Expand variable lists given to export and
2168 unexport, so that "export $(LIST_OF_VARIABLES)" (etc.) works.
2169 (conditional_line): Ditto for "ifdef". Fixes bug #103.
2171 * doc/make.texi (Variables/Recursion): Document this.
2172 (Conditional Syntax): And here.
2174 2002-09-09 Paul D. Smith <psmith@gnu.org>
2176 * configure.in: Check for memmove().
2178 2002-09-07 Paul D. Smith <psmith@gnu.org>
2180 * configure.in (HAVE_BROKEN_RESTART): Define this on PTX systems;
2181 Michael Sterrett <msterret@coat.com> reports that while it has
2182 SA_RESTART, it does not work properly.
2184 * misc.c (atomic_stat): If HAVE_BROKEN_RESTART, create a function
2185 that invokes stat() and loops to do it again if it returns EINTR.
2186 (atomic_readdir): Ditto, with readdir().
2188 * make.h (stat, readdir): If HAVE_BROKEN_RESTART, alias stat()
2189 and readdir() to atomic_stat() and atomic_readdir().
2191 2002-09-04 Paul D. Smith <psmith@gnu.org>
2193 * implicit.c (pattern_search): Daniel <barkalow@reputation.com>
2194 reports that GNU make sometimes doesn't recognize that targets can
2195 be made, when directories can be created as prerequisites. He
2196 reports that changing the order of predicates in the DEP->changed
2197 flag test so that lookup_file() is always performed, solves this
2200 2002-08-08 Paul D. Smith <psmith@gnu.org>
2202 * configure.in: Require a newer version of gettext.
2204 * misc.c (perror_with_name): Translate the format string (for
2205 right-to-left language support).
2206 (pfatal_with_name): Ditto.
2208 * main.c: Create a static array of strings to store the usage
2209 text. This is done to facilitate translations.
2210 (struct command_switch): Remove argdesc and description fields.
2211 (switches): Remove values for obsolete fields.
2212 (print_usage): Print each element of the usage array.
2214 * hash.c: Change function definitions to be K&R style.
2216 2002-08-02 Paul D. Smith <psmith@gnu.org>
2218 * NEWS: Remove the mention of .TARGETS; we aren't going to publish
2219 this one because it's too hard to get right. We'll look at it for
2221 * main.c (main): Don't create the .TARGETS variable.
2222 * variable.c (handle_special_var): Don't handle .TARGETS.
2224 2002-08-01 Paul D. Smith <psmith@gnu.org>
2226 * main.c (switches): Add a new option, -B (--always-make). If
2227 specified, make will rebuild all targets that it encounters even
2228 if they don't appear to be out of date.
2229 (always_make_flag): New flag.
2230 * make.h: Extern always_make_flag.
2231 * remake.c (update_file_1): Check always_make_flag; if it's set we
2232 will always rebuild any target we can, even if none of its
2233 prerequisites are newer.
2236 * doc/make.texi (Shell Function): Make it clear that make
2237 variables marked as "export" are not passed to instances of the
2240 Add new introspection variable .VARIABLES and .TARGETS.
2242 * variable.c (handle_special_var): New function. If the variable
2243 reference passed in is "special" (.VARIABLES or .TARGETS),
2244 calculate the new value if necessary. .VARIABLES is handled here:
2245 walk through the hash of defined variables and construct a value
2246 which is a list of the names. .TARGETS is handled by
2247 build_target_list().
2248 (lookup_variable): Invoke handle_special_var().
2249 * file.c (build_target_list): Walk through the hask of known files
2250 and construct a list of the names of all the ones marked as
2252 * main.c (main): Initialize them to empty (and as simple variables).
2253 * doc/make.texi (Special Variables): Document them.
2254 * NEWS: Mention them.
2256 * variable.h (struct variable): Add a new flag "exportable" which
2257 is true if the variable name is valid for export.
2258 * variable.c (define_variable_in_set): Set "exportable" when a new
2259 variable is defined.
2260 (target_environment): Use the "exportable" flag instead of
2261 re-checking the name here... an efficiency improvement.
2263 2002-07-31 Paul D. Smith <psmith@gnu.org>
2265 * config.h-vms.template: Updates to build on VMS. Thanks to
2266 Brian_Benning@aksteel.com for helping verify the build.
2267 * makefile.com: Build the new hash.c file.
2268 * hash.h: Use strcpmi(), not stricmp(), in the
2269 HAVE_CASE_INSENSITIVE_FS case.
2271 2002-07-30 Paul D. Smith <psmith@gnu.org>
2273 * hash.h (ISTRING_COMPARE, return_ISTRING_COMPARE): Add missing
2274 backslashes to the HAVE_CASE_INSENSITIVE_FS case.
2275 Reported by <Brian_Benning@aksteel.com>.
2277 2002-07-10 Paul D. Smith <psmith@gnu.org>
2279 * variable.c (pop_variable_scope): Remove variable made unused by
2280 new hash infrastructure.
2281 * read.c (dep_hash_cmp): Rewrite this to handle ignore_mtime
2282 comparisons as well as name comparisons.
2283 * variable.h: Add a prototype for new hash_init_function_table().
2284 * file.c (lookup_file): Remove variables made unused by new hash
2286 * dir.c (directory_contents_hash_2): Missing return of hash value.
2287 (dir_contents_file_exists_p): Remove variables made unused by new
2288 hash infrastructure.
2291 Installed Greg McGary's integration of the hash functions from the
2292 GNU id-utils package:
2294 2002-07-10 Greg McGary <greg@mcgary.org>
2296 * scripts/functions/filter-out: Add literals to to the
2297 pattern space in order to add complexity, and trigger
2298 use of an internal hash table. Fix documentation strings.
2299 * scripts/targets/INTERMEDIATE: Reverse order of files
2300 passed to expected `rm' command.
2302 2002-07-10 Greg McGary <greg@mcgary.org>
2304 * Makefile.am (SRCS): Add hash.c (noinst_HEADERS): Add hash.h
2305 * hash.c: New file, taken from id-utils.
2306 * hash.h: New file, taken from id-utils.
2308 * make.h (HASH, HASHI): Remove macros.
2309 (find_char_unquote): Change arglist in decl.
2310 (hash_init_directories): New function decl.
2311 * variable.h (hash.h): New #include.
2312 (MAKELEVEL_NAME, MAKELEVEL_LENGTH): New constants.
2313 * filedef.h (hash.h): New #include.
2314 (struct file) [next]: Remove member.
2315 (file_hash_enter): Remove function decl.
2316 (init_hash_files): New function decl.
2318 * ar.c (ar_name): Delay call to strlen until needed.
2319 * main.c (initialize_global_hash_tables): New function.
2320 (main): Call it. Use MAKELEVEL_NAME & MAKELEVEL_LENGTH.
2321 * misc.c (remove_comments): Pass char constants to find_char_unquote.
2322 * remake.c (notice_finished_file): Update last_mtime on `prev' chain.
2324 * dir.c (hash.h): New #include.
2325 (struct directory_contents) [next, files]: Remove members.
2326 [ctime]: Add member for VMS. [dirfiles]: Add hash-table member.
2327 (directory_contents_hash_1, directory_contents_hash_2,
2328 directory_contents_hash_cmp): New functions.
2329 (directories_contents): Change type to `struct hash_table'.
2330 (struct directory) [next]: Remove member.
2331 (directory_hash_1, directory_hash_2, directory_hash_cmp): New funcs.
2332 (directory): Change type to `struct hash_table'.
2333 (struct dirfile) [next]: Remove member.
2334 [length]: Add member. [impossible]: widen type to fill alignment gap.
2335 (dirfile_hash_1, dirfile_hash_2, dirfile_hash_cmp): New functions.
2336 (find_directory): Use new hash table package.
2337 (dir_contents_file_exists_p): Likewise.
2338 (file_impossible): Likewise.
2339 (file_impossible_p): Likewise.
2340 (print_dir_data_base): Likewise.
2341 (open_dirstream): Likewise.
2342 (read_dirstream): Likewise.
2343 (hash_init_directories): New function.
2345 * file.c (hash.h): New #include.
2346 (file_hash_1, file_hash_2, file_hash_cmp): New functions.
2347 (files): Change type to `struct hash_table'.
2348 (lookup_file): Use new hash table package.
2349 (enter_file): Likewise.
2350 (remove_intermediates): Likewise.
2351 (snap_deps): Likewise.
2352 (print_file_data_base): Likewise.
2355 (function_table_entry_hash_1, function_table_entry_hash_2,
2356 function_table_entry_hash_cmp): New functions.
2357 (lookup_function): Remove `table' argument.
2358 Use new hash table package.
2359 (struct a_word) [chain, length]: New members.
2360 (a_word_hash_1, a_word_hash_2, a_word_hash_cmp): New functions.
2361 (struct a_pattern): New struct.
2362 (func_filter_filterout): Pass through patterns noting boundaries
2363 and '%', if present. Note a_word length. Use a hash table if
2364 arglists are large enough to justify cost.
2365 (function_table_init): Renamed from function_table.
2366 (function_table): Declare as `struct hash_table'.
2367 (FUNCTION_TABLE_ENTRIES): New constant.
2368 (hash_init_function_table): New function.
2370 * read.c (hash.h): New #include.
2371 (read_makefile): Pass char constants to find_char_unquote.
2372 (dep_hash_1, dep_hash_2, dep_hash_cmp): New functions.
2373 (uniquize_deps): Use hash table to efficiently identify duplicates.
2374 (find_char_unquote): Accept two char-constant stop chars, rather
2375 than a string constant, avoiding zillions of calls to strchr.
2376 Tighten inner search loops to test only for desired delimiters.
2378 * variable.c (variable_hash_1, variable_hash_2,
2379 variable_hash_cmp): New functions.
2380 (variable_table): Declare as `struct hash_table'.
2381 (global_variable_set): Remove initialization.
2382 (init_hash_global_variable_set): New function.
2383 (define_variable_in_set): Use new hash table package.
2384 (lookup_variable): Likewise.
2385 (lookup_variable_in_set): Likewise.
2386 (initialize_file_variables): Likewise.
2387 (pop_variable_scope): Likewise.
2388 (create_new_variable_set): Likewise.
2389 (merge_variable_sets): Likewise.
2390 (define_automatic_variables): Likewise.
2391 (target_environment): Likewise.
2392 (print_variable_set): Likewise.
2394 2002-07-10 Paul D. Smith <psmith@gnu.org>
2396 Implement the SysV make syntax $$@, $$(@D), and $$(@F) in the
2397 prerequisite list. A real SysV make will expand the entire
2398 prerequisites list _twice_: we don't do that as it's a big
2399 backward-compatibility problem. We only replace those specific
2402 * read.c (record_files): Replace any $@, $(@D), and $(@F) variable
2403 references left in the list of prerequisites. Check for .POSIX as
2404 we record targets, so we can disable non-POSIX behavior while
2405 reading makefiles as well as running them.
2406 (eval): Check the prerequisite list to see if we have anything
2407 that looks like a SysV prerequisite variable reference.
2409 2002-07-09 Paul D. Smith <psmith@gnu.org>
2411 * doc/make.texi (Prerequisite Types): Add a new section describing
2412 order-only prerequisites.
2414 * read.c (uniquize_deps): If we have the same file as both a
2415 normal and order-only prereq, get rid of the order-only prereq,
2416 since the normal one supersedes it.
2418 2002-07-08 Paul D. Smith <psmith@gnu.org>
2420 * AUTHORS: Added Greg McGary to the AUTHORS file.
2421 * NEWS: Blurbed order-only prerequisites.
2422 * file.c (print_file): Show order-only deps properly when printing
2425 * maintMakefile: Add "update" targets for wget'ing the latest
2426 versions of various external files. Taken from Makefile.maint in
2429 * dosbuild.bat: Somehow we got _double_ ^M's. Remove them.
2430 Reported by Eli Zaretskii <eliz@is.elta.co.il>.
2432 2002-07-07 Paul D. Smith <psmith@gnu.org>
2434 * po/*.po: Remove. We'll use wget to retrieve them at release
2437 * variable.c (do_variable_definition) [W32]: On W32 using cmd
2438 rather than a shell you get an exception. Make sure we look up
2439 the variable. Patch provided by Eli Zaretskii <eliz@is.elta.co.il>.
2441 * remake.c (notice_finished_file): Fix handling of -t flag.
2442 Patch provided by Henning Makholm <henning@makholm.net>.
2444 * implicit.c (pattern_search): Some systems apparently run short
2445 of stack space, and using alloca() in this function caused an
2446 overrun. I modified it to use xmalloc() on the two variables
2447 which seemed like they might get large. Fixes Bug #476.
2449 * main.c (print_version): Update copyright notice to conform with
2451 (print_usage): Update help output.
2453 * function.c (func_eval): Create a new make function, $(eval
2454 ...). Expand the arguments, put them into a buffer, then invoke
2455 eval_buffer() on the resulting string.
2456 (func_quote): Create a new function, $(quote VARNAME). Inserts
2457 the value of the variable VARNAME without expanding it any
2460 * read.c (struct ebuffer): Change the linebuffer structure to an
2461 "eval buffer", which can be either a file or a buffer.
2462 (eval_makefile): Move the code in the old read_makefile() which
2463 located a makefile into here: create a struct ebuffer with that
2464 information. Have it invoke the new function eval() with that
2466 (eval_buffer): Create a new function that creates a struct ebuffer
2467 that holds a string buffer instead of a file. Have it invoke
2468 eval() with that ebuffer.
2469 (eval): New function that contains the guts of the old
2470 read_makefile() function: this function parses makefiles. Obtains
2471 data to parse from the provided ebuffer. Some modifications to
2472 make the flow of the function cleaner and clearer. Still could
2473 use some work here...
2474 (do_define): Takes a struct ebuffer instead of a FILE*. Read the
2475 contents of the define/endef variable from the ebuffer.
2476 (readstring): Read the next line from a string-style ebuffer.
2477 (readline): Read the next line from an ebuffer. If it's a string
2478 ebuffer, invoke readstring(). If it's a FILE* ebuffer, read it
2481 * dep.h (eval_buffer): Prototype eval_buffer();
2483 * variable.c (do_variable_definition): Make sure that all
2484 non-target-specific variables are registered in the global set.
2485 If we're invoked from an $(eval ...) we might be inside a $(call
2486 ...) or other function which has pushed a variable scope; we still
2487 want to define our variables from evaluated makefile code in the
2490 2002-07-03 Greg McGary <greg@mcgary.org>
2492 * dep.h (struct dep) [ignore_mtime]: New member.
2493 [changed]: convert to a bitfield.
2494 * implicit.c (pattern_search): Zero ignore_mtime.
2495 * main.c (main, handle_non_switch_argument): Likewise.
2496 * rule.c (convert_suffix_rule): Likewise.
2497 * read.c (read_all_makefiles, read_makefile, multi_glob): Likewise.
2498 (read_makefile): Parse '|' in prerequisite list.
2499 (uniquize_deps): Consider ignore_mtime when comparing deps.
2500 * remake.c (update_file_1, check_dep): Don't force remake for
2501 dependencies that have d->ignore_mtime.
2502 * commands.c (FILE_LIST_SEPARATOR): New constant.
2503 (set_file_variables): Don't include a
2504 prerequisite in $+, $^ or $? if d->ignore_mtime.
2507 2002-06-18 Paul D. Smith <psmith@gnu.org>
2509 * make.texinfo: Updates for next revision. New date/rev/etc.
2510 Recreate all Info menus. Change license on the manual to the GNU
2511 Free Documentation License. A number of typos.
2512 (Variables Simplify): Don't use "-" before it's defined.
2513 (Automatic Prerequisites): Rewrite the target example to work
2514 properly if the compile fails. Remove incorrect comments about
2515 how "set -e" behaves.
2516 (Text Functions): Move the "word", "wordlist", "words", and
2517 "firstword" functions here, from "File Name Functions".
2518 * make-stds.texi: Update from latest GNU version.
2519 * fdl.texi: (created) Import the latest GNU version.
2521 2002-06-06 Paul D. Smith <psmith@gnu.org>
2523 * variable.c (do_variable_definition): New function: extract the
2524 part of try_variable_definition() that actually sets the value
2525 into a separate function.
2526 (try_variable_definition): Call do_variable_definition() after
2527 parsing the variable definition string.
2528 (define_variable_in_set): Make the name argument const.
2530 * variable.h (enum variable_flavor): Make public.
2531 (do_variable_definition): Create prototype.
2533 * read.c (read_all_makefiles): Create a new built-in variable,
2535 (read_makefile): Add each makefile read in to this variable value.
2537 2002-05-18 Eli Zaretskii <eliz@is.elta.co.il>
2539 * Makefile.DOS.template: Tweak according to changes in the
2540 distribution. Add back the dependencies of *.o files.
2542 * configh.dos.template: Synchronize with config.h.in.
2544 2002-05-09 Paul D. Smith <psmith@gnu.org>
2546 * file.c (file_timestamp_now): Use K&R function declaration.
2548 * getloadavg.c (getloadavg): Merge setlocale() fix from sh-utils
2549 getloadavg.c. Autoconf thinks QNX is SVR4-like, but it isn't, so
2550 #undef it. Remove predefined setup of NLIST_STRUCT. Decide
2551 whether to include nlist.h based on HAVE_NLIST_H. Change obsolete
2552 NLIST_NAME_UNION to new HAVE_STRUCT_NLIST_N_UN_N_NAME.
2553 * configure.in (NLIST_STRUCT): Define this if we have nlist.h and
2554 nlist.n_name is a pointer rather than an array.
2556 * acinclude.m4 (make_FUNC_SETVBUF_REVERSED): Grab the latest
2557 version of AC_FUNC_SETVBUF_REVERSED from autoconf CVS.
2558 * configure.in: Use it instead of the old version.
2560 * main.c (main): Prefer setvbuf() to setlinebuf().
2562 2002-05-08 Paul D. Smith <psmith@gnu.org>
2564 * Makefile.am (make_LDADD): Add GETLOADAVG_LIBS.
2565 (loadavg_LDADD): Ditto.
2567 2002-04-29 Paul D. Smith <psmith@gnu.org>
2569 * expand.c (recursively_expand_for_file): Rename
2570 recursively_expand() to recursively_expand_for_file() and provide
2571 an extra argument, struct file. If the argument is provided, set
2572 the variable scope to that of the file before expanding.
2573 * variable.h (recursively_expand): Make this a macro that invokes
2574 recursively_expand_for_file() with a NULL file pointer.
2575 * variable.c (target_environment): Call the renamed function and
2576 provide the current file context.
2577 Fixes Debian bug #144306.
2579 2002-04-28 Paul D. Smith <psmith@gnu.org>
2581 Allow $(call ...) user-defined variables to be self-referencing
2582 without throwing an error. Allows implementation of transitive
2583 closures, among other possibly useful things.
2584 Requested by: Philip Guenther <guenther@sendmail.com>
2586 * variable.h (struct variable): Add a new field: exp_count, and
2587 new macros to hold its size and maximum value.
2588 (warn_undefined): Make this a macro.
2589 * variable.c (define_variable_in_set): Initialize it.
2590 * expand.c (recursively_expand): If we detect recursive expansion
2591 of a variable, check the exp_count field. If it's greater than 0
2592 allow the recursion and decrement the count.
2593 (warn_undefined): Remove this (now a macro in variable.h).
2594 * function.c (func_call): Before we expand the user-defined
2595 function, modify its exp_count field to contain the maximum
2596 number of recursive calls we'll allow. After the call, reset it
2599 2002-04-21 Paul D. Smith <psmith@gnu.org>
2601 Modified to use latest autoconf (2.53), automake (1.6.1), and
2602 gettext (0.11.1). We're using gettext's new "external" support,
2603 to avoid including libintl source with GNU make.
2605 * README.cvs: New file. Explain how to build GNU make from CVS.
2607 * configure.in: Modify checking for the system glob library.
2608 Use AC_EGREP_CPP instead of AC_TRY_CPP. Remove the setting of
2609 GLOBDIR (we will always put "glob" in SUBDIRS, so automake
2610 etc. will manage it correctly). Set an automake conditional
2611 USE_LOCAL_GLOB to decide whether to compile the glob library.
2613 * getloadavg.c (main): Include make.h in the "TEST" program to
2616 * Makefile.am: Remove special rules for loadavg. Replace them
2617 with Automake capabilities for building extra programs.
2619 * signame.c: This file does nothing if the system provide
2620 strsignal(). If not, it implements strsignal(). If the system
2621 doesn't define sys_siglist, then we make our own; otherwise we use
2623 * signame.h: Removed.
2625 * main.c (main): No need to invoke signame_init(). Update copyright.
2627 * ABOUT-NLS: Removed.
2628 * gettext.c: Removed.
2629 * gettext.h: Get a simplified copy from the gettext package.
2631 * i18n/*.po: Moved to po/.
2634 * config/*: Created. Contains package configuration helper files.
2635 * config.guess, config.sub: Moved to config directory.
2637 * configure.in (AC_CONFIG_FILES): Add po/Makefile.in, config/Makefile.
2638 Rework to use new-style autoconf features. Use the "external"
2639 mode for gettext. Make the build.sh config file conditional on
2640 whether build.sh.in exists, to avoid autoconf errors.
2641 * acinclude.m4: Removed almost all macros as being obsolete.
2642 Rewrote remaining macros to use AC_DEFINE.
2643 * acconfig.h: Removed.
2645 * Makefile.am (EXTRA_DIST): Add config/config.rpath. Use a
2646 conditional to handle customs support. Remove special handling
2649 2002-04-20 Paul D. Smith <psmith@gnu.org>
2651 * function.c (func_call): Don't mark the argument variables $1,
2652 etc. as recursive. They've already been fully expanded so
2653 there's no need to do it again, and doing so strips escaped $'s.
2654 Reported by Sebastian Glita <glseba@yahoo.com>.
2656 * remake.c (notice_finished_file): Walk through double-colon
2657 entries via the prev field, not the next field!
2658 Reported by Greg McGary <greg@mcgary.org>.
2660 * main.c (main): If the user specifies -q and asks for a specific
2661 target which is a makefile, we got an assert. In that case it
2662 turns out we should continue normally instead.
2664 * i18n/de.po, i18n/fr.po: Installed an updated translation.
2666 * i18n/he.po: Installed a new translation.
2668 2002-01-07 Paul D. Smith <psmith@gnu.org>
2670 * i18n/es.po, i18n/ru.po: Installed an updated translation.
2672 2001-12-04 Paul D. Smith <psmith@gnu.org>
2674 * i18n/ja.po: Installed an updated translation.
2676 2001-09-06 Paul Eggert <eggert@twinsun.com>
2678 * configure.in (AC_CHECK_HEADERS): Add sys/resource.h.
2679 (AC_CHECK_FUNCS): Add getrlimit, setrlimit.
2681 * main.c: Include <sys/resource.h> if it, getrlimit, and setrlimit
2683 (main): Get rid of any avoidable limit on stack size.
2685 2001-09-04 Paul D. Smith <psmith@gnu.org>
2687 * i18n/da.po: Installed an updated translation.
2689 2001-08-03 Paul D. Smith <psmith@gnu.org>
2691 * i18n/fr.po: Installed an updated translation.
2692 Resolves Debian bug #106720.
2694 2001-06-13 Paul D. Smith <psmith@gnu.org>
2696 * i18n/da.po, configure.in (ALL_LINGUAS): Installed a new
2699 2001-06-11 Paul D. Smith <psmith@gnu.org>
2701 * i18n/ko.po: Installed a new translation.
2703 2001-05-06 Paul D. Smith <psmith@gnu.org>
2705 Modify the EINTR handling.
2707 * job.c (new_job): Reorganize the jobserver algorithm. Reorder
2708 the way in which we manage the file descriptor/signal handler race
2709 trap to be more efficient.
2711 2001-05-06 Paul Eggert <eggert@twinsun.com>
2713 Restart almost all system calls that are interrupted, instead
2714 of worrying about EINTR. The lone exception is the read() for
2717 * configure.in (HAVE_SA_RESTART): New macro.
2718 (MAKE_JOBSERVER): Define to 1 only if HAVE_SA_RESTART.
2719 * main.c (main): Use SA_RESTART instead of the old,
2720 nonstandard SA_INTERRUPT.
2722 * configure.in (AC_CHECK_FUNCS): Add bsd_signal.
2723 * main.c (bsd_signal): New function or macro,
2724 if the implementation doesn't supply it.
2725 (The bsd_signal function will be in POSIX 1003.1-200x.)
2726 (HANDLESIG): Remove.
2727 (main, FATAL_SIG): Use bsd_signal instead of signal or HANDLESIG.
2729 * make.h (EINTR_SET): Remove.
2730 (SA_RESTART): New macro.
2732 * arscan.c (ar_member_touch): Don't worry about EINTR.
2733 * function.c (func_shell): Likewise.
2734 * job.c (reap_children, free_child, new_job): Likewise.
2735 * main.c (main): Likewise.
2736 * remake.c (touch_file, name_mtime): Likewise.
2738 * arscan.c (ar_member_touch): Fix bug uncovered by EINTR removal;
2739 if fstat failed with errno!=EINTR, the error was ignored.
2741 * job.c (set_child_handler_action_flags): New function.
2742 (new_job): Use it to temporarily clear the SIGCHLD action flags
2743 while reading the token.
2745 2001-05-02 Paul D. Smith <psmith@gnu.org>
2747 * job.c (start_job_command): Don't add define/endef per-line flags
2748 to the top-level flags setting.
2750 2001-04-03 Paul D. Smith <psmith@gnu.org>
2752 * arscan.c (VMS_get_member_info,ar_scan) [VMS]: VMS sets the low
2753 bit on error, so check for odd return values, not non-0 return
2755 (VMS_get_member_info): Calculate the timezone differences correctly.
2756 Reported by John Fowler <jfowler@nyx.net>.
2759 2001-03-14 Paul D. Smith <psmith@gnu.org>
2761 * variable.c (lookup_variable) [VMS]: Null-terminate the variable
2762 value before invoking define_variable().
2763 Reported by John Fowler <jfowler@nyx.net>.
2765 2001-02-07 Paul D. Smith <psmith@gnu.org>
2767 * read.c (record_target_var): If we reset the variable due to a
2768 command-line variable setting overriding it, turn off the "append"
2771 2001-01-17 Paul D. Smith <psmith@gnu.org>
2773 * variable.c (lookup_variable) [VMS]: When getting values from the
2774 environment, allocate enough space for the _value_ plus escapes,
2775 not enough space for the name plus escapes :-/.
2776 Reported by John Fowler <jfowler@nyx.net>.
2778 * remake.c (f_mtime): Removed the "***" prefix from the mod time
2779 warnings that make generates, so it doesn't look like an error.
2780 Reported by Karl Berry <karl@gnu.org>.
2783 Fix for PR/2020: Rework appended target-specific variables. I'm
2784 fairly confident this algorithm is finally correct.
2786 * expand.c (allocated_variable_append): Rewrite. Instead of
2787 expanding each appended variable then adding all the expanded
2788 strings together, we append all the unexpanded values going up
2789 through the variable set contexts, then expand the final result.
2790 This behaves just like non-target-specific appended variable
2791 values, while the old way didn't in various corner cases.
2792 (variable_append): New function: recursively append the unexpanded
2793 value of a variable, walking from the outermost variable scope to
2795 * variable.c (lookup_variable): Remove the code that looked up the
2796 variable set list if the found variable was "append". We don't
2798 (lookup_variable_in_set): Make this non-static so we can use it
2800 (try_variable_definition): Use lookup_variable_in_set() rather
2801 than faking out current_variable_set_list by hand (cleanup).
2802 * variable.h: Add a prototype for the now non-static
2803 lookup_variable_in_set().
2805 2000-11-17 Paul D. Smith <psmith@gnu.org>
2807 * remake.c (f_mtime) [WINDOWS32]: On various advice, I changed the
2808 WINDOWS32 port to assume timestamps can be up to 3 seconds away
2809 before throwing a fit.
2811 2000-11-17 Paul D. Smith <psmith@gnu.org>
2813 * read.c (readline): CRLF calculations had a hole, if you hit the
2814 buffer grow scenario just right. Reworked the algorithm to avoid
2815 the need for len or lastlen at all. Problem description with
2816 sample code chages provided by Chris Faylor <cgf@redhat.com>.
2818 2000-10-24 Paul D. Smith <psmith@gnu.org>
2820 * gettext.c (SWAP): Declare this with the prototype, otherwise
2821 some systems don't work (non-32-bit? Reported for Cray T3E).
2822 Reported by Thorstein Thorsteinsson <thor@signe.teokem.lu.se>.
2824 2000-10-05 Paul D. Smith <psmith@gnu.org>
2826 * acinclude.m4 (AM_LC_MESSAGES): Remove undefined macro
2827 AM_LC_MESSAGES; it doesn't seem to do anything anyway??
2829 * i18n/gl.po, configure.in (ALL_LINGUAS): New Galician translation.
2831 2000-09-22 Paul D. Smith <psmith@gnu.org>
2833 * gettext.c: Don't #define _GETTEXT_H here; we only include some
2834 parts of the real gettext.h here, and we expect to really include
2835 the real gettext.h later. If we keep this #define, it's ignored.
2837 2000-09-21 Paul D. Smith <psmith@gnu.org>
2839 * main.c (log_working_directory): Rework the text to use complete
2840 sentences, to make life simpler for the translators.
2842 2000-08-29 Paul D. Smith <psmith@gnu.org>
2844 * file.c (remove_intermediates): Print a debug message before we
2845 remove intermediate files, so the user (if she uses -d) knows
2848 2000-08-21 Paul D. Smith <psmith@gnu.org>
2850 * variable.c (try_variable_definition): Change how we handle
2851 target-specific append variable defns: instead of just setting the
2852 value, expand it as an append _but_ only within the current
2853 target's context. Otherwise we lose all but the last value if the
2854 variable is appended more than once within the current target
2855 context. Fixes PR/1831.
2857 2000-08-16 Paul D. Smith <psmith@gnu.org>
2859 * function.c (func_shell): Nul-terminate the buffer before
2860 printing an exec error message (just in case it's not!).
2861 Fixes PR/1860, reported by Joey Hess <joey@valinux.com>.
2863 2000-07-25 Paul D. Smith <psmith@gnu.org>
2865 * job.c (construct_command_argv_internal): Add "~" to the list of
2866 sh_chars[] which disallow optimizing out the shell call.
2868 2000-07-23 Paul Eggert <eggert@twinsun.com>
2870 * NEWS, make.texinfo: Document .LOW_RESOLUTION_TIME, which
2871 supersedes --disable-nsec-timestamps.
2872 * make.texinfo: Consistently use "time stamp" instead of "timestamp".
2873 * README: Remove --disable-nsec-timestamps.
2875 * filedef.h (struct file.low_resolution_time): New member.
2876 * file.c (snap_deps): Add support for .LOW_RESOLUTION_TIME.
2877 * remake.c (update_file_1):
2878 Avoid spurious rebuilds due to low resolution time stamps,
2879 generalizing the earlier code that applied only to archive members.
2880 (f_mtime): Archive members always have low resolution time stamps.
2882 * configure.in: Remove --disable-nsec-timestamps, as this has
2883 been superseded by .LOW_RESOLUTION_TIME.
2885 2000-07-23 Paul Eggert <eggert@twinsun.com>
2887 * configure.in (enable_nsec_timestamps): Renamed from
2888 make_cv_nsec_timestamps, since enable/disable options
2889 shouldn't be cached.
2891 2000-07-23 Bruno Haible <haible@clisp.cons.org>
2892 and Paul Eggert <eggert@twinsun.com>
2894 * file.c (file_timestamp_now):
2895 Use preprocessor-time check for FILE_TIMESTAMP_HI_RES
2896 so that clock_gettime is not linked unless needed.
2898 * filedef.h (FILE_TIMESTAMP_HI_RES):
2899 Remove definition; "configure" now does this.
2901 * configure.in (jm_AC_TYPE_UINTMAX_T): Move up,
2902 to before high resolution file timestamp check,
2903 since that check now uses uintmax_t.
2904 (FILE_TIMESTAMP_HI_RES): Define to nonzero if the code should use
2905 high resolution file timestamps.
2906 (HAVE_CLOCK_GETTIME): Do not define if !FILE_TIMESTAMP_HI_RES,
2907 so that we don't link in clock_gettime unnecessarily.
2909 2000-07-17 Paul D. Smith <psmith@gnu.org>
2911 * i18n/ja.po: New version of the translation file.
2913 2000-07-07 Paul D. Smith <psmith@gnu.org>
2915 * remake.c (f_mtime): If NO_FLOAT is defined, don't bother with
2916 the offset calculation.
2917 (name_mtime): Replace EINTR test with EINTR_SET macro.
2919 2000-07-07 Paul Eggert <eggert@twinsun.com>
2923 * remake.c (update_file_1):
2924 Avoid spurious rebuilds of archive members due to their
2925 timestamp resolution being only one second.
2926 (f_mtime): Avoid spurious warnings of timestamps in the future due to
2927 the clock's resolution being lower than file timestamps'.
2928 When warning about future timestamps, report only the discrepancy,
2929 not the absolute value of the timestamp and the current time.
2931 * file.c (file_timestamp_now): New arg RESOLUTION.
2932 * filedef.h (file_timestamp_now): Likewise.
2933 (FILE_TIMESTAMP_NS): Now returns int. All uses changed.
2935 2000-07-05 Paul D. Smith <psmith@gnu.org>
2937 * variable.c (lookup_variable) [VMS]: Remove vestigial references
2938 to listp. Fixes PR/1793.
2940 2000-06-26 Paul Eggert <eggert@twinsun.com>
2942 * Makefile.am (MAINTAINERCLEANFILES): New macro, with stamp-pot in it.
2944 * dir.c (vms_hash): Ensure ctype macro args are nonnegative.
2946 * remake.c (f_mtime): Remove unused var memtime.
2948 2000-06-25 Martin Buchholz <martin@xemacs.org>
2950 * make.texinfo, NEWS, TODO.private: Minor spelling corrections.
2951 Ran spell-check on make.texinfo.
2953 2000-06-23 Paul D. Smith <psmith@gnu.org>
2955 * main.c (main): Replace EXIT_SUCCESS, EXIT_FAILURE, and
2956 EXIT_TROUBLE with MAKE_SUCCESS, MAKE_FAILURE, and MAKE_TROUBLE.
2957 * make.h: Define these macros.
2959 * Version 3.79.1 released.
2961 * configure.in: Add a new option, --disable-nsec-timestamps, to
2962 avoid using sub-second timestamps on systems that support it. It
2963 can lead to problems, e.g. if your makefile relies on "cp -p".
2964 * README.template: Document the issue with "cp -p".
2966 * config.guess, config.sub: Updated.
2970 See ChangeLog.2, available in the CVS repository at:
2972 http://savannah.gnu.org/cvs/?group=make
2974 for earlier changes.
2977 Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software
2979 This file is part of GNU Make.
2981 GNU Make is free software; you can redistribute it and/or modify it under the
2982 terms of the GNU General Public License as published by the Free Software
2983 Foundation; either version 3 of the License, or (at your option) any later
2986 GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
2987 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
2988 A PARTICULAR PURPOSE. See the GNU General Public License for more details.
2990 You should have received a copy of the GNU General Public License along with
2991 this program. If not, see <http://www.gnu.org/licenses/>.