Re: Patch for Makefile race against current cvs

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Klaus Naumann <knaumann(at)gmx-ag(dot)de>, <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Patch for Makefile race against current cvs
Date: 2001-11-12 19:22:13
Message-ID: Pine.LNX.4.30.0111121952350.640-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmx(dot)net

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Peter Eisentraut 2001-11-12 19:23:00 Re: Patch for Makefile race against current cvs
Previous Message Bruce Momjian 2001-11-12 19:19:27 Re: stupid patch of pg_dumplo