From b233781efde7ac6f0e1a88bbf6003ac1103045b1 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Tue, 20 Apr 2021 19:30:14 -0600 Subject: yeet a leading ./ gnufully --- src/makefile/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/makefile/mod.rs') diff --git a/src/makefile/mod.rs b/src/makefile/mod.rs index 764328f..277fbd3 100644 --- a/src/makefile/mod.rs +++ b/src/makefile/mod.rs @@ -277,6 +277,9 @@ impl<'a> Makefile<'a> { // TODO implement .POSIX let follow_gnu = cfg!(feature = "full"); + #[cfg(feature = "full")] + let name = name.strip_prefix("./").unwrap_or(name); + let exists_but_infer_anyway = if follow_gnu { self.targets .get(name) -- cgit v1.2.3