#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.
--
Ticket URL: <https://trac.lrde.org/olena/ticket/214>
Olena <http://olena.lrde.epita.fr>
Olena, a generic and efficient C++ image processing library.