From dba0d98ac8258e2d4b0eb4a063e4db0fc83ed29a Mon Sep 17 00:00:00 2001 From: ru Date: Sat, 4 Sep 2004 06:37:58 +0000 Subject: [PATCH] Let kmod.mk touch opt_*.h files as needed. Inspired by: imp's email --- sys/modules/fdc/Makefile | 2 -- sys/modules/linprocfs/Makefile | 3 --- sys/modules/msdosfs/Makefile | 3 --- sys/modules/nfs4client/Makefile | 3 +-- sys/modules/nfsclient/Makefile | 3 +-- sys/modules/owi/Makefile | 3 --- sys/modules/smbfs/Makefile | 6 ++---- 7 files changed, 4 insertions(+), 19 deletions(-) diff --git a/sys/modules/fdc/Makefile b/sys/modules/fdc/Makefile index a7f53ee2eedc..de92183ad240 100644 --- a/sys/modules/fdc/Makefile +++ b/sys/modules/fdc/Makefile @@ -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 diff --git a/sys/modules/linprocfs/Makefile b/sys/modules/linprocfs/Makefile index b31f9cb60bc7..98f9fcb55c36 100644 --- a/sys/modules/linprocfs/Makefile +++ b/sys/modules/linprocfs/Makefile @@ -7,7 +7,4 @@ SRCS= vnode_if.h \ linprocfs.c \ opt_compat.h -opt_compat.h: - touch ${.TARGET} - .include diff --git a/sys/modules/msdosfs/Makefile b/sys/modules/msdosfs/Makefile index 9ee84514a514..cca7fa69d6f0 100644 --- a/sys/modules/msdosfs/Makefile +++ b/sys/modules/msdosfs/Makefile @@ -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 diff --git a/sys/modules/nfs4client/Makefile b/sys/modules/nfs4client/Makefile index 723f571debf1..5d6a695f8842 100644 --- a/sys/modules/nfs4client/Makefile +++ b/sys/modules/nfs4client/Makefile @@ -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 diff --git a/sys/modules/nfsclient/Makefile b/sys/modules/nfsclient/Makefile index 11b83eb8f261..1d7565e719ea 100644 --- a/sys/modules/nfsclient/Makefile +++ b/sys/modules/nfsclient/Makefile @@ -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 diff --git a/sys/modules/owi/Makefile b/sys/modules/owi/Makefile index 85f5c7182d37..e3aef24de2c3 100644 --- a/sys/modules/owi/Makefile +++ b/sys/modules/owi/Makefile @@ -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 diff --git a/sys/modules/smbfs/Makefile b/sys/modules/smbfs/Makefile index 44a6a9e154c7..0c2b2973fdf3 100644 --- a/sys/modules/smbfs/Makefile +++ b/sys/modules/smbfs/Makefile @@ -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