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

Commit 0516023

Browse files
committed
Merge pull request #188 from kasal/revert-install-wincred
fixup! wincred: add install target and avoid overwriting configured vari...
2 parents 17e522f + dbbfda0 commit 0516023

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

contrib/credential/wincred/Makefile

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
1+
all: git-credential-wincred.exe
2+
13
-include ../../../config.mak.autogen
24
-include ../../../config.mak
35

6+
CC ?= gcc
7+
RM ?= rm -f
8+
CFLAGS ?= -O2 -Wall
9+
410
prefix ?= /usr/local
511
libexecdir ?= $(prefix)/libexec/git-core
612

713
INSTALL ?= install
814

9-
GIT_CREDENTIAL_WINCRED := git-credential-wincred.exe
10-
11-
all: $(GIT_CREDENTIAL_WINCRED)
12-
13-
$(GIT_CREDENTIAL_WINCRED): git-credential-wincred.c
15+
git-credential-wincred.exe : git-credential-wincred.c
1416
$(LINK.c) $^ $(LOADLIBES) $(LDLIBS) -o $@
1517

16-
install: $(GIT_CREDENTIAL_WINCRED)
17-
$(INSTALL) -m 755 $(GIT_CREDENTIAL_WINCRED) $(libexecdir)
18+
install: git-credential-wincred.exe
19+
$(INSTALL) -m 755 $^ $(libexecdir)
1820

1921
clean:
20-
$(RM) $(GIT_CREDENTIAL_WINCRED)
22+
$(RM) git-credential-wincred.exe

0 commit comments

Comments
 (0)