Partial rewrite of Makefile as Rakefile