Re: SGML index build fix - Mailing list pgsql-patches

From Peter Eisentraut
Subject Re: SGML index build fix
Date
Msg-id 200701071958.25157.peter_e@gmx.net
Whole thread Raw
In response to Re: SGML index build fix  (Bruce Momjian <bruce@momjian.us>)
List 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 by date:

Previous
From: "Simon Riggs"
Date:
Subject: Re: [HACKERS] COPY with no WAL, in certain circumstances
Next
From: Peter Eisentraut
Date:
Subject: Re: [HACKERS] SGML index build fix