Skip to content

Commit

Permalink
wincred: add install target and avoid overwriting configured variables.
Browse files Browse the repository at this point in the history
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
  • Loading branch information
patthoyts committed May 29, 2013
1 parent a0a3b4e commit 6df8966
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions contrib/credential/wincred/Makefile
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 6df8966

Please sign in to comment.