diff options
author | Paul Smith <psmith@gnu.org> | 1999-08-13 07:36:26 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 1999-08-13 07:36:26 +0000 |
commit | cbb9e38d10b35a469d0880542b12530817b11003 (patch) | |
tree | 47814942687f380da81eaaaadaff436eef4e591c /expand.c | |
parent | 9e79637ec3fcd24394b2d705ff7c64bd91da9b24 (diff) | |
download | gunmake-cbb9e38d10b35a469d0880542b12530817b11003.tar.gz |
* Rework jobserver yet one more time.
* Install the $(if ...) function and document it. Still need some examples.
Diffstat (limited to 'expand.c')
-rw-r--r-- | expand.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -442,7 +442,10 @@ variable_expand_for_file (line, file) save = current_variable_set_list; current_variable_set_list = file->variables; - reading_file = &file->cmds->fileinfo; + if (file->cmds && file->cmds->fileinfo.filenm) + reading_file = &file->cmds->fileinfo; + else + reading_file = 0; fnext = file->variables->next; /* See if there's a pattern-specific variable struct for this target. */ if (!file->pat_searched) |