build: use pkg-config to find out where to install the hwdb files. hwids-20130209.1
authorDiego Elio Pettenò <flameeyes@flameeyes.eu>
Sat, 9 Feb 2013 20:18:26 +0000 (21:18 +0100)
committerDiego Elio Pettenò <flameeyes@flameeyes.eu>
Sat, 9 Feb 2013 20:18:26 +0000 (21:18 +0100)
Makefile

index 60932e4a0e94792aacd8fa57cff4e0ae609cdc58..9400689821e6f3ef361959b79c3c3c0189fe42bc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -44,7 +44,7 @@ compress: pci.ids.gz usb.ids.gz
        gzip -c $< > $@
 
 MISCDIR=/usr/share/misc
-HWDBDIR=/usr/lib/udev/hwdb.d
+HWDBDIR=$(shell pkg-config --variable=udevdir udev)/hwdb.d
 DOCDIR=/usr/share/doc/hwids
 
 install-base: compress