mirror of
https://github.com/git/git.git
synced 2026-01-10 10:13:33 +00:00
Add an install target rule to the Makefiles in contrib/credential in the same manner as in other Makefiles in contrib such as for contacts or subtree. Signed-off-by: Thomas Uhle <thomas.uhle@mailbox.tu-dresden.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
30 lines
695 B
Makefile
30 lines
695 B
Makefile
# The default target of this Makefile is...
|
|
all:: git-credential-osxkeychain
|
|
|
|
-include ../../../config.mak.autogen
|
|
-include ../../../config.mak
|
|
|
|
prefix ?= /usr/local
|
|
gitexecdir ?= $(prefix)/libexec/git-core
|
|
|
|
CC ?= gcc
|
|
CFLAGS ?= -g -O2 -Wall
|
|
INSTALL ?= install
|
|
RM ?= rm -f
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
|
|
|
|
git-credential-osxkeychain: git-credential-osxkeychain.o
|
|
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) \
|
|
-framework Security -framework CoreFoundation
|
|
|
|
install: git-credential-osxkeychain
|
|
$(INSTALL) -d -m 755 $(DESTDIR)$(gitexecdir)
|
|
$(INSTALL) -m 755 $< $(DESTDIR)$(gitexecdir)
|
|
|
|
clean:
|
|
$(RM) git-credential-osxkeychain git-credential-osxkeychain.o
|
|
|
|
.PHONY: all install clean
|