diff options
Diffstat (limited to 'src/makefile')
-rw-r--r-- | src/makefile/mod.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/makefile/mod.rs b/src/makefile/mod.rs index b887ad4..edc9b6b 100644 --- a/src/makefile/mod.rs +++ b/src/makefile/mod.rs @@ -68,6 +68,16 @@ impl<'a> Makefile<'a> { } } + #[cfg(feature = "full")] + { + let make_cmd_goals = args.targets().collect::<Vec<_>>(); + macros.set( + "MAKECMDGOALS".to_owned(), + MacroSource::Builtin, + TokenString::text(make_cmd_goals.join(" ")), + ); + } + Makefile { inference_rules: vec![], builtin_inference_rules: inference_rules, |