NetBSD/usr.bin/m4
dholland c3ab26950f 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.
2014-07-05 19:22:02 +00:00
..
PSD.doc Rework /usr/share/doc. 2014-07-05 19:22:02 +00:00
TEST
lib Handle nbtools build better. 2009-10-28 12:59:24 +00:00
Makefile kill gcc-4.5 warning 2011-08-14 12:59:25 +00:00
NOTES
eval.c Requires stdint.h. 2011-08-21 23:38:43 +00:00
expr.c
extern.h Add __printflike attribution to use vprintf and friends with an argument 2012-03-15 02:02:20 +00:00
gnum4.c Use C89 function definitions 2012-03-20 20:34:57 +00:00
look.c Use C89 function definitions 2012-03-20 20:34:57 +00:00
m4.1 Better document eval, mentioning optional second and third arguments. 2014-01-07 13:32:21 +00:00
main.c Fix wrong loop index leading to infinite loop 2012-04-25 18:23:58 +00:00
mdef.h avoid redefinitions 2013-10-18 20:19:36 +00:00
misc.c Use C89 function definitions 2012-03-20 20:34:57 +00:00
parser.y
pathnames.h Revert previous, to fix build on Mac OS X again. 2011-03-08 23:55:19 +00:00
stdd.h
tokenizer.l Use C89 function definitions 2012-03-20 20:34:57 +00:00
trace.c Use C89 function definitions 2012-03-20 20:34:57 +00:00