summaryrefslogtreecommitdiff
path: root/lib/rake/phony.rb
blob: 29633ae06609db6ad093f46f0b16e09832a52c1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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

Rake::Task[:phony].tap do |task|
  def task.timestamp # :nodoc:
    Time.at 0
  end
end