aboutsummaryrefslogtreecommitdiff
path: root/contrib/credential/osxkeychain/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/credential/osxkeychain/Makefile')
-rw-r--r--contrib/credential/osxkeychain/Makefile28
1 files changed, 6 insertions, 22 deletions
diff --git a/contrib/credential/osxkeychain/Makefile b/contrib/credential/osxkeychain/Makefile
index 9680717abe..219b0d7f49 100644
--- a/contrib/credential/osxkeychain/Makefile
+++ b/contrib/credential/osxkeychain/Makefile
@@ -1,29 +1,13 @@
# The default target of this Makefile is...
all:: git-credential-osxkeychain
--include ../../../config.mak.autogen
--include ../../../config.mak
+git-credential-osxkeychain:
+ $(MAKE) -C ../../.. contrib/credential/osxkeychain/git-credential-osxkeychain
-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)
+install:
+ $(MAKE) -C ../../.. install-git-credential-osxkeychain
clean:
- $(RM) git-credential-osxkeychain git-credential-osxkeychain.o
+ $(MAKE) -C ../../.. clean-git-credential-osxkeychain
-.PHONY: all install clean
+.PHONY: all git-credential-osxkeychain install clean