Re: Makefile for parser - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Makefile for parser
Date
Msg-id 8638.962095090@sss.pgh.pa.us
Whole thread Raw
In response to Re: Makefile for parser  (Thomas Lockhart <lockhart@alumni.caltech.edu>)
List pgsql-hackers
Thomas Lockhart <lockhart@alumni.caltech.edu> writes:
>> Uh ... what's your point?

> Any change to gram.y regenerates the local copy of parse.h and affects
> other files *in that local directory* (as well as elsewhere). The
> makefile *in that local directory* should be able to make the other
> files *in that same directory* at the same time.

Oh, right, the files in that directory are going to include parse.h
from the include dir now, instead of ".", aren't they?  I see your
problem.

Probably the rule that installs parse.h into the include tree ought to
be pushed down from backend/Makefile to backend/parser/Makefile (but
backend/Makefile still needs to invoke it during its prebuildheaders
phase).  Maybe likewise for fmgroids.h into backend/utils.

Peter, any thoughts here?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Giles Lean
Date:
Subject: Re: Is *that* why debugging backend startup is so hard!?
Next
From: Hiroshi Inoue
Date:
Subject: Re: Big 7.1 open items