aboutsummaryrefslogtreecommitdiff
path: root/src/makefile/input.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/makefile/input.rs')
-rw-r--r--src/makefile/input.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/makefile/input.rs b/src/makefile/input.rs
index 7651306..ecf195a 100644
--- a/src/makefile/input.rs
+++ b/src/makefile/input.rs
@@ -503,8 +503,7 @@ impl<'a, 'parent, R: BufRead> MakefileReader<'a, 'parent, R> {
// don't interpret things like `.tmp: ; mkdir -p $@` as single-suffix rules
let inference_match = inference_match.and_then(|inference| {
- if (inference.s1.is_empty()
- || self.special_target_has_prereq(".SUFFIXES", inference.s1))
+ if self.special_target_has_prereq(".SUFFIXES", inference.s1)
&& (inference.s2.is_empty()
|| self.special_target_has_prereq(".SUFFIXES", inference.s2))
{
@@ -513,7 +512,7 @@ impl<'a, 'parent, R: BufRead> MakefileReader<'a, 'parent, R> {
log::info!(
"looks like {:?} is not a suffix rule because .SUFFIXES is {:?}",
inference,
- self.targets.get(".SUFFIXES")
+ self.targets.get(".SUFFIXES").map(|x| &x.prerequisites)
);
None
}