Extending the clean action

If your project creates files or directories in addition to the generated project files, it can be handy to remove them as part of the clean action. To do so, simply wrap your cleanup logic in an if-then so it only runs when cleaning.

if _ACTION == "clean" then
  os.rmdir("bin")
  -- more cleanup here
end