Patch to allow make to load plugins that add new functions.

2012-04-05 Thread Tim Murphy
Hi, I am between jobs which made me realise that I am absolutely free to contribute to make for about 10 days :-) The one thing I have wanted the most and the longest is a way to add new functions without having to rebuild and look after a custom version of make. Essentially this should allow

RE: Patch to allow make to load plugins that add new functions.

2012-04-05 Thread Lawrence Ibarria
I like this idea quite a bit. I see this as still work in progress to define what type of functions the plugins can have. Maybe they can even create or change make variables. In the case of variable_buffer_output, I'd suggest that each plugin has an 'initialization function'. This is a

Re: Patch to allow make to load plugins that add new functions.

2012-04-05 Thread Tim Murphy
Hi, On 5 April 2012 20:52, Lawrence Ibarria libar...@nvidia.com wrote: I like this idea quite a bit. I see this as still work in progress to define what type of functions the plugins can have. Maybe they can even create or change make variables. At this point, plugins are naughty and are

[bug #36106] make target-specific variables fail if over 150 characters and contain semicolon

2012-04-05 Thread anonymous
URL: http://savannah.gnu.org/bugs/?36106 Summary: make target-specific variables fail if over 150 characters and contain semicolon Project: make Submitted by: None Submitted on: Thu 05 Apr 2012 10:15:49 PM UTC Severity: 3

Re: Patch to allow make to load plugins that add new functions.

2012-04-05 Thread David Boyce
A few years ago I suggested a plugin architecture much like this (but I didn't supply a patch - crucial difference), to allow a plugin to make the up-to-date determination, replacing the hardwired timestamp system. That could in theory be quite useful as it would allow an MD5 or similar signature

Re: Patch to allow make to load plugins that add new functions.

2012-04-05 Thread Tim Murphy
Hi, On 5 April 2012 23:12, Paul Smith psm...@gnu.org wrote: Hi Tim; Before going too much further note that I've got a semi-implemented load operator in my source already, which fulfills a similar function except in a less sophisticated way: it just calls a function in the loaded object

Re: Patch to allow make to load plugins that add new functions.

2012-04-05 Thread Tim Murphy
Hi, On 5 April 2012 23:27, David Boyce david.s.bo...@gmail.com wrote: A few years ago I suggested a plugin architecture much like this (but I didn't supply a patch - crucial difference), to allow a plugin to make the up-to-date determination, replacing the hardwired timestamp system. That

Re: Patch to allow make to load plugins that add new functions.

2012-04-05 Thread Paul Smith
On Thu, 2012-04-05 at 18:27 -0400, David Boyce wrote: A few years ago I suggested a plugin architecture much like this (but I didn't supply a patch - crucial difference), to allow a plugin to make the up-to-date determination, replacing the hardwired timestamp system. [...] Any idea how hard

Re: Patch to allow make to load plugins that add new functions.

2012-04-05 Thread Paul Smith
On Thu, 2012-04-05 at 23:59 +0100, Tim Murphy wrote: I see the value in a plugin system as being that I don't have to recompile the plugins for every version of make. In a way it's tending towards why bother if you did have to do that. Well, this kind of combines with my other issue regarding