#214: Use Automake 1.11's AM_DEFAULT_SOURCE_EXT -------------------------+-------------------------------------------------- Reporter: levill_r | Owner: Olena Team Type: enhancement | Status: new Priority: minor | Milestone: Component: Milena | Version: 1.0 Keywords: Make | -------------------------+-------------------------------------------------- Quoting the [http://www.mail-archive.com/automake@gnu.org/msg15022.html announce of Automake 1.11]:
{{{ - The default source file extension (.c) can be overridden with AM_DEFAULT_SOURCE_EXT now. }}}
Which allows us to replace
{{{ bin_PROGRAMS = foo bar baz foo_SOURCES = foo.cc bar_SOURCES = bar.cc baz_SOURCES = baz.cc }}}
with
{{{ bin_PROGRAMS = foo bar baz AM_DEFAULT_SOURCE_EXT = .cc }}}
(Of course, « `AM_DEFAULT_SOURCE_EXT = .cc` » should be factored in some `common.mk` file.)
This just rocks if you consider the tons of `*_SOURCES` lines in the zillions of `tests/*/Makefile.am` files.
On the downward side, this change requires Automake 1.11, which is not even in Debian unstable as of July 24, 2009. We might want to wait a little bit before requiring this version.
#214: Use Automake 1.11's AM_DEFAULT_SOURCE_EXT --------------------------+------------------------------------------------- Reporter: levill_r | Owner: Olena Team Type: enhancement | Status: closed Priority: minor | Milestone: Component: Milena | Version: 1.0 Resolution: fixed | Keywords: Make --------------------------+------------------------------------------------- Changes (by levill_r):
* status: new => closed * resolution: => fixed
Comment:
Done in branch `automake-1.11`. Do not forget to merge/rebase this branch into `next` when Automake 1.11 is shipped with our main targets (or a least Debian stable).