From: simonm Date: Mon, 13 Oct 1997 09:44:11 +0000 (+0000) Subject: [project @ 1997-10-13 09:44:11 by simonm] X-Git-Tag: Approx_2487_patches~1392 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=e8275a4f4706e544df8624c2b6b469afaf05a8a5 [project @ 1997-10-13 09:44:11 by simonm] do the symlink thing when installing, not in the local tree. --- diff --git a/distrib/Makefile-bin.in b/distrib/Makefile-bin.in index f7775e2..5793879 100644 --- a/distrib/Makefile-bin.in +++ b/distrib/Makefile-bin.in @@ -178,15 +178,11 @@ 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); \ - $(MV) $$i $$i-$(version); \ - $(LN_S) $$i-$(version) $$i \ - ); \ - 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); $(LN_S) $$i $$i-$(version) ); \ + fi;\ done in-place :: @@ -208,9 +204,13 @@ install-bin: $(INSTALL_BIN) bin/$(platform)/$(package)-$(version)/$$i $(bindir); \ done; for i in $(VERSION_SYMLINKS_FOR) ""; do \ - if [ "x$$i" != "x" ]; then \ - ( cd $(bindir); $(LN_S) $$i $$i-$(version) ); \ - fi; \ + if [ "x$$i" != "x" ]; then \ + ( cd $(bindir); \ + $(RM) $$i-$(version); \ + $(MV) $$i $$i-$(version); \ + $(LN_S) $$i-$(version) $$i \ + ); \ + fi; \ done