contrib/subtree: honor DESTDIR
authorAdam Tkac <atkac@redhat.com>
Tue, 5 Feb 2013 04:06:05 +0000 (22:06 -0600)
committerJunio C Hamano <gitster@pobox.com>
Tue, 5 Feb 2013 23:23:19 +0000 (15:23 -0800)
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>
contrib/subtree/Makefile

index 05cdd5c9b2fe5210b9780d394b319ddf289a9eeb..36ae3e4f0a92a994e8927f6e4c8c3bd5cfa6c040 100644 (file)
@@ -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 $^