diff options
author | Melody Horn <melody@boringcactus.com> | 2024-12-16 21:51:03 -0700 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2024-12-16 21:51:03 -0700 |
commit | 46cbd2994ac20b5ee02072cf2fe37f3c68ca934c (patch) | |
tree | 27202088d778d92f493ed1988cb0d122e50f9462 | |
parent | 2ca7f38b6d27b961919032aa675b02a9c5da73c0 (diff) | |
download | makers-46cbd2994ac20b5ee02072cf2fe37f3c68ca934c.tar.gz makers-46cbd2994ac20b5ee02072cf2fe37f3c68ca934c.zip |
provide MAKEFLAGS as macro
-rw-r--r-- | src/makefile/mod.rs | 9 |
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(); |