summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-02-04 11:43:19 +0000
committerngie <ngie@FreeBSD.org>2015-02-04 11:43:19 +0000
commit0384d0521983fcab1910465a43aeb7574fb1f1a5 (patch)
treeb734b280eec14975c855d1c2c0097c5338dcb410 /share
parent6781e2a6de75bce1880a56765b5379b8ee4abb2d (diff)
downloadFreeBSD-src-0384d0521983fcab1910465a43aeb7574fb1f1a5.zip
FreeBSD-src-0384d0521983fcab1910465a43aeb7574fb1f1a5.tar.gz
Clean up more usb related files when MK_USB == no when dealing with
manpages, libraries, and binaries MFC after: 1 week X-MFC with: r278135 Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'share')
-rw-r--r--share/examples/Makefile17
-rw-r--r--share/man/man4/Makefile119
-rw-r--r--share/man/man9/Makefile7
-rw-r--r--share/misc/Makefile9
4 files changed, 86 insertions, 66 deletions
diff --git a/share/examples/Makefile b/share/examples/Makefile
index 7e0576c..29d3dca 100644
--- a/share/examples/Makefile
+++ b/share/examples/Makefile
@@ -18,7 +18,6 @@ LDIRS= BSD_daemon \
ipfw \
jails \
kld \
- libusb20 \
libvgl \
mdoc \
netgraph \
@@ -92,12 +91,6 @@ XFILES= BSD_daemon/FreeBSD.pfa \
kld/syscall/module/syscall.c \
kld/syscall/test/Makefile \
kld/syscall/test/call.c \
- libusb20/Makefile \
- libusb20/README \
- libusb20/util.c \
- libusb20/util.h \
- libusb20/bulk.c \
- libusb20/control.c \
libvgl/Makefile \
libvgl/demo.c \
mdoc/POSIX-copyright \
@@ -203,6 +196,16 @@ XFILES+= hast/ucarp.sh \
hast/vip-up.sh
.endif
+.if ${MK_USB} != "no"
+LDIRS+= libusb20
+XFILES+= libusb20/Makefile \
+ libusb20/README \
+ libusb20/util.c \
+ libusb20/util.h \
+ libusb20/bulk.c \
+ libusb20/control.c
+.endif
+
.if ${MACHINE_CPUARCH} == "amd64"
.if ${MK_BHYVE} != "no"
LDIRS+= bhyve
diff --git a/share/man/man4/Makefile b/share/man/man4/Makefile
index afdd16e..e6f21ba 100644
--- a/share/man/man4/Makefile
+++ b/share/man/man4/Makefile
@@ -503,56 +503,6 @@ MAN= aac.4 \
tws.4 \
tx.4 \
txp.4 \
- u3g.4 \
- uark.4 \
- uart.4 \
- uath.4 \
- ubsa.4 \
- ubsec.4 \
- ubser.4 \
- ubtbcmfw.4 \
- uchcom.4 \
- ucom.4 \
- ucycom.4 \
- udav.4 \
- udbp.4 \
- udp.4 \
- udplite.4 \
- uep.4 \
- ufm.4 \
- ufoma.4 \
- uftdi.4 \
- ugen.4 \
- uhci.4 \
- uhid.4 \
- uhso.4 \
- uipaq.4 \
- ukbd.4 \
- uled.4 \
- ulpt.4 \
- umass.4 \
- umcs.4 \
- umct.4 \
- umodem.4 \
- umoscom.4 \
- ums.4 \
- unix.4 \
- upgt.4 \
- uplcom.4 \
- ural.4 \
- urio.4 \
- urndis.4 \
- ${_urtw.4} \
- urtwn.4 \
- urtwnfw.4 \
- usb.4 \
- usb_template.4 \
- usb_quirk.4 \
- uslcom.4 \
- usfs.4 \
- utopia.4 \
- uvisor.4 \
- uvscom.4 \
vale.4 \
vga.4 \
vge.4 \
@@ -735,13 +685,6 @@ MLINKS+=tl.4 if_tl.4
MLINKS+=tun.4 if_tun.4
MLINKS+=tx.4 if_tx.4
MLINKS+=txp.4 if_txp.4
-MLINKS+=u3g.4 u3gstub.4
-MLINKS+=uath.4 if_uath.4
-MLINKS+=udav.4 if_udav.4
-MLINKS+=upgt.4 if_upgt.4
-MLINKS+=ural.4 if_ural.4
-MLINKS+=urndis.4 if_urndis.4
-MLINKS+=${_urtw.4} ${_if_urtw.4}
MLINKS+=vge.4 if_vge.4
MLINKS+=vlan.4 if_vlan.4
MLINKS+=vxlan.4 if_vxlan.4
@@ -883,4 +826,66 @@ _pflog.4= pflog.4
_pfsync.4= pfsync.4
.endif
+.if ${MK_USB} != "no"
+MAN+= \
+ u3g.4 \
+ uark.4 \
+ uart.4 \
+ uath.4 \
+ ubsa.4 \
+ ubsec.4 \
+ ubser.4 \
+ ubtbcmfw.4 \
+ uchcom.4 \
+ ucom.4 \
+ ucycom.4 \
+ udav.4 \
+ udbp.4 \
+ udp.4 \
+ udplite.4 \
+ uep.4 \
+ ufm.4 \
+ ufoma.4 \
+ uftdi.4 \
+ ugen.4 \
+ uhci.4 \
+ uhid.4 \
+ uhso.4 \
+ uipaq.4 \
+ ukbd.4 \
+ uled.4 \
+ ulpt.4 \
+ umass.4 \
+ umcs.4 \
+ umct.4 \
+ umodem.4 \
+ umoscom.4 \
+ ums.4 \
+ unix.4 \
+ upgt.4 \
+ uplcom.4 \
+ ural.4 \
+ urio.4 \
+ urndis.4 \
+ ${_urtw.4} \
+ urtwn.4 \
+ urtwnfw.4 \
+ usb.4 \
+ usb_quirk.4 \
+ usb_template.4 \
+ usfs.4 \
+ uslcom.4 \
+ utopia.4 \
+ uvisor.4 \
+ uvscom.4 \
+
+MLINKS+=u3g.4 u3gstub.4
+MLINKS+=uath.4 if_uath.4
+MLINKS+=udav.4 if_udav.4
+MLINKS+=upgt.4 if_upgt.4
+MLINKS+=ural.4 if_ural.4
+MLINKS+=urndis.4 if_urndis.4
+MLINKS+=${_urtw.4} ${_if_urtw.4}
+.endif
+
.include <bsd.prog.mk>
diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile
index ddd46aa..e841290 100644
--- a/share/man/man9/Makefile
+++ b/share/man/man9/Makefile
@@ -1,5 +1,7 @@
# $FreeBSD$
+.include <src.opts.mk>
+
MAN= accept_filter.9 \
accf_data.9 \
accf_dns.9 \
@@ -271,7 +273,6 @@ MAN= accept_filter.9 \
uidinfo.9 \
uio.9 \
unr.9 \
- usbdi.9 \
utopia.9 \
vaccess.9 \
vaccess_acl_nfs4.9 \
@@ -1593,6 +1594,9 @@ MLINKS+=uidinfo.9 uifind.9 \
uidinfo.9 uihold.9
MLINKS+=uio.9 uiomove.9 \
uio.9 uiomove_nofault.9
+
+.if ${MK_USB} != "no"
+MAN+= usbdi.9
MLINKS+=usbdi.9 usbd_do_request.9 \
usbdi.9 usbd_do_request_flags.9 \
usbdi.9 usbd_errstr.9 \
@@ -1644,6 +1648,7 @@ MLINKS+=usbdi.9 usbd_do_request.9 \
usbdi.9 usb_fifo_reset.9 \
usbdi.9 usb_fifo_softc.9 \
usbdi.9 usb_fifo_wakeup.9
+.endif
MLINKS+=vcount.9 count_dev.9
MLINKS+=vfsconf.9 vfs_modevent.9 \
vfsconf.9 vfs_register.9 \
diff --git a/share/misc/Makefile b/share/misc/Makefile
index 3e2afc4..16f803c 100644
--- a/share/misc/Makefile
+++ b/share/misc/Makefile
@@ -1,15 +1,22 @@
# From: @(#)Makefile 8.1 (Berkeley) 6/8/93
# $FreeBSD$
+.include <src.opts.mk>
+
.PATH: ${.CURDIR}/../../sys/dev/usb
FILES= ascii birthtoken bsd-family-tree committers-doc.dot committers-ports.dot \
committers-src.dot eqnchar flowers init.ee \
iso3166 iso639 latin1 man.template mdoc.template operator pci_vendors \
- scsi_modes usb_hid_usages usbdevs \
+ scsi_modes \
organization.dot
NO_OBJ=
FILESDIR= ${BINDIR}/misc
+.if ${MK_USB} != "no"
+FILES+= usb_hid_usages
+FILES+= usbdevs
+.endif
+
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud