Re: Change draft gmake control - Mailing list pgsql-docs

From Peter Eisentraut
Subject Re: Change draft gmake control
Date
Msg-id 200701271046.11947.peter_e@gmx.net
Whole thread Raw
In response to Change draft gmake control  (Bruce Momjian <bruce@momjian.us>)
Responses Re: Change draft gmake control
List pgsql-docs
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/

pgsql-docs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: 14.4 If You Are Upgrading - Suggested Improvements
Next
From: Bruce Momjian
Date:
Subject: Re: Change draft gmake control