From 79db4326858edc58158b2fd0241e71bd727e23a0 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Sat, 21 Aug 1999 05:46:19 +0000 Subject: manual/7459 --- Src/Makefile.in | 24 ++++++++++++------------ Src/Makemod.in.in | 8 ++++---- 2 files changed, 16 insertions(+), 16 deletions(-) (limited to 'Src') diff --git a/Src/Makefile.in b/Src/Makefile.in index e17633f45..99def0508 100644 --- a/Src/Makefile.in +++ b/Src/Makefile.in @@ -160,28 +160,28 @@ uninstall.bin: uninstall.bin-here # install binary, creating install directory if necessary install.bin-here: zsh install.bin-@L@ - $(sdir_top)/mkinstalldirs $(bindir) - $(INSTALL_PROGRAM) $(STRIPFLAGS) zsh $(bindir)/zsh-$(VERSION) - if test -f $(bindir)/zsh; then \ - rm -f $(bindir)/zsh.old; \ - $(LN) $(bindir)/zsh $(bindir)/zsh.old; \ + $(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; \ else :; fi - rm -f $(bindir)/zsh.new - $(LN) $(bindir)/zsh-$(VERSION) $(bindir)/zsh.new - mv $(bindir)/zsh.new $(bindir)/zsh + rm -f $(DESTDIR)$(bindir)/zsh.new + $(LN) $(DESTDIR)$(bindir)/zsh-$(VERSION) $(DESTDIR)$(bindir)/zsh.new + mv $(DESTDIR)$(bindir)/zsh.new $(DESTDIR)$(bindir)/zsh install.bin-N: install.bin-L: $(LIBZSH) - $(sdir_top)/mkinstalldirs $(libdir)/zsh - $(INSTALL_PROGRAM) $(LIBZSH) $(libdir)/zsh/$(LIBZSH) + $(sdir_top)/mkinstalldirs $(DESTDIR)$(libdir)/zsh + $(INSTALL_PROGRAM) $(LIBZSH) $(DESTDIR)$(libdir)/zsh/$(LIBZSH) # uninstall binary uninstall.bin-here: uninstall.bin-@L@ - rm -f $(bindir)/zsh-$(VERSION) $(bindir)/zsh + rm -f $(DESTDIR)$(bindir)/zsh-$(VERSION) $(bindir)/zsh uninstall.bin-N: uninstall.bin-L: - rm -f $(libdir)/zsh/$(LIBZSH) + rm -f $(DESTDIR)$(libdir)/zsh/$(LIBZSH) # ========== DEPENDENCIES FOR CLEANUP ========== diff --git a/Src/Makemod.in.in b/Src/Makemod.in.in index 42cfc0401..0ba2e217c 100644 --- a/Src/Makemod.in.in +++ b/Src/Makemod.in.in @@ -127,15 +127,15 @@ install.bin-here uninstall.bin-here: install.modules-here: modules='$(MODULES)'; \ - if test -n "$$modules"; then $(sdir_top)/mkinstalldirs $(MODDIR); fi; \ + if test -n "$$modules"; then $(sdir_top)/mkinstalldirs $(DESTDIR)$(MODDIR); fi; \ for mod in $$modules; do \ - $(INSTALL_PROGRAM) $$mod $(MODDIR)/$$mod; \ + $(INSTALL_PROGRAM) $$mod $(DESTDIR)$(MODDIR)/$$mod; \ done uninstall.modules-here: modules='$(MODULES)'; for mod in $$modules; do \ - if test -f $(MODDIR)/$$mod; then \ - rm -f $(MODDIR)/$$mod; \ + if test -f $(DESTDIR)$(MODDIR)/$$mod; then \ + rm -f $(DESTDIR)$(MODDIR)/$$mod; \ else :; fi; \ done -- cgit 1.4.1