cd03df
From a5d4d1c2fbdad8b24c2938b00406bccb037e5ab4 Mon Sep 17 00:00:00 2001
cd03df
From: Dan Horak <dan@danny.cz>
cd03df
Date: Sat, 24 Jan 2009 18:06:43 +0100
cd03df
Subject: [PATCH 1/2] add support for DESTDIR
cd03df
MIME-Version: 1.0
cd03df
Content-Type: text/plain; charset=utf-8
cd03df
Content-Transfer-Encoding: 8bit
cd03df
cd03df
cd03df
Signed-off-by: Dan HorĂ¡k <dan@danny.cz>
cd03df
---
cd03df
 mtx/Makefile.in |    9 +++++----
cd03df
 1 files changed, 5 insertions(+), 4 deletions(-)
cd03df
cd03df
diff --git a/mtx/Makefile.in b/mtx/Makefile.in
cd03df
index 6b967cf..05894d2 100644
cd03df
--- a/mtx/Makefile.in
cd03df
+++ b/mtx/Makefile.in
cd03df
@@ -33,6 +33,7 @@ INSTALL_DOC = $(INSTALL) -m 644
cd03df
 INSTALL_BIN = $(INSTALL) -m 755
cd03df
 INSTALL_DIR = $(INSTALL) -m 755 -d
cd03df
 
cd03df
+DESTDIR		=
cd03df
 prefix		= @prefix@
cd03df
 exec_prefix	= @exec_prefix@
cd03df
 sbindir		= @sbindir@
cd03df
@@ -109,13 +110,13 @@ all:	$(BINS)
cd03df
 dbgs: $(DBGS)
cd03df
 
cd03df
 install: $(BINS)
cd03df
-	$(INSTALL_DIR) $(sbindir)
cd03df
+	$(INSTALL_DIR) $(DESTDIR)$(sbindir)
cd03df
 	for file in $(BINS); do \
cd03df
-	$(INSTALL_BIN) "$$file" $(sbindir) ; \
cd03df
+	$(INSTALL_BIN) "$$file" $(DESTDIR)$(sbindir) ; \
cd03df
 	done	
cd03df
-	$(INSTALL_DIR) $(mandir) $(mandir)/man1
cd03df
+	$(INSTALL_DIR) $(DESTDIR)$(mandir) $(DESTDIR)$(mandir)/man1
cd03df
 	for file in mtx.1 tapeinfo.1 scsitape.1 scsieject.1 loaderinfo.1 ; do \
cd03df
-	$(INSTALL_DOC) "$$file"  $(mandir)/man1 ; \
cd03df
+	$(INSTALL_DOC) "$$file"  $(DESTDIR)$(mandir)/man1 ; \
cd03df
 	done
cd03df
 
cd03df
 clean:
cd03df
-- 
cd03df
1.6.3.3
cd03df