diff options
author | Jack Lloyd <[email protected]> | 2017-12-03 12:37:51 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-12-03 12:37:51 -0500 |
commit | fccea4e003906d7dd0c44b91415b4651220d74b9 (patch) | |
tree | 73e44eb05a111ddda7872ea57464636377f95355 /src | |
parent | 47a8b46b63127829ceb1fd8cd42aba55c0fa8dd0 (diff) |
Have make clean also delete the documentation dir
Diffstat (limited to 'src')
-rwxr-xr-x | src/scripts/cleanup.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/scripts/cleanup.py b/src/scripts/cleanup.py index 33ae18a5e..e14f7ec17 100755 --- a/src/scripts/cleanup.py +++ b/src/scripts/cleanup.py @@ -41,7 +41,8 @@ def remove_all_in_dir(d): logging.debug('Removing all files in directory "%s"', d) for f in os.listdir(d): - remove_file(os.path.join(d, f)) + full_path = os.path.join(d, f) + shutil.rmtree(full_path) def main(args=None): if args is None: @@ -93,7 +94,7 @@ def main(args=None): remove_file(build_config['makefile_path']) remove_dir(build_dir) else: - for dir_type in ['libobj_dir', 'cliobj_dir', 'testobj_dir']: + for dir_type in ['libobj_dir', 'cliobj_dir', 'testobj_dir', 'doc_output_dir']: dir_path = build_config[dir_type] remove_all_in_dir(dir_path) |