• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Groups, shell scripts, yacc
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Groups, shell scripts, yacc


  • Subject: Re: Groups, shell scripts, yacc
  • From: Glen Low <email@hidden>
  • Date: Sun, 23 Nov 2003 16:58:39 +0800

The build rules has the potential to be a kind of simple makefile replacement. You can also match on a regular expression on your sources to run script, the only thing I can't quite figure out is whether Xcode does a proper dependency analysis for the generated files -- e.g. if yacc generates a header that is later used by some other source, does it know to generate yacc first and then compile the other source? I can't quite tell yet, but it doesn't seem to work with the regular expression match.

It seems for the canned file types, Xcode will run them in order of declaration, which isn't a dependency analysis but is not a great drama, since you can reorganize them to to your heart's content in the Sources build phase. However for regular expression for file types in the build rules, they always seem to be executed last, much like a Script phase would -- can anyone confirm this and/or give me a workaround?


E.g. Targets > (target) > Get Info : Rules : + :
Process Source files with names matching, ?*/ps\.txt
using: custom script: etc.
with output files: etc.

This rule always executes after any rule with Process Yacc source files etc.

This means that any custom rules cannot create files used by other sources e.g. a header file.



Cheers, Glen Low


--- pixelglow software | simply brilliant stuff www.pixelglow.com _______________________________________________ xcode-users mailing list | email@hidden Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Groups, shell scripts, yacc
      • From: Gerard Iglesias <email@hidden>
References: 
 >Groups, shell scripts, yacc (From: Glen Low <email@hidden>)
 >Re: Groups, shell scripts, yacc (From: Scott Tooker <email@hidden>)
 >Re: Groups, shell scripts, yacc (From: Glen Low <email@hidden>)
 >Re: Groups, shell scripts, yacc (From: Olger Warnier <email@hidden>)
 >Re: Groups, shell scripts, yacc (From: Glen Low <email@hidden>)

  • Prev by Date: Re: Plug-in API for Xcode . . .
  • Next by Date: Creating a regular executable in xcode
  • Previous by thread: Re: Groups, shell scripts, yacc
  • Next by thread: Re: Groups, shell scripts, yacc
  • Index(es):
    • Date
    • Thread