make
Function parameters
Parameters
- step:*Step
- options:Step.MakeOptions
Functions in this namespace
Functions
= .install_file
Values
- base_id
- = .install_file
Source
Implementation
fn make(step: *Step, options: Step.MakeOptions) !void {
_ = options;
const b = step.owner;
const install_file: *InstallFile = @fieldParentPtr("step", step);
try step.singleUnchangingWatchInput(install_file.source);
const full_dest_path = b.getInstallPath(install_file.dir, install_file.dest_rel_path);
const p = try step.installFile(install_file.source, full_dest_path);
step.result_cached = p == .fresh;
}