On Sun, Jul 19, 2015 at 07:41:21PM +0200 I heard the voice of
Richard Levitte, and lo! it spake thus:
> 
> Current (GNU) practices suggest $PREFIX/share/man/...

It'll do either; looks for which one exists.

I've gone ahead and landed this; we can tweak further if we need to.

One change has to do with the manpages; previous it would look for the
$PREFIX/share/man and $PREFIX/man, use whichever it found, and if it
found neither complain during the configure and refuse to do the
install.  Now it assumes $PREFIX/man and warns if it can't find
anything, and will go ahead and use it on install.

There are now individual defines for various stuff, which can be
individually overridden, and the cmake output says what it decided on.
A few examples:

% make allclean cmake
  [...]
-- System-wide config in      /usr/local/etc
-- Installing ctwm in         /usr/local/bin
-- Installing runtime data in /usr/local/share/ctwm
-- Installing docs in         /usr/local/share/doc/ctwm
-- Installing examples in     /usr/local/share/examples/ctwm
-- Installing manpage to      /usr/local/man/man1

This leading to:
/usr/local/bin/ctwm
/usr/local/man/man1/ctwm.1.gz
/usr/local/share/ctwm/images/[lotsa.xpm]
/usr/local/share/examples/ctwm/system.ctwmrc


Or a more base-ish:

% make CMAKE_EXTRAS="-DCMAKE_INSTALL_PREFIX=/usr -DETCDIR=/etc" allclean cmake
  [...]
-- System-wide config in      /etc
-- Installing ctwm in         /usr/bin
-- Installing runtime data in /usr/share/ctwm
-- Installing docs in         /usr/share/doc/ctwm
-- Installing examples in     /usr/share/examples/ctwm
-- Installing manpage to      /usr/share/man/man1

/usr/bin/ctwm
/usr/share/ctwm/images/[lotsa.xpm]
/usr/share/examples/ctwm/system.ctwmrc
/usr/share/man/man1/ctwm.1.gz


Note that currently there's nothing put into DOCDIR.  Still to come.

README updated to describe the vars and defaults.


-- 
Matthew Fuller     (MF4839)   |  [email protected]
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
           On the Internet, nobody can hear you scream.

Reply via email to