Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-docspgsql-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

pgsql-docs by date

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

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group