[NTG-context] file dependencies

Hans Hagen pragma at wxs.nl
Fri Mar 4 14:05:56 CET 2011


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
-----------------------------------------------------------------


More information about the ntg-context mailing list