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.