diff --git a/fud2/fud-core/src/run.rs b/fud2/fud-core/src/run.rs index c30fbdabf..b782b838f 100644 --- a/fud2/fud-core/src/run.rs +++ b/fud2/fud-core/src/run.rs @@ -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(()) } }