aboutsummaryrefslogtreecommitdiff
path: root/tool/src/main/resources/org/antlr/tool/templates/depend.stg
blob: c093054ebaabb1e98095213f99d890d2440b7a22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/** templates used to generate make-compatible dependencies */
group depend;

/** Generate "f : x, y, z" dependencies for input
 *  dependencies and generated files. in and out
 *  are File objects.  For example, you can say
 *  <f.canonicalPath>
 */
dependencies(grammarFileName,in,out) ::= <<
<if(in)><grammarFileName>: <in; separator=", "><endif>
<out:{f | <f> : <grammarFileName>}; separator="\n">
>>