In UUDECODE_FILES, always use -p to a temporary file and then rename
appropriately. This simplifies the rule (IMHO), and removes the use of :? which is buggy on older makes...
This commit is contained in:
parent
92e4dbdd94
commit
466d8fda9a
|
@ -1,4 +1,4 @@
|
||||||
# $NetBSD: bsd.files.mk,v 1.36 2004/05/13 13:05:53 lukem Exp $
|
# $NetBSD: bsd.files.mk,v 1.37 2004/05/17 12:58:17 lukem Exp $
|
||||||
|
|
||||||
.if !defined(_BSD_FILES_MK_)
|
.if !defined(_BSD_FILES_MK_)
|
||||||
_BSD_FILES_MK_=1
|
_BSD_FILES_MK_=1
|
||||||
|
@ -121,13 +121,13 @@ cleanbuildsymlinks: .PHONY
|
||||||
|
|
||||||
.uue:
|
.uue:
|
||||||
${_MKTARGET_CREATE}
|
${_MKTARGET_CREATE}
|
||||||
rm -f ${.TARGET}
|
rm -f ${.TARGET} ${.TARGET}.tmp
|
||||||
${TOOL_UUDECODE} ${UUDECODE_FILES_RENAME_${.TARGET}:?-p:} ${.IMPSRC} ${UUDECODE_FILES_RENAME_${.TARGET}:?>:} ${UUDECODE_FILES_RENAME_${.TARGET}:U}
|
${TOOL_UUDECODE} -p ${.IMPSRC} > ${.TARGET}.tmp \
|
||||||
${UUDECODE_FILES_RENAME_${.TARGET}:?touch ${.TARGET}:@true}
|
&& mv ${.TARGET}.tmp ${UUDECODE_FILES_RENAME_${.TARGET}:U${.TARGET}}
|
||||||
|
|
||||||
realall: ${UUDECODE_FILES}
|
realall: ${UUDECODE_FILES}
|
||||||
|
|
||||||
CLEANUUDECODE_FILES=${UUDECODE_FILES}
|
CLEANUUDECODE_FILES=${UUDECODE_FILES} ${UUDECODE_FILES:=.tmp}
|
||||||
.for i in ${UUDECODE_FILES}
|
.for i in ${UUDECODE_FILES}
|
||||||
CLEANUUDECODE_FILES+=${UUDECODE_FILES_RENAME_${i}}
|
CLEANUUDECODE_FILES+=${UUDECODE_FILES_RENAME_${i}}
|
||||||
.endfor
|
.endfor
|
||||||
|
|
Loading…
Reference in New Issue