[project @ 1998-02-20 14:07:55 by simonm]
authorsimonm <unknown>
Fri, 20 Feb 1998 14:07:55 +0000 (14:07 +0000)
committersimonm <unknown>
Fri, 20 Feb 1998 14:07:55 +0000 (14:07 +0000)
- mk-version-symlinks not needed any more: the links are installed by
  the relevant Makefiles.

- install the link from $(package) to $(package-version) in the
  installation directory.

distrib/Makefile-bin.in

index 5e2493a..2c55f6d 100644 (file)
@@ -181,22 +181,12 @@ config-pkgs ::
          fi; \
        done
 
-
-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;\
-       done
-
 # Convert pwd's UNC reported path into DOS style
 # (cygwin32 only.)
 CURRENT_DIR = $(shell pwd | sed 's|^//\(.\)|\1:|' )
 
 in-place ::
        $(MAKE) $(MFLAGS) config-pkgs bindir=$(CURRENT_DIR)/bin/$(platform)/$(package)-$(version) libdir=$(CURRENT_DIR)/lib/$(platform) datadir=$(CURRENT_DIR)/share/$(package)-$(version)
-       $(MAKE) $(MFLAGS) mk-version-symlinks
        @echo "Finished configuring..to use, add $(CURRENT_DIR)/bin/$(platform)/$(package)-$(version) to your PATH."
 
 install-dirs ::
@@ -204,7 +194,7 @@ install-dirs ::
        (cd lib/$(platform)/$(package)-$(version); find . -type d -exec sh -c '../../../$(INSTALL_DIR) $$0 $(real_libdir)/$$0' {} \; )
        (cd share/$(package)-$(version); find . -type d -exec sh -c '../../$(INSTALL_DIR) $(real_datadir)/$$0' {} \; )
 
-install :: config-pkgs mk-version-symlinks install-dirs install-bin install-libs install-datas
+install :: config-pkgs install-dirs install-bin install-libs install-datas
 
 .PHONY: install-bin install-libs install-datas
 
@@ -215,8 +205,7 @@ install-bin:
        for i in $(VERSION_SYMLINKS_FOR) ""; do \
           if [ "x$$i" != "x" ]; then           \
                ( cd $(bindir);                 \
-                 $(RM) $$i-$(version);         \
-                 $(MV) $$i $$i-$(version);     \
+                 $(RM) $$i;                    \
                  $(LN_S) $$i-$(version) $$i    \
                );                              \
           fi;                                  \