respect $PKG_CONFIG env var
authorMike Frysinger <vapier@gentoo.org>
Fri, 30 May 2014 15:14:02 +0000 (11:14 -0400)
committerMike Frysinger <vapier@gentoo.org>
Fri, 30 May 2014 15:14:02 +0000 (11:14 -0400)
Makefile

index 6b31f9f83ae200f8008964a62759bb48d9b5d779..92f6051a314e65c903aa41f241151e688a713131 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,7 @@ else
   Q=
 endif
 
+PKG_CONFIG ?= pkg-config
 ifeq "$(UDEV)" "yes"
   ALL_TARGETS=compress udev-hwdb
   INSTALL_TARGETS=install-base install-hwdb
@@ -47,7 +48,7 @@ compress: pci.ids.gz usb.ids.gz
        gzip -c $< > $@
 
 MISCDIR=/usr/share/misc
-HWDBDIR=$(shell pkg-config --variable=udevdir udev)/hwdb.d
+HWDBDIR=$(shell $(PKG_CONFIG) --variable=udevdir udev)/hwdb.d
 DOCDIR=/usr/share/doc/hwids
 
 install-base: compress