diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/makefile/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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) |