title: automake automatic dependencies custom language/scripts
body: <p>I have a bit of file processing to do in Automake and can't figure out how to do it correctly (using either automake rules of gnu make extensions). For example, I have a file called <strong>refName.in</strong> and wish to produce the output <strong>refName.out</strong>.  I have two relevant command-lines:</p>
  
  <pre><code>produce-out refName.in refName.out
  produce-deps refName.in
  </code></pre>
  
  <p>The first simply takes the input file and produces the output. The second provides a list of dependencies for the file.</p>
  
  <p>What am I supposed to do in Automake to get this setup working? I wish to have full dependency tracking, such that if any file in the list produced by <em>produce-deps</em> will trigger <em>produce-out</em> to be called.</p>
  
  <p><em>(NOTE: I have no problem changing how these commands work. One command can produce the output and dependencies if needed. Different command-line switches, etc. can also be modified.)</em></p>
  
  <p><em>(PS: If need be a GNU make extension is totally okay. I already use patterned rules in the Makefile.am and other extensions.)</em></p>