diff options
author | Melody Horn <melody@boringcactus.com> | 2021-04-05 12:54:08 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2021-04-05 12:54:08 -0600 |
commit | 78a1b253af669858baf58c848e0141150ba3e1c4 (patch) | |
tree | f3fa61edf95d58158420a6fafcd750fce3b16fd1 /src | |
parent | 2f31215c0b4d7f8dbec94747a4f134d8eee70c44 (diff) | |
download | makers-78a1b253af669858baf58c848e0141150ba3e1c4.tar.gz makers-78a1b253af669858baf58c848e0141150ba3e1c4.zip |
set `MAKECMDGOALS`
Diffstat (limited to 'src')
-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, |