summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-02-28 16:26:28 +0000
committerOlivier Gayot <duskcoder@gmail.com>2015-02-28 16:26:28 +0000
commitb518ed8dc4a884f9c48998367db17b3f96561ca7 (patch)
tree0bfc98642dec70e33384b86c9e1a11943fc875aa
parentee6d0649cd87d97c423e8e79a074443a469004bc (diff)
remove swap files when using running make distclean
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
-rwxr-xr-xgen_makefile.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gen_makefile.py b/gen_makefile.py
index 3b70af4..2f4e3f8 100755
--- a/gen_makefile.py
+++ b/gen_makefile.py
@@ -91,6 +91,7 @@ class makefile_generator():
])
self.append_static_rule('distclean', 'mrproper', [
'$(RM) $(addsuffix ~,$(SRC))',
+ '$(RM) $(wildcard $(addsuffix .sw* $(addprefix .,$(SRC))))',
])
# phony rule