Getting ChatGPT to Write Accurate Makefile Targets Without Broken Dependencies
ChatGPT can draft Makefiles fast, but it consistently gets dependency chains wrong, mixes phony targets with real files, and ignores your actual build graph. Here's how to prompt it so the output actually works.