diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-11-07 09:31:05 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-11-07 09:31:05 -0800 |
| commit | ed74befe910d4a9ce30158ba9db14b505fe74c41 (patch) | |
| tree | 5943652a09b7d2c89918e3b7c85ad0ccb25687db | |
| parent | Sync with 'master' (diff) | |
| parent | wincred: align Makefile with other Makefiles in contrib (diff) | |
| download | git-ed74befe910d4a9ce30158ba9db14b505fe74c41.tar.gz git-ed74befe910d4a9ce30158ba9db14b505fe74c41.zip | |
Merge branch 'tu/credential-wincred-makefile-update' into next
Build procedure for Wincred credential helper has been updated.
* tu/credential-wincred-makefile-update:
wincred: align Makefile with other Makefiles in contrib
| -rw-r--r-- | contrib/credential/wincred/Makefile | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/contrib/credential/wincred/Makefile b/contrib/credential/wincred/Makefile index 5b795fc9fe..d92e721e24 100644 --- a/contrib/credential/wincred/Makefile +++ b/contrib/credential/wincred/Makefile @@ -4,20 +4,22 @@ all:: git-credential-wincred.exe -include ../../../config.mak.autogen -include ../../../config.mak -CC ?= gcc -RM ?= rm -f -CFLAGS ?= -O2 -Wall - prefix ?= /usr/local -libexecdir ?= $(prefix)/libexec/git-core +gitexecdir ?= $(prefix)/libexec/git-core +CC ?= gcc +CFLAGS ?= -O2 -Wall INSTALL ?= install +RM ?= rm -f -git-credential-wincred.exe : git-credential-wincred.c - $(LINK.c) $^ $(LOADLIBES) $(LDLIBS) -o $@ +git-credential-wincred.exe: git-credential-wincred.c + $(LINK.c) -o $@ $^ $(LDFLAGS) $(LDLIBS) install: git-credential-wincred.exe - $(INSTALL) -m 755 $^ $(libexecdir) + $(INSTALL) -d -m 755 $(DESTDIR)$(gitexecdir) + $(INSTALL) -m 755 $< $(DESTDIR)$(gitexecdir) clean: $(RM) git-credential-wincred.exe + +.PHONY: all install clean |
