diff --git a/Rakefile b/Rakefile index e849857..4024903 100644 --- a/Rakefile +++ b/Rakefile @@ -5,12 +5,10 @@ require 'cliver' GEMSPEC = Gem::Specification.load('oga.gemspec') -LEXER_INPUT = 'lib/oga/xml/lexer.rl' -LEXER_OUTPUT = 'lib/oga/xml/lexer.rb' +LEXER_OUTPUT = 'lib/oga/xml/lexer.rb' +PARSER_OUTPUT = 'lib/oga/xml/parser.rb' -HTML_PARSER = 'lib/oga/xml/parser.rb' - -GENERATED_FILES = ['coverage', 'yardoc', LEXER_OUTPUT, HTML_PARSER] +GENERATED_FILES = ['coverage', 'yardoc', LEXER_OUTPUT, PARSER_OUTPUT] GENERATED_FILES.each do |file| CLEAN << file if File.exist?(file) diff --git a/task/parser.rake b/task/parser.rake index 2a84ff4..8b5a1a4 100644 --- a/task/parser.rake +++ b/task/parser.rake @@ -5,4 +5,4 @@ rule '.rb' => '.y' do |task| end desc 'Generates the parser' -task :parser => [HTML_PARSER] +task :parser => [PARSER_OUTPUT]