automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AM_CONDITIONAL


From: Raja R Harinath
Subject: Re: AM_CONDITIONAL
Date: Fri, 21 Sep 2001 12:49:00 -0500
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.105

Jens Kr├╝ger <address@hidden> writes:
[snip]
> AM_CONDITIONAL(BUILD_LAKESHORE_MODULE, test $my_build_lakeshore = yes)
>
> the contents of the corresponding  Makefile looks like:
>
> if BUILD_LAKESHORE_MODULE
> SUBDIRS= . MySource MySink MyFilter SoNXFileReader SoNXLakeShore 
> SoNXDataGenerator \
>          FiNXDataSelector FiNXDimensionCutter \
>          SiNXTableBrowser SiNXFileWriter GL3DPlot SiNX2DPlot
> else
> SUBDIRS= . MySource MySink MyFilter SoNXFileReader SoNXDataGenerator \
>          FiNXDataSelector FiNXDimensionCutter \
>          SiNXTableBrowser SiNXFileWriter GL3DPlot SiNX2DPlot
> endif 
>
> This code works fine if I make a normal build. Also the 'make dist' works, but
> the 'make distcheck' doesn't work. It breaks with these messages:
>
> /bin/sh: cd: SoNXLakeShore: Datei oder Verzeichnis nicht gefunden

Can you translate the message to English?  I'm guessing that the
directory doesn't exist (since that's pretty much the main reason 'cd'
would complain in a build tree).

[snip]
> The next step I've done was to call make manually in the =build dir and it
> works.  I think the reason for the break of distcheck is based on the
> DIST_SUBDIRS macro. 
>
> My question is: Is this behaviour a bug or a feature.

'make distcheck' is based on DIST_SUBDIRS since you want to test as
much of your package as possible.  It is a feature.

> The next question, is there a workaround to solve my problem?

Given my guess, you should ensure that all directories and all
Makefiles are created by the 'configure' scripts, even if the build
will not enter those directories. 

- Hari
-- 
Raja R Harinath ------------------------------ address@hidden
"When all else fails, read the instructions."      -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing."   -- Roy L Ash



reply via email to

[Prev in Thread] Current Thread [Next in Thread]