forked from IIJ-NetBSD/netbsd-src
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the <bsd.doc.mk> infrastructure, and update the docs to match the new infrastructure. - Build and install text, ps, pdf, and/or html, not roff sources. - Don't wire the chapter numbers into the build system, or use them in the installed pathnames. This didn't matter much when the docs were a museum, but now that we're theoretically going to start maintaining them again, we're going to add and remove documents periodically and having the chapter numbers baked in creates a lot of thrashing for no purpose. - Specify the document name explicitly, rather than implicitly in a path. Use this name (instead of other random strings) as the name of the installed files. - Specify the document section, which is the subdirectory of /usr/share/doc to install into. - Allow multiple subdocuments. (That is, multiple documents in one output directory.) - Enumerate the .png files groff emits along with html so they can be installed. - Remove assorted hand-rolled rules for running roff and roff widgetry and add enough variable settings to make these unnecessary. This includes support for - explicit use of soelim - refer - tbl - pic - eqn - Forcibly apply at least minimal amounts of sanity to certain autogenerated roff files. - Don't exclude USD.doc, SMM.doc, and PSD.doc directories from the build, as they now actually do stuff. Note: currently we can't generate pdf. This turns out to be a nontrivial problem with no immediate solution forthcoming. So for now, as a workaround, install compressed .ps as the printable form.
- Loading branch information
1 parent
7e6e77d
commit 6a97ad6
Showing
47 changed files
with
450 additions
and
311 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# $NetBSD: Makefile,v 1.7 2007/10/18 18:26:31 tls Exp $ | ||
# $NetBSD: Makefile,v 1.8 2014/07/05 19:22:02 dholland Exp $ | ||
# @(#)Makefile 8.1 (Berkeley) 8/14/93 | ||
|
||
DIR= usd/04.csh | ||
SECTION=usd | ||
ARTICLE=csh | ||
SRCS= tabs csh.1 csh.2 csh.3 csh.4 csh.ap csh.g | ||
MACROS= -ms | ||
|
||
paper.ps: ${SRCS} | ||
${TOOL_SOELIM} -I${.CURDIR} ${.ALLSRC} | \ | ||
${TOOL_ROFF_PS} ${MACROS} > ${.TARGET} | ||
EXTRAHTMLFILES=\ | ||
csh1.png csh2.png csh3.png csh4.png csh5.png csh6.png csh7.png \ | ||
csh8.png csh9.png | ||
|
||
.include <bsd.doc.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# $NetBSD: Makefile,v 1.1 2010/08/22 01:58:16 perry Exp $ | ||
# $NetBSD: Makefile,v 1.2 2014/07/05 19:22:02 dholland Exp $ | ||
# @(#)Makefile 8.1 (Berkeley) 8/14/93 | ||
|
||
DIR= usd/03.shell | ||
SRCS= Rv7man t.mac t1 t2 t3 t4 | ||
MACROS= -ms | ||
|
||
paper.ps: ${SRCS} | ||
${TOOL_REFER} -e -p ${SRCS} | \ | ||
${TOOL_ROFF_PS} ${MACROS} > ${.TARGET} | ||
SECTION=usd | ||
ARTICLE=shell | ||
SRCS= referargs t.mac t1 t2 t3 t4 | ||
MACROS=-ms | ||
ROFF_REFER=yes | ||
#REFER_ARGS=-e -p Rv7man | ||
EXTRAHTMLFILES=shell1.png shell2.png shell3.png shell4.png shell5.png | ||
|
||
.include <bsd.doc.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.\" $NetBSD: referargs,v 1.1 2014/07/05 19:22:02 dholland Exp $ | ||
.\" | ||
.\" Arguments for refer; these were previously passed on the refer(1) | ||
.\" command line: -e -p Rv7man | ||
.R1 | ||
accumulate | ||
database Rv7man | ||
.R2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
# $NetBSD: Makefile,v 1.1 2013/11/22 16:00:45 christos Exp $ | ||
# $NetBSD: Makefile,v 1.2 2014/07/05 19:22:02 dholland Exp $ | ||
# | ||
# @(#)Makefile 8.8 (Berkeley) 10/10/96 | ||
|
||
.include "../../../Makefile.inc" | ||
.PATH: ${DIST}/docs/exref | ||
|
||
DIR= usd/12.ex | ||
SRCS= ex.rm ex.summary | ||
SECTION= usd | ||
ARTICLE= ex | ||
SUBARTICLES= reference summary | ||
SRCS.reference= ex.rm | ||
SRCS.summary= ex.summary | ||
MACROS= -ms | ||
CLEANFILES= summary.ps | ||
|
||
all: paper.ps summary.ps | ||
|
||
paper.ps: ex.rm | ||
${TOOL_TBL} ${.ALLSRC} | ${TOOL_ROFF_PS} ${MACROS} > ${.TARGET} | ||
|
||
summary.ps: ex.summary | ||
${TOOL_TBL} ${.ALLSRC} | ${TOOL_ROFF_PS} ${MACROS} > ${.TARGET} | ||
ROFF_TBL= yes | ||
EXTRAHTMLFILES= \ | ||
ex1.png ex2.png ex3.png ex4.png ex5.png \ | ||
ex6.png ex7.png ex8.png ex9.png ex10.png \ | ||
ex11.png ex12.png ex13.png ex14.png ex15.png \ | ||
ex16.png ex17.png ex18.png ex19.png ex20.png \ | ||
ex21.png ex22.png ex23.png ex24.png ex25.png \ | ||
ex26.png ex27.png | ||
|
||
.include <bsd.doc.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
# $NetBSD: Makefile,v 1.1 2013/11/22 16:00:45 christos Exp $ | ||
# $NetBSD: Makefile,v 1.2 2014/07/05 19:22:03 dholland Exp $ | ||
# | ||
# @(#)Makefile 8.7 (Berkeley) 8/18/96 | ||
|
||
.include "../../../Makefile.inc" | ||
.PATH: ${DIST}/docs/vitut | ||
DIR= usd/12.vi | ||
SRCS= vi.in vi.chars | ||
MACROS= -ms | ||
CLEANFILES+= vitut.ps summary.ps viapwh.ps | ||
|
||
all: vitut.ps summary.ps viapwh.ps | ||
|
||
vitut.ps: ${SRCS} | ||
${TOOL_TBL} ${.ALLSRC} | ${TOOL_ROFF_PS} ${MACROS} > $@ | ||
chmod 444 $@ | ||
|
||
summary.ps: vi.summary | ||
${TOOL_TBL} ${.ALLSRC} | ${TOOL_ROFF_PS} ${MACROS} > $@ | ||
chmod 444 $@ | ||
|
||
viapwh.ps: vi.apwh.ms | ||
${TOOL_TBL} ${.ALLSRC} | ${TOOL_ROFF_PS} ${MACROS} > $@ | ||
chmod 444 $@ | ||
SECTION= usd | ||
ARTICLE= vi | ||
SUBARTICLES= vitut summary | ||
SRCS.vitut= vi.in vi.chars | ||
SRCS.summary= vi.summary | ||
SRCS.viapwh= vi.apwh.ms | ||
MACROS= -ms | ||
ROFF_TBL= yes | ||
EXTRAHTMLFILES= \ | ||
vi1.png vi2.png vi3.png vi4.png vi5.png \ | ||
vi6.png vi7.png vi8.png vi9.png vi10.png \ | ||
vi11.png vi12.png vi13.png vi14.png vi15.png \ | ||
vi16.png vi17.png vi18.png vi19.png vi20.png \ | ||
vi21.png vi22.png vi23.png vi24.png vi25.png \ | ||
vi26.png vi27.png vi28.png vi29.png vi30.png \ | ||
vi31.png vi32.png vi33.png | ||
|
||
.include <bsd.doc.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
# $NetBSD: Makefile,v 1.5 2013/02/17 12:17:40 jmcneill Exp $ | ||
# $NetBSD: Makefile,v 1.6 2014/07/05 19:22:03 dholland Exp $ | ||
# @(#)Makefile 8.1 (Berkeley) 6/8/93 | ||
|
||
DIR= usd/30.rogue | ||
SECTION=usd | ||
ARTICLE=rogue | ||
SRCS= rogue.me | ||
MACROS= -me | ||
|
||
paper.ps: ${SRCS} | ||
${TOOL_TBL} ${SRCS} | ${TOOL_ROFF_PS} ${MACROS} > ${.TARGET} | ||
ROFF_TBL=yes | ||
|
||
.include <bsd.doc.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
# $NetBSD: Makefile,v 1.4 2003/07/10 10:34:20 lukem Exp $ | ||
# $NetBSD: Makefile,v 1.5 2014/07/05 19:22:03 dholland Exp $ | ||
# @(#)Makefile 8.1 (Berkeley) 6/8/93 | ||
|
||
DIR= usd/31.trek | ||
SECTION=usd | ||
ARTICLE=trek | ||
SRCS= trek.me | ||
MACROS= -me | ||
|
||
paper.ps: ${SRCS} | ||
${TOOL_TBL} ${SRCS} | ${TOOL_ROFF_PS} ${MACROS} > ${.TARGET} | ||
ROFF_TBL=yes | ||
|
||
.include <bsd.doc.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
# $NetBSD: Makefile,v 1.3 1996/04/05 01:45:49 cgd Exp $ | ||
# $NetBSD: Makefile,v 1.4 2014/07/05 19:22:03 dholland Exp $ | ||
# @(#)Makefile 8.1 (Berkeley) 6/8/93 | ||
|
||
DIR= smm/03.fsck_ffs | ||
SECTION=smm | ||
ARTICLE=fsck_ffs | ||
SRCS= 0.t 1.t 2.t 3.t 4.t | ||
MACROS= -ms | ||
EXTRAHTMLFILES=fsck_ffs1.png fsck_ffs2.png fsck_ffs3.png fsck_ffs4.png | ||
|
||
.include <bsd.doc.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
# $NetBSD: Makefile,v 1.10 2009/01/19 07:50:20 jmmv Exp $ | ||
# $NetBSD: Makefile,v 1.11 2014/07/05 19:22:03 dholland Exp $ | ||
# | ||
# @(#)Makefile 8.1 (Berkeley) 6/5/93 | ||
|
||
.if make(install) | ||
SUBDIR+= psd smm usd | ||
.endif | ||
|
||
.include <bsd.subdir.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.