about summary refs log tree commit diff
path: root/Src/Makefile.in
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-11-30 15:55:08 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-11-30 15:55:08 +0000
commiteac204de4f3f2e51e1761345f7d1ef5d9ca6027b (patch)
tree8994ac8ee151b1c097af975948a9a65c78ebb360 /Src/Makefile.in
parent72348f15d268d8dc4c73acf643216256e527c22e (diff)
downloadzsh-eac204de4f3f2e51e1761345f7d1ef5d9ca6027b.tar.gz
zsh-eac204de4f3f2e51e1761345f7d1ef5d9ca6027b.tar.xz
zsh-eac204de4f3f2e51e1761345f7d1ef5d9ca6027b.zip
manual/8824
Diffstat (limited to 'Src/Makefile.in')
-rw-r--r--Src/Makefile.in19
1 files changed, 11 insertions, 8 deletions
diff --git a/Src/Makefile.in b/Src/Makefile.in
index a3acaf414..b77f08251 100644
--- a/Src/Makefile.in
+++ b/Src/Makefile.in
@@ -42,6 +42,9 @@ LN		= @LN@
 sdir_src      = $(sdir)
 dir_src       = .
 
+transform=@program_transform_name@
+tzsh=`echo zsh | sed '$(transform)'`
+
 # ========= DEPENDENCIES FOR BUILDING ==========
 
 LINK        = $(CC) $(LDFLAGS) $(EXELDFLAGS) $(EXTRA_LDFLAGS) -o $@
@@ -159,14 +162,14 @@ uninstall.bin: uninstall.bin-here
 # install binary, creating install directory if necessary
 install.bin-here: zsh install.bin-@L@
 	$(sdir_top)/mkinstalldirs $(DESTDIR)$(bindir)
-	$(INSTALL_PROGRAM) $(STRIPFLAGS) zsh $(DESTDIR)$(bindir)/zsh-$(VERSION)
-	if test -f $(DESTDIR)$(bindir)/zsh; then \
-	    rm -f $(DESTDIR)$(bindir)/zsh.old; \
-	    $(LN) $(DESTDIR)$(bindir)/zsh $(DESTDIR)$(bindir)/zsh.old; \
+	$(INSTALL_PROGRAM) $(STRIPFLAGS) zsh $(DESTDIR)$(bindir)/$(tzsh)-$(VERSION)
+	if test -f $(DESTDIR)$(bindir)/$(tzsh); then \
+	    rm -f $(DESTDIR)$(bindir)/$(tzsh).old; \
+	    $(LN) $(DESTDIR)$(bindir)/$(tzsh) $(DESTDIR)$(bindir)/$(tzsh).old; \
 	else :; fi
-	rm -f $(DESTDIR)$(bindir)/zsh.new
-	$(LN) $(DESTDIR)$(bindir)/zsh-$(VERSION) $(DESTDIR)$(bindir)/zsh.new
-	mv $(DESTDIR)$(bindir)/zsh.new $(DESTDIR)$(bindir)/zsh
+	rm -f $(DESTDIR)$(bindir)/$(tzsh).new
+	$(LN) $(DESTDIR)$(bindir)/$(tzsh)-$(VERSION) $(DESTDIR)$(bindir)/$(tzsh).new
+	mv $(DESTDIR)$(bindir)/$(tzsh).new $(DESTDIR)$(bindir)/$(tzsh)
 
 install.bin-N:
 install.bin-L: $(LIBZSH)
@@ -175,7 +178,7 @@ install.bin-L: $(LIBZSH)
 
 # uninstall binary
 uninstall.bin-here: uninstall.bin-@L@
-	rm -f $(DESTDIR)$(bindir)/zsh-$(VERSION) $(DESTDIR)$(bindir)/zsh
+	rm -f $(DESTDIR)$(bindir)/$(tzsh)-$(VERSION) $(DESTDIR)$(bindir)/$(tzsh)
 
 uninstall.bin-N:
 uninstall.bin-L: