summaryrefslogtreecommitdiff
path: root/contrib/credential
diff options
context:
space:
mode:
authorLibravatar Pat Thoyts <patthoyts@users.sourceforge.net>2012-10-24 00:15:29 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-05-14 10:30:03 -0700
commitccfb5bdad957387cc6b36c9115aaa9615a55a893 (patch)
treefb472d851b0f26da0bf2c7798b7f789e664a373d /contrib/credential
parentGit 1.9.3 (diff)
downloadtgif-ccfb5bdad957387cc6b36c9115aaa9615a55a893.tar.xz
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>
Diffstat (limited to 'contrib/credential')
-rw-r--r--contrib/credential/wincred/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/credential/wincred/Makefile b/contrib/credential/wincred/Makefile
index bad45ca47a..39fa5e0c59 100644
--- a/contrib/credential/wincred/Makefile
+++ b/contrib/credential/wincred/Makefile
@@ -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