bug-make
[Top][All Lists]
Advanced

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

Re: Override... but not really


From: Philip Prindeville
Subject: Re: Override... but not really
Date: Mon, 09 Aug 2010 14:00:12 -0700
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.7) Gecko/20100713 Thunderbird/3.1.1

 On 8/9/10 1:46 PM, Paul Smith wrote:
On Mon, 2010-08-09 at 12:41 -0700, Philip Prindeville wrote:
Alas much of this is beyond my control, and it's not a single project:
it's a Linux distro having a couple of hundred projects, many of which
have several directories deep of makefile nesting.
Ah, well, you didn't say so :-).

One would suspect that if these are Linux distro packages, these
packages are all, or at least mostly, autoconfiscated.  Autoconf (or
more specifically in this case, automake) obeys the GNU programming
standards which requires the behavior I already mentioned: that CFLAGS,
CPPFLAGS, CXXFLAGS, LDFLAGS, etc. are all reserved for use by the user,
and they can be overridden on the make command line without bad effects.
Basically they work just as I mentioned above.

Of course, there are always some people who don't like autoconf and
think it's too difficult, and instead create their own build/configure
systems.  Well, these systems either ignore all the use-cases that make
autoconf difficult in the first place, and thus do not support the
features that people need in uncommon environments, and hence are not
useful/usable for any installation that doesn't closely match the
authors'; or else they're complicated in their own, non-standard way
which means more effort for the user (that's you) when they want to
build things.

Anyway.  What was I talking about?  Oh yes.  Nevertheless most makefile
developers have resolved this issue one way or another, already.  So you
shouldn't need to (and you shouldn't WANT to) rewrite all their
makefiles.  You just have to learn how they did things.


The offender I'm staring at right now is ppp-2.4.5.

I'll try to autoconfiscate it (autoconf + obsfucate?) later.

-Philip




reply via email to

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