Fixed makefile generation of incomplete targets.

This commit is contained in:
Salvador E. Tropea 2021-01-29 11:23:09 -03:00
parent c64fb3871c
commit 2764e087e8
1 changed files with 4 additions and 1 deletions

View File

@ -339,7 +339,10 @@ def generate_makefile(makefile, cfg_file, outputs):
for out in outputs:
name = name2make(out.name)
ori_names[name] = out.name
targets[name] = [adapt_file_name(fn) for fn in out.get_targets(os.path.join(GS.out_dir, out.dir))]
tg = out.get_targets(os.path.join(GS.out_dir, out.dir))
if not tg:
continue
targets[name] = [adapt_file_name(fn) for fn in tg]
dependencies[name] = [adapt_file_name(fn) for fn in out.get_dependencies()]
if out.comment:
comments[name] = out.comment