]> arthur.barton.de Git - bup.git/blobdiff - Makefile
Makefile: clean up _version.py temp files
[bup.git] / Makefile
index c15adfb9b5968f5178daff2d1b247418a7062eea..a024dbeef1135db8e47f7b5e8c0522847d5b7ebd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -82,7 +82,8 @@ lib/bup/_helpers$(SOEXT): \
 lib/bup/_version.py:
        rm -f $@.tmp-$$$$ \
        && ./format-subst.pl $@.pre > $@.tmp-$$$$ \
-       && (if ! test -e $@ || ! cmp $@ $@.tmp-$$$$; then mv $@.tmp-$$$$ $@; fi)
+       && (if ! test -e $@ || ! cmp $@ $@.tmp-$$$$; then mv $@.tmp-$$$$ $@; fi) \
+       && rm -f $@.tmp-$$$$
 
 t/tmp:
        mkdir t/tmp