summaryrefslogtreecommitdiff
path: root/contrib/subtree
diff options
context:
space:
mode:
authorAdam Tkac <atkac@redhat.com>2013-02-05 04:06:05 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-02-05 23:23:19 (GMT)
commitd86848228f46fad4c20bdf0bdcca124061dc56b2 (patch)
tree0623c19cd2e450ca26e9599a71525ef06f8dcf97 /contrib/subtree
parent111dc0eea07d4843a9ed86e4069b899224a4489b (diff)
downloadgit-d86848228f46fad4c20bdf0bdcca124061dc56b2.zip
git-d86848228f46fad4c20bdf0bdcca124061dc56b2.tar.gz
git-d86848228f46fad4c20bdf0bdcca124061dc56b2.tar.bz2
contrib/subtree: honor DESTDIR
Teach git-subtree's Makefile to honor DESTDIR. Signed-off-by: Adam Tkac <atkac@redhat.com> Signed-off-by: David A. Greene <greened@obbligato.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/subtree')
-rw-r--r--contrib/subtree/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/subtree/Makefile b/contrib/subtree/Makefile
index 05cdd5c..36ae3e4 100644
--- a/contrib/subtree/Makefile
+++ b/contrib/subtree/Makefile
@@ -30,12 +30,12 @@ $(GIT_SUBTREE): $(GIT_SUBTREE_SH)
doc: $(GIT_SUBTREE_DOC)
install: $(GIT_SUBTREE)
- $(INSTALL) -m 755 $(GIT_SUBTREE) $(libexecdir)
+ $(INSTALL) -m 755 $(GIT_SUBTREE) $(DESTDIR)$(libexecdir)
install-doc: install-man
install-man: $(GIT_SUBTREE_DOC)
- $(INSTALL) -m 644 $^ $(man1dir)
+ $(INSTALL) -m 644 $^ $(DESTDIR)$(man1dir)
$(GIT_SUBTREE_DOC): $(GIT_SUBTREE_XML)
xmlto -m $(MANPAGE_NORMAL_XSL) man $^