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 --- tests/Makefile.in | 11 ++++++----- tests/bounces/Makefile.in | 7 ++++--- tests/msgs/Makefile.in | 7 ++++--- 3 files changed, 14 insertions(+), 11 deletions(-) (limited to 'tests') diff --git a/tests/Makefile.in b/tests/Makefile.in index f04397c4..c4a03a05 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -1,4 +1,4 @@ -# Copyright (C) 2001 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 @@ -25,6 +25,7 @@ srcdir= @srcdir@ bindir= @bindir@ prefix= @prefix@ exec_prefix= @exec_prefix@ +DESTDIR= CC= @CC@ CHMOD= @CHMOD@ @@ -59,15 +60,15 @@ all: install: for f in $(TEST_MODULES); \ do \ - $(INSTALL) -m $(FILEMODE) $$f $(TESTDIR); \ + $(INSTALL) -m $(FILEMODE) $$f $(DESTDIR)$(TESTDIR); \ done for f in $(EXECS); \ do \ - $(INSTALL) -m $(EXEMODE) $$f $(TESTDIR); \ - done + $(INSTALL) -m $(EXEMODE) $$f $(DESTDIR)$(TESTDIR); \ + done for d in $(SUBDIRS); \ do \ - (cd $$d; $(MAKE) install); \ + (cd $$d; $(MAKE) DESTDIR=$(DESTDIR) install); \ done finish: diff --git a/tests/bounces/Makefile.in b/tests/bounces/Makefile.in index 120832d3..1aaa9ff9 100644 --- a/tests/bounces/Makefile.in +++ b/tests/bounces/Makefile.in @@ -1,4 +1,4 @@ -# Copyright (C) 2001 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 @@ -25,6 +25,7 @@ srcdir= @srcdir@ bindir= @bindir@ prefix= @prefix@ exec_prefix= @exec_prefix@ +DESTDIR= CC= @CC@ CHMOD= @CHMOD@ @@ -56,8 +57,8 @@ all: install: for f in $(BOUNCE_FILES); \ do \ - $(INSTALL) -m $(FILEMODE) $$f $(BOUNCEDIR); \ - done + $(INSTALL) -m $(FILEMODE) $$f $(DESTDIR)$(BOUNCEDIR); \ + done finish: diff --git a/tests/msgs/Makefile.in b/tests/msgs/Makefile.in index 3844820b..b1afe250 100644 --- a/tests/msgs/Makefile.in +++ b/tests/msgs/Makefile.in @@ -1,4 +1,4 @@ -# Copyright (C) 2001 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 @@ -25,6 +25,7 @@ srcdir= @srcdir@ bindir= @bindir@ prefix= @prefix@ exec_prefix= @exec_prefix@ +DESTDIR= CC= @CC@ CHMOD= @CHMOD@ @@ -56,8 +57,8 @@ all: install: for f in $(MSG_FILES); \ do \ - $(INSTALL) -m $(FILEMODE) $$f $(MSGSDIR); \ - done + $(INSTALL) -m $(FILEMODE) $$f $(DESTDIR)$(MSGSDIR); \ + done finish: -- cgit v1.2.3