gnome-keyring: Don't hard-code pkg-config executable

Helpful if your pkg-config executable has a prefix based on the architecture, for example. Signed-off-by: Heiko Becker <heirecka@exherbo.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Heiko Becker committed Jun 14, 2016 at 13:27 UTC 3cddb008c15978ae81ff144e24303467076d200f
1 file changed +3 -2
contrib/credential/gnome-keyring/Makefile
+3 -2
@@ -4,12 +4,13 @@ all:: $(MAIN)
4 CC = gcc
5 RM = rm -f
6 CFLAGS = -g -O2 -Wall
7 +PKG_CONFIG = pkg-config
8
9 -include ../../../config.mak.autogen
10 -include ../../../config.mak
11
11 -INCS:=$(shell pkg-config --cflags gnome-keyring-1 glib-2.0)
12 -LIBS:=$(shell pkg-config --libs gnome-keyring-1 glib-2.0)
12 +INCS:=$(shell $(PKG_CONFIG) --cflags gnome-keyring-1 glib-2.0)
13 +LIBS:=$(shell $(PKG_CONFIG) --libs gnome-keyring-1 glib-2.0)
14
15 SRCS:=$(MAIN).c
16 OBJS:=$(SRCS:.c=.o)