-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile.am
73 lines (56 loc) · 1.2 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
AM_LDFLAGS = \
-Wl,--as-needed
data_DATA = \
usb.ids
if HAVE_ZLIB
data_DATA += usb.ids.gz
endif
sbin_PROGRAMS = \
lsusb
sbin_SCRIPTS = \
update-usbids.sh
bin_SCRIPTS = \
usb-devices
lsusb_SOURCES = \
lsusb.c \
lsusb-t.c \
list.h \
names.c names.h \
devtree.c devtree.h \
usbmisc.c usbmisc.h
lsusb_CPPFLAGS = \
$(AM_CPPFLAGS) $(LIBUSB_CFLAGS) \
-DDATADIR=\"$(datadir)\"
lsusb_LDADD = \
$(LIBUSB_LIBS)
man_MANS = \
lsusb.8 \
usb-devices.1
EXTRA_DIST = \
usb.ids \
update-usbids.sh.in \
lsusb.8.in \
usb-devices.1.in \
usb-devices \
usbutils.pc.in
usb.ids.gz: $(srcdir)/usb.ids
gzip -c -9 $< > $@
update-usbids.sh: $(srcdir)/update-usbids.sh.in
sed 's|@usbids@|$(datadir)/usb.ids|g' $< >$@
chmod 755 $@
lsusb.8: $(srcdir)/lsusb.8.in
sed 's|VERSION|$(VERSION)|g;s|@usbids@|$(datadir)/usb.ids|g' $< >$@
usb-devices.1: $(srcdir)/usb-devices.1.in
sed 's|VERSION|$(VERSION)|g' $< >$@
pkgconfigdir = $(datadir)/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 \
usb-devices.1 \
update-usbids.sh \
usbutils.pc
distclean-local:
rm -rf autom4te.cache