aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rake/phony.rb
blob: 0552c26a33d8a18ba16d58ad389196cd8da62daa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Defines a :phony task that you can use as a dependency. This allows
# file-based tasks to use non-file-based tasks as prerequisites
# without forcing them to rebuild.
#
# See FileTask#out_of_date? and Task#timestamp for more info.

require 'rake'

task :phony

def (Rake::Task[:phony]).timestamp
  Time.at 0
end