Let kmod.mk touch opt_*.h files as needed.

Inspired by:	imp's email
This commit is contained in:
ru 2004-09-04 06:37:58 +00:00
parent 4a82cf2479
commit dba0d98ac8
7 changed files with 4 additions and 19 deletions

View File

@ -20,8 +20,6 @@ SRCS+= opt_fdc.h bus_if.h card_if.h device_if.h \
FDC_DEBUG?= 0 # 0/1
opt_fdc.h:
touch ${.TARGET}
.if ${FDC_DEBUG} > 0
echo "#define FDC_DEBUG 1" >> ${.TARGET}
.endif

View File

@ -7,7 +7,4 @@ SRCS= vnode_if.h \
linprocfs.c \
opt_compat.h
opt_compat.h:
touch ${.TARGET}
.include <bsd.kmod.mk>

View File

@ -8,7 +8,4 @@ SRCS= opt_msdosfs.h vnode_if.h \
msdosfs_vfsops.c msdosfs_vnops.c
EXPORT_SYMS= msdosfs_iconv
opt_msdosfs.h:
touch ${.TARGET}
.include <bsd.kmod.mk>

View File

@ -21,9 +21,8 @@ SRCS+= rpcclnt.c
# USE THE NEW IDMAPPER
CFLAGS+= -DUSE_NEW_IDMAPPER
opt_inet.h:
touch ${.TARGET}
.if ${NFS_INET} > 0
opt_inet.h:
echo "#define INET 1" > ${.TARGET}
.endif

View File

@ -22,9 +22,8 @@ SRCS+= rpcclnt.c
# USE THE NEW IDMAPPER
CFLAGS+= -DUSE_NEW_IDMAPPER
opt_inet.h:
touch ${.TARGET}
.if ${NFS_INET} > 0
opt_inet.h:
echo "#define INET 1" > ${.TARGET}
.endif

View File

@ -6,7 +6,4 @@ KMOD= if_owi
SRCS= opt_wi.h if_owi.c if_owi_pccard.c \
card_if.h device_if.h bus_if.h pci_if.h pccarddevs.h
opt_wi.h:
touch ${.TARGET}
.include <bsd.kmod.mk>

View File

@ -42,15 +42,13 @@ CFLAGS+= ${KDEBUG}
CFLAGS+= -DVNPRINT
.endif
opt_inet.h:
touch ${.TARGET}
.if ${SMB_INET} > 0
opt_inet.h:
echo "#define INET 1" > ${.TARGET}
.endif
opt_ipx.h:
touch ${.TARGET}
.if ${SMB_IPX} > 0
opt_ipx.h:
echo "#define IPX 1" > ${.TARGET}
.endif