aboutsummaryrefslogtreecommitdiff
path: root/share/mk/bsd.man.mk
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-231-1/+0
| | | | | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/ Similar commit in main: (cherry picked from commit d0b2dbfa0ecf)
* pkgbase: Add an src.conf option for splitting man pagesEmmanuel Vadot2021-08-161-0/+9
| | | | | | | | | | | | | Man pages can be big in total, add an options to split man pages in -man packages so we produce smaller packages. This is useful for small jails or mfsroot produced of pkgbase. The option is off by default. Reviewed by: bapt, Mina Galić <me@igalic.co> Differential Revision: https://reviews.freebsd.org/D29169 MFC after: 2 weeks (cherry picked from commit c7e6cb9e08d6b51e677a9f5546b8e36d678687d0)
* Correct link metadata created when installing with -DNO_ROOT.Brooks Davis2018-06-291-1/+1
| | | | | | | | | | | | | Explicitly specify owner/group/mode metadata when creating links. More consistently use INSTALL_SYMLINK to install symlinks. Reviewed by: bdrewery Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D11231 Notes: svn path=/head/; revision=335797
* Revert r301079.Bryan Drewery2016-06-031-4/+4
| | | | | | | | | | | This breaks cross-building with WITH_META_MODE since it will rebuild 'build-tools' during the 'everything' phase. A more proper fix is coming to bmake to implicitly require .META unless .NOMETA (and other restrictions) are in place. Notes: svn path=/head/; revision=301284
* WITH_META_MODE: Mitigate switching from without to with META_MODE.Bryan Drewery2016-05-311-4/+4
| | | | | | | | | | | | | | | | Adding .META to targets-to-build will ensure that they will rebuild if there is no .meta file. Adding it to all SUFFIXES and objects ensures that at least objects will rebuild if there is no .meta file. This will be reverted if bmake's behavior changes to rebuild on missing .meta files. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=301079
* MFHGlen Barber2016-03-021-11/+9
|\ | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=296318
| * Remove _manpages and _maninstall targets as they are no longer needed.Bryan Drewery2016-02-261-11/+9
| | | | | | | | | | | | | | | | | | | | r96164 added them to avoid recursing twice with _SUBDIR. That issue was fixed in bsd.subdir.mk in r291635 for all targets. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296116
* | MFHGlen Barber2016-02-081-18/+14
|\| | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295394
| * MLINKS: Deduplicate some of the logic, simplify, and unhide install commands.Bryan Drewery2016-02-041-18/+14
| | | | | | | | | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=295229
| * Fix cat files being installed to wrong place since r284685.Bryan Drewery2016-02-041-2/+2
| | | | | | | | | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=295228
* | MFH r289384-r293170Glen Barber2016-01-041-15/+21
|\| | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=293172
| * Fix installation of manpages with WITHOUT_COMPRESS broken since r284685.Bryan Drewery2015-10-221-14/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This partially reverts r284685. An attempt was made in r285295 to fix this but was not enough. There were still $${} vars in the code that should have been using the ${_page} and ${_sect} vars, but the bigger problem was that .for cannot be used on .ALLSRC as it is not defined when the .for is evaluated. Using ${MAN} here in a .for loop doesn't work either as the paths are not expanded right for lib/libc/ subdirs despite having a .PATH set for all of them. Add some comments around long .else and .endif as well. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289772
| * Make installing to a non-existent directory an error.Bryan Drewery2015-10-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this, if a file was installed to DESTDIR/some/dir and that directory was missing due to not having ran 'make distrib-dirs' yet, the file would be installed as 'some/dir'. For something like bsd.incs.mk with INCLUDEDIR being a sub-directory of /usr/include, this could result in all of the headers being installed to a file rather than getting a directory of them. Now it will error that the file/directory does not exist rather than hide the issue. Another option being discussed is to implement GNU's install -D flag which would auto create any missing directories. This is a mitigation of the problem. The proper order to the build is to run 'make distrib-dirs' first, but that can be forgotten if building from a sub-directory after updating the source code to the latest revision. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=289391
* | Merge from headBaptiste Daroussin2015-10-091-2/+2
|\| | | | | | | Notes: svn path=/projects/release-pkg/; revision=289092
| * In jobs mode we can use .ORDER to force stage_links to run after otherSimon J. Gerraty2015-10-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | stage_* targets. In non-jobs mode we can achieve the same result by simply introducing the targets in the correct order. Thus in bsd*.mk we simply add targets to STAGE_TARGETS which we realize in meta.stage.mk Reviewed by: bdrewery Notes: svn path=/head/; revision=288964
* | Merge from headBaptiste Daroussin2015-09-121-39/+19
|\| | | | | | | Notes: svn path=/projects/release-pkg/; revision=287708
| * Fix typo which breaks build of manpages when WITHOUT_MANCOMPRESS is setBaptiste Daroussin2015-07-081-1/+1
| | | | | | | | | | | | | | | | PR: 201153 Reported by: Andriy Voskoboinyk <s3erios@gmail.com> Notes: svn path=/head/; revision=285295
| * Simplify code to install manpages and it symlinksBaptiste Daroussin2015-06-211-39/+19
| | | | | | | | | | | | | | | | Use the bmake's .for multi variable loops to simplify and make the code more readable Notes: svn path=/head/; revision=284685
* | Merge from headBaptiste Daroussin2015-06-151-0/+16
|\| | | | | | | Notes: svn path=/projects/release-pkg/; revision=284410
| * Watchout for bogus MANSimon J. Gerraty2015-06-081-1/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284170
| * Add dependent option STAGING_MAN/STAGINGSimon J. Gerraty2015-06-041-4/+4
| | | | | | | | | | | | | | | | Use a single mlinks set, since some libs (eg. libc) do cross section links. Notes: svn path=/projects/bmake/; revision=283996
| * Handle multiple sections in MLINKSSimon J. Gerraty2015-05-311-1/+3
| | | | | | | | Notes: svn path=/projects/bmake/; revision=283803
| * Stage man pages.Simon J. Gerraty2015-05-311-0/+14
| | | | | | | | Notes: svn path=/projects/bmake/; revision=283802
* | Makes it more flexible to tag and define a target packageBaptiste Daroussin2015-02-131-3/+4
| | | | | | | | Notes: svn path=/projects/release-pkg/; revision=278647
* | Tag the metalog with a global default sets of tags that will be used to decideBaptiste Daroussin2015-02-101-1/+1
|/ | | | | | | what will go in which package, more finer grain tagging to come Notes: svn path=/projects/release-pkg/; revision=278542
* Use mandoc to generate cat pagesBaptiste Daroussin2015-01-021-7/+6
| | | | Notes: svn path=/head/; revision=276536
* Use mandoc -Tlint instead of groff for manlint targetBaptiste Daroussin2015-01-021-2/+3
| | | | Notes: svn path=/head/; revision=276535
* Convert NO_MANCOMPRESSED to MK_MANCOMPRESSED.Warner Losh2014-04-181-6/+3
| | | | Notes: svn path=/head/; revision=264659
* r264402 builds fine, but turns out there are problems withWarner Losh2014-04-131-3/+6
| | | | | | | install. Back it out until they can be tracked down. Notes: svn path=/head/; revision=264424
* Convert NO_MANCOMPRESS to normal convention.Warner Losh2014-04-131-6/+3
| | | | Notes: svn path=/head/; revision=264402
* Replace all known uses of ln in the build process with appropriateBrooks Davis2013-01-211-2/+2
| | | | | | | | | | | install -l invocations via new INSTALL_LINK and INSTALL_SYMLINK variables. Sponsored by: DARPA, AFRL Reviewed by: ian, ray, rpaulo Notes: svn path=/head/; revision=245752
* Remove support for installing 1aout section manpages.Brooks Davis2013-01-161-1/+1
| | | | Notes: svn path=/head/; revision=245515
* Stop clobberring the application namespace with localRuslan Ermilov2007-03-121-37/+37
| | | | | | | | | | | variables such as "sect", "page", and "target"; use underscored versions instead. Discussed with: kan MFC after: 3 days Notes: svn path=/head/; revision=167486
* Remove trailing spaces.Kirill Ponomarev2005-01-061-4/+4
| | | | Notes: svn path=/head/; revision=139761
* NOMLINKS -> NO_MLINKSRuslan Ermilov2004-12-211-2/+2
| | | | Notes: svn path=/head/; revision=139109
* Start the dreaded NOFOO -> NO_FOO conversion.Ruslan Ermilov2004-12-211-4/+4
| | | | | | | OK'ed by: core Notes: svn path=/head/; revision=139103
* Implement sed(1) commands using the make(1)'s RE variable modifier.Ruslan Ermilov2003-09-071-3/+3
| | | | | | | (This almost eliminates the need of a sed(1) during installworld.) Notes: svn path=/head/; revision=119838
* Revert last delta. SGR support in grotty(1) is disabled system-wideRuslan Ermilov2002-10-181-1/+1
| | | | | | | in /usr/share/tmac/troffrc pending the issue resolution on -arch. Notes: svn path=/head/; revision=105388
* Groff 1.18.1 comes in with ANSI color support, enabled by default.Ruslan Ermilov2002-10-111-1/+1
| | | | | | | | | | | | | | | | | In "nroff" mode, italic font renders as an underlined text, which makes it indistinguishable from the bold text on color monitors (cons25 terminal type), yet it requires the less(1)'s -R option. (Refer to the new grotty(1) manpage for details.) So turn off the color support for now (when generating catpages), until we figure out what do we do with this new feature. I have a patch for grotty(1) that tells it to use the "reverse video" attribute to render the italic font. Once this is accepted, we can turn color support back on (if there won't be any objections from the community). Notes: svn path=/head/; revision=104874
* Allow one to override ${MINSTALL} in /etc/make.conf.Ruslan Ermilov2002-08-201-1/+1
| | | | | | | Prompted by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> Notes: svn path=/head/; revision=102173
* Drop support for COPY, -c has been the default mode of install(1)Ruslan Ermilov2002-07-291-1/+1
| | | | | | | | | for a long time now. Approved by: bde Notes: svn path=/head/; revision=100872
* Ensure manpages are built with the all-man in theRuslan Ermilov2002-05-131-0/+2
| | | | | | | | | | NOMANCOMPRESS && !MANFILTER && !MANBUILDCAT case. PR: bin/37360 Prodded by: cjc Notes: svn path=/head/; revision=96524
* Added internal, non-recursive (SUBDIR) versions of the `all-man'Ruslan Ermilov2002-05-071-8/+10
| | | | | | | | | | | and `maninstall' targets. This fixes the issue where each subdir was descended into twice during "make all", and also resurrects the standardization of `maninstall'. Urged by: bde Notes: svn path=/head/; revision=96164
* Merge bsd.obj.mk's version of the _SUBDIR target with bsd.subdir.mk.Ruslan Ermilov2002-04-231-1/+1
| | | | | | | | | | | | | | | | | | | Ensure all standard targets honor SUBDIR. Now `make obj' descends into SUBDIRs even if NOOBJ is set (some descendants may still need an object directory, but we do not have such precedents). Now `make install' in non-bsd.subdir.mk makefiles runs `afterinstall' target _after_ `install' in SUBDIRs, like we do in bsd.subdir.mk. Nothing depended on the wrong order anyway. Fixed `distribute' targets (except for the bsd.subdir.mk version) so that they do not depend on _SUBDIR; `distribute' calls `install' which already depends on _SUBDIR. De-standardize `maninstall', otherwise manpages would be installed twice. (To be revised later.) Notes: svn path=/head/; revision=95306
* Don't include bsd.own.mk from sys.mk, this makes it impossibleRuslan Ermilov2002-04-171-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | to use ``.if defined()'' inside bsd.own.mk to test for defines in individual makefiles. For example, setting DEBUG_FLAGS in Makefile didn't take the desired effect on the STRIP assignment. Added bsd.init.mk (like in NetBSD) that handles the inclusion of ../Makefile.inc and bsd.own.mk from all bsd.*.mk files that "build something". Back out bsd.own.mk,v 1.15: moved OBJFORMAT initialization back to sys.mk (several source tree makefiles want to check it early) and removed MACHINE_ARCH initialization (it's hard to see from looking at the commitlogs what the problem was at the time, but now it serves no purpose). Prohibit the direct inclusion of bsd.man.mk and bsd.libnames.mk. Protect bsd.obj.mk from repetitive inclusion. Prohibiting the direct inclusion of bsd.obj.mk might be a good idea too. Notes: svn path=/head/; revision=94940
* Revert to the ordinary `:' dependency operator for `mainstall'.Ruslan Ermilov2002-04-171-2/+2
| | | | | | | | | | Revision 1.7 had "maninstall::" inside a loop. Revision 1.36 unrolled the loop. Reviewed by: bde Notes: svn path=/head/; revision=94924
* Fix all-man to look into the SUBDIR subdirs as well.Ruslan Ermilov2002-04-151-1/+1
| | | | Notes: svn path=/head/; revision=94747
* There is a better way to suppress groff(1) output.Ruslan Ermilov2001-09-051-2/+2
| | | | | | | Submitted by: okazaki Notes: svn path=/head/; revision=83080
* Implement the `manlint' target, for minimal validity checking ofRuslan Ermilov2001-09-051-0/+13
| | | | | | | | | the manual pages. Mostly useful with mdoc(7) formatted manuals. Requested by: murray Notes: svn path=/head/; revision=83075
* Always preprocess manpages with tbl(1).Ruslan Ermilov2001-07-121-1/+1
| | | | Notes: svn path=/head/; revision=79613