diff --git a/ninjabackend.py b/ninjabackend.py index 738ed5cf9..2017ca52c 100644 --- a/ninjabackend.py +++ b/ninjabackend.py @@ -995,7 +995,7 @@ rule FORTRAN_DEP_HACK base_args = generator.get_arglist() for i in range(len(infilelist)): if len(generator.outputs) == 1: - sole_output = os.path.join(self.get_target_private_dir(target), outfilelist[0]) + sole_output = os.path.join(self.get_target_private_dir(target), outfilelist[i]) else: sole_output = '' curfile = infilelist[i]