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

List:       kde-core-devel
Subject:    Re: unsermake, need help to port app
From:       Martijn Klingens <klingens () kde ! org>
Date:       2003-12-08 19:45:05
[Download RAW message or body]

On Monday 08 December 2003 20:02, Unai Garro wrote:
> =======
> if link_lib_MYSQL
> mysql_sources=mysqlrecipedb.cpp
> endif
>
> libkrecipesdbs_la_SOURCES=recipedb.cpp $(mysql_sources)
> =======

This would work for about all lines (LDFLAGS, LIBADD, SUBDIRS, ...) except for 
_SOURCES. AFAIK the reason is that am_edit and other preprocessors are run 
during make -f Makefile.cvs, i.e. _BEFORE_ configure. There's no way they can 
do their work properly with a variable SOURCES line and as such unsermake 
doesn't support it.

As for a solution, one that would work is using a mysql subdir with a 
convenience library as that would avoid a dynamic SOURCES line. I don't know 
anything better, but perhaps one of the build system gurus does.

-- 
Martijn
[prev in list] [next in list] [prev in thread] [next in thread] 

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