aboutsummaryrefslogtreecommitdiff
path: root/src/makefile/macro.rs
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-04-03 11:29:04 -0600
committerMelody Horn <melody@boringcactus.com>2021-04-03 11:29:04 -0600
commit31a35ac86e41a698a5eafcc0b4cbfa64e2066c39 (patch)
treefdbea361b69eba7683b09d32e0a31ec4e9b33110 /src/makefile/macro.rs
parent2d87ed9a4dc8554bff082c97335b2a48659c7381 (diff)
downloadmakers-31a35ac86e41a698a5eafcc0b4cbfa64e2066c39.tar.gz
makers-31a35ac86e41a698a5eafcc0b4cbfa64e2066c39.zip
correctly handle conditional lines inside rule body
Diffstat (limited to 'src/makefile/macro.rs')
-rw-r--r--src/makefile/macro.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/makefile/macro.rs b/src/makefile/macro.rs
index f788edc..7fbb4a6 100644
--- a/src/makefile/macro.rs
+++ b/src/makefile/macro.rs
@@ -82,6 +82,10 @@ impl<'parent, 'lookup> Set<'parent, 'lookup> {
self.data.remove(name)
}
+ pub fn extend(&mut self, other: Set) {
+ self.data.extend(other.data);
+ }
+
pub fn expand(&self, text: &TokenString) -> Result<String> {
let mut result = String::new();
for token in text.tokens() {