[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Makefile.am problem
From:       Cornelius Schumacher <schumacher () kde ! org>
Date:       2001-12-10 13:41:15
[Download RAW message or body]

On Monday 10 December 2001 14:11, Simon Hausmann wrote:
> On Mon, Dec 10, 2001 at 01:45:17PM +0100, Cornelius Schumacher wrote:
> > Why does this not work? It's from kdepim/kalarmd/Makefile.am.
> >
> >   lib_LTLIBRARIES = libkalarmd.la
> >
> >   libkalarmd_la_LDFLAGS = $(all_libraries) $(KDE_RPATH)
> >   libkalarmd_la_LIBADD  = $(LIB_KDECORE)
> >   libkalarmd_la_SOURCES =  alarmdaemoniface.stub
> >
> > The generated Makefile contains the following line, which fails, because
> > $(LINK) is empty:
> >
> >   libkalarmd.la: $(libkalarmd_la_OBJECTS) $(libkalarmd_la_DEPENDENCIES)
> > 	$(LINK) -rpath $(libdir) $(libkalarmd_la_LDFLAGS)
> > $(libkalarmd_la_OBJECTS) $(libkalarmd_la_LIBADD) $(LIBS)
>
> Does it work if you add a dummy.cc to the _SOURCES along with a
> target for it?
>
> dummy.cc:
>         echo > dummy.cc

Nice trick :-) Yes, this helps, thanks. But it's a bug that this is 
necessary, isn't it?

-- 
Cornelius Schumacher <schumacher@kde.org>
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic