summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Adam Tkac <atkac@redhat.com>2013-02-04 22:06:05 -0600
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-02-05 15:23:19 -0800
commitd86848228f46fad4c20bdf0bdcca124061dc56b2 (patch)
tree0623c19cd2e450ca26e9599a71525ef06f8dcf97
parentcontrib/subtree: fix synopsis (diff)
downloadtgif-d86848228f46fad4c20bdf0bdcca124061dc56b2.tar.xz
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>
-rw-r--r--contrib/subtree/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/subtree/Makefile b/contrib/subtree/Makefile
index 05cdd5c9b2..36ae3e4f0a 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 $^