13

So when you run make without changing any of the dependencies it says target upto date. I was curious how it keeps track of changes to the files, does it have some kind of revision control system under the hood. If so, where are these files stored?

abc def foo bar
  • 2,360
  • 6
  • 30
  • 41

1 Answers1

25

No, it just compares the last-modified dates of the files.

If the target is newer than all of its dependencies, it's up to date. Otherwise the relevant dependencies are re-built.

unwind
  • 391,730
  • 64
  • 469
  • 606
  • Also see [this](https://stackoverflow.com/a/2145605/4179032) for "commands" (not representing physical files) like `clean` and `install` as targets – Leponzo Jul 03 '21 at 05:11