Makefile.am.in question

Stephan Kulow coolo at kde.org
Wed Jul 10 12:11:36 BST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 09 July 2002 18:05, David Faure wrote:
> On Tuesday 09 July 2002 16:58, Rob Kaper wrote:
> > My app currently used the following in Makefile.am :
> >
> > atlantik_LDADD = ../libatlantikui/libatlantikui.la
> > ../libatlantikclient/libatlantikclient.la
> > $(top_builddir)/libkdegames/libkdegames.la $(LIB_KIO)
> >
> > This breaks stand-alone releases though, since libkdegames is not part of
> > the Atlantik package.
> >
> > Does anyone know how to use Makefile.am.in to substitute
> > $(top_builddir)/libkdegames/libkdegames.la with
> > $KDEDIR/lib/libkdegames.la
>
> KDEDIR? You don't mean that, do you? ;-)  -lkdegames rather.
>
> > in case if [ -d $(top_builddir)/libkdegames ] fails?
>
> Sounds like a job for a configure.in.in define (there's no if/then/else in
> a Makefile ;)
>
> Completely untested code.
>
> if [ -d $top_srcdir/libkdegames ]; then
>    LIBKDEGAMES=$(top_builddir)/libkdegames/libkdegames.la
> else
>    LIBKDEGAMES=-lkdegames
> fi
>
> AC_SUBST(LIBKDEGAMES)
>
> and then use $(LIBKDEGAMES) in the Makefile.am[.in?].

Just to mention it: also add a $(LIBKDEGAMES_DEP) and add it 
to atlantik_DEPENDENCIES, so atlantik is relinked when libkdegames.la
changes

Greetings, Stephan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9LBZowFSBhlBjoJYRAu/5AJ42txGAuQSN7v4dIC90iEIQPOIlhACglP0E
6ddDEv3RDAZpHavHbbHGMu0=
=hlug
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list