* file dependencies
@ 2011-03-03 19:36 Peter Münster
2011-03-03 19:54 ` Taco Hoekwater
2011-03-04 13:05 ` Hans Hagen
0 siblings, 2 replies; 4+ messages in thread
From: Peter Münster @ 2011-03-03 19:36 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: file dependencies
2011-03-03 19:36 file dependencies Peter Münster
@ 2011-03-03 19:54 ` Taco Hoekwater
2011-03-04 13:05 ` Hans Hagen
1 sibling, 0 replies; 4+ messages in thread
From: Taco Hoekwater @ 2011-03-03 19:54 UTC (permalink / raw)
To: mailing list for ConTeXt users
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.
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: file dependencies
2011-03-03 19:36 file dependencies Peter Münster
2011-03-03 19:54 ` Taco Hoekwater
@ 2011-03-04 13:05 ` Hans Hagen
2011-03-04 14:33 ` Peter Münster
1 sibling, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2011-03-04 13:05 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Peter Münster
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: file dependencies
2011-03-04 13:05 ` Hans Hagen
@ 2011-03-04 14:33 ` Peter Münster
0 siblings, 0 replies; 4+ messages in thread
From: Peter Münster @ 2011-03-04 14:33 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hans Hagen <pragma@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-03-04 14:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-03 19:36 file dependencies Peter Münster
2011-03-03 19:54 ` Taco Hoekwater
2011-03-04 13:05 ` Hans Hagen
2011-03-04 14:33 ` Peter Münster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).