aboutsummaryrefslogtreecommitdiff
path: root/src/makefile/target.rs
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2024-11-15 20:49:47 -0700
committerMelody Horn <melody@boringcactus.com>2024-11-15 20:49:47 -0700
commitbdac807c274d7b87cec2502f7981c16b7fceec7b (patch)
tree8112c8dc70f6fa56635c6e501e7da9d64f483c70 /src/makefile/target.rs
parent3ff7fec59481cda6d01e57bdd341c9a0efbcc2a0 (diff)
downloadmakers-bdac807c274d7b87cec2502f7981c16b7fceec7b.tar.gz
makers-bdac807c274d7b87cec2502f7981c16b7fceec7b.zip
implement secondary expansion
Diffstat (limited to 'src/makefile/target.rs')
-rw-r--r--src/makefile/target.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/makefile/target.rs b/src/makefile/target.rs
index e106c54..9f81802 100644
--- a/src/makefile/target.rs
+++ b/src/makefile/target.rs
@@ -152,6 +152,10 @@ impl StaticTargetSet {
self.data.insert(target.name.clone(), target);
}
}
+
+ pub fn has(&self, name: &str) -> bool {
+ self.data.contains_key(name)
+ }
}
impl From<StaticTargetSet> for HashMap<String, Target> {