[exporters] make sure to clean .build and BUILD

pull/3287/head
Sam Grove 2016-11-17 23:49:49 -06:00
parent aeabcc9472
commit 0d3e9f0968
1 changed files with 3 additions and 0 deletions

View File

@ -141,8 +141,11 @@ class Makefile(Exporter):
if cleanup:
remove("Makefile")
remove(log_name)
# legacy .build directory cleaned if exists
if exists('.build'):
shutil.rmtree('.build')
if exists('BUILD'):
shutil.rmtree('BUILD')
if ret_code != 0:
# Seems like something went wrong.