wincred: add install target

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>

Pat Thoyts committed Oct 24, 2012 at 00:15 UTC ccfb5bdad957387cc6b36c9115aaa9615a55a893
1 file changed +8
contrib/credential/wincred/Makefile
+8
@@ -7,8 +7,16 @@ CFLAGS = -O2 -Wall
7 -include ../../../config.mak.autogen
8 -include ../../../config.mak
9
10 +prefix ?= /usr/local
11 +libexecdir ?= $(prefix)/libexec/git-core
12 +
13 +INSTALL ?= install
14 +
15 git-credential-wincred.exe : git-credential-wincred.c
16 $(LINK.c) $^ $(LOADLIBES) $(LDLIBS) -o $@
17
18 +install: git-credential-wincred.exe
19 + $(INSTALL) -m 755 $^ $(libexecdir)
20 +
21 clean:
22 $(RM) git-credential-wincred.exe