D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] make dist gettext problems.

 

On Monday 29 August 2005 8:37 pm, Neil Williams wrote:
> Anyone used gettext with a C library? I'm getting strange errors on make
> dist that make no sense:

Ne'er mind, it was my own daft fault - I have a conditional build in the 
Makefiles that omits a certain directory if another library is installed. To 
do this, the list of subdirectories is repeated:

if USE_LIBGDA
SUBDIRS = backend qof examples . po doc
else
SUBDIRS = lib backend qof examples . po doc
endif

The problem is that the DIST_SUBDIRS variable was not being set:

DIST_SUBDIRS = backend qof examples . po doc lib backend qof examples . po doc

Oops. That's how the link was being created and then failing - because it was 
running over the same folders twice!

The solution was:

if USE_LIBGDA
SUBDIRS = backend qof examples . po doc
DIST_SUBDIRS = backend qof examples . po doc
else
SUBDIRS = lib backend qof examples . po doc
DIST_SUBDIRS = lib backend qof examples . po doc
endif

Explicitly set the DIST_SUBDIRS and make dist works fine!

:-(

-- 

Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

Attachment: pgpemcmmrj4az.pgp
Description: PGP signature