|
From: | Ralf Hemmecke |
Subject: | Re: pattern rules |
Date: | Mon, 31 Mar 2008 09:53:42 +0200 |
User-agent: | Thunderbird 2.0.0.12 (X11/20080213) |
On 03/27/2008 06:21 PM, Ralf Wildenhues wrote:
* Ralf Hemmecke wrote on Thu, Mar 27, 2008 at 01:31:36PM CET:-W CATEGORY --warnings=category Output warnings falling in category. category can be one of: ... portability portability issues (e.g., use of make features that are known to be not portable) ---END quoteIt is not so clear what this relates to. Is it only related to the 'make' program or also some portability issues outside of it?Hmm, the documentation doesn't specify this well. Currently, most issues which are warned about revolve around 'make' issues. But there are also a couple of others: - that you may need AM_PROG_CC_C_O if '-c -o' is used in build rules, - that directory names like 'aux' or 'obj' are not portable.
Thank you for making this clearer. And yes it is exacly what I feared. I would still like to be warned about "aux" and "obj" if I want to use gnu make.
In other words, can I simply say "no-portability" and don't relax strictness in places not related to GNU make features?
What you can do is use -Wno-portability only for those Makefile.am files for which you need it, by enabling it in those files only: AUTOMAKE_OPTIONS = ... -Wno-portability
Do I understand correctly, that I simply exclude -Wno-portability from AM_INIT_AUTOMAKE and rather put a line with AUTOMAKE_OPTIONS in any Makefile.am where I use pattern rules?
So there are two items where Automake could be improved here: - document exactly the semantics of which options are applied (when they are passed in more than one place: on the automake command line, in AM_INIT_AUTOMAKE, and in per-file AUTOMAKE_OPTIONS), - document which portability issues are warned about with -Wportability, or possibly even split this into separate categories. Discussions and patches welcome.
Please don't expect too much from me. I am just a beginner and not a developer. I am only starting to learn about Automake's features.
In addition, I want to use Automake for something that actually doesn't fit very well (if at all) into Automake's view of the world. But, maybe I should open up a new thread.
Ralf
[Prev in Thread] | Current Thread | [Next in Thread] |