c3ab26950f
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.
30 lines
666 B
Makefile
30 lines
666 B
Makefile
# $NetBSD: Makefile,v 1.25 2014/07/05 19:22:04 dholland Exp $
|
|
#
|
|
# @(#)Makefile 8.3 (Berkeley) 5/16/94
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
# The following modules do not build/install:
|
|
# 12.vi
|
|
|
|
# Missing:
|
|
# 14.jove 15.sed 28.bib
|
|
|
|
# Missing from 4.4BSD-Lite:
|
|
# 02.learn 03.shell 05.dc 06.bc 08.mh 09.edtut 10.edadv
|
|
# 16.awk 21.troff 22.trofftut 23.eqn 24.eqnguide
|
|
# 25.tbl 26.refer 27.invert 29.diction
|
|
|
|
SUBDIR+=01.begin 17.msmacros 18.msdiffs 19.memacros 20.meref
|
|
#SUBDIR+=04.csh 07.mail 11.edit 12.ex 13.viref
|
|
#SUBDIR+=30.rogue 31.trek
|
|
|
|
SECTION=usd
|
|
SUBARTICLES=title contents
|
|
SRCS.title=Title
|
|
SRCS.contents=00.contents
|
|
MACROS=-ms
|
|
|
|
.include <bsd.doc.mk>
|
|
.include <bsd.subdir.mk>
|