From owner-freebsd-doc@FreeBSD.ORG Tue Aug 26 09:02:04 2003 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 90D1016A4BF; Tue, 26 Aug 2003 09:02:04 -0700 (PDT) Received: from arthur.nitro.dk (port324.ds1-khk.adsl.cybercity.dk [212.242.113.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3D7143FD7; Tue, 26 Aug 2003 09:02:03 -0700 (PDT) (envelope-from simon@arthur.nitro.dk) Received: by arthur.nitro.dk (Postfix, from userid 1000) id F3F3510BF8C; Tue, 26 Aug 2003 18:02:02 +0200 (CEST) Date: Tue, 26 Aug 2003 18:02:02 +0200 From: "Simon L. Nielsen" To: Pawel Jakub Dawidek Message-ID: <20030826160202.GF403@FreeBSD.org> References: <20030826082220.GG47959@garage.freebsd.pl> <20030826105621.31c83b95.trhodes@FreeBSD.org> <20030826155417.GI47959@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="n+lFg1Zro7sl44OB" Content-Disposition: inline In-Reply-To: <20030826155417.GI47959@garage.freebsd.pl> User-Agent: Mutt/1.5.4i cc: Tom Rhodes cc: freebsd-doc@FreeBSD.org Subject: Re: bsd.kmod.mk and manual pages. X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Aug 2003 16:02:04 -0000 --n+lFg1Zro7sl44OB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2003.08.26 17:54:17 +0200, Pawel Jakub Dawidek wrote: > 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 > ---[ 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? I actually don't think so. From a quick check it does not appear that bsd.kmod.mk includes bsd.man.mk (which handles all the manual page related things). Normally in FreeBSD all the kernel manual pages are located under src/share/man/man?/ . I assume the reason you want to include the manual page with the module, is because it's a 3rd party module which are not being distriubted as part of FreeBSD? You might want to ask on -hackers, since this is more of a buildsystem problem, than documentation problem (and I don't think most of the buildsystem guys are on -doc). --=20 Simon L. Nielsen FreeBSD Documentation Team --n+lFg1Zro7sl44OB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/S4R6h9pcDSc1mlERAoHLAKCKqsHZhAkRziVNrdU2Fzqc8iS+zACdFdsA p2lRcVA0y6YfAWiIcKs2Cmc= =RFXL -----END PGP SIGNATURE----- --n+lFg1Zro7sl44OB--