|
From: Tom H. <to...@co...> - 2005-11-15 16:58:22
|
In message <200...@gm...>
Josef Weidendorfer <Jos...@gm...> wrote:
> On Tuesday 15 November 2005 11:47, Tom Hughes wrote:
>> > Currently, I try to use two different subdirs/Makefile.am's for this,
>> > using in the toplevel Makefile.am
>> >
>> > SUBDIRS = $(CG_SRCDIR)
>> >
>> > CG_SRCDIR is set to the right build directory dependent on what
>> > configure detected.
>>
>> Sounds horrid, but still...
>
> I am not a automake/conf guru.
> Perhaps only one Makefile.am is better. But this would need
> conditional targets? Is this supported?
You can possibly do it with automake conditionals, though you may need
automake 1.7 for that - valgrind does that now though anyway. See any
of the tools for how noinst_PROGRAMS is defined.
>> Sounds like I'm going to have fun getting
>> my in tree builds to work ;-)
>
> Why?
It's a horrid hack I use to build callgrind and valgrind all as part
of a single RPM so I have to patch callgrind to build against the
uninstalled version of valgrind in my build tree and not try and run
the installed valgrind to find out what version it is...
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|