summaryrefslogtreecommitdiffstats
path: root/sys
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
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')
-rw-r--r--sys/conf/kern.post.mk2
-rw-r--r--sys/conf/kmod.mk4
-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
6 files changed, 12 insertions, 12 deletions
diff --git a/sys/conf/kern.post.mk b/sys/conf/kern.post.mk
index d4b7acc..bbadb1e 100644
--- a/sys/conf/kern.post.mk
+++ b/sys/conf/kern.post.mk
@@ -132,7 +132,7 @@ lint: ${LNFILES}
# in the a.out ld. For now, this works.
HACK_EXTRA_FLAGS?= -shared
hack.So: Makefile
- touch hack.c
+ :> hack.c
${CC} ${HACK_EXTRA_FLAGS} -nostdlib hack.c -o hack.So
rm -f hack.c
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk
index bba43e0..2a49aa6 100644
--- a/sys/conf/kmod.mk
+++ b/sys/conf/kmod.mk
@@ -192,7 +192,7 @@ ${FULLPROG}: ${OBJS}
.if defined(EXPORT_SYMS)
.if ${EXPORT_SYMS} != YES
.if ${EXPORT_SYMS} == NO
- touch export_syms
+ :> export_syms
.elif !exists(${.CURDIR}/${EXPORT_SYMS})
echo ${EXPORT_SYMS} > export_syms
.else
@@ -311,7 +311,7 @@ ${_src}:
CLEANFILES+= ${_src}
.if !target(${_src})
${_src}:
- touch ${.TARGET}
+ :> ${.TARGET}
.endif
.endfor
.endif
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