Re: SGML index build fix

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: SGML index build fix
Date: 2007-01-07 18:58:24
Message-ID: 200701071958.25157.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers 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/

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2007-01-07 19:00:40 Re: [HACKERS] SGML index build fix
Previous Message Tom Lane 2007-01-07 18:28:58 Re: Erronous sort used in query plan

Browse pgsql-patches by date

  From Date Subject
Next Message Peter Eisentraut 2007-01-07 19:00:40 Re: [HACKERS] SGML index build fix
Previous Message Simon Riggs 2007-01-07 18:15:26 Re: [HACKERS] COPY with no WAL, in certain circumstances