Re: [NTG-context] file dependencies

2011-03-04 Thread Hans Hagen

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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] file dependencies

2011-03-04 Thread Peter Münster
Hans Hagen pra...@wxs.nl writes:

 --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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] file dependencies

2011-03-03 Thread Peter Münster
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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] file dependencies

2011-03-03 Thread Taco Hoekwater


On 3 mrt. 2011, at 20:36, pmli...@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.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___