From c7f3b6621d652480a1b57a6ea2deddd4b71ff2fe Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 8 Oct 2000 14:34:22 +0000 Subject: Before showdots, svn path=/trunk/; revision=2975 --- Makefile.in | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index 43100622..e8c05cb6 100644 --- a/Makefile.in +++ b/Makefile.in @@ -52,6 +52,8 @@ EXTRASRC = @EXTRASRC@ EXTRAOBJ = @EXTRAOBJ@ # EXTRAOBJ = strcasecmp.o getopt.o getopt1.o alloca.o +DESTDIR = + # Common prefix for machine-independent installed files. prefix = @prefix@ # Common prefix for machine-dependent installed files. @@ -148,21 +150,21 @@ tags: $(tagsrcs) .PHONY: install uninstall install: @echo "Creating installation directories..." - $(SHELL) ${srcdir}/mkinstalldirs $(bindir) $(mandir) + $(SHELL) ${srcdir}/mkinstalldirs $(DESTDIR)$(bindir) $(DESTDIR)$(mandir) @echo "Installing fetchmail binary..." - $(INSTALL_PROGRAM) ./fetchmail $(bindir)/fetchmail + $(INSTALL_PROGRAM) ./fetchmail $(DESTDIR)$(bindir)/fetchmail @echo "Installing fetchmail configurator..." - $(INSTALL_PROGRAM) ${srcdir}/fetchmailconf $(bindir)/fetchmailconf + $(INSTALL_PROGRAM) ${srcdir}/fetchmailconf $(DESTDIR)$(bindir)/fetchmailconf @echo "Installing manual page..." - $(INSTALL_DATA) $(srcdir)/fetchmail.man $(mandir)/fetchmail.$(manext) - rm -f $(mandir)/fetchmailconf.$(manext) - ln -s $(mandir)/fetchmail.$(manext) $(mandir)/fetchmailconf.$(manext) + $(INSTALL_DATA) $(srcdir)/fetchmail.man $(DESTDIR)$(mandir)/fetchmail.$(manext) + rm -f $(DESTDIR)$(mandir)/fetchmailconf.$(manext) + cd $(DESTDIR)$(mandir) && ln -s fetchmail.$(manext) fetchmailconf.$(manext) @echo "Installing language catalogs..." @POMAKE@ install uninstall: - rm -f $(bindir)/fetchmail $(bindir)/fetchmailconf - rm -f $(mandir)/fetchmail.$(manext) $(mandir)/fetchmailconf.$(manext) + rm -f $(DESTDIR)$(bindir)/fetchmail $(DESTDIR)$(bindir)/fetchmailconf + rm -f $(DESTDIR)$(mandir)/fetchmail.$(manext) $(DESTDIR)$(mandir)/fetchmailconf.$(manext) @POMAKE@ uninstall .PHONY: clean realclean distclean mostlyclean -- cgit v1.2.3