Unified 'make depend' has to cleanup after itself
authorRichard Levitte <levitte@openssl.org>
Fri, 19 Feb 2016 22:34:25 +0000 (23:34 +0100)
committerRichard Levitte <levitte@openssl.org>
Fri, 19 Feb 2016 22:34:25 +0000 (23:34 +0100)
It failed to remove lingering Makefile.new

Reviewed-by: Rich Salz <rsalz@openssl.org>
Configurations/unix-Makefile.tmpl

index 07e5a41..9dc6d7d 100644 (file)
@@ -256,6 +256,8 @@ Makefile: FORCE
          done ) > Makefile.new
        @if ! cmp Makefile.new Makefile >/dev/null 2>&1; then \
                mv -f Makefile.new Makefile; \
          done ) > Makefile.new
        @if ! cmp Makefile.new Makefile >/dev/null 2>&1; then \
                mv -f Makefile.new Makefile; \
+       else \
+               rm -f Makefile.new; \
        fi
 
 # Install helper targets #############################################
        fi
 
 # Install helper targets #############################################