build.py: Fix multiple modules and clean target

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2014-12-04 19:11:45 +00:00
commit ec6eaec5ec

View file

@ -81,7 +81,8 @@ def build(modules, order, target):
if target in ["clean", "distclean"]: if target in ["clean", "distclean"]:
for m in reversed(order): for m in reversed(order):
run_make(m, target) run_make(m, target)
modules.remove(m) if m in modules:
modules.remove(m)
if not len(modules): if not len(modules):
print "all modules cleaned" print "all modules cleaned"
return return