Add UUDECODE_FILES_RENAME_fn so the output from a uudecode can be renamed
potentially (usually when the .uue has a pathname contained within it)
This commit is contained in:
parent
ee24a149f4
commit
c667587326
@ -1,4 +1,4 @@
|
|||||||
# $NetBSD: bsd.README,v 1.148 2004/03/18 02:00:00 jmc Exp $
|
# $NetBSD: bsd.README,v 1.149 2004/03/18 03:26:55 jmc Exp $
|
||||||
# @(#)bsd.README 8.2 (Berkeley) 4/2/94
|
# @(#)bsd.README 8.2 (Berkeley) 4/2/94
|
||||||
|
|
||||||
This is the README file for the new make "include" files for the BSD
|
This is the README file for the new make "include" files for the BSD
|
||||||
@ -545,6 +545,8 @@ UUDECODE_FILES List of files which are stored as <file>.uue in the source
|
|||||||
tree. Each one will be decoded with ${TOOL_UUDECODE}.
|
tree. Each one will be decoded with ${TOOL_UUDECODE}.
|
||||||
The source files have a `.uue' suffix, the generated files do
|
The source files have a `.uue' suffix, the generated files do
|
||||||
not.
|
not.
|
||||||
|
|
||||||
|
UUDECODE_FILES_RENAME_fn Rename the output from the decode to the provided name.
|
||||||
|
|
||||||
*NOTE: These files are simply decoded, with no install or other
|
*NOTE: These files are simply decoded, with no install or other
|
||||||
rule applying implicitly except being added to the clean
|
rule applying implicitly except being added to the clean
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# $NetBSD: bsd.files.mk,v 1.30 2004/03/18 02:00:00 jmc Exp $
|
# $NetBSD: bsd.files.mk,v 1.31 2004/03/18 03:26:55 jmc Exp $
|
||||||
|
|
||||||
.if !defined(_BSD_FILES_MK_)
|
.if !defined(_BSD_FILES_MK_)
|
||||||
_BSD_FILES_MK_=1
|
_BSD_FILES_MK_=1
|
||||||
@ -79,13 +79,20 @@ cleanbuildsymlinks: .PHONY
|
|||||||
|
|
||||||
#
|
#
|
||||||
# .uue -> "" handling (i.e. decode a given binary/object)
|
# .uue -> "" handling (i.e. decode a given binary/object)
|
||||||
|
#
|
||||||
|
# UUDECODE_FILES - List of files which are stored in the source tree
|
||||||
|
# as <file>.uue and should be uudecoded.
|
||||||
|
#
|
||||||
|
# UUDECODE_FILES_RENAME_fn - For this file, rename it's output to the provided
|
||||||
|
# name (handled via -p and redirecting stdout)
|
||||||
|
|
||||||
.if defined(UUDECODE_FILES) # {
|
.if defined(UUDECODE_FILES) # {
|
||||||
.SUFFIXES: .uue
|
.SUFFIXES: .uue
|
||||||
|
|
||||||
.uue:
|
.uue:
|
||||||
${_MKTARGET_CREATE}
|
${_MKTARGET_CREATE}
|
||||||
rm -f ${.TARGET}
|
rm -f ${.TARGET}
|
||||||
${TOOL_UUDECODE} ${.IMPSRC}
|
${TOOL_UUDECODE} ${UUDECODE_FILES_RENAME_${.TARGET}:?-p:} ${.IMPSRC} ${UUDECODE_FILES_RENAME_${.TARGET}:?>:} ${UUDECODE_FILES_RENAME_${.TARGET}:U}
|
||||||
|
|
||||||
realall: ${UUDECODE_FILES}
|
realall: ${UUDECODE_FILES}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user