Skip to content

Commit

Permalink
contrib/subtree: Fix make install target
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michal Sojka authored and Junio C Hamano committed Jul 30, 2013
1 parent 8f6a3e5 commit 8e943c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contrib/subtree/Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8e943c2

Please sign in to comment.