Files
git/contrib/credential/libsecret/Makefile
Thomas Uhle 595be20d22 contrib/credential: add install target
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>
2025-10-25 18:27:56 -07:00

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