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
This commit is contained in:
parent
09aff4db42
commit
b21e8d833b
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user