summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Sojka <sojkam1@fel.cvut.cz>2013-07-30 10:16:09 +0200
committerJunio C Hamano <gitster@pobox.com>2013-07-30 07:50:23 -0700
commit8e943c248ac50e7b4743019ff1ed69ac72a48fff (patch)
tree2308da5579641c5557fe3621b6e649bfd7bbc954
parent8f6a3e5d71fa1800c3f330bab2b6b6399ec7aea7 (diff)
downloadgit-ms/subtree-install-fix.tar.gz
contrib/subtree: Fix make install targetms/subtree-install-fix
If the libexec directory doesn't exist, git-subtree gets installed as $prefix/share/libexec/git-core file. This patch creates the directory before installing git-subtree file into it. Signed-off-by: Michal Sojka <sojkam1@fel.cvut.cz> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--contrib/subtree/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/subtree/Makefile b/contrib/subtree/Makefile
index b50750565f..435b2dea29 100644
--- a/contrib/subtree/Makefile
+++ b/contrib/subtree/Makefile
@@ -30,6 +30,7 @@ $(GIT_SUBTREE): $(GIT_SUBTREE_SH)
doc: $(GIT_SUBTREE_DOC)
install: $(GIT_SUBTREE)
+ $(INSTALL) -d -m 755 $(DESTDIR)$(libexecdir)
$(INSTALL) -m 755 $(GIT_SUBTREE) $(DESTDIR)$(libexecdir)
install-doc: install-man