Skip to content

v1.1.1 - Intelligent automatic detection and insertion of `.PHONY` declarations

Choose a tag to compare

@EbodShojaei EbodShojaei released this 20 Jun 21:20
· 110 commits to main since this release

The detection uses dynamic analysis of recipe commands rather than hardcoded target names:

  • Command Analysis: Examines what each target's recipe actually does
  • File Creation Detection: Identifies if commands create files with the target name
  • Pattern Recognition: Understands compilation patterns, redirections, and common tools

Update mbake (pip install --upgrade mbake), the config (via ~/.bake.toml), and try out the feature by enabling auto_insert_phony_declarations to true.