contrib/subtree: Fix make install target
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 30 Jul 2013 08:16:09 +0000 (10:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Jul 2013 14:50:23 +0000 (07:50 -0700)
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>
contrib/subtree/Makefile
index b50750565ff0499dcbdf2f2b9802f109a830d797..435b2dea293b01daaad83e6905148be2256c02df 100644 (file)
@@ -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