Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Sep 2003 10:13:20 +0300
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        nick@garage.freebsd.pl
Cc:        doc@FreeBSD.org
Subject:   Re: bsd.kmod.mk and manual pages.
Message-ID:  <20030901071320.GF30277@sunbay.com>
In-Reply-To: <20030901064611.A3167@phantom.cris.net>
References:  <20030901064611.A3167@phantom.cris.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--kR3zbvD4cgoYnS/6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Sep 01, 2003 at 06:46:11AM +0300, Alexey Zelkin wrote:
> ----- Forwarded message from Pawel Jakub Dawidek <nick@garage.freebsd.pl>=
 -----
>=20
> Date: Tue, 26 Aug 2003 17:54:17 +0200
> From: Pawel Jakub Dawidek <nick@garage.freebsd.pl>
> To: Tom Rhodes <trhodes@freebsd.org>
> Cc: freebsd-doc@freebsd.org
> Subject: Re: bsd.kmod.mk and manual pages.
>=20
> On Tue, Aug 26, 2003 at 10:56:21AM -0400, Tom Rhodes wrote:
> +> Usually driver manual pages are added to section four, and then
> +> they are built with the Makefile from that location.
> +>=20
> +> Or did I misinterpret your question?
>=20
> I want to create Makefile for kernel module:
>=20
> ---[ Makefile start ]---
> KMOD=3D	foo
> SRCS=3D	foo.c
> MAN=3D	foo.4
>=20
> .include <bsd.kmod.mk>
> ---[ Makefile end ]---
>=20
> As you can see, manual page is in the same directory, but bsd.kmod.mk
> ignores 'MAN' variable, so manual page isn't gziped on 'make' nor
> installed on 'make install'.
>=20
> For example bsd.prog.mk know how to handle 'MAN' variable.
>=20
> So my question is: Is there some clean way to prepare Makefile which will
> handle module with manual page?
>=20
Pawel,

The short answer is NO, you should put your manpage in share/man/man4/.
The long answer is that it was decided that bsd.kmod.mk will not handle
manpages anymore, as it's likely that src/sys/modules/ will disappear
at some point completely.

: revision 1.112
: date: 2002/01/11 15:48:36;  author: ru;  state: Exp;  lines: +2 -16
: Drop <bsd.man.mk> support from <bsd.kmod.mk>.
: Not objected to by:     -current


Cheers,
--=20
Ruslan Ermilov		Sysadmin and DBA,
ru@sunbay.com		Sunbay Software Ltd,
ru@FreeBSD.org		FreeBSD committer

--kR3zbvD4cgoYnS/6
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE/UvGPUkv4P6juNwoRApnwAJsGGDqrA8gXXW6mj/BtQywE/cemFgCfVVgv
CFcQWRVsOp2MSfJYCNYXZUE=
=Djx0
-----END PGP SIGNATURE-----

--kR3zbvD4cgoYnS/6--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030901071320.GF30277>