Commit Graph

30 Commits

Author SHA1 Message Date
kamil 1c426e1841 Restore the MKGROFF=bo MKCXX=yes build
Mark the documentation in dc(1), gprof(1), rogue(6) and fsck_ffs(8) with
the .roff flag in SUBDIR.

Sponsored by <The NetBSD Foundation>
2018-06-11 14:18:16 +00:00
dholland b7b7574d3b Reorg docs, part 1:
Move all the reference manuals to subdirs of /usr/share/doc/reference.
We have subdirs ref1-ref9, corresponding to man page sections 1-9.

Everything that's the reference manual for a program (sections 1, 6,
8), C interface (sections 2, 3), driver or file system (section 4),
format or configuration (section 5), or kernel internal interface
(section 9) belongs in here.

Section 7 is a little less clear: some things that might go in section
7 if they were a man page aren't really reference manuals. So I'm only
putting things in reference section 7 that are (to me) clearly
reference material, rather than e.g. tutorials, guides, FAQs, etc.
This obviously leaves some room for debate, especially without first
editing the docs with this distinction in mind, but if people hate
what I've done things can always be moved again.

Note also that while roff macro man pages traditionally go in section
7, I have put all the roff documentation (macros, tools, etc.) in one
place in reference/ref1/roff. This will make it easier to find and
also easier to edit it into some kind of coherent form.
2014-07-05 19:22:41 +00:00
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
tv 79ef60507e Goodbye, Berkeley gprof; we shall miss you!
(PSD doc remains here, as it has not lost relevance.)
1999-02-09 18:28:10 +00:00
tv 6f9f9c2a10 Re-enable binutils-based gprof for i386, and disable old gprof on i386. 1999-02-03 00:17:35 +00:00
jonathan e67b964e28 binutils gprof doesn't support mips. Build a.out gprof on mips, to support
kernel profiling.
1998-11-07 17:52:19 +00:00
lukem 9dee5d2b46 don't install in /usr/share if NOSHARE is defined 1998-09-27 17:22:03 +00:00
jonathan 5e0e8cec39 More table-driven changes for different toolchains:
* new bsd.own.mk variable OBJECT_FMT with values "a.out" or "ELF".
  * use OBJECT_FMT in Makefile tests that depend on toolchain.
  * Add new bsd.own.mk variable NOSHLIB that, if set indicates a given
    port doesnt yet do shared libraries. Set on powerpc.
  * Document new feature-test variables in src/share/mk/bsd.README.
Tested on i386, mips, fakedup Alpha environment.
1998-02-23 10:09:31 +00:00
jonathan 90ba84a41a Remove WARNS= 0 from HEAD. 1998-02-23 01:04:08 +00:00
jonathan f0409ef098 Descend into gprof on all ports to build doc/psd/18.gprof.
Don't define PROG in gprof on ELF or powerpc.
Put back WARNS= 0 for compatibility with 1.3.1.
1998-02-23 01:03:25 +00:00
christos 795e0608f6 WARNSify 1998-02-22 12:55:44 +00:00
lukem 8ba07ab0b3 use CPPFLAGS instead of CFLAGS 1997-10-24 09:00:17 +00:00
lukem 927f7e1429 use WARNS=0 not WARNS?=0 to disable warnings 1997-10-19 13:01:25 +00:00
mycroft e96e918e60 Use bsd.subdir.mk as appropriate. 1997-10-11 09:34:07 +00:00
christos 3917c3179d - Makefile cleanups 1997-03-24 21:57:01 +00:00
thorpej 150c33e60b Use ${INSTALL}. 1996-10-18 05:55:26 +00:00
cgd ca971e3467 add -D${MACHINE_ARCH} to cflags; machines with new cpp predefs need it. 1995-04-19 07:24:08 +00:00
cgd 37302d79a6 clean up RCS ids 1995-04-19 07:15:50 +00:00
cgd 138fcd8327 deal with new share/doc strategy 1994-06-30 05:33:30 +00:00
cgd 5b029eb9a8 update for new doc-make/install strategy 1994-06-25 05:57:47 +00:00
cgd 0db4129588 clean up import, etc. 1994-05-17 03:35:48 +00:00
cgd 22a356d3b5 get it to compile, with new location of gmon.h 1994-05-14 06:26:06 +00:00
cgd c440ffb67d kill bogus install -d's, and clean slightly 1994-02-10 01:54:10 +00:00
cgd ba0b79a100 update for MACHINE_ARCH 1993-12-06 05:28:34 +00:00
jtc 3751e964dc Always use `install -d' to make sure destination directory exists & has
correct ownership and permissions.
1993-10-01 00:35:19 +00:00
cgd 4543c1ebfd changes from 0.9-ALPHA2 to 0.9-BETA 1993-08-23 04:59:38 +00:00
mycroft 690cae8181 Add RCS indentifiers. 1993-07-31 15:17:49 +00:00
cgd ede9a5f311 fix -I for csu change. 1993-05-20 01:24:27 +00:00
cgd 773a01b924 make sure /usr/share/misc exists before installing into it. 1993-04-10 20:39:06 +00:00
cgd 02e396fb83 pulled in from net/2. should work fine -- profiling support exists. 1993-03-31 17:24:07 +00:00