1822 |
char **targets = 0, **target_percents = 0; |
char **targets = 0, **target_percents = 0; |
1823 |
struct commands *cmds; |
struct commands *cmds; |
1824 |
|
|
1825 |
|
/* If we've already snapped deps, that means we're in an eval being |
1826 |
|
resolved after the makefiles have been read in. We can't add more rules |
1827 |
|
at this time, since they won't get snapped and we'll get core dumps. |
1828 |
|
See Savannah bug # 12124. */ |
1829 |
|
if (snapped_deps) |
1830 |
|
fatal (flocp, _("prerequisites cannot be defined in command scripts")); |
1831 |
|
|
1832 |
if (commands_idx > 0) |
if (commands_idx > 0) |
1833 |
{ |
{ |
1834 |
cmds = (struct commands *) xmalloc (sizeof (struct commands)); |
cmds = (struct commands *) xmalloc (sizeof (struct commands)); |
1917 |
|
|
1918 |
if (find_percent (this->name) != 0) |
if (find_percent (this->name) != 0) |
1919 |
{ |
{ |
1920 |
char stem[PATH_MAX]; |
PATH_VAR (stem); |
1921 |
char *o; |
char *o; |
1922 |
char *buffer = variable_expand (""); |
char *buffer = variable_expand (""); |
1923 |
|
|