Skip to content

Commit

Permalink
export phoney rule if no commands exist
Browse files Browse the repository at this point in the history
  • Loading branch information
jku20 committed Aug 8, 2024
1 parent 8945254 commit 381b4c5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fud2/fud-core/src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,11 @@ impl EmitBuild for RulesOp {
)?;
}

// If the sequences of rules was empty, output a phoney rule creating the desired output.
if self.cmds.is_empty() {
emitter.build_cmd(outputs, "phony", inputs, &[])?;
}

Ok(())
}
}
Expand Down

0 comments on commit 381b4c5

Please sign in to comment.