doc/cleanup.md

Cleanup

There are several levels of cleanup that apply both through using the cleanup method and for targets. They are:

clean includes everything from tidy and purge includes everything from clean.

By default, all targets are tidy, so they'll be removed by any cleanup operation. Targets with no rule (including implicit file targets), and fake targets all get the cleanup level never.

Targets can protected by adding the key:

  cleanup_level: <level>

within their target entry in the remakefile (at the same level as rule and depends:

target_name:
  depends: <list of target names>
  rule: function_name
  cleanup_level: <cleanup level>

Hooks

A remakefile can also contain targets tidy, clean and purge. However, these are treated specially:

Hopefully this will not often be needed.



richfitz/remake documentation built on May 27, 2019, 8:27 a.m.