Hello, Here comes a little feature request: it would be nice, if context allowed us to write a file with dependency information, like a C-compiler does for the dependencies of a C-file on the included header files. The best would be, to get such dependencies directly in Makefile syntax. Example: Say you have a main context file "main.tex" that includes an environment file "../env.tex" and a figure "subdir/figure.jpg", then running context --dependencies=main.d main would create "main.pdf" and also "main.d" with this line: main.tex: ../env.tex subdir/figure.jpg -- Peter
On 3 mrt. 2011, at 20:36, pmlists@free.fr (Peter Münster) wrote:
Hello,
Here comes a little feature request: it would be nice, if context allowed us to write a file with dependency information, like a C-compiler does for the dependencies of a C-file on the included header files.
Seconded. That would be cool to have.
On 3-3-2011 8:36, Peter Münster wrote:
Hello,
Here comes a little feature request: it would be nice, if context allowed us to write a file with dependency information, like a C-compiler does for the dependencies of a C-file on the included header files. The best would be, to get such dependencies directly in Makefile syntax.
Example:
Say you have a main context file "main.tex" that includes an environment file "../env.tex" and a figure "subdir/figure.jpg", then running
context --dependencies=main.d main
would create "main.pdf" and also "main.d" with this line:
main.tex: ../env.tex subdir/figure.jpg
--directives=system.dumpfiles should do that but it's currently broken (kicks on too soon due to directives being initialized earlier than before) .. i'll fix it (but no make file output, at least not now as i never used make directly so i have no clue what goes in there) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hans Hagen
--directives=system.dumpfiles
should do that but it's currently broken
Indeed. That's exactly what I'd tried before sending my request. I guess, the output file will have a special name?
(but no make file output, at least not now as i never used make directly so i have no clue what goes in there)
That's good. It's even better, because more flexible. All we need, is the list of included files, then you can do whatever you want in the Makefile, for example: DEPS = $(shell cat dependencies.dump) Thanks! -- Peter
participants (3)
-
Hans Hagen
-
pmlists@free.fr
-
Taco Hoekwater