From 5a6aeea41cd141bc4e962381284cbeeefa7bf4d9 Mon Sep 17 00:00:00 2001 From: bwarsaw <> Date: Mon, 31 Mar 2003 19:27:17 +0000 Subject: Backporting SF patch #683906, add $DESTDIR to install target, by Ademar de Souza Reis Jr --- messages/Makefile.in | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'messages') diff --git a/messages/Makefile.in b/messages/Makefile.in index e4fb0dde..c7fe096b 100644 --- a/messages/Makefile.in +++ b/messages/Makefile.in @@ -1,4 +1,4 @@ -# Copyright (C) 2001,2002 by the Free Software Foundation, Inc. +# Copyright (C) 2001-2003 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -29,6 +29,7 @@ srcdir= @srcdir@ bindir= @bindir@ prefix= @prefix@ exec_prefix= @exec_prefix@ +DESTDIR= CC= @CC@ CHMOD= @CHMOD@ @@ -87,7 +88,7 @@ install: doinstall doinstall: @for d in $(LANGDIRS); \ do \ - dir=$(prefix)/$$d; \ + dir=$(DESTDIR)$(prefix)/$$d; \ echo "Creating language directory $$dir"; \ $(srcdir)/../mkinstalldirs $$dir; \ chmod $(DIRMODE) $$dir; \ @@ -98,14 +99,14 @@ doinstall: readme=$(srcdir)/$$d/README.$$d; \ if test -f $$readme; \ then \ - $(INSTALL) -m $(FILEMODE) $$readme $(prefix)/messages/$$d; \ + $(INSTALL) -m $(FILEMODE) $$readme $(DESTDIR)$(prefix)/messages/$$d; \ fi; \ done @for d in $(LANGUAGES); \ do \ po=$(srcdir)/$$d/LC_MESSAGES/mailman.po; \ mo=$(srcdir)/$$d/LC_MESSAGES/mailman.mo; \ - dir=$(prefix)/messages/$$d/LC_MESSAGES; \ + dir=$(DESTDIR)$(prefix)/messages/$$d/LC_MESSAGES; \ $(INSTALL) -m $(FILEMODE) $$po $$mo $$dir; \ done -- cgit v1.2.3