Skip to content

Commit d90639d

Browse files
committed
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 <[email protected]>
1 parent 4975ec3 commit d90639d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

contrib/credential/libsecret/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ PKG_CONFIG = pkg-config
1212
-include ../../../config.mak.autogen
1313
-include ../../../config.mak
1414

15+
prefix ?= /usr/local
16+
gitexecdir ?= $(prefix)/libexec/git-core
17+
1518
INCS:=$(shell $(PKG_CONFIG) --cflags libsecret-1 glib-2.0)
1619
LIBS:=$(shell $(PKG_CONFIG) --libs libsecret-1 glib-2.0)
1720

@@ -26,3 +29,7 @@ $(MAIN): $(OBJS)
2629

2730
clean:
2831
@$(RM) $(MAIN) $(OBJS)
32+
33+
install: $(MAIN)
34+
$(INSTALL) -d -m 755 $(DESTDIR)$(gitexecdir)
35+
$(INSTALL) -m 755 $(MAIN) $(DESTDIR)$(gitexecdir)

0 commit comments

Comments
 (0)