Update the make system for installations:
[openssl.git] / tools / Makefile.ssl
index b46ea44..832b744 100644 (file)
@@ -27,13 +27,15 @@ all:
 install:
        @for i in $(APPS) ; \
        do  \
-       (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i; \
-       chmod 755 $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i ); \
+       (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new; \
+       chmod 755 $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new; \
+       mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i ); \
        done;
        @for i in $(MISC_APPS) ; \
        do  \
-       (cp $$i $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i; \
-       chmod 755 $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i ); \
+       (cp $$i $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i.new; \
+       chmod 755 $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i.new; \
+       mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/misc/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/misc/$$i ); \
        done;
 
 files: