Jens Krüger <[EMAIL PROTECTED]> 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 ------------------------------ [EMAIL PROTECTED]
"When all else fails, read the instructions." -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing." -- Roy L Ash