On Friday 13 Apr 01, David Starks-Browning writes:
> On Thursday 12 Apr 01, Alexander Mai writes:
> > ...
> > Would it be better/ok/brilliant, if we keep our scheme, but replace our $(prefix)
>in the
> > related Makefile.* by $(exec-prefix) ?
>
> What about using libdir as configure intends, which is (IMO), where
> you put the symlink targets in the default case? Remember that some
> users might go further and specify
>
> ./configure --libdir=...
>
> and be rather confused when your Makefiles don't honor that. You can
> use something different (i.e., not 'libdir') for the true locations of
> the libraries in their version-specific directories.
Never mind, I think fixing the usage of 'libdir' to that extent would
be too difficult and probably highly disruptive to the project. Your
proposal to simply change $(prefix) with $(exec_prefix) is the one
I've taken. This works well enough for me. I found and changed it in
the following Makefiles:
lib/Dt/Makefile.am (for libdir only; includedir is OK)
lib/Mrm/Makefile.am lib/Uil/Makefile.am lib/Xm/Makefile.am
lib/Mrm-2.0/Makefile.am lib/Uil-2.0/Makefile.am lib/Xm-2.0/Makefile.am
lib/Mrm-2.1/Makefile.am lib/Uil-2.1/Makefile.am lib/Xm-2.0/Makefile.am
clients/Motif-1.2/mwm/Makefile.am (and Motif-2.0, Motif-2.1)
clients/Motif-1.2/uil/Makefile.am (and Motif-2.0, Motif-2.1)
clients/Motif-1.2/xmbind/Makefile.am (and Motif-2.0, Motif-2.1)
The first group of 19 Makefiles is for libdir, the second group of 18
Makefiles is for bindir. (I discovered these after fixing libdir.)
Furthermore, surprisingly, I found a lot of platform-independent stuff
(docs, man pages) going into $(exec_prefix). This should all go into
$(prefix). I made that change in the following Makefiles:
./Makefile.am
doc/Makefile.am
doc/www.lesstif.org/Makefile.am
doc/www.lesstif.org/images/Makefile.am
doc/lessdox/clients/Makefile.am
doc/lessdox/functions/Makefile.am
lib/Xbae/Makefile.am
lib/Xbae/doc/Makefile.am
lib/Xbae/src/Makefile.am
lib/Xlt/lib/Makefile.am
These were for things like $(rootdir), $(docdir), $(htmldir),
$(mandir), ...
Is this sensible? The above is a bit long-winded, but I thought it
would be a lot easier to follow than 29 diffs!
I am happy to submit patches on the above. How would you like them?
Thanks for your help with this.
Kind regards,
David