   ast = pro.ast_squeeze ast
   minified = pro.gen_code ast
   fs.writeFileSync buildFiles.minified, minified
-  console.log 'Successfully minified source.'
+  console.timeEnd 'Minify'
 
 desc 'Clean build directory.'
 task 'clean', ['build/compiled'], ->
   console.log 'Cleaning build directory...'
-  jake.exec ['rm -rfv build/compiled/*'], ->
+  jake.exec ['rm -rfv build'], ->
     console.log 'Successfully cleaned build directory.'
     complete()
 , {async: true}

  console.log 'Pruning orphaned files...'
  orphanedDirs = []
  findit.sync 'build/compiled', (file) ->
    searchPath = file.replace /^build\/compiled/, 'src'
    searchPathCoffee = searchPath.replace /\.js$/, '.coffee'
    return if path.existsSync(searchPath) or path.existsSync(searchPathCoffee)
    fileStats = fs.statSync file
    if fileStats.isFile()
      fs.unlinkSync file

      # Collect directories to remove after files
      orphanedDirs.push file
  fs.rmdir dir for dir in orphanedDirs
  console.timeEnd 'Compile'

namespace 'compile', ->
  desc 'Compile a file from source.'
