* Joao Cardoso <jc...@fe...> [2003-03-04 18:42]:
> If Octave is disabled, "make install" fails:
>
> ...
> make[3]: Entering directory `/home/jcard/plplot/doc/docbook'
> Making all in src
> make install-data-hook
> make[5]: Entering directory `/home/jcard/plplot/bindings/octave'
> make[5]: *** No rule to make target `install-data-hook'. Stop.
> make[5]: Leaving directory `/home/jcard/plplot/bindings/octave'
> make[4]: [install-data-am] Error 2 (ignored)
> make[4]: Leaving directory `/home/jcard/plplot/bindings/octave'
> ...
>
> The above "Error 2 (ignored)" just happens because I "make -i install"
Fixed in CVS, hopefully.
> Couldn't all language bindings directories be recursed based on an
> AM_CONDITIONALs based on with_<lang>, just as I did in lib/Makefile.am?
> Or are there reasons to not do it?
Compilation of the octave bindings in bindings/octave/Makefile.am is done
conditionally on enable_octave, as you are suggesting above. Only the stuff
needed for "make dist" is put outside the AM conditional. The bug you
reported above is due to an intricacy of Automake: even if the
install-data-hook is declared inside a conditional, it is included as an
indirect dependency of the install target.
Just an aside thought: Since I am quite busy with the Debian packaging and
and make dist, I cannot test the configuration system under all imaginable
conditions. Since I always enable octave in my buildings, the kind of
problem you reported would be hardly detected by me.
Please, keep testing things.
--
Rafael
|