aboutsummaryrefslogtreecommitdiff
path: root/src/makefile/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/makefile/mod.rs')
-rw-r--r--src/makefile/mod.rs21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/makefile/mod.rs b/src/makefile/mod.rs
index 75805f6..5f4ca15 100644
--- a/src/makefile/mod.rs
+++ b/src/makefile/mod.rs
@@ -188,6 +188,17 @@ impl<'a> Makefile<'a> {
}
let line = COMMENT.replace(&line, "").into_owned();
+ #[cfg(feature = "full")]
+ if let Some(line) = ConditionalLine::from(&line, |t| self.expand_macros(t, None))? {
+ line.action(
+ conditional_stack.last(),
+ |name| self.macros.is_defined(name),
+ |t| self.expand_macros(t, None),
+ )?
+ .apply_to(&mut conditional_stack);
+ continue;
+ }
+
// skip lines if we need to
#[cfg(feature = "full")]
if conditional_stack
@@ -211,16 +222,6 @@ impl<'a> Makefile<'a> {
continue;
}
- #[cfg(feature = "full")]
- if let Some(line) = ConditionalLine::from(&line, |t| self.expand_macros(t, None))? {
- line.action(
- conditional_stack.last(),
- |name| self.macros.is_defined(name),
- |t| self.expand_macros(t, None),
- )?
- .apply_to(&mut conditional_stack);
- continue;
- }
if line.trim().is_empty() {
// handle blank lines
continue;