On 11/09/2011 12:02 PM, Kornel wrote:
Am Sonntag, 11. September 2011 schrieb Julien Rioux:
On 10/09/2011 1:07 PM, Kornel wrote:
...
I'm not sure whether I prefer cmake to move the tex2lyx
binary to a tex2lyx subdir, or autoconf to move all binaries to the
same bin dir. I do feel that version suffixes should be used only when
installing. Again, maybe I did a wrong configuration of cmake.
I would prefer that too, but it may be contrary to cmake philosophy.
Build-dir is not the same as Install-dir for tex2lyx
I only did `make`, not `make install`. So I think this must be the build
dir. Are you saying this is the install dir, hence the suffixes?
No, i was mixing install-prefix and program-suffix here. I was confused by "to move
the tex2lyx binary to a tex2lyx subdir"
I have the binaries in
$LYX_SVN_ROOT/build-cmake/bin/lyx2.1
$LYX_SVN_ROOT/build-cmake/bin/tex2lyx2.1
Compare
$LYX_SVN_ROOT/build-autoconf/src/lyx
$LYX_SVN_ROOT/build-autoconf/src/tex2lyx/tex2lyx
I don't really feel like telling you guys to change your build systems.
Personally both of them feel wrong: I would say binaries would go in bin
dir and have no suffixes. In any case I could figure out a patch for
tex2lyx detection with the status quo in mind.
+1
In cmake it was originally to mimic autoconf behaviour (I think), and it is not
difficult to adapt something else.
I am not sure if installing in autoconf does not add the suffix?
With autoconf, when you `make` you get binaries, without suffix, in the
src/ subdir of the build dir (and in the case of tex2lyx, in the
src/tex2lyx subsubdir). This is the finicky part for me.
When you `make install` these binaries are moved to the install dir with
their suffix added. I think this is right. I presume cmake does the
same. If that's right then it's only the `make` part that needs some
changes on one side or the other to have them consistent.
I never use LYX_PACKAGE_SUFFIX, instead I use
-DCMAKE_INSTALL_PREFIX=/usr/local/lyx2.1 in order to install
different versions simultaneously.
Kornel
If I don't use a version suffix, wouldn't that mean that my user
directory is $HOME/.lyx for all of my installs?
--
Julien