mirror of
https://github.com/git/git.git
synced 2026-02-05 15:34:07 +00:00
wincred: add install target and avoid overwriting configured variables.
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
This commit is contained in:
committed by
Johannes Schindelin
parent
4e4b3c742b
commit
bc6bd8eceb
@@ -1,14 +1,20 @@
|
||||
all: git-credential-wincred.exe
|
||||
|
||||
CC = gcc
|
||||
RM = rm -f
|
||||
CFLAGS = -O2 -Wall
|
||||
|
||||
-include ../../../config.mak.autogen
|
||||
-include ../../../config.mak
|
||||
|
||||
git-credential-wincred.exe : git-credential-wincred.c
|
||||
prefix ?= /usr/local
|
||||
libexecdir ?= $(prefix)/libexec/git-core
|
||||
|
||||
INSTALL ?= install
|
||||
|
||||
GIT_CREDENTIAL_WINCRED := git-credential-wincred.exe
|
||||
|
||||
all: $(GIT_CREDENTIAL_WINCRED)
|
||||
|
||||
$(GIT_CREDENTIAL_WINCRED): git-credential-wincred.c
|
||||
$(LINK.c) $^ $(LOADLIBES) $(LDLIBS) -o $@
|
||||
|
||||
install: $(GIT_CREDENTIAL_WINCRED)
|
||||
$(INSTALL) -m 755 $(GIT_CREDENTIAL_WINCRED) $(libexecdir)
|
||||
|
||||
clean:
|
||||
$(RM) git-credential-wincred.exe
|
||||
$(RM) $(GIT_CREDENTIAL_WINCRED)
|
||||
|
||||
Reference in New Issue
Block a user