summaryrefslogtreecommitdiff
path: root/contrib/credential
diff options
context:
space:
mode:
authorPat Thoyts <patthoyts@users.sourceforge.net>2012-10-23 23:15:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-05-14 17:30:03 (GMT)
commitccfb5bdad957387cc6b36c9115aaa9615a55a893 (patch)
treefb472d851b0f26da0bf2c7798b7f789e664a373d /contrib/credential
parenteea591373e139fc8aab89a78ccb0b1512a2bf0de (diff)
downloadgit-ccfb5bdad957387cc6b36c9115aaa9615a55a893.zip
git-ccfb5bdad957387cc6b36c9115aaa9615a55a893.tar.gz
git-ccfb5bdad957387cc6b36c9115aaa9615a55a893.tar.bz2
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 bad45ca..39fa5e0 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