automake
[Top][All Lists]
Advanced

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

Re: allowing users to add source files without rerunning the autotools?


From: Miles Bader
Subject: Re: allowing users to add source files without rerunning the autotools?
Date: Fri, 20 Jan 2012 10:35:01 +0900

Nick Bowler <address@hidden> writes:
> Interestingly, if you actually stick a line exactly like the above into
> your Makefile.am, Automake will actually do "The Right Thing™" and
> creates the .Po stub as if you had actually specified the source file
> normally.  Presumably you'd be relying on totally unsupported internal
> behaviour of Automake in this case, though. :)

Heh. :)

Another thing is that if the project is happy with discovering out the
"extra" source files at configure-time (as opposed to make-time like my
example did), things probably become even easier, as the configure file
can do more stuff.

One interesting thing would be to add some simple automake feature to
allow specifying this stuff explicitly via some interface
(e.g. AM_EXTRA_SOURCE_FILES([blah.c barf.h]) in configure, or something
like that).  That might make it possible to really do this stuff
correctly without too much work for the developer, by letting him take
advantage of some of the lower-level automake machinery.

Thanks,

-Miles

-- 
"1971 pickup truck; will trade for guns"



reply via email to

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