Add a central method to deal with uuencoded files in the source tree.

Files will be stored as .uue and the name sans .uue will be added to
UUDECODE_FILES to extract them.
This commit is contained in:
jmc 2004-03-18 02:00:00 +00:00
parent b4d69b5716
commit ee24a149f4
2 changed files with 27 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.README,v 1.147 2004/03/09 19:08:17 skrll Exp $
# $NetBSD: bsd.README,v 1.148 2004/03/18 02:00:00 jmc Exp $
# @(#)bsd.README 8.2 (Berkeley) 4/2/94
This is the README file for the new make "include" files for the BSD
@ -541,6 +541,14 @@ BUILDSYMLINKS List of two word items:
For each lnsrc item, create a symlink named lntgt.
The lntgt symlinks are removed by the cleandir target.
UUDECODE_FILES List of files which are stored as <file>.uue in the source
tree. Each one will be decoded with ${TOOL_UUDECODE}.
The source files have a `.uue' suffix, the generated files do
not.
*NOTE: These files are simply decoded, with no install or other
rule applying implicitly except being added to the clean
target.
=-=-=-=-= bsd.gcc.mk =-=-=-=-=

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.files.mk,v 1.29 2004/01/29 01:48:45 lukem Exp $
# $NetBSD: bsd.files.mk,v 1.30 2004/03/18 02:00:00 jmc Exp $
.if !defined(_BSD_FILES_MK_)
_BSD_FILES_MK_=1
@ -77,4 +77,21 @@ cleanbuildsymlinks: .PHONY
.endif # }
#
# .uue -> "" handling (i.e. decode a given binary/object)
.if defined(UUDECODE_FILES) # {
.SUFFIXES: .uue
.uue:
${_MKTARGET_CREATE}
rm -f ${.TARGET}
${TOOL_UUDECODE} ${.IMPSRC}
realall: ${UUDECODE_FILES}
clean: cleanuudecodefiles
cleanuudecodefiles: .PHONY
rm -f ${UUDECODE_FILES}
.endif # }
.endif # !defined(_BSD_FILES_MK_)