[project @ 1997-10-13 09:39:23 by simonm]
[ghc-hetmet.git] / distrib / Makefile-bin.in
index d300e96..f7775e2 100644 (file)
@@ -178,11 +178,15 @@ config-pkgs ::
 
 
 mk-version-symlinks ::
-       @for i in $(VERSION_SYMLINKS_FOR) ""; do \
-         if [ "x$$i" != "x" ]; then \
-            echo "Symlinking $$i to $$i-$(version)"; \
-            (cd bin/$(platform)/$(package)-$(version); $(RM) $$i-$(version); $(LN_S) $$i $$i-$(version) ); \
-         fi;\
+       @for i in $(VERSION_SYMLINKS_FOR) ""; do        \
+         if [ "x$$i" != "x" ]; then                    \
+            echo "Symlinking $$i to $$i-$(version)";   \
+            (cd bin/$(platform)/$(package)-$(version); \
+             $(RM)   $$i-$(version);                   \
+              $(MV)   $$i $$i-$(version);              \
+             $(LN_S) $$i-$(version) $$i                \
+            );                                         \
+         fi;                                           \
        done
 
 in-place ::