summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2006-08-14 13:28:53 +0000
committerdes <des@FreeBSD.org>2006-08-14 13:28:53 +0000
commitb21e8d833ba2e71f643b6457ab29e1857aaa51f3 (patch)
tree1e71be6b57099620ee5d40dccf4353f18eac3e0b /sys/modules
parent09aff4db4238a70852dd1e443af89c1a7b42e138 (diff)
downloadFreeBSD-src-b21e8d833ba2e71f643b6457ab29e1857aaa51f3.zip
FreeBSD-src-b21e8d833ba2e71f643b6457ab29e1857aaa51f3.tar.gz
Don't use touch when what is really meant is :> (create an empty file, or
truncate it if it exists) or :>> (ensure the file exists, but don't change it if it already does) Reviewed by: ru MFC after: 2 weeks
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/if_ef/Makefile8
-rw-r--r--sys/modules/if_ppp/Makefile6
-rw-r--r--sys/modules/netgraph/mppc/Makefile2
-rw-r--r--sys/modules/sound/sound/Makefile2
4 files changed, 9 insertions, 9 deletions
diff --git a/sys/modules/if_ef/Makefile b/sys/modules/if_ef/Makefile
index 8a83ac0..dc40213 100644
--- a/sys/modules/if_ef/Makefile
+++ b/sys/modules/if_ef/Makefile
@@ -19,16 +19,16 @@ CFLAGS+= -DEF_DEBUG
#ETHER_SNAP=
opt_inet.h:
- echo "#define INET 1" > opt_inet.h
+ echo "#define INET 1" > ${.TARGET}
opt_ipx.h:
- echo "#define IPX 1" > opt_ipx.h
+ echo "#define IPX 1" > ${.TARGET}
opt_ef.h:
- touch opt_ef.h
+ :> ${.TARGET}
.for frame in ETHER_II ETHER_8023 ETHER_8022 ETHER_SNAP
.if defined(${frame})
- echo "#define ${frame} 1" >> opt_ef.h
+ echo "#define ${frame} 1" >> ${.TARGET}
.endif
.endfor
.endif
diff --git a/sys/modules/if_ppp/Makefile b/sys/modules/if_ppp/Makefile
index 1be2e02..5ba5039 100644
--- a/sys/modules/if_ppp/Makefile
+++ b/sys/modules/if_ppp/Makefile
@@ -22,16 +22,16 @@ SRCS+= ppp_deflate.c
.if !defined(KERNBUILDDIR)
.if ${PPP_INET} > 0
opt_inet.h:
- echo "#define INET 1" >> ${.TARGET}
+ echo "#define INET 1" > ${.TARGET}
.endif
.if ${PPP_IPX} > 0
opt_ipx.h:
- echo "#define IPX ${PPP_IPX}" >> ${.TARGET}
+ echo "#define IPX ${PPP_IPX}" > ${.TARGET}
.endif
opt_ppp.h:
- touch ${.TARGET}
+ :> ${.TARGET}
.if ${PPP_BSDCOMP} > 0
echo "#define PPP_BSDCOMP ${PPP_BSDCOMP}" >> ${.TARGET}
.endif
diff --git a/sys/modules/netgraph/mppc/Makefile b/sys/modules/netgraph/mppc/Makefile
index 968e2ac..40b3717 100644
--- a/sys/modules/netgraph/mppc/Makefile
+++ b/sys/modules/netgraph/mppc/Makefile
@@ -20,7 +20,7 @@ SRCS+= sha1.c
.if !defined(KERNBUILDDIR)
opt_netgraph.h:
- touch ${.TARGET}
+ :> ${.TARGET}
.if ${NETGRAPH_MPPC_COMPRESSION} > 0
echo "#define NETGRAPH_MPPC_COMPRESSION 1" >> ${.TARGET}
.endif
diff --git a/sys/modules/sound/sound/Makefile b/sys/modules/sound/sound/Makefile
index 5615a0c..f2e6eae 100644
--- a/sys/modules/sound/sound/Makefile
+++ b/sys/modules/sound/sound/Makefile
@@ -22,7 +22,7 @@ EXPORT_SYMS= YES # XXX evaluate
# existing one from KERNBUILDDIR which possibly has DEV_ISA defined so
# sound.ko is always built without isadma support.
opt_isa.h:
- touch ${.TARGET}
+ :> ${.TARGET}
.else
SRCS+= sndbuf_dma.c
OpenPOWER on IntegriCloud