wincred: add install target
authorPat Thoyts <patthoyts@users.sourceforge.net>
Tue, 23 Oct 2012 23:15:29 +0000 (00:15 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 May 2014 17:30:03 +0000 (10:30 -0700)
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Signed-off-by: Stepan Kasal <kasal@ucw.cz>
Acked-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/credential/wincred/Makefile
index bad45ca47a2379a9226da1ae886e23dff01ca8f4..39fa5e0c5921124e6331c9008d918e27991f7c85 100644 (file)
@@ -7,8 +7,16 @@ CFLAGS = -O2 -Wall
 -include ../../../config.mak.autogen
 -include ../../../config.mak
 
+prefix ?= /usr/local
+libexecdir ?= $(prefix)/libexec/git-core
+
+INSTALL ?= install
+
 git-credential-wincred.exe : git-credential-wincred.c
        $(LINK.c) $^ $(LOADLIBES) $(LDLIBS) -o $@
 
+install: git-credential-wincred.exe
+       $(INSTALL) -m 755 $^ $(libexecdir)
+
 clean:
        $(RM) git-credential-wincred.exe