aboutsummaryrefslogtreecommitdiff
path: root/src/makefile/target.rs
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-04-03 23:04:25 -0600
committerMelody Horn <melody@boringcactus.com>2021-04-03 23:04:25 -0600
commit4fbb59ed66cfb614531a8b8c63ea54aa7e820620 (patch)
tree78f08ddd48f87e4336673b9a3717be502d734b20 /src/makefile/target.rs
parent93e6ecd57dcfebc25b01cc2568ffb8f88782aec0 (diff)
downloadmakers-4fbb59ed66cfb614531a8b8c63ea54aa7e820620.tar.gz
makers-4fbb59ed66cfb614531a8b8c63ea54aa7e820620.zip
implement .PHONY special target
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 549c95c..ad46884 100644
--- a/src/makefile/target.rs
+++ b/src/makefile/target.rs
@@ -42,6 +42,10 @@ impl Target {
if self.already_updated.get() {
return true;
}
+ #[cfg(feature = "full")]
+ if file.special_target_has_prereq(".PHONY", &self.name) {
+ return false;
+ }
let exists = metadata(&self.name).is_ok();
let newer_than_all_dependencies = self.prerequisites.iter().all(|t| {
file.get_target(t)