git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] wincred: add install target and avoid overwriting configured variables
@ 2014-04-30  6:46 Stepan Kasal
  2014-04-30  9:21 ` Erik Faye-Lund
  0 siblings, 1 reply; 12+ messages in thread
From: Stepan Kasal @ 2014-04-30  6:46 UTC (permalink / raw)
  To: GIT Mailing-list

From: Pat Thoyts <patthoyts@users.sourceforge.net>
Date: Wed, 24 Oct 2012 00:15:29 +0100

Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Signed-off-by: Stepan Kasal <kasal@ucw.cz>
---
Another one from msysGit project.
Original subject by Pat; I would suggest:
    wincred: improve Makefile
 contrib/credential/wincred/Makefile | 22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

diff --git a/contrib/credential/wincred/Makefile b/contrib/credential/wincred/Makefile
index bad45ca..3ce6aba 100644
--- a/contrib/credential/wincred/Makefile
+++ b/contrib/credential/wincred/Makefile
@@ -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)
-- 
1.9.2.msysgit.0.158.g6070cee

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-05-14  8:50 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-30  6:46 [PATCH] wincred: add install target and avoid overwriting configured variables Stepan Kasal
2014-04-30  9:21 ` Erik Faye-Lund
2014-04-30 11:27   ` Stepan Kasal
2014-04-30 11:56     ` Erik Faye-Lund
2014-05-13  5:59       ` [PATCH 0/2] wincred makefile changes Stepan Kasal
2014-05-13  6:01         ` [PATCH 1/2] wincred: add install target Stepan Kasal
2014-05-13  6:01         ` [PATCH 2/2] wincred: avoid overwriting configured variables Stepan Kasal
2014-05-13  6:34           ` Erik Faye-Lund
2014-05-13  6:53             ` Stepan Kasal
     [not found]               ` <CABPQNSbb-rdTjCDYoC7uApfcMH8Q0Y-w4Tm9UiN6PhEeD-Gv6Q@mail.gmail.com>
     [not found]                 ` <20140514084509.GA3134@camelia.ucw.cz>
2014-05-14  8:49                   ` Erik Faye-Lund
2014-05-13 13:18             ` Felipe Contreras
2014-05-13 13:53               ` Stepan Kasal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).