[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnubg] Re: sgf.y and sgf.c
From: |
Joseph Heled |
Subject: |
[Bug-gnubg] Re: sgf.y and sgf.c |
Date: |
Sat, 08 Jun 2002 09:31:55 +1200 |
Personally, I would change file names to fit the convension, i.e generate
sgf.{c,y} from sgf.y, and give the (current, non generated) sgf.c another name.
-Joseph
Gary Wong wrote:
>
> On Fri, Jun 07, 2002 at 12:22:54PM +0200, ?ystein Johansen wrote:
> > > Is the Makefile hand-written, or generated from ./configure?
> >
> > Yes, the Makefiles are hand-written. I can't run ./configure
> > on windoze.
> >
> > > What error do you get if sgf.y is there?
> >
> > Can't run yacc! (Because there is no yacc) Bison is installed,
> > but it doesn't work!
>
> Ah, I see -- the problem sounds as if make has an implicit rule for
> generating foo.c from foo.y with yacc. (GNU make does this; I don't
> know about other makes.) Does it help to add a rule:
>
> sgf.c:
> true
>
> to override the implicit rule? It might also be nice to add:
>
> sgfp.c sgfp.h: sgf.y
> $(BISON) -o $@ -p sgf -d $<
>
> sgfl.c: sgf.l
> $(FLEX) -o$@ -Psgf $<
>
> but those rules require Flex and Bison.
>
> Cheers,
> Gary.
> --
> Gary Wong address@hidden
> http://www.cs.arizona.edu/~gary/
- [Bug-gnubg] Re: sgf.y and sgf.c,
Joseph Heled <=