Show HN: Running stuff when needed
medium.com
Show HN: Running stuff when needed
1–8 of 8 posts
Re: Show HN: Running stuff when needed
#2Run some command when some prerequisite files change.
Isn't that literally what make does?
Re: Show HN: Running stuff when needed
#3repository, https://github.com/zzarcon/run-when
Re: Show HN: Running stuff when needed
#4Run 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.
Re: Show HN: Running stuff when needed
#5Pardon my ignorance but can't the same thing be achieved with git hooks?
Re: Show HN: Running stuff when needed
#6Pardon 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
Re: Show HN: Running stuff when needed
#7Run some command when some prerequisite files change. Isn't that literally what make does?
Not sure if I understand the question. Can you please elaborate? Thanks!
Re: Show HN: Running stuff when needed
#8Run some command when some prerequisite files change. Isn't that literally what make does?
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".