custom make, builddir != srcdir
Andreas Pakulat
apaku at gmx.de
Sat Feb 14 13:22:15 UTC 2009
On 14.02.09 12:57:46, David nolden wrote:
> Am Samstag 14 Februar 2009 12:45:14 schrieb Andreas Pakulat:
> > > VPATH=/home/ghost/Work/CodeSourcery/Projects/egdb/gdb-fresh
> >
> > And how should custom-makefile support know this automake specific
> > variable? IMHO it should not, that would be part of autotools support.
> CMake makefiles contain a very similar variable.
> Custommake could just go through the Makefile, collect all variable-
> definitions that look like a path and point to a valid directory, and don't
> equal the build-directory.
>
> In the case of CMake, the only resulting one will be the source-directory.
>
> Then the user can be asked to pick one of the resulting directories, or
> alternatively an own one. In most cases it would probably automatically pick
> the correct dir, or have a very limited choice where one is the right
> directory, thus it would be convenient.
Most cases? So far the only case is autotools, because for cmake you
don't need custom make support. And other Makefile's won't necessarily
have such a variable.
Andreas
--
Caution: breathing may be hazardous to your health.
More information about the KDevelop-devel
mailing list