forked from gregkh/usbutils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
97 lines (75 loc) · 1.73 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (c) 2004 Thomas Sailer <[email protected]>
# Copyright (c) 2005-2006 David Brownell <[email protected]>
# Copyright (c) 2009 Kay Sievers <[email protected]>
# Copyright (c) 2009 Greg Kroah-Hartman <[email protected]>
SUBDIRS = \
usbhid-dump
AM_LDFLAGS = \
-Wl,--as-needed
data_DATA =
bin_PROGRAMS = \
lsusb
sbin_SCRIPTS =
bin_SCRIPTS = \
usb-devices \
lsusb.py
noinst_PROGRAMS = \
usbreset
lsusb_SOURCES = \
lsusb.c lsusb.h \
lsusb-t.c \
list.h \
desc-defs.c desc-defs.h \
desc-dump.c desc-dump.h \
names.c names.h \
sysfs.c sysfs.h \
usb-spec.h \
usbmisc.c usbmisc.h
lsusb_CPPFLAGS = \
$(AM_CPPFLAGS) $(LIBUSB_CFLAGS) $(UDEV_CFLAGS)
lsusb_LDADD = \
$(LIBUSB_LIBS) \
$(UDEV_LIBS)
usbreset_SOURCES = \
usbreset.c
man_MANS = \
lsusb.8 \
lsusb.py.1 \
usbhid-dump.8 \
usb-devices.1 \
usbreset.1
EXTRA_DIST = \
lsusb.8.in \
lsusb.py.1.in \
usbhid-dump.8.in \
usb-devices.1.in \
usb-devices \
lsusb.py.in \
usbreset.1.in \
usbreset.c \
LICENSES/GPL-2.0-only.txt \
LICENSES/GPL-3.0-only.txt
pkgconfig_DATA = usbutils.pc
lsusb.py: $(srcdir)/lsusb.py.in
sed 's|VERSION|$(VERSION)|g;s|@usbids@|$(datadir)/usb.ids|g' $< >$@
chmod 755 $@
lsusb.8: $(srcdir)/lsusb.8.in
sed 's|VERSION|$(VERSION)|g' $< >$@
lsusb.py.1: $(srcdir)/lsusb.py.1.in
sed 's|VERSION|$(VERSION)|g' $< >$@
usbhid-dump.8: $(srcdir)/usbhid-dump.8.in
sed 's|VERSION|$(VERSION)|g' $< >$@
usb-devices.1: $(srcdir)/usb-devices.1.in
sed 's|VERSION|$(VERSION)|g' $< >$@
usbreset.1: $(srcdir)/usbreset.1.in
sed 's|VERSION|$(VERSION)|g' $< >$@
DISTCLEANFILES = \
lsusb.py \
lsusb.py.1 \
lsusb.8 \
usb-devices.1 \
usbreset.1 \
usbhid-dump.8
distclean-local:
rm -rf autom4te.cache