• 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: Mon, 24 Nov 2003 00:49:52 +0800

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

If you mean use of the header generated by bison/yacc, I made the simple tricks to make a static lib target to be used by the main target, and get the parser file generated before anything.

Do the build rule using Yacc source as you suggested, make sure the yacc file is first in Sources, then build. This should correctly build the yacc file first, then the other files in your Sources.


Now, change the build rule to Source files with names matching, ?*\.y which is functionally the same as Yacc source. On my machine (Xcode 1.0.1) it now incorrectly builds the yacc file last -- which should be a bug. Is this so on your machine?

PS: Can yoy send me the sh generated by the normal yacc rules, because I would want to remember you I resolved this problem (now I use the last Xcode update, NDA..) But I will install the original Xcode 1.0 on an other partition to make some test.
_

Haven't tried going back to native yacc builds yet, since the build rule works well. Except for files which don't have standard extensions. When I delete a build rule I usually get a crash, so I'll have to put some time together to try again.


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.

  • Prev by Date: Re: Turning off spurious C warning in XCode ?
  • Next by Date: IB can't embed a custom view in an HIScrollView
  • Previous by thread: Re: Groups, shell scripts, yacc
  • Next by thread: Problems with external editor for source (BBEdit) in XCode
  • Index(es):
    • Date
    • Thread