I'm using Rake to compile some annoying LaTeX stuff.
As a matter of fact, I'd like to clean my working dir before and after compiling.
So I defined two tasks: :clean
and :compile
.
Somehow naively, I wrote this:
task :default => [:clean, :compile, :clean]
but, as I discovered a little later while reading Rake's docs, this won't work because the array of tasks contains dependencies, not actions to make.
So, is there a clean way to execute a sequence of tasks without invoking them manually with Rake::Task("clean")
etc.?
Something similar to the dependencies array.