summaryrefslogtreecommitdiff
path: root/packages/sys-block/mtx/files/destdir.patch
blob: 046a73e8a15c0e5edf5e02db4071f8ef78415812 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Source: written by Gluzskiy Alexandr <sss@sss.chaoslab.ru>
Reason: added support for $DESTDIR to Makefile.in
Upstream: not submitted, feel free to do it


diff -Naur mtx-1.3.12/Makefile.in mtx-1.3.12_patched/Makefile.in
--- mtx-1.3.12/Makefile.in	2008-08-19 09:26:37.000000000 +0000
+++ mtx-1.3.12_patched/Makefile.in	2018-07-29 01:04:27.675361775 +0000
@@ -109,13 +109,13 @@
 dbgs: $(DBGS)
 
 install: $(BINS)
-	$(INSTALL_DIR) $(sbindir)
+	$(INSTALL_DIR) "${DESTDIR}"/$(sbindir)
 	for file in $(BINS); do \
-	$(INSTALL_BIN) "$$file" $(sbindir) ; \
+	$(INSTALL_BIN) "$$file" "${DESTDIR}"/$(sbindir) ; \
 	done	
-	$(INSTALL_DIR) $(mandir) $(mandir)/man1
+	$(INSTALL_DIR) $(mandir) "${DESTDIR}"/$(mandir)/man1
 	for file in mtx.1 tapeinfo.1 scsitape.1 scsieject.1 loaderinfo.1 ; do \
-	$(INSTALL_DOC) "$$file"  $(mandir)/man1 ; \
+	$(INSTALL_DOC) "$$file"  "${DESTDIR}"/$(mandir)/man1 ; \
 	done
 
 clean: