From b518ed8dc4a884f9c48998367db17b3f96561ca7 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sat, 28 Feb 2015 16:26:28 +0000 Subject: remove swap files when using running make distclean Signed-off-by: Olivier Gayot --- gen_makefile.py | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3