diff options
author | dholland <dholland@NetBSD.org> | 2014-07-05 19:22:02 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2014-07-05 19:22:02 +0000 |
commit | 03270070d6dcf506ba1a1f8dc4ec596e5a45f344 (patch) | |
tree | 335cac16d85432f99ad641c358d7d3c2d2991ea7 /rogue | |
parent | c1e12dd54872604e41653ab8349f4a906fab5b9a (diff) | |
download | bsdgames-darwin-03270070d6dcf506ba1a1f8dc4ec596e5a45f344.tar.gz bsdgames-darwin-03270070d6dcf506ba1a1f8dc4ec596e5a45f344.tar.zst bsdgames-darwin-03270070d6dcf506ba1a1f8dc4ec596e5a45f344.zip |
Rework /usr/share/doc.
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.
Diffstat (limited to 'rogue')
-rw-r--r-- | rogue/Makefile | 4 | ||||
-rw-r--r-- | rogue/USD.doc/Makefile | 9 |
2 files changed, 5 insertions, 8 deletions
diff --git a/rogue/Makefile b/rogue/Makefile index 2d4a5658..9a9e3b1f 100644 --- a/rogue/Makefile +++ b/rogue/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.18 2013/08/11 03:44:27 dholland Exp $ +# $NetBSD: Makefile,v 1.19 2014/07/05 19:22:03 dholland Exp $ # @(#)Makefile 8.1 (Berkeley) 5/31/93 PROG= rogue @@ -12,9 +12,7 @@ HIDEGAME=hidegame SETGIDGAME=yes MAN= rogue.6 -.if make(install) SUBDIR+=USD.doc -.endif .include <bsd.prog.mk> .include <bsd.subdir.mk> diff --git a/rogue/USD.doc/Makefile b/rogue/USD.doc/Makefile index 38881ba9..f1b5995b 100644 --- a/rogue/USD.doc/Makefile +++ b/rogue/USD.doc/Makefile @@ -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> |