(no title)
bigmanwalter | 2 years ago
If you dedicate a specific directory for all your JSON, then you can depend on that directory and it will do what you're asking for.
bigmanwalter | 2 years ago
If you dedicate a specific directory for all your JSON, then you can depend on that directory and it will do what you're asking for.
schemescape|2 years ago
Note: in my case, I have a directory structure that's a few levels deep, with an non-prescriptive set of directories (one subdirectory per category, with no limit on the set of categories). Maybe Make handles directories better than I realized (I'd always seen it recommended to use a Makefile in each directory--something I want to avoid).
mturmon|2 years ago
I have used this method (directory mod-time triggering, let's say) for a simulation-summarizer which analyzes whatever pile of simulation-output-files happen to be in a given directory. If you run a new simulation, the directory changes and the analysis is re-done by running "make".
I used the Gnu make $(wildcard ...) for the template expansion, instead of using shell expansion. This is to take care of the no-file case, so that jsons/*.json will expand to nothing rather than to the literal jsons/*.json (which does not exist).
bigmanwalter|2 years ago
The approach being recommended in the sibling comment to this is quite nice!