Skip to content
Browse files

add usbutils.pc file to point to database file

  • Loading branch information...
1 parent 578c723 commit 06dde112b8b242a4f87d4179e13225bad453225a @kaysievers kaysievers committed May 6, 2009
Showing with 15 additions and 2 deletions.
  1. +10 −2 Makefile.am
  2. +5 −0 usbutils.pc.in
View
12 Makefile.am
@@ -34,7 +34,8 @@ man_MANS = \
EXTRA_DIST = \
usb.ids \
update-usbids.sh.in \
- lsusb.8.in
+ lsusb.8.in \
+ usbutils.pc.in
usb.ids.gz: $(srcdir)/usb.ids
gzip -c -9 $< > $@
@@ -46,10 +47,17 @@ update-usbids.sh: $(srcdir)/update-usbids.sh.in
lsusb.8: $(srcdir)/lsusb.8.in
sed 's|@usbids@|$(datadir)/usb.ids|g' $< >$@
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = usbutils.pc
+
+usbutils.pc: $(srcdir)/usbutils.pc.in
+ sed 's|@usbids@|$(datadir)/usb.ids|g;s|@VERSION[@]|$(VERSION)|g' $< >$@
+
DISTCLEANFILES = \
usb.ids.gz \
lsusb.8 \
- update-usbids.sh
+ update-usbids.sh \
+ usbutils.pc
distclean-local:
rm -rf autom4te.cache
View
5 usbutils.pc.in
@@ -0,0 +1,5 @@
+Name: usbutils
+Description: USB device database
+Version: @VERSION@
+
+usbids=@usbids@

0 comments on commit 06dde11

Please sign in to comment.
Something went wrong with that request. Please try again.