File tree 2 files changed +6
-7
lines changed
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 90
90
task "#{ path } .gem" => package_parser_files
91
91
92
92
desc "Generate all files use racc and kpeg"
93
- task :generate do
94
- unless ENV . key? ( 'BUNDLE_GEMFILE' )
93
+ task :generate => parsed_files
94
+
95
+ unless ENV . key? ( 'BUNDLE_GEMFILE' )
96
+ task :gem_install do
95
97
Gem . install 'racc' , '> 1.4.10'
96
98
Gem . install 'kpeg' , '>= 1.3.3'
97
99
end
98
-
99
- parsed_files . each do |file_name |
100
- Rake ::Task [ file_name ] . invoke
101
- end
100
+ file parsed_files => :gem_install
102
101
end
103
102
104
103
task :clean do
Original file line number Diff line number Diff line change 2
2
3
3
# Generate all parse files using racc and kpeg. This is not necessary for regular gem installation, but it is when
4
4
# installing RDoc from the git source. Without this, the generated parse files would not exist and RDoc would not work
5
- system ( "rake generate" ) if Dir . exist? ( File . join ( ".." , ".." , " .git") )
5
+ system ( "rake generate" ) if File . exist? ( "../../ .git" )
6
6
7
7
# RDoc doesn't actually have a native extension, but a Makefile needs to exist in order to successfully install the gem
8
8
require "mkmf"
You can’t perform that action at this time.
0 commit comments