diff options
author | Melody Horn <melody@boringcactus.com> | 2024-11-11 17:15:08 -0700 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2024-11-11 17:15:08 -0700 |
commit | 4f9299b4639802e05e1cb27d8eb40305ff8e110e (patch) | |
tree | 0da5529c68c82e97aed67d842e50f6285e79e6c2 /src/makefile/parse.rs | |
parent | fbbcf325b8bbe72f924da6a7cdb128d973ef0026 (diff) | |
download | makers-4f9299b4639802e05e1cb27d8eb40305ff8e110e.tar.gz makers-4f9299b4639802e05e1cb27d8eb40305ff8e110e.zip |
implement rule-specific macros for targets
Diffstat (limited to 'src/makefile/parse.rs')
-rw-r--r-- | src/makefile/parse.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/makefile/parse.rs b/src/makefile/parse.rs new file mode 100644 index 0000000..191b7e0 --- /dev/null +++ b/src/makefile/parse.rs @@ -0,0 +1,19 @@ +use super::Macro; +use super::TokenString; + +#[derive(Debug)] +pub struct MacroAssignment { + pub name: String, + pub value: TokenString, + #[cfg(feature = "full")] + pub expand_value: bool, + #[cfg(feature = "full")] + pub skip_if_defined: bool, + #[cfg(feature = "full")] + pub append: bool, +} + +pub enum MacroAssignmentOutcome { + Set, + AppendedTo(Macro), +} |