There is no way to do this directly with make, but you could do it with a wrapper in action for the rule:
target: prereq touch --date='Oct 2, 2011' .timestamp if [ $< -nt .timestamp ]; then \ command to rebuild target; \ fi
Note the use of \ so that the if command if one command. You can also use else to consider when the target is out of date and the prereq is also old.
source share