rainwarrior wrote:
Banshaku wrote:
deps is not urgent yet: as long that I just clean the project, it won't be an issue (just slow a little bit on an old core 2 duo).
Well if you just made all .H files in your project a dependency of every .C file you'd should get the same result as having to do a clean rebuild for any header change without having to remember to do it.

Except that it's suboptimal.
make was invented so you didn't have to recompile everything. OTOH, compiling/assembling NES files is so fast that it's practically a non-issue.
Banshaku, did you look at my solution? I ask because it solves the problem automatically and transparently, which I'm pretty sure this is exactly what you want.
Heck, clone this repo (an old, uninteresting NES demo) :
https://github.com/Jarhmander/nesgame-001Now, go the directory and type
make. The NES file is assembled and linked. Let's pretend to the system that we modified include/mapper69.inc :
touch include/mapper69.inc. Now, type
make again. The files src/mapper69.s, src/nmi.s, src/resetbanks.s and foo.s (the main file... I know) are assembled, the rest are not because they do not depend on include/mapper.inc.
Isn't that what you wanted? Heck, if you don't know how to modify your makefile, because you don't fully understand my makefile (it's really short, but there's no comments too), then if your project is on GitHub, I can even modify your makefile and send you a pull request with the additions. Isn't that great?