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 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'tests/Makefile.in') 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: -- cgit v1.2.3