Re: Patch for Makefile race against current cvs - Mailing list pgsql-patches

From Peter Eisentraut
Subject Re: Patch for Makefile race against current cvs
Date
Msg-id Pine.LNX.4.30.0111121952350.640-100000@peter.localdomain
Whole thread Raw
In response to Re: Patch for Makefile race against current cvs  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Patch for Makefile race against current cvs
List pgsql-patches
Tom Lane writes:

> But we could provide some security for multiple children of a single
> make by changing the rules to be like
>
> $(srcdir)/parse.h: gram.y
> ifdef YACC
>     $(YACC) -d $(YFLAGS) $<
>     mv y.tab.h $(srcdir)/parse.h
>     mv y.tab.c $(srcdir)/gram.c
> else
>     @$(missing) bison $< $@
> endif
>
> $(srcdir)/gram.c: $(srcdir)/parse.h

That seems to be okay, although I think I'd switch gram.c and parse.h for
stylistic reasons.

--
Peter Eisentraut   peter_e@gmx.net


pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: stupid patch of pg_dumplo
Next
From: Brent Verner
Date:
Subject: Re: ALTER TABLE RENAME fix