Home | History | Annotate | Download | only in mk
History log of /src/share/mk/bsd.man.mk
RevisionDateAuthorComments
 1.122  10-Nov-2020  kamil Reintroduce the support of MKCATPAGES

Requested by <mrg>
 1.121  08-Nov-2020  kamil Remove the support for MKCATPAGES

It was optional since 1999 and disabled by default since 2012.

Proposed on tech-userlevel@.
 1.120  21-Jan-2019  christos Most of the mv operations are to move temporary files to their final place.
Some use -f, others don't. This can lead to spurious build failures when
the user performing the build changes. Centralize, and always use -f.
 1.119  14-Jul-2017  jmcneill branches: 1.119.2; 1.119.4; 1.119.6;
Latest mandoc no longer supports multiple -O options. Instead it expects
option values to be separated by commas. PR toolchain/52402
 1.118  19-Oct-2015  dholland branches: 1.118.8;
because I'm feeling tetchy, implement "make describe" for everything that
has man pages.
 1.117  19-Dec-2014  christos protect the variable name, and explain why setting it does not work.
 1.116  19-Dec-2014  christos Explain why used to fold case when deciding if we are going to install manual
page links, and change the behavior not to do this anymore.
 1.115  05-Aug-2014  apb Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.
 1.114  25-Oct-2013  apb branches: 1.114.2;
Rename _MNUMBERS to _MSECTIONS. The manual section identifiers
are not just numbers any more.

Also introduce a new variable, _MSECTIONREGEX, as a regular expression
to match any of the elements of ${_MSECTIONS}. Use this instead of
\.[1-9][a-z]*.
 1.113  25-Oct-2013  apb Recognise .3lua and .9lua as man page extensions. Source
files like foo.3lua will result in installed files like
/usr/share/man/man3lua/foo.3lua, /usr/share/man/cat3lua/foo.0,
and /usr/share/man/html3lua/foo.html.
 1.112  21-Mar-2013  christos fix groff html generation
 1.111  21-Mar-2013  christos handle NOMANDOC in the html case too
 1.110  30-Nov-2012  joerg CATDEPS is bogus for mandoc, so disable it in that case.
 1.109  10-Sep-2011  apb branches: 1.109.2; 1.109.8;
Move all "clean" and "cleandir" processing to a new bsd.clean.mk
file, as proposed in tech-toolchain.
 1.108  30-Jun-2011  matt Replace gzip with ${TOOL_GZIP} in manual compression.
Modify the description of USE_PIGZGZIP.
 1.107  08-Mar-2011  njoly Adjust html link template and css location for man pages in arch
subdirs.
 1.106  12-Jan-2011  joerg mandoc now supports tbl(1) formatting, so adjust rules.
Use -Wstop in lintmanpages.
 1.105  02-Dec-2010  wiz Remove HTMLDEPS; was only used by nroff.
Ok joerg@
 1.104  01-Jun-2010  joerg Install mdocml's default CSS as /usr/share/man/style.css. Switch HTML
man pages to use mandoc unconditional as it gives reasonable output for
all man pages, not only a subset of mdoc(7). Use the newly installed
style.css for formatting and produce hyperlinks for .Xr.
 1.103  01-Mar-2010  joerg Make lintmanpages not depend on MKMANDOC, it is built by default now.
Use -Wall to increase usefulness.
 1.102  23-Oct-2009  joerg Do not run mandoc for lintmanpages if MANPAGES is empty.
Add it to the list of targets to recurse for.
 1.101  23-Oct-2009  joerg Add MKMANDOC option to trigger building cat pages and HTML pages with
mdocml. Add a lintmanpages target for developers to check man pages
with the strictest settings of mandoc.
 1.100  10-Apr-2009  apb Add LINKSOWN, LINKSGRP, and LINKSMODE variables for use by bsd.links.mk
when installing hard links. They have no effect except when using a
metalog, in which case the information is added to the metalog. In
the future, these variables may be replaced by a method for explicitly
recording hard links in a metadata log.

Also change a few things that called ${INSTALL_LINK} without going
through bsd.links.mk.

Reviewed by perry and joerg. This should fix PR 24457 and PR 41155.
 1.99  31-Mar-2009  perry add -n to gzip invocation
 1.98  29-Aug-2008  lukem branches: 1.98.2; 1.98.4; 1.98.6;
Use ${MANDIR} instead of /usr/share/man as part of the default ${HTMLDIR}
 1.97  27-Aug-2008  lukem Rework MKHTML (HTML manual pages) implementation to behave like
the manpages and catpages builds, with similar target names (etc).
 1.96  11-Sep-2006  dbj branches: 1.96.16; 1.96.20;
fixes for installing into a case insensitive $DESTDIR
when files may have hard links to a a name that only differs by case
- change install to unconditionally remove its temporary file
when installing hard links with -r. This avoids problems when
built with posix rename(2) semantics and reinstalling an existing
hard link.
- rework hard link targets in bsd.man.mk and bsd.links.mk
to use makefile constructs instead of shell constructs
- always reinstall hard links that may have case conflicts, even
when MKUPDATE=yes, this ensures that they get added to METALOG
- remove man pages which were hard linked to themselves in libform
- remove improper hard link command for existing man page in libkrb5
- fix libl's makefile to include bsd.lib.mk at end
- remove shell quoting in link target for test's [.1 man page
 1.95  16-Mar-2006  jwise Now that we have real build system support for syspkgs, remove someone's
half-implemented idea of building `syspkgs' (really a few giant blobs of the
same granularity of the old sets) using install(1).
 1.94  19-Apr-2005  tron Honor contents of "CLEANFILES" in "cleandir" target.
 1.93  23-Jun-2004  jmc branches: 1.93.2;
If USETOOLS != yes then depend on the system tmac directory, not DESTDIR since
USETOOLS=no/never means the system groff is being used so depending on
anything except it's tmac files makes no sense (and prevents builds with
USETOOLS=no/never from working as PR#23067 points out)
 1.92  29-Jan-2004  lukem oops in previous; can't call cleanhtml in cleandir at this time
 1.91  29-Jan-2004  lukem Cosmetically tweak how .PHONY is used by (generally) providing it as a source,
instead of using it as a target with all the rules as its sources.
 1.90  07-Nov-2003  lukem Support MAKEVERBOSE more effectively.
 1.89  06-Nov-2003  lukem Support MAKEVERBOSE when installing man symlinks.
Note; this makes symlink installation more "chatty" in the MAKEVERBOSE=2
case, but results in more consistent operation for that level.
 1.88  21-Oct-2003  lukem Rework how MAKEVERBOSE operates:

* Don't bother prefixing commands with a line of ${_MKCMD}\
and instead rely upon "make -s". This is less intrusive on
all the Makefiles than the former. Idea from David Laight.

* Rename the variables use to print messages. The scheme now is:
_MKMSG_FOO Run _MKMSG 'foo'
_MKTARGET_FOO Run _MKMSG_FOO ${.TARGET}
From discussion with Alistair Crooks.
 1.87  19-Oct-2003  lukem Provide _MKMSG{BUILD,CREATE,COMPILE,FORMAT,INSTALL,LINK,LEX,YACC} to display
${_MKMSG} " ... {$.TARGET}" and use appropriately.

Provide _MKMSGLINK.m to provide "link" message by itself (without ${.TARGET})

Replace _MKSHCMD with _MKSHECHO
 1.86  18-Oct-2003  lukem implement MAKEVERBOSE for rules which are of the form:
@cmp -s ${.ALLSRC} ${.TARGET} || ( echo cmd && cmd )
 1.85  18-Oct-2003  lukem Implement MAKEVERBOSE to control how "verbose" the standard make(1) rules are.
Supported values:
0 Minimal output ("quiet")
1 Describe what is occurring
2 Describe what is occurring and echo the actual command ("verbose")
This is the default, and is equivalent to the previous behaviour.
 1.84  03-Sep-2003  lukem pull in <bsd.files.mk> incase LNFILES is used by <bsd.man.mk> user.
 1.83  18-Jul-2003  lukem Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.
 1.82  18-Jul-2003  lukem Add MKMANZ; if not set to "no", compress the manual pages at installation time.
This replaces the previous .if defined (MANZ) behaviour, although the latter
will set MKMANZ=yes for compatibility purposes.

Don't bother with -P-bou in TOOL_ROFF_HTML; it doesn't appear to be
necessary with groff 1.19.

Fix NOHTML implementation to be consistent with other NOxxx / MKxxx
variables, and expose the user-tweakable MKHTML.
 1.81  10-Jul-2003  lukem Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
 1.80  30-Jun-2003  wiz Adapt CATDEPS/HTMLDEPS for groff-1.19.
 1.79  22-Oct-2002  perry Pass 1 of SYSPKG changes to automatically add tags=pkgname_pkg to METALOG.
Not quite ready for prime time yet.
 1.78  11-Feb-2002  mycroft Don't use .PHONY for targets that are actually installed. Instead use force
dependencies. (Among other things, `make -t install' does something vaguely
sensible now.)
 1.77  07-Feb-2002  ross Honor MANSUBDIR when installing md html pages.
 1.76  07-Feb-2002  ross fix html sources, they were depending on -mdoc, not -mdoc2html
 1.75  04-Feb-2002  christos s/.NOSUFF/.MADE/
 1.74  03-Feb-2002  christos Apply a .NOSUFF: directive to targets we don't want to have processed by
the suffix rules engine.
 1.73  06-Jan-2002  mrg generate man pages into a temporary file and rename it if groff succeeds.
this avoids a problem where groff was dumping core and leaving empty
manpage.catN files, that would later not be rebuilt.
 1.72  17-Dec-2001  tv Always depend on ${MANPAGES}, so deliberately pre-generated files are
built automatically (even without a ${MANSUFFIX}).
 1.71  28-Nov-2001  jmc There's no need for TMACDIR here after all. Anything using it is using it for
FILES installs so it can't have DESTDIR in front of it (and those Makefiles
all explicitly set it).
 1.70  28-Nov-2001  tv Fix the :U's used with ${UPDATE} so that stray values don't get put into
the .PHONY: target.
 1.69  28-Nov-2001  jmc Separate out TMACDIR's use for install's from it's dependency function.
The dependency should be against the TOOLDIR files (is USETOOLS=yes) but
installs will always use ${DESTDIR}/usr/share/tmac.

Without this if people do not have /usr/share/tmac/tmac.andoc on their
systems while building the build will break in the groff areas due to
the dependency rules.
 1.68  19-Nov-2001  perry replace instances of ln with ${INSTALL_LINK} and ${INSTALL_SYMLINK}
 1.67  17-Nov-2001  thorpej Need bsd.sys.mk for the GROFF definition in the non-USETOOLS case.
 1.66  12-Nov-2001  tv Major overhaul of src/tools and host toolchain. Summary of changes:

* Rewrite src/tools Make logic to work like the rest of the tree wrt
"dependall" and "install". The old "make build" hack is gone.

* Remove the MKTOOLS logic. This was linked to the "make build" hack,
and was only needed because TOOLDIR originally had no writable default.

* Redo the GNU configure/make logic to make it fit reasonably in a
BSD make wrapper. Use new ${.ALLTARGETS} variable to scan for
targets in $(srcdir), and mark them with .MADE: to prevent rebuilding.

* Only build cross tools in src/tools; remove some messy logic in
src/usr.* and src/gnu/usr.* that would do target filename rewriting
(improves consistency and readability).

* Add the ability to build cross gdb at tool build time by setting
MKCROSSGDB (default no) to "yes" in mk.conf.

* Add src/tools/groff and set up paths to work with this cross groff.
 1.65  04-Nov-2001  enami Don't try to build nonexistent compressed man page.
 1.64  02-Nov-2001  tv Improve readability and reduce redundant redundancy in share/mk; add some
descriptive comments. The guts of hostprog, lib, and prog are mostly
unchanged; this will be done in another pass.

Make several things work properly with UNPRIVILEGED set, and make the
install-time "cmp" logic work for MANZ. Also reimplement INCS{DIR,NAME}_foo
(requested by wiz) in a backwards compatible way.

Reviewed by christos.
 1.63  14-Aug-2001  tv Rather than explicitly saying "clean cleandir:" all the time, make clean
a dependency of cleandir (so that "make cleandir" implies "make clean").
 1.62  01-Jun-2001  tv Make "distclean" a REAL synonym for "cleandir" by actually aliasing it
in <bsd.own.mk>, rather than sprinkling it in all the .mk files (and
some Makefiles throughout the tree).
 1.61  08-May-2001  sommerfeld Suppress duplicate entries in ALLFILES, FILES, INCS, DEPINCS, INFOFILES,
NLSALL, CATPAGES, MANPAGES, HTMLPAGES, and SCRIPTS.
 1.60  21-Mar-2001  simonb Don't overwrite catman pages if there's no difference between the old
and the new pages. As per discussion on tech-install (a little while
ago).
 1.59  05-Mar-2001  tron Back out last change as there is no measurable performance gain.
 1.58  05-Mar-2001  tron Invoke "groff" directly when building manual pages, "nroff" is just a
shell script wrapper. This saves at least one fork(2) and one exec(2)
while creating each manual page and should thus speed up builds.
 1.57  26-Sep-2000  phil Get the correct command line using groff instead of nroff.
 1.56  22-Sep-2000  phil Add rules to make and install html pages in /usr/share/man/html*
 1.55  13-Aug-2000  itojun MLINK optimization based on timestamp.
 1.54  13-Aug-2000  itojun do not test $UPDATE nor file existence, on "MLINKS" installation.
the check will leave original manpage and linked manpage unsynchronized,
as we use hard link instead of symlinks.

this backs out 1.37 -> 1.38 change.
 1.53  06-Jun-2000  mycroft branches: 1.53.2;
Minor rearrangement.
 1.52  06-Jun-2000  mycroft Use ODE make(1) features to eliminate extra variables and move several things
outside of .for loops. (Needs more work to completely eliminate .for.)

XXX Don't look at this stuff. It will make your head hurt.
 1.51  19-Feb-2000  erh branches: 1.51.2;
Add NOPATH to prevent .cat* files in the search path from interfering.
 1.50  22-Jan-2000  mycroft Make `dependall' play nicely with SUBDIR, using a hack similar to `realinstall'
for both `depend' and `all'.
Also, remove the old hack that invokes an extra shell for .depend, now that
make(1) has been fixed.
 1.49  14-Sep-1999  perry Add a "dependall" target, which does a "make depend" and then "make all"
in a single directory. This is useful in "make build" because by doing
the build immediately after the depend, all sources will typically
still be in the buffer cache, thus saving significant time over doing
a "make depend" on all the directories and then a "make all".
 1.48  04-Sep-1999  fredb Permit "make all install", as well as "make foo install" (where foo would be
installed by "make install") without setting of BUILD. All cases where BUILD
is already set are unchanged from the old behavior.

"make all install" is now practically equivalent to "make BUILD= all install",
but without actually setting build.

Fixes pr's 8313, 3894.
 1.47  21-Aug-1999  simonb Add ${INSTPRIV} to ${INSTALL} commands.
 1.46  16-Apr-1999  mycroft branches: 1.46.2;
Use -Tascii for pre-generated man pages, to avoid some nroff character set
magick.
 1.45  13-Feb-1999  christos branches: 1.45.2;
Don't attempt to build catpages when MKMAN == no
 1.44  12-Feb-1999  lukem for MKSHARE=no, set MKDOC=no MKMAN=no MKNLS=no, and for MKMAN=no, set
MKCATPAGES=no. this simplifies various tests.
 1.43  12-Feb-1999  lukem * Add support for MKDOC MKLINKLIB MKLINT MKMAN MKNLS MKOBJ MKPIC MKPICINSTALL
MKPROFILE MKSHARE, which default to `yes' unless an equivalent NOxxx
variable is defined.
* Add MKCATPAGES, which if "no" prevents catpages from being built or installed

Users should use "MKxxx=no" instead of "NOxxx=" in /etc/mk.conf, because
this allows easy override on the make(1) command line (e.g 'make MKSHARE=yes'
to override MKSHARE=no in /etc/mk.conf).
 1.42  04-Feb-1999  christos PR/2936: Brian C. Grayson: Avoid truncating precious files when installing
and the filesystem is full. Added ${RENAME} flag to install, which when set
to -r installs on a temporary file and then renames to the final destination.
${RENAME} is currently set to nothing in bsd.own.mk, but one can turn it
on in /etc/mk.conf.
 1.41  28-Sep-1998  christos Use preserve flag in install.
 1.40  27-Sep-1998  lukem don't build/install man pages or docs if NOSHARE defined
 1.39  09-Aug-1998  lukem add distclean as a synonym for cleandir
 1.38  09-Apr-1998  fair a link installation performance optimization: only fire off "ln -f", not "rm -f; ln" for each link created
 1.37  15-Feb-1998  thorpej Make the .N.catN rules depend on the troff macros used in manpage builds.
 1.36  02-Dec-1997  mikel add missing 'man' so unformatted manpage installation will work when
target exists; solution provided by christos
 1.35  30-Oct-1997  mrg set all: target for defined(NOMAN) that does nothing.
 1.34  11-Oct-1997  mycroft branches: 1.34.2;
Several changes:
* Allow bsd.man.mk to be included separately.
* Always include bsd.own.mk and bsd.obj.mk.
* Include bsd.man.mk and bsd.nls.mk even if NOMAN or NONLS; just turn off
building of the affected files instead.
* Require bsd.subdir.mk to be included explicitly.
(Will make appropriate changes to Makefiles shortly.)
 1.33  30-Jun-1997  phil Some man pages need tbl to make their man page. This adds support for
tbl in building man pages. If the variable USETBL is defined, the
rules for making the man pages include tbl before nroff.

This supports at least 3 man pages in the tree.
(Related to PR 3144.)
 1.32  09-May-1997  mycroft Automatically add the .c files corresponding to .l and .y files to DPSRCS.
Automatically add DPSRCS to CLEANFILES.
 1.31  07-May-1997  mycroft Always define cleanman.
 1.30  07-May-1997  mycroft Various simplifications.
 1.29  06-May-1997  mycroft Make most of the install targets .PRECIOUS.
 1.28  06-May-1997  mycroft Add a pile of missing .PHONYs.
 1.27  15-Apr-1997  perry fix 3497 from Manuel Bouyer -- install source man pages with proper suffix.
 1.26  29-Mar-1997  mikel merge lite-2 changes (mostly SCCSids)
 1.25  24-Mar-1997  christos make rules update:
- add UPDATE and BUILD features
- add new FILES, INCS, SCRIPTS variables
- allow man pages source installation
 1.24  18-Oct-1996  thorpej Use ${INSTALL} rather than "install".
From Simon J. Gerraty <sjg@zen.void.oz.au>, PR #1458.
 1.23  10-Feb-1996  jtc Use ksh-style substring parameter expansion expressions instead of
calling expr when constructing manpage directory and file names.
Much, much faster.
 1.22  15-Jan-1996  thorpej Allow override of nroff program, requested by Masanobu Saitoh
<msaitoh@spa.is.uec.ac.jp> in PR #1741.
 1.21  25-Nov-1995  perry Add support for Section 9 (kernel internals) manpages
 1.20  07-Jun-1995  cgd make this work whether or not MANZ is defined. also, clean it up a bit,
remove some extra cruft, and make the way compressed man pages are installed
a bit more sane. (DON'T blow away uncompressed man pages of the same name,
if they're also there...)
 1.19  02-Jun-1995  brezak define MANZ=1 in bsd.own to get compressed man pages installed
 1.18  28-Dec-1994  mycroft Insert a missing ${MANSUBDIR}.
 1.17  28-Dec-1994  mycroft Install links after, not before the pages.
 1.16  23-Dec-1994  cgd fix up a botch, defining MANALL when there weren't any MANs.
 1.15  22-Dec-1994  cgd specify man pages differently, and document how.
 1.14  30-Jun-1994  cgd RCSID frobbing, and minor sanity adjustments.
 1.13  09-Feb-1994  cgd kill install -d's.
 1.12  31-Jan-1994  jtc Moved manpage formatting rules from sys.mk to bsd.man.mk.
Some programs (like ispell) use *.[0-8] for non-manpage things, and having
the manpage rules in sys.mk really messes things up.
 1.11  25-Jan-1994  jtc Change regular expressions used by expr in MLINKS processing so we can have
manpages with more than one dot. For example, resolve.conf(5)
 1.10  15-Aug-1993  mycroft I completely blew that...
 1.9  15-Aug-1993  mycroft Don't automatically include bsd.subdir.mk in bsd.prog.mk and bsd.lib.mk.
Put back .MAIN in bsd.man.mk, and be careful not to include ../Makefile.inc
a second time.
 1.8  15-Aug-1993  mycroft Move man rules to sys.mk.
Use bsd.subdir.mk for building subdirectories.
Don't forget to remove x.cc and x.C when using SHAREDSTRINGS.
Make ${PROG} always depend on ${LIBCRT0}.
Don't duplicate code between cleandir and clean.
Move tags target to bsd.dep.mk.
Move STRIP to bsd.own.mk.
Remove redundant definitions of {BIN,MAN}{DIR,GRP,OWN,MODE}.
Move {LIB,DOC}{DIR,GRP,OWN,MODE} defaults to bsd.own.mk.
 1.7  15-Aug-1993  mycroft Abstract out dependency stuff, and add RCS identifiers.
 1.6  15-Aug-1993  mycroft Create target directories with `install -d', and move `obj' targets into one
file.
 1.5  09-Apr-1993  cgd various changes to default make rules. from patch 101.
note that only the "sensible" changes in patch 101 are implemented.
 1.4  08-Apr-1993  cgd try to do the right thing, in terms making directories before we
install into them, and get the manpage cleans _OUT_ of "clean".
they don't belong there, only in cleandir, WFJ be damned.
 1.3  08-Apr-1993  cgd fixed typos...
 1.2  08-Apr-1993  cgd (silently) make sure we have directories before installing
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2  29-Mar-1997  mikel import 4.4BSD-Lite2 versions
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.34.2.2  09-Dec-1997  thorpej Sync w/ trunk: fix installation of unformatted man pages (mikel)
 1.34.2.1  02-Nov-1997  mellon Pull up rev 1.35 from trunk (billc)
 1.45.2.3  15-Aug-2000  he Pull up revision 1.54 (requested by itojun):
Do not test $UPDATE nor file existence on MLINKS installation,
so that original manual page and links do not get out of sync.
 1.45.2.2  10-Sep-1999  he Pull up revision 1.48:
Allow natural use of multiple "make" targets in the main tree
without setting BUILD, fixing PR#8313 and PR#3894.
 1.45.2.1  28-Aug-1999  he Pull up revision 1.46:
Use -Tascii for pre-generated man pages, avoiding nroff character
set dependence on LESSCHARSET (!). (bad)
 1.46.2.1  10-Aug-1999  mcr added Makefile flag "MORTALINSTALL" which removes -o/-g from
install arguments:
MORTALINSTALL If "yes", then omit setting group and ownership on
all files that are installed. This can be used to
permit non-root to install files, particularly
useful when working across NFS, or when $DESTDIR
is local. Do not use on production systems.

This relates to PR bin/3563.
These files are being checked into a branch because I want
them carefully reviewed by various parties, and because they
are not fully tested.
 1.51.2.1  22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.53.2.1  13-Aug-2000  itojun pullup 1.53 -> 1.55 (approved by releng-1-5)

when install hard link for MLINKS, test timestamps, not $UPDATE.
without this change, "make install UPDATE=YES" will leave obsolete MLINKS
behind.

1.53 -> 1.54
> do not test $UPDATE nor file existence, on "MLINKS" installation.
> the check will leave original manpage and linked manpage unsynchronized,
> as we use hard link instead of symlinks.
>
> this backs out 1.37 -> 1.38 change.

1.54 -> 1.55
> MLINK optimization based on timestamp.
 1.93.2.1  07-May-2005  riz Pull up revision 1.94 (requested by tron in ticket #148):
Honor contents of "CLEANFILES" in "cleandir" target.
 1.96.20.1  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.96.16.1  05-Oct-2008  mjf Sync with HEAD.
 1.98.6.1  06-Jun-2009  bouyer branches: 1.98.6.1.2;
Pull up following revision(s) (requested by snj in ticket #790):
share/mk/bsd.lib.mk: revision 1.298
share/mk/bsd.man.mk: revision 1.100
share/mk/bsd.hostprog.mk: revision 1.55
distrib/sets/maketars: revision 1.66
share/zoneinfo/Makefile: revision 1.43
share/mk/bsd.kmodule.mk: revision 1.19
usr.bin/xinstall/xinstall.c: revisions 1.106 - 1.108 via patch
share/mk/bsd.prog.mk: revision 1.241
share/dict/Makefile: revision 1.17
share/mk/bsd.README: revision 1.249
distrib/common/parselist.awk: revision 1.16
share/mk/bsd.links.mk: revision 1.34
Explicitly sort entries on preparing set files from METALOG.
METALOG could have different order due to install(1) race
on parallel builds, and mtree(8) doesn't sort files.
Should fix inconsistent shared sets among builds as seen in
/pub/NetBSD-daily/netbsd-5/200904010000Z/shared/ and
/pub/NetBSD-daily/netbsd-5/200904010002Z/shared/ dirs.
Okay'ed by snj@.
Changes for installing with a metalog:
* When installing hard links and using a metalog, if -o, -g, -m, or -f
args were explicitly specified on the command line, then believe them,
but do not implicitly believe uname/gname/mode/flags from the file
system.
* Output fields in the same order used by mtree.
Fix -Wshadow -Wcast-qual issues
Re-calculate size and digestresult after stripping, to ensure that
correct values appear in the metalog.
Add LINKSOWN, LINKSGRP, and LINKSMODE variables for use by bsd.links.mk
when installing hard links. They have no effect except when using a
metalog, in which case the information is added to the metalog. In
the future, these variables may be replaced by a method for explicitly
recording hard links in a metadata log.
Also change a few things that called ${INSTALL_LINK} without going
through bsd.links.mk.
Reviewed by perry and joerg. This should fix PR 24457 and PR 41155.
 1.98.6.1.2.1  21-Apr-2010  matt sync to netbsd-5
 1.98.4.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.98.2.1  06-Jun-2009  bouyer Pull up following revision(s) (requested by snj in ticket #790):
share/mk/bsd.lib.mk: revision 1.298
share/mk/bsd.man.mk: revision 1.100
share/mk/bsd.hostprog.mk: revision 1.55
distrib/sets/maketars: revision 1.66
share/zoneinfo/Makefile: revision 1.43
share/mk/bsd.kmodule.mk: revision 1.19
usr.bin/xinstall/xinstall.c: revisions 1.106 - 1.108 via patch
share/mk/bsd.prog.mk: revision 1.241
share/dict/Makefile: revision 1.17
share/mk/bsd.README: revision 1.249
distrib/common/parselist.awk: revision 1.16
share/mk/bsd.links.mk: revision 1.34
Explicitly sort entries on preparing set files from METALOG.
METALOG could have different order due to install(1) race
on parallel builds, and mtree(8) doesn't sort files.
Should fix inconsistent shared sets among builds as seen in
/pub/NetBSD-daily/netbsd-5/200904010000Z/shared/ and
/pub/NetBSD-daily/netbsd-5/200904010002Z/shared/ dirs.
Okay'ed by snj@.
Changes for installing with a metalog:
* When installing hard links and using a metalog, if -o, -g, -m, or -f
args were explicitly specified on the command line, then believe them,
but do not implicitly believe uname/gname/mode/flags from the file
system.
* Output fields in the same order used by mtree.
Fix -Wshadow -Wcast-qual issues
Re-calculate size and digestresult after stripping, to ensure that
correct values appear in the metalog.
Add LINKSOWN, LINKSGRP, and LINKSMODE variables for use by bsd.links.mk
when installing hard links. They have no effect except when using a
metalog, in which case the information is added to the metalog. In
the future, these variables may be replaced by a method for explicitly
recording hard links in a metadata log.
Also change a few things that called ${INSTALL_LINK} without going
through bsd.links.mk.
Reviewed by perry and joerg. This should fix PR 24457 and PR 41155.
 1.109.8.3  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.109.8.2  23-Jun-2013  tls resync from head
 1.109.8.1  25-Feb-2013  tls resync with head
 1.109.2.2  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.109.2.1  16-Jan-2013  yamt sync with (a bit old) head
 1.114.2.1  10-Aug-2014  tls Rebase.
 1.118.8.1  25-Jul-2017  snj Pull up following revision(s) (requested by jmcneill in ticket #137):
share/mk/bsd.man.mk: revision 1.119
Latest mandoc no longer supports multiple -O options. Instead it expects
option values to be separated by commas. PR toolchain/52402
 1.119.6.1  10-Jun-2019  christos Sync with HEAD
 1.119.4.1  26-Jan-2019  pgoyette Sync with HEAD
 1.119.2.2  14-Jul-2017  jmcneill 2261454
 1.119.2.1  14-Jul-2017  jmcneill file bsd.man.mk was added on branch perseant-stdc-iso10646 on 2017-07-14 17:30:32 +0000

RSS XML Feed