1 |
|
2005-10-24 Paul D. Smith <psmith@gnu.org> |
2 |
|
|
3 |
|
Make secondary expansion optional: its enabled by declaring the |
4 |
|
special target .SECONDEXPANSION. |
5 |
|
|
6 |
|
* NEWS: Update information on second expansion capabilities. |
7 |
|
* doc/make.texi (Secondary Expansion): Document the |
8 |
|
.SECONDEXPANSION special target and its behavior. |
9 |
|
* dep.h (struct dep): Add a flag STATICPATTERN, set to true if the |
10 |
|
prerequisite list was found in a static pattern rule. |
11 |
|
(free_dep_chain): Declare a prototype. |
12 |
|
* file.c (parse_prereqs): New function: break out some complexity |
13 |
|
from expand_deps(). |
14 |
|
(expand_deps): If we aren't doing second expansion, replace % with |
15 |
|
the stem for static pattern rules. Call the new function. |
16 |
|
* filedef.h (parse_prereqs): Declare a prototype. |
17 |
|
* implicit.c (pattern_search): Initialize the new staticpattern |
18 |
|
field. |
19 |
|
* main.c (second_expansion): Declare a global variable to remember |
20 |
|
if the special target has been seen. Initialize the new |
21 |
|
staticpattern field for prerequisites. |
22 |
|
* make.h: Extern for second_expansion. |
23 |
|
* misc.c (free_dep_chain): New function: frees a struct dep list. |
24 |
|
* read.c (read_all_makefiles): Initialize the staticpattern field. |
25 |
|
(eval_makefile): Ditto. |
26 |
|
(record_files): Check for the .SECONDEXPANSION target and set |
27 |
|
second_expansion global if it's found. |
28 |
|
Use the new free_dep_chain() instead of doing it by hand. |
29 |
|
Set the staticpattern field for prereqs of static pattern targets. |
30 |
|
|
31 |
|
2005-10-16 Paul D. Smith <psmith@gnu.org> |
32 |
|
|
33 |
|
* main.c (main): Set CURDIR to be a file variable instead of a |
34 |
|
default, so that values of CURDIR inherited from the environment |
35 |
|
won't override the make value. |
36 |
|
|
37 |
2005-09-26 Paul D. Smith <psmith@gnu.org> |
2005-09-26 Paul D. Smith <psmith@gnu.org> |
38 |
|
|
39 |
* job.c (construct_command_argv_internal): If the line is empty |
* job.c (construct_command_argv_internal): If the line is empty |