Re: SGML index build fix

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: SGML index build fix
Дата
Msg-id 200701071958.25157.peter_e@gmx.net
обсуждение исходный текст
Ответ на Re: SGML index build fix  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-patches
Bruce Momjian wrote:
> I wrote:
>
>     ifeq (,$(wildcard bookindex.valid))
>         echo "Run 'gmake' again to generate output with a proper index"
>     endif
>
> but that warns on the first _two_ runs, meaning it expanded at the
> time the rule started, not at the time it hit that line.

This expands at the time the makefile is read.  You may get it to work
with

target:
    $(if $(wildcard blah), this, that)

The following may be helpful:
http://www.gnu.org/software/make/manual/html_node/Reading-Makefiles.html#Reading-Makefiles

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

В списке pgsql-patches по дате отправления:

Предыдущее
От: "Simon Riggs"
Дата:
Сообщение: Re: [HACKERS] COPY with no WAL, in certain circumstances
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: [HACKERS] SGML index build fix