From 4fbb59ed66cfb614531a8b8c63ea54aa7e820620 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Sat, 3 Apr 2021 23:04:25 -0600 Subject: implement .PHONY special target --- src/makefile/target.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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) -- cgit v1.2.3