Re: pgsql/src (Makefile.global.in) - Mailing list pgsql-committers

From Peter Eisentraut
Subject Re: pgsql/src (Makefile.global.in)
Date
Msg-id Pine.LNX.4.30.0012301707460.776-100000@peter.localdomain
Whole thread Raw
In response to Re: pgsql/src (Makefile.global.in)  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: pgsql/src (Makefile.global.in)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-committers
Tom Lane writes:

> > The rules in the makefiles cause config.status to only update the file
> > that triggered the rule.  E.g.,
>
> > GNUmakefile: GNUmakefile.in $(top_builddir)/config.status
> >     CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
>
> > (Yes, this interface is incredibly stupid.)
>
> Uh, why don't we just make it generate all its output files each time?

Because the commands in a rule should generally only update the target
file.

Say I change backend/port/Makefile.in, then run make, then config.status
should not update Makefile.global, because that will trigger a bunch of
other rules (e.g., initdb) that I didn't ask for.

--
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


pgsql-committers by date:

Previous
From: vadim@postgresql.org
Date:
Subject: pgsql/src/include/access (htup.h)
Next
From: petere@postgresql.org
Date:
Subject: pgsql/src/interfaces/odbc (statement.c)