Hacker News new | ask | show | jobs
Show HN: Running stuff when needed (medium.com)
6 points by zzarcon 3142 days ago
3 comments

Run some command when some prerequisite files change.

Isn't that literally what make does?

Not to make to fine a point of it but Make doesn't make sense in every situation or to every programmer. Sometimes the learning curve for Make makes writing one's own build tool make sense. Sometimes it doesn't make sense either and learning Make may make Make a better option for making software over the long term.
Not sure if I understand the question. Can you please elaborate? Thanks!
Make is an existing, well documented tool that exists specifically to build targets (run commands) only when the prerequisites for that target have changed.

My "question" was rhetorical. The implied actual question is "why this, when make exists".

Pardon my ignorance but can't the same thing be achieved with git hooks?
Yeah! You can enforce that using git hooks, but you will still need to place some logic to check which files has been changed right and what to do in those scenarios