diff options
author | Melody Horn <melody@boringcactus.com> | 2021-04-03 23:04:25 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2021-04-03 23:04:25 -0600 |
commit | 4fbb59ed66cfb614531a8b8c63ea54aa7e820620 (patch) | |
tree | 78f08ddd48f87e4336673b9a3717be502d734b20 /src/makefile | |
parent | 93e6ecd57dcfebc25b01cc2568ffb8f88782aec0 (diff) | |
download | makers-4fbb59ed66cfb614531a8b8c63ea54aa7e820620.tar.gz makers-4fbb59ed66cfb614531a8b8c63ea54aa7e820620.zip |
implement .PHONY special target
Diffstat (limited to 'src/makefile')
-rw-r--r-- | src/makefile/target.rs | 4 |
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) |