News for hackers. Stuff that matters.
Re:Show HN: My C compiler compiled itself by anyfoo on Wednesday December 04, 2024 @12:54AM (#42314800)
Have a step that takes the SHA256 or similar of $CC, make that a dependency. You’d need slightly more advanced make features if you want to make it “pretty” (and not just, say, touch a file through some shell code comparison), but this is a slightly more advanced request.

Or potentially just specify the path to $CC itself as dependency? Presumably, if the C compiler changes, the timestamp of its executable does too. (Bad if it goes backwards, though.)

Re:Show HN: My C compiler compiled itself by yjftsjthsd-h on Wednesday December 04, 2024 @01:44AM (#42314982)
> Have a step that takes the SHA256 or similar of $CC, make that a dependency.

Careful, one more step and we'll start recreating nix in Makefiles;)

(Wait, could we? Should we?)