aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/makefile/macro.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/makefile/macro.rs b/src/makefile/macro.rs
index 4d58e07..f62d21d 100644
--- a/src/makefile/macro.rs
+++ b/src/makefile/macro.rs
@@ -113,7 +113,10 @@ impl<'parent, 'lookup> Set<'parent, 'lookup> {
self.lookup_internal(name)?
} else {
self.get(name).map_or_else(
- || Ok(String::new()),
+ || {
+ log::warn!("undefined macro {}", name);
+ Ok(String::new())
+ },
|(_, macro_value)| self.expand(macro_value),
)?
};