I suppose that could be done, but it's difficult to make it work fully. A gri file can open a data file that contains the name of a second data file to be used; in such a circumstance, your suggestion could not be done.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Would it be possible for gri to create a dependency file to be used with make?
What I have in mind is basically this:
gri test
this creates a file test.d which lists all files opened by gri when it processed test.gri
The format would be simply this:
test.ps: test.gri file1.dat script.gri <and so on>
this could be inserted in a Makefile with the "insert" keyword and would allow automatic dependencies for gri scripts.
what do you think?
I suppose that could be done, but it's difficult to make it work fully. A gri file can open a data file that contains the name of a second data file to be used; in such a circumstance, your suggestion could not be done.