autoconf
[Top][All Lists]
Advanced

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

RE: Autoconf speedup


From: Bruce Korb
Subject: RE: Autoconf speedup
Date: Mon, 22 Apr 2002 14:00:03 -0700

> Automake must rewrite the user's Makefile.am code to change
> @foo@ to $(foo).  This ensures there are no rewrites in the
> generated Makefile.in.  This will break compatibility :-(.

Wrong emoticon.  Use:  >:-(  instead.   ;-)

Actually, a compatibility change is really okay, _as_long_as_
the migration path is both clear and trivial.  Further, either
the file "Makefile.am" should be renamed, or carry a required
marker, e.g., "##automake:  version 2"
then either add one of these to automake or advertise the
conversion plainly enough so it's really hard to miss:

  if [ ! -f Makefile.am2 ]
  then
    convert Makefile.am > Makefile.am2
  fi

or else:

  egrep '^##automake: *version *[2-9]' Makefile.am > /dev/null || \
    { mv Makefile.am Makefile.am.old ; convert Makefile.am.old >
Makefile.am ; }



--

Bruce Korb <full.name at veritas com>
URL: http://autogen.sf.net



reply via email to

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