diff --git a/Makefile b/Makefile
index 82ffb9022df668964228078ab84bda0ff20c20fe..a8c69d08314c547fbd7f4261b9fac4a4e95c9208 100644
--- a/Makefile
+++ b/Makefile
@@ -55,6 +55,7 @@ distclean: clean
 
 SLUBStoragePlugin.jar: $(OBJS)
 	@mkdir build;
+	@find ./ -name "*~" -exec rm -f \{\} \;
 	@cp -r PLUGIN-INF/ build/
 	@cp -r META-INF/ build/
 	@cd java; find ./ -name "*.class" -print -exec cp --parents -r \{\} $(PWD)/build \; ; cd ..