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.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/makefile/mod.rs b/src/makefile/mod.rs
index 4a0c5e3..4d43d5b 100644
--- a/src/makefile/mod.rs
+++ b/src/makefile/mod.rs
@@ -82,6 +82,15 @@ impl<'a> Makefile<'a> {
eagerly_expanded: false,
},
);
+ macros.set(
+ "MAKEFLAGS".to_owned(),
+ Macro {
+ source: ItemSource::Builtin,
+ text: TokenString::text(args.makeflags()),
+ #[cfg(feature = "full")]
+ eagerly_expanded: false,
+ },
+ );
if !args.no_builtin_rules {
inference_rules.extend(builtin_inference_rules());
macros.add_builtins();