Re: pgsql/src (Makefile.global.in)

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: pgsql/src (Makefile.global.in)
Дата
Msg-id Pine.LNX.4.30.0012301707460.776-100000@peter.localdomain
обсуждение исходный текст
Ответ на Re: pgsql/src (Makefile.global.in)  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pgsql/src (Makefile.global.in)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: vadim@postgresql.org
Дата:
Сообщение: pgsql/src/include/access (htup.h)
Следующее
От: petere@postgresql.org
Дата:
Сообщение: pgsql/src/interfaces/odbc (statement.c)