mirror of
https://github.com/git/git.git
synced 2026-01-09 01:34:00 +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>
33 lines
791 B
Makefile
33 lines
791 B
Makefile
# The default target of this Makefile is...
|
|
all:: git-credential-libsecret
|
|
|
|
-include ../../../config.mak.autogen
|
|
-include ../../../config.mak
|
|
|
|
prefix ?= /usr/local
|
|
gitexecdir ?= $(prefix)/libexec/git-core
|
|
|
|
CC ?= gcc
|
|
CFLAGS ?= -g -O2 -Wall
|
|
PKG_CONFIG ?= pkg-config
|
|
INSTALL ?= install
|
|
RM ?= rm -f
|
|
|
|
INCS:=$(shell $(PKG_CONFIG) --cflags libsecret-1 glib-2.0)
|
|
LIBS:=$(shell $(PKG_CONFIG) --libs libsecret-1 glib-2.0)
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) $(INCS) -o $@ -c $<
|
|
|
|
git-credential-libsecret: git-credential-libsecret.o
|
|
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LIBS)
|
|
|
|
install: git-credential-libsecret
|
|
$(INSTALL) -d -m 755 $(DESTDIR)$(gitexecdir)
|
|
$(INSTALL) -m 755 $< $(DESTDIR)$(gitexecdir)
|
|
|
|
clean:
|
|
$(RM) git-credential-libsecret git-credential-libsecret.o
|
|
|
|
.PHONY: all install clean
|