Skip to content

Commit

Permalink
add usbutils.pc file to point to database file
Browse files Browse the repository at this point in the history
  • Loading branch information
kaysievers committed May 6, 2009
1 parent 578c723 commit 06dde11
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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 $< > $@
Expand All @@ -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
5 changes: 5 additions & 0 deletions usbutils.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Name: usbutils
Description: USB device database
Version: @VERSION@

usbids=@usbids@

0 comments on commit 06dde11

Please sign in to comment.