aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2024-12-16 21:51:03 -0700
committerMelody Horn <melody@boringcactus.com>2024-12-16 21:51:03 -0700
commit46cbd2994ac20b5ee02072cf2fe37f3c68ca934c (patch)
tree27202088d778d92f493ed1988cb0d122e50f9462 /src
parent2ca7f38b6d27b961919032aa675b02a9c5da73c0 (diff)
downloadmakers-46cbd2994ac20b5ee02072cf2fe37f3c68ca934c.tar.gz
makers-46cbd2994ac20b5ee02072cf2fe37f3c68ca934c.zip
provide MAKEFLAGS as macro
Diffstat (limited to 'src')
-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();