title: How can I set up an Xcode build rule with a variable output file list?
body: <p>Build Rules are documented in the <a href="http://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/XcodeBuildSystem/200-Build_Phases/bs_build_phases.html%23//apple_ref/doc/uid/TP40002690-BBCCFEDJ" rel="nofollow noreferrer">Xcode Build System Guide</a></p>
  
  <p>They are well adapted to the common case where one input file is transformed into a fixed number (usually one) of output files.</p>
  
  <p>The output files must be described in the "Output Files" area of the build rule definition; one line per output file. Typically the output files have the same name as the input file but have different extensions.</p>
  
  <p>In my case, one single input file is transformed into a variable number of files with the same extensions. The number and the names of the output files depend on the content of the input file and are not known in advance.</p>
  
  <p>The output files will have to be further processed later on (they are in this case C files to be compiled).</p>
  
  <p>How can I set up a build rule for such a case?</p>
  
  <p>Any suggestions welcome.</p>
  
  <p>(I asked the same question on the Apple developer forum, but I figured it'd be a good idea to ask here too).</p>