diff options
author | peter <peter@FreeBSD.org> | 2001-02-04 08:23:14 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-02-04 08:23:14 +0000 |
commit | a7f86be978689732e2ae26968af70815ba13ca58 (patch) | |
tree | 5298468ec8fa3edd0bbe8e8e8f32e1f790ba22a3 | |
parent | fe7d89e3f2b2b7670c1064862cf079c9a565fe38 (diff) | |
download | FreeBSD-src-a7f86be978689732e2ae26968af70815ba13ca58.zip FreeBSD-src-a7f86be978689732e2ae26968af70815ba13ca58.tar.gz |
Zap some bad examples:
opt_foo.h:
touch opt_foo.h
.. is unnecessary - kmod.mk does this for us.
-rw-r--r-- | sys/modules/3dfx/Makefile | 3 | ||||
-rw-r--r-- | sys/modules/acpi/Makefile | 3 | ||||
-rw-r--r-- | sys/modules/acpica/Makefile | 3 | ||||
-rw-r--r-- | sys/modules/ar/Makefile | 3 | ||||
-rw-r--r-- | sys/modules/if_ppp/Makefile | 6 | ||||
-rw-r--r-- | sys/modules/ncp/Makefile | 6 | ||||
-rw-r--r-- | sys/modules/nfs/Makefile | 3 | ||||
-rw-r--r-- | sys/modules/nfsclient/Makefile | 3 | ||||
-rw-r--r-- | sys/modules/nfsserver/Makefile | 3 | ||||
-rw-r--r-- | sys/modules/oldcard/Makefile | 3 | ||||
-rw-r--r-- | sys/modules/osf1/Makefile | 3 | ||||
-rw-r--r-- | sys/modules/pecoff/Makefile | 4 | ||||
-rw-r--r-- | sys/modules/sr/Makefile | 3 | ||||
-rw-r--r-- | sys/modules/svr4/Makefile | 5 | ||||
-rw-r--r-- | sys/modules/sysvipc/sysvmsg/Makefile | 3 | ||||
-rw-r--r-- | sys/modules/sysvipc/sysvsem/Makefile | 3 | ||||
-rw-r--r-- | sys/modules/sysvipc/sysvshm/Makefile | 3 |
17 files changed, 10 insertions, 50 deletions
diff --git a/sys/modules/3dfx/Makefile b/sys/modules/3dfx/Makefile index 4973bb4..13d658a 100644 --- a/sys/modules/3dfx/Makefile +++ b/sys/modules/3dfx/Makefile @@ -20,7 +20,6 @@ TDFX_OPTS= "\#define TDFX_LINUX" #CFLAGS+= -DDEBUG opt_tdfx.h: - touch opt_tdfx.h - echo $(TDFX_OPTS) >> opt_tdfx.h + echo $(TDFX_OPTS) > opt_tdfx.h .include <bsd.kmod.mk> diff --git a/sys/modules/acpi/Makefile b/sys/modules/acpi/Makefile index e12a29d..ab07e12 100644 --- a/sys/modules/acpi/Makefile +++ b/sys/modules/acpi/Makefile @@ -42,9 +42,6 @@ SRCS+= device_if.h bus_if.h pci_if.h pcib_if.h isa_if.h CFLAGS+= -I${.CURDIR}/../../contrib/dev/acpica/Subsystem/Include -opt_acpi.h: Makefile - touch opt_acpi.h - opt_ddb.h: Makefile echo '#define DDB 1' >opt_ddb.h diff --git a/sys/modules/acpica/Makefile b/sys/modules/acpica/Makefile index e12a29d..ab07e12 100644 --- a/sys/modules/acpica/Makefile +++ b/sys/modules/acpica/Makefile @@ -42,9 +42,6 @@ SRCS+= device_if.h bus_if.h pci_if.h pcib_if.h isa_if.h CFLAGS+= -I${.CURDIR}/../../contrib/dev/acpica/Subsystem/Include -opt_acpi.h: Makefile - touch opt_acpi.h - opt_ddb.h: Makefile echo '#define DDB 1' >opt_ddb.h diff --git a/sys/modules/ar/Makefile b/sys/modules/ar/Makefile index 1fa18a9..43589a4 100644 --- a/sys/modules/ar/Makefile +++ b/sys/modules/ar/Makefile @@ -5,7 +5,4 @@ KMOD = if_ar SRCS = if_ar.c if_ar_pci.c SRCS += device_if.h bus_if.h pci_if.h isa_if.h opt_netgraph.h -opt_netgraph.h: - touch opt_netgraph.h - .include <bsd.kmod.mk> diff --git a/sys/modules/if_ppp/Makefile b/sys/modules/if_ppp/Makefile index 2becf7e..c845db2 100644 --- a/sys/modules/if_ppp/Makefile +++ b/sys/modules/if_ppp/Makefile @@ -23,15 +23,13 @@ SRCS+= ppp_deflate.c zlib.c CLEANFILES= ppp.h -opt_inet.h: - touch ${.TARGET} .if ${PPP_INET} > 0 +opt_inet.h: echo "#define INET 1" >> ${.TARGET} .endif -opt_ipx.h: - touch ${.TARGET} .if ${PPP_IPX} > 0 +opt_ipx.h: echo "#define IPX ${PPP_IPX}" >> ${.TARGET} .endif diff --git a/sys/modules/ncp/Makefile b/sys/modules/ncp/Makefile index 7c84e7f..22df62a 100644 --- a/sys/modules/ncp/Makefile +++ b/sys/modules/ncp/Makefile @@ -20,15 +20,13 @@ CFLAGS+= -DNCPBURST NOMAN= -opt_inet.h: - touch ${.TARGET} .if ${NCP_INET} > 0 +opt_inet.h: echo "#define INET 1" > ${.TARGET} .endif -opt_ipx.h: - touch ${.TARGET} .if ${NCP_IPX} > 0 +opt_ipx.h: echo "#define IPX 1" > ${.TARGET} .endif diff --git a/sys/modules/nfs/Makefile b/sys/modules/nfs/Makefile index 2582f9c..33d8e21 100644 --- a/sys/modules/nfs/Makefile +++ b/sys/modules/nfs/Makefile @@ -10,9 +10,8 @@ SRCS= vnode_if.h \ NFS_INET?= 1 # 0/1 - requires INET to be configured in kernel NOMAN= -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 2582f9c..33d8e21 100644 --- a/sys/modules/nfsclient/Makefile +++ b/sys/modules/nfsclient/Makefile @@ -10,9 +10,8 @@ SRCS= vnode_if.h \ NFS_INET?= 1 # 0/1 - requires INET to be configured in kernel NOMAN= -opt_inet.h: - touch ${.TARGET} .if ${NFS_INET} > 0 +opt_inet.h: echo "#define INET 1" > ${.TARGET} .endif diff --git a/sys/modules/nfsserver/Makefile b/sys/modules/nfsserver/Makefile index 2582f9c..33d8e21 100644 --- a/sys/modules/nfsserver/Makefile +++ b/sys/modules/nfsserver/Makefile @@ -10,9 +10,8 @@ SRCS= vnode_if.h \ NFS_INET?= 1 # 0/1 - requires INET to be configured in kernel NOMAN= -opt_inet.h: - touch ${.TARGET} .if ${NFS_INET} > 0 +opt_inet.h: echo "#define INET 1" > ${.TARGET} .endif diff --git a/sys/modules/oldcard/Makefile b/sys/modules/oldcard/Makefile index 28ec015..619979e 100644 --- a/sys/modules/oldcard/Makefile +++ b/sys/modules/oldcard/Makefile @@ -8,7 +8,4 @@ SRCS= pccard.c pcic.c pccard_beep.c pccard_nbk.c pcic_p.c \ power_if.h card_if.h power_if.c card_if.c NOMAN= -opt_pcic.h: - touch $@ - .include <bsd.kmod.mk> diff --git a/sys/modules/osf1/Makefile b/sys/modules/osf1/Makefile index 8a24226..a14551e 100644 --- a/sys/modules/osf1/Makefile +++ b/sys/modules/osf1/Makefile @@ -15,7 +15,4 @@ EXPORT_SYMS= _osf1 opt_compat.h: echo "#define COMPAT_43 1" > ${.TARGET} -opt_osf1.h opt_simos.h opt_nfs.h: - touch ${.TARGET} - .include <bsd.kmod.mk> diff --git a/sys/modules/pecoff/Makefile b/sys/modules/pecoff/Makefile index c109c6b..3af958e 100644 --- a/sys/modules/pecoff/Makefile +++ b/sys/modules/pecoff/Makefile @@ -8,9 +8,5 @@ KMOD= pecoff SRCS= imgact_pecoff.c opt_pecoff.h vnode_if.h CFLAGS+= -g -DDEBUG -#EXPORT_SYMS=_pecoff_mod - -opt_pecoff.h: Makefile - touch opt_pecoff.h .include <bsd.kmod.mk> diff --git a/sys/modules/sr/Makefile b/sys/modules/sr/Makefile index 243ff9d..7b173ab 100644 --- a/sys/modules/sr/Makefile +++ b/sys/modules/sr/Makefile @@ -5,7 +5,4 @@ KMOD = if_sr SRCS = if_sr.c if_sr_isa.c if_sr_pci.c SRCS += device_if.h bus_if.h pci_if.h isa_if.h opt_netgraph.h -opt_netgraph.h: - touch opt_netgraph.h - .include <bsd.kmod.mk> diff --git a/sys/modules/svr4/Makefile b/sys/modules/svr4/Makefile index 286b373..2a4523f 100644 --- a/sys/modules/svr4/Makefile +++ b/sys/modules/svr4/Makefile @@ -32,10 +32,9 @@ svr4_genassym.o: svr4_genassym.c svr4.h @ machine opt_compat.h: echo "#define COMPAT_43 1" > opt_compat.h -opt_svr4.h: - touch opt_svr4.h .if defined(DEBUG) - echo "#define DEBUG_SVR4 1" >> opt_svr4.h +opt_svr4.h: + echo "#define DEBUG_SVR4 1" > opt_svr4.h .endif .include <bsd.kmod.mk> diff --git a/sys/modules/sysvipc/sysvmsg/Makefile b/sys/modules/sysvipc/sysvmsg/Makefile index 96def2f..e60b8a2 100644 --- a/sys/modules/sysvipc/sysvmsg/Makefile +++ b/sys/modules/sysvipc/sysvmsg/Makefile @@ -5,7 +5,4 @@ KMOD= sysvmsg SRCS= sysv_msg.c opt_sysvipc.h -opt_sysvipc.h: - touch $@ - .include <bsd.kmod.mk> diff --git a/sys/modules/sysvipc/sysvsem/Makefile b/sys/modules/sysvipc/sysvsem/Makefile index a67c320..13fe06a 100644 --- a/sys/modules/sysvipc/sysvsem/Makefile +++ b/sys/modules/sysvipc/sysvsem/Makefile @@ -5,7 +5,4 @@ KMOD= sysvsem SRCS= sysv_sem.c opt_sysvipc.h -opt_sysvipc.h: - touch $@ - .include <bsd.kmod.mk> diff --git a/sys/modules/sysvipc/sysvshm/Makefile b/sys/modules/sysvipc/sysvshm/Makefile index c59d192..9276537 100644 --- a/sys/modules/sysvipc/sysvshm/Makefile +++ b/sys/modules/sysvipc/sysvshm/Makefile @@ -6,7 +6,4 @@ KMOD= sysvshm OPTS= opt_sysvipc.h opt_compat.h opt_rlimit.h SRCS= sysv_shm.c $(OPTS) -$(OPTS): - touch $@ - .include <bsd.kmod.mk> |