Skip to content
Browse files

Rakefile: clobber output files before making PDF.

  • Loading branch information...
1 parent 9f5cf90 commit bbb815f72b3c59bab5bc4e2f6b8889bd1f6a2057 @runpaint committed May 10, 2009
Showing with 4 additions and 1 deletion.
  1. +4 −1 Rakefile
View
5 Rakefile
@@ -1,6 +1,9 @@
+require 'rake/clean'
+
SOURCE_HTML = FileList['text/**/*.html']
IMAGES = FileList['images/*']
OUTPUT_HTML = 'output/all.html'
+CLOBBER.include('output')
directory "output"
@@ -27,7 +30,7 @@ file 'output/vim-recipes.pdf' => OUTPUT_HTML do |t|
end
desc "Generate the PDF"
-task :pdf => 'output/vim-recipes.pdf'
+task :pdf => [:clobber, 'output/vim-recipes.pdf']
desc "Check for broken internal links"
task :ilinks do |t|

0 comments on commit bbb815f

Please sign in to comment.
Something went wrong with that request. Please try again.