7 ms·
Thirded - in a slightly different context. (See also: https://news.ycombinator.com/item?id=5275313#5276744 https://news.ycombinator.com/item?id=5275313#5276744
by mturmon 8y ago
Thirded - in a slightly different context. (See also: https://news.ycombinator.com/item?id=5275313#5276744 https://news.ycombinator.com/item?id=5275313#5276744)
I’m currently managing data reduction for a bunch of space mission simulations using make. A simulation dumps a bunch of files as python pickles, which are reduced into csv, and then made into plots, and then into webpages. Each phase of this is in the makefile. None of the transformation rules are standard compilation macros like you expect to find in a makefile.
The setup makes it easy to update all the summary webpages when more sims are run. Just “make html”. It re-accumulates all the summary metrics, redoes graphics, remakes webpages.
This is the kind of processing pipeline that is often done in shell or with driver scripts, but then you always have to remake everything. I like the setup a lot.
- nrclark 8y agoI do the exact same thing with oddball compilation tasks like this, such as compiling a Latex document or batch-processing pictures. I also use it to run code-formatters / static analysis tools while programming, sometimes with an secondary Makefile that has a name like 'maintainer.mk'.