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