Re: Change draft gmake control

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-docs(at)postgresql(dot)org
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Change draft gmake control
Date: 2007-01-27 09:46:11
Message-ID: 200701271046.11947.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-patches

Bruce Momjian wrote:
> I had to change the draft flag for SGML from 'gmake draft html' to
> 'gmake DRAFT=Y html'. Internally the code used to recurse with
> DRAFT=Y, but I found there is no way to exit the makefile after the
> recursion returned,

exit 0 ?

> so I had to use this new syntax. Though more
> cumbersome, it is more logical because DRAFT is really a modifier,
> not a rule itself. For example, 'gmake html draft' would never have
> worked.

What would have been the meaning of that command?

Anyway, certainly you could write this to preserve the target:

draft:
$(MAKE) html DRAFT=Y

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

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Bruce Momjian 2007-01-27 15:14:33 Re: Change draft gmake control
Previous Message Bruce Momjian 2007-01-27 01:27:37 Re: 14.4 If You Are Upgrading - Suggested Improvements

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2007-01-27 15:14:33 Re: Change draft gmake control
Previous Message Jeremy Drake 2007-01-27 06:47:07 Re: [HACKERS] less privileged pl install