1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
# Jam rules for Cweb
# Usage:
# include "Jamrules-cweb" ;
# FwebProducts main.c util.c : foo.w ;
# Ideally we should not have to explicitely to use the *Products rules,
# but I don't know yet how to autocompute files to be produced. Could this
# be a Jam limitation ?
# For now the *Products rules are used to trigger the weave process. They
# should be invoked by the same wrappers that should invoke *Products.
NOTFILE tex ;
rule CwebProducts
{
# tangle
Depends $(<) : $(>) ;
Depends all : $(<) ;
Clean clean : $(<) ;
# weave
CwebLatex $(>:S=.tex) : $(>) ;
Depends tex : $(>:S=.tex) ;
}
actions CwebProducts
{
ctangle $(>)
}
rule CwebLatex
{
Depends $(<) : $(>) ;
Clean clean : $(<) $(<:S=.idx) $(<:S=.scn) ;
# FIXME: the following should be autodetected by LatexDvi instead
Depends $(<:S=.dvi) : $(<:S=.idx) $(<:S=.scn) ;
Latex $(<) ;
}
actions CwebLatex { cweave $(>) }
|