fix(bin/lmake): missing case: no makefile & dir specified

close #27
This commit is contained in:
Soonho Kong 2014-08-06 07:40:03 -07:00
parent da616f69ea
commit b0a25cdbc9

View file

@ -175,7 +175,8 @@ def main(argv=None):
if makefile is None and directory is None:
makefile_names = ["GNUmakefile", "makefile", "Makefile"]
makefile = find_makefile_upward(working_dir, makefile_names)
directory = os.path.dirname(makefile)
if makefile:
directory = os.path.dirname(makefile)
if directory or makefile:
call_makefile(directory, makefile, args)
for arg in args: