From d90639d8245684765390f6101a7c38caaa0f89d6 Mon Sep 17 00:00:00 2001 From: M Hickford Date: Fri, 12 Sep 2025 21:17:10 +0100 Subject: [PATCH] libsecret/Makefile: add install target Packaging git-credential-libsecret is slightly more complex than git-subtree. Add install target similar to that in contrib/subtree/Makefile. Signed-off-by: M Hickford --- contrib/credential/libsecret/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/contrib/credential/libsecret/Makefile b/contrib/credential/libsecret/Makefile index 97ce9c92fb8ae5..5686b4ad71da12 100644 --- a/contrib/credential/libsecret/Makefile +++ b/contrib/credential/libsecret/Makefile @@ -12,6 +12,9 @@ PKG_CONFIG = pkg-config -include ../../../config.mak.autogen -include ../../../config.mak +prefix ?= /usr/local +gitexecdir ?= $(prefix)/libexec/git-core + INCS:=$(shell $(PKG_CONFIG) --cflags libsecret-1 glib-2.0) LIBS:=$(shell $(PKG_CONFIG) --libs libsecret-1 glib-2.0) @@ -26,3 +29,7 @@ $(MAIN): $(OBJS) clean: @$(RM) $(MAIN) $(OBJS) + +install: $(MAIN) + $(INSTALL) -d -m 755 $(DESTDIR)$(gitexecdir) + $(INSTALL) -m 755 $(MAIN) $(DESTDIR)$(gitexecdir)