Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit afa02e2

Browse files
patthoytskasal
authored andcommitted
wincred: add install target and avoid overwriting configured variables.
Signed-off-by: Pat Thoyts <[email protected]>
1 parent 9469666 commit afa02e2

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

contrib/credential/wincred/Makefile

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
1-
all: git-credential-wincred.exe
2-
3-
CC = gcc
4-
RM = rm -f
5-
CFLAGS = -O2 -Wall
6-
71
-include ../../../config.mak.autogen
82
-include ../../../config.mak
93

10-
git-credential-wincred.exe : git-credential-wincred.c
4+
prefix ?= /usr/local
5+
libexecdir ?= $(prefix)/libexec/git-core
6+
7+
INSTALL ?= install
8+
9+
GIT_CREDENTIAL_WINCRED := git-credential-wincred.exe
10+
11+
all: $(GIT_CREDENTIAL_WINCRED)
12+
13+
$(GIT_CREDENTIAL_WINCRED): git-credential-wincred.c
1114
$(LINK.c) $^ $(LOADLIBES) $(LDLIBS) -o $@
1215

16+
install: $(GIT_CREDENTIAL_WINCRED)
17+
$(INSTALL) -m 755 $(GIT_CREDENTIAL_WINCRED) $(libexecdir)
18+
1319
clean:
14-
$(RM) git-credential-wincred.exe
20+
$(RM) $(GIT_CREDENTIAL_WINCRED)

0 commit comments

Comments
 (0)