From 46cbd2994ac20b5ee02072cf2fe37f3c68ca934c Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Mon, 16 Dec 2024 21:51:03 -0700 Subject: provide MAKEFLAGS as macro --- src/makefile/mod.rs | 9 +++++++++ 1 file changed, 9 insertions(+) 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(); -- cgit v1.2.3