aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/makefile/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/makefile/mod.rs b/src/makefile/mod.rs
index f62249b..e13ecff 100644
--- a/src/makefile/mod.rs
+++ b/src/makefile/mod.rs
@@ -266,7 +266,8 @@ impl<'a> Makefile<'a> {
// filename whose existence allowed the inference rule to be
// chosen for the target. In the .DEFAULT rule, the $< macro
// shall evaluate to the current target name.
- target.prerequisites.clone()
+ // TODO make that actually be the case (rn exists_but_inferring_anyway might fuck that up)
+ vec![target.prerequisites.get(0).cloned().unwrap_or_default()]
} else if name.starts_with('*') {
// The $* macro shall evaluate to the current target name with
// its suffix deleted.