automake-ng
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Automake-NG] [PATCH v2 2/2] dist: add back support for obsolete dis


From: Paolo Bonzini
Subject: Re: [Automake-NG] [PATCH v2 2/2] dist: add back support for obsolete dist-* options
Date: Wed, 22 Aug 2012 14:32:40 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0

Il 22/08/2012 14:23, Stefano Lattarini ha scritto:
>> > True, but in the make dist case, automake has otherwise no business in
>> > parsing the dist-format options.
>> >
> But IMHO it makes sense to keep the need/ability to recognize those options
> "segregated" in '_process_option_list', rather than spread throughout the
> code base.

It is a bit ugly that _process_option_list has to know about the
no-dist-gzip option in order to give a warning.  This way, I can give a
superior error message if somebody specifies no-dist-xz.  But if you
added support for another dist-fooz option you wouldn't have to touch
automake.in nor lib/Automake at all.

> The rest of the code (whether in the automake script or in
> the generated makefiles) should only be aware that "such and such dist
> formats have been specified through means other than the AM_DIST_FORMATS
> variable", not needing to worry about the details of such specifications
> ("dist-xz has been given in AM_INIT_AUTOMAKE, and no-dist-gzip has been
> given in AUTOMAKE_OPTIONS").

That's indeed the point of patch 1/2.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]