summaryrefslogtreecommitdiffstats
path: root/tools/Makefile.am
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2004-07-27 13:01:42 +0000
committerMarcel Holtmann <marcel@holtmann.org>2004-07-27 13:01:42 +0000
commitc37be1ab2480c43fdaec098f75ec5e25a65ceb59 (patch)
treef0eaa2724a40b1b253b320f90d70747a665b44f4 /tools/Makefile.am
parentd040d4f33ef0c6388ea70b4b9f3ef3537f0ed60a (diff)
Make more parts optional
Diffstat (limited to 'tools/Makefile.am')
-rw-r--r--tools/Makefile.am21
1 files changed, 16 insertions, 5 deletions
diff --git a/tools/Makefile.am b/tools/Makefile.am
index ca0514ce..79871391 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -2,7 +2,20 @@
# $Id$
#
-sbin_PROGRAMS = hciattach hciconfig hid2hci
+manfiles = hid2hci.8
+
+if HID2HCI
+xbindir = $(sbindir)
+xmandir = $(mandir)
+
+xbin_PROGRAMS = hid2hci
+
+hid2hci_LDADD = @USB_LIBS@
+
+xman_MANS = $(manfiles)
+endif
+
+sbin_PROGRAMS = hciattach hciconfig
bin_PROGRAMS = hcitool l2ping sdptool ciptool
@@ -22,12 +35,10 @@ ciptool_LDADD = @BLUEZ_LIBS@
ppporc_LDADD = @BLUEZ_LIBS@
-hid2hci_LDADD = @USB_LIBS@
-
AM_CFLAGS = @BLUEZ_CFLAGS@ @USB_CFLAGS@
-man_MANS = hciattach.8 hciconfig.8 hid2hci.8 hcitool.1 l2ping.1 sdptool.1 ciptool.1
+man_MANS = hciattach.8 hciconfig.8 hcitool.1 l2ping.1 sdptool.1 ciptool.1
-EXTRA_DIST = $(man_MANS)
+EXTRA_DIST = $(man_MANS) $(manfiles)
MAINTAINERCLEANFILES = Makefile.in