3 ms·
Show HN: Running stuff when needed
- stephenr 9y agoRun some command when some prerequisite files change. Isn't that literally what make does?
- brudgers 9y agoNot 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.
- zzarcon 9y agoNot sure if I understand the question. Can you please elaborate? Thanks!
- stephenr 9y agoMake 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".
- brudgers 9y agorepository, https://github.com/zzarcon/run-when https://github.com/zzarcon/run-when
- aryamaan 9y agoPardon my ignorance but can't the same thing be achieved with git hooks?
- zzarcon 9y agoYeah! 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