From 680fca264f442bc91bf877115adc5010bc142229 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Sun, 4 Apr 2021 11:57:10 -0600 Subject: fix $< so it's only one file --- src/makefile/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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. -- cgit v1.2.3