diff options
author | Melody Horn <melody@boringcactus.com> | 2021-04-20 19:30:14 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2021-04-20 19:30:14 -0600 |
commit | b233781efde7ac6f0e1a88bbf6003ac1103045b1 (patch) | |
tree | 1bc679cbdfd92b368f5c443477c0a5e422c579b6 /src | |
parent | 706536abe03c5cdfd73d1aa3f34f8b4d40680b79 (diff) | |
download | makers-b233781efde7ac6f0e1a88bbf6003ac1103045b1.tar.gz makers-b233781efde7ac6f0e1a88bbf6003ac1103045b1.zip |
yeet a leading ./ gnufully
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) |