diff options
author | simonm <unknown> | 1997-10-13 09:44:11 +0000 |
---|---|---|
committer | simonm <unknown> | 1997-10-13 09:44:11 +0000 |
commit | e8275a4f4706e544df8624c2b6b469afaf05a8a5 (patch) | |
tree | b264ec18573e87216fe9da047214cb8520aa42f3 /distrib/Makefile-bin.in | |
parent | 50bf84a3a19fd3e88a4382a91979a45f315f5e63 (diff) | |
download | haskell-e8275a4f4706e544df8624c2b6b469afaf05a8a5.tar.gz |
[project @ 1997-10-13 09:44:11 by simonm]
do the symlink thing when installing, not in the local tree.
Diffstat (limited to 'distrib/Makefile-bin.in')
-rw-r--r-- | distrib/Makefile-bin.in | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/distrib/Makefile-bin.in b/distrib/Makefile-bin.in index f7775e204f..579387960e 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 |