ostbuild: Check for the Makefile in the correct directory

This commit is contained in:
Colin Walters 2012-01-14 16:54:00 -05:00
parent a36c89d7cd
commit aeeed8da13
1 changed files with 4 additions and 1 deletions

View File

@ -161,7 +161,10 @@ class OstbuildCompileOne(builtins.Builtin):
args.extend(self.configargs)
run_sync(args, cwd=builddir)
makefile_path = os.path.join(builddir, 'Makefile')
if use_builddir:
makefile_path = os.path.join(builddir, 'Makefile')
else:
makefile_path = 'Makefile'
if not os.path.exists(makefile_path):
fatal("No Makefile found")