diff options
author | Joursoir <chat@joursoir.net> | 2025-02-10 22:17:48 +0300 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2025-02-10 22:19:36 +0300 |
commit | 3e937588c6fe36f5776dd1029a34132e0ec76db5 (patch) | |
tree | fa8a55bdf9b9286982ca0025dd17352610f4be5c /Makefile | |
parent | e9a715195fbf82c9ea7d4b2d6699351468fab222 (diff) | |
download | lock-password-3e937588c6fe36f5776dd1029a34132e0ec76db5.tar.gz lock-password-3e937588c6fe36f5776dd1029a34132e0ec76db5.tar.bz2 lock-password-3e937588c6fe36f5776dd1029a34132e0ec76db5.zip |
add git feature
It's available at compile-time
Diffstat (limited to 'Makefile')
-rwxr-xr-x | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -2,6 +2,7 @@ PREFIX = /usr/local/bin CC = gcc CFLAGS = -Wall -g #-DDEBUG LIBS = $(shell pkg-config --cflags --libs gpgme) +HAVE_LIBGIT2 = $(shell pkg-config --exists libgit2 && echo yes) MAN_PATH = /usr/share/man/man1 COMPLETION_PATH = /usr/share/bash-completion/completions/lpass SOURCES = \ @@ -12,6 +13,11 @@ SOURCES = \ src/r-gpgme.c \ src/tree.c \ src/xstd.c +ifdef HAVE_LIBGIT2 + CFLAGS += $(shell pkg-config --cflags libgit2) -DLIGBIT + LIBS += $(shell pkg-config --libs libgit2) + SOURCES += src/r-lg2.c +endif ifdef DISPLAY LIBS += -lX11 CFLAGS += -DDISPLAY |