• Michael Shigorin's avatar
    lib/clean.mk: post-build cleanup revisited · 3a8af6b5
    Michael Shigorin authored
    The prerequisites for a cleanup after a successful build
    were somewhat weird at this point; now the rules are:
    - if DEBUG level is more than 1 or CHECK is set, don't do it;
    - otherwise if at least one of the following conditions is true:
      + there's more than one target being built in a row;
      + the build was run by e.g. alterator-mkimage;
      + metaprofile directory is read only
      ...then do a distclean.
    
    If these are still weird or feel unsuitable for profile hacking,
    drop me a note (or a patch).
    3a8af6b5
params.txt 5.11 KB