Skip to content

Commit cb9036a

Browse files
committed
Merge branch 'tu/credential-wincred-makefile-update'
Build procedure for Wincred credential helper has been updated. * tu/credential-wincred-makefile-update: wincred: align Makefile with other Makefiles in contrib
2 parents 4badef0 + fade8f0 commit cb9036a

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
@@ -4,20 +4,22 @@ all:: git-credential-wincred.exe
44
-include ../../../config.mak.autogen
55
-include ../../../config.mak
66

7-
CC ?= gcc
8-
RM ?= rm -f
9-
CFLAGS ?= -O2 -Wall
10-
117
prefix ?= /usr/local
12-
libexecdir ?= $(prefix)/libexec/git-core
8+
gitexecdir ?= $(prefix)/libexec/git-core
139

10+
CC ?= gcc
11+
CFLAGS ?= -O2 -Wall
1412
INSTALL ?= install
13+
RM ?= rm -f
1514

16-
git-credential-wincred.exe : git-credential-wincred.c
17-
$(LINK.c) $^ $(LOADLIBES) $(LDLIBS) -o $@
15+
git-credential-wincred.exe: git-credential-wincred.c
16+
$(LINK.c) -o $@ $^ $(LDFLAGS) $(LDLIBS)
1817

1918
install: git-credential-wincred.exe
20-
$(INSTALL) -m 755 $^ $(libexecdir)
19+
$(INSTALL) -d -m 755 $(DESTDIR)$(gitexecdir)
20+
$(INSTALL) -m 755 $< $(DESTDIR)$(gitexecdir)
2121

2222
clean:
2323
$(RM) git-credential-wincred.exe
24+
25+
.PHONY: all install clean

0 commit comments

Comments
 (0)