Name

mk_output_file — Output a file with variable substitutions

Synopsis

MODULES="... core ..."

mk_output_file INPUT=source_path OUTPUT=dest_path

mk_output_file dest_path

Options

MODE=mode

Sets the octal mode of the output file.

Description

Processes the given source_path, substituting anything of the form @VAR@ with the value of VAR, where VAR is an output variable as declared by mk_declare -o.

Both paths are resolved according to the usual target notation (see mk_resolve_target). In the most common usage, the source will be in the source directory and the destination will be in the object directory.

If the second form is used, the input file is assumed to be the same as the output file suffixed with .in.