2014-12-20 01:25:39 +03:00
|
|
|
# $NetBSD: bsd.man.mk,v 1.117 2014/12/19 22:25:39 christos Exp $
|
1997-03-29 11:02:45 +03:00
|
|
|
# @(#)bsd.man.mk 8.1 (Berkeley) 6/8/93
|
1993-03-21 12:45:37 +03:00
|
|
|
|
2001-11-02 08:21:47 +03:00
|
|
|
.include <bsd.init.mk>
|
1997-10-11 12:16:24 +04:00
|
|
|
|
2001-11-02 08:21:47 +03:00
|
|
|
##### Basic targets
|
2006-09-12 02:24:09 +04:00
|
|
|
.PHONY: catinstall maninstall catpages manpages catlinks manlinks
|
2008-08-27 06:28:34 +04:00
|
|
|
.PHONY: htmlinstall htmlpages htmllinks
|
2009-10-24 02:14:37 +04:00
|
|
|
.PHONY: lintmanpages
|
1997-05-09 17:25:46 +04:00
|
|
|
realinstall: ${MANINSTALL}
|
1997-05-07 00:54:31 +04:00
|
|
|
|
2014-12-20 00:43:11 +03:00
|
|
|
# If our install destination is case-preserving, but case-insensitive
|
|
|
|
# then we do filesystem comparisons in lower case to make sure that
|
|
|
|
# we always refresh the target when needed. In general we don't
|
|
|
|
# want to do this, otherwise things like _exit.2 -> _Exit.2 get
|
|
|
|
# installed on each build even when they don't need to. Note that
|
2014-12-20 01:25:39 +03:00
|
|
|
# the CASE_INSENSITIVE_DEST macro is currently not defined anywhere,
|
|
|
|
# and the expansion does not really work because of make(1).
|
2014-12-20 00:43:11 +03:00
|
|
|
.if defined(CASE_INSENSITIVE_DEST)
|
2014-12-20 01:25:39 +03:00
|
|
|
_FLATTEN?=tl:
|
2014-12-20 00:43:11 +03:00
|
|
|
.endif
|
|
|
|
|
2001-11-02 08:21:47 +03:00
|
|
|
##### Default values
|
2001-11-13 02:16:17 +03:00
|
|
|
.if ${USETOOLS} == "yes"
|
2001-11-28 08:01:28 +03:00
|
|
|
TMACDEPDIR?= ${TOOLDIR}/share/groff/tmac
|
2001-11-13 02:16:17 +03:00
|
|
|
.else
|
2004-06-23 19:28:19 +04:00
|
|
|
TMACDEPDIR?= /usr/share/tmac
|
2001-11-13 02:16:17 +03:00
|
|
|
.endif
|
|
|
|
|
2008-08-29 08:52:44 +04:00
|
|
|
HTMLDIR?= ${DESTDIR}${MANDIR}
|
2012-11-30 21:52:13 +04:00
|
|
|
.if ${MKMANDOC} == yes && !defined(NOMANDOC)
|
|
|
|
CATDEPS?=
|
|
|
|
.else
|
2003-06-30 22:49:05 +04:00
|
|
|
CATDEPS?= ${TMACDEPDIR}/andoc.tmac \
|
|
|
|
${TMACDEPDIR}/doc.tmac \
|
|
|
|
${TMACDEPDIR}/mdoc/doc-common \
|
|
|
|
${TMACDEPDIR}/mdoc/doc-ditroff \
|
|
|
|
${TMACDEPDIR}/mdoc/doc-nroff \
|
|
|
|
${TMACDEPDIR}/mdoc/doc-syms
|
2012-11-30 21:52:13 +04:00
|
|
|
.endif
|
1997-05-07 00:54:31 +04:00
|
|
|
MANTARGET?= cat
|
2001-11-13 02:16:17 +03:00
|
|
|
|
2001-11-02 08:21:47 +03:00
|
|
|
MAN?=
|
|
|
|
MLINKS?=
|
2013-10-26 02:16:29 +04:00
|
|
|
_MSECTIONS= 1 2 3 4 5 6 7 8 9
|
|
|
|
_MSECTIONS+= 3lua 9lua
|
|
|
|
_MSECTIONREGEX= ${_MSECTIONS:ts|} # e.g. 1|2|3|...
|
|
|
|
.SUFFIXES: ${_MSECTIONS:@N@.$N@}
|
2000-09-22 09:37:57 +04:00
|
|
|
|
2003-07-18 06:52:51 +04:00
|
|
|
.if ${MKMANZ} == "no"
|
|
|
|
MANCOMPRESS?=
|
|
|
|
MANSUFFIX?=
|
|
|
|
.else
|
2014-08-05 19:40:58 +04:00
|
|
|
MANCOMPRESS?= ${TOOL_GZIP_N} -cf
|
2003-07-18 06:52:51 +04:00
|
|
|
MANSUFFIX?= .gz
|
|
|
|
.endif
|
1994-01-31 21:40:10 +03:00
|
|
|
|
2001-11-02 08:21:47 +03:00
|
|
|
# make MANCOMPRESS a filter, so it can be inserted on an as-needed basis
|
|
|
|
.if !empty(MANCOMPRESS)
|
|
|
|
MANCOMPRESS:= | ${MANCOMPRESS}
|
1997-06-30 23:26:21 +04:00
|
|
|
.endif
|
1994-01-31 21:40:10 +03:00
|
|
|
|
1997-03-25 00:54:12 +03:00
|
|
|
__installpage: .USE
|
2001-03-21 07:04:15 +03:00
|
|
|
@cmp -s ${.ALLSRC} ${.TARGET} > /dev/null 2>&1 || \
|
2003-11-07 03:05:24 +03:00
|
|
|
(${_MKSHMSG_INSTALL} ${.TARGET}; \
|
2003-10-19 07:00:55 +04:00
|
|
|
${_MKSHECHO} "${INSTALL_FILE} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} \
|
2006-03-16 21:43:34 +03:00
|
|
|
${.ALLSRC} ${.TARGET}" && \
|
2001-11-02 08:21:47 +03:00
|
|
|
${INSTALL_FILE} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} \
|
2006-03-16 21:43:34 +03:00
|
|
|
${.ALLSRC} ${.TARGET})
|
1997-03-25 00:54:12 +03:00
|
|
|
|
2006-09-12 02:24:09 +04:00
|
|
|
# XXX consider including bsd.links.mk and using __linkinstall instead
|
|
|
|
__linkinstallpage: .USE
|
|
|
|
${_MKSHMSG_INSTALL} ${.TARGET}; \
|
2009-04-10 20:16:12 +04:00
|
|
|
${_MKSHECHO} "${INSTALL_LINK} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} \
|
|
|
|
${.ALLSRC} ${.TARGET}" && \
|
|
|
|
${INSTALL_LINK} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} \
|
|
|
|
${.ALLSRC} ${.TARGET}
|
2006-09-12 02:24:09 +04:00
|
|
|
|
2001-11-02 08:21:47 +03:00
|
|
|
##### Build and install rules (source form pages)
|
1997-03-25 00:54:12 +03:00
|
|
|
|
2001-11-02 08:21:47 +03:00
|
|
|
.if ${MKMAN} != "no"
|
2006-09-12 02:24:09 +04:00
|
|
|
maninstall: manpages manlinks
|
2001-11-02 08:21:47 +03:00
|
|
|
manpages:: # ensure target exists
|
2001-11-04 03:30:52 +03:00
|
|
|
MANPAGES= ${MAN:C/.$/&${MANSUFFIX}/}
|
1997-03-25 00:54:12 +03:00
|
|
|
|
2001-11-02 08:21:47 +03:00
|
|
|
realall: ${MANPAGES}
|
2001-12-18 00:27:45 +03:00
|
|
|
.if !empty(MANSUFFIX)
|
2001-11-02 08:21:47 +03:00
|
|
|
.NOPATH: ${MANPAGES}
|
2013-10-26 02:16:29 +04:00
|
|
|
.SUFFIXES: ${_MSECTIONS:@N@.$N${MANSUFFIX}@}
|
1997-03-25 00:54:12 +03:00
|
|
|
|
2013-10-26 02:16:29 +04:00
|
|
|
${_MSECTIONS:@N@.$N.$N${MANSUFFIX}@}: # build rule
|
2008-08-27 06:28:34 +04:00
|
|
|
${_MKTARGET_FORMAT}
|
2002-01-06 04:27:25 +03:00
|
|
|
cat ${.IMPSRC} ${MANCOMPRESS} > ${.TARGET}.tmp && mv ${.TARGET}.tmp ${.TARGET}
|
2001-11-02 08:21:47 +03:00
|
|
|
.endif # !empty(MANSUFFIX)
|
1997-05-07 19:53:28 +04:00
|
|
|
|
2001-11-02 08:21:47 +03:00
|
|
|
.for F in ${MANPAGES:S/${MANSUFFIX}$//:O:u}
|
|
|
|
_F:= ${DESTDIR}${MANDIR}/man${F:T:E}${MANSUBDIR}/${F}${MANSUFFIX}
|
|
|
|
|
2003-07-18 12:26:01 +04:00
|
|
|
.if ${MKUPDATE} == "no"
|
2002-02-12 00:14:58 +03:00
|
|
|
${_F}! ${F}${MANSUFFIX} __installpage # install rule
|
|
|
|
.if !defined(BUILD) && !make(all) && !make(${F})
|
|
|
|
${_F}! .MADE # no build at install
|
|
|
|
.endif
|
|
|
|
.else
|
2001-11-02 08:21:47 +03:00
|
|
|
${_F}: ${F}${MANSUFFIX} __installpage # install rule
|
|
|
|
.if !defined(BUILD) && !make(all) && !make(${F})
|
|
|
|
${_F}: .MADE # no build at install
|
1997-05-07 19:53:28 +04:00
|
|
|
.endif
|
2002-02-12 00:14:58 +03:00
|
|
|
.endif
|
|
|
|
|
|
|
|
manpages:: ${_F}
|
|
|
|
.PRECIOUS: ${_F} # keep if install fails
|
2001-11-02 08:21:47 +03:00
|
|
|
.endfor
|
1997-05-07 19:53:28 +04:00
|
|
|
|
2006-09-12 02:24:09 +04:00
|
|
|
manlinks:: # link install
|
|
|
|
|
|
|
|
.for _src _dst in ${MLINKS}
|
|
|
|
_l:=${DESTDIR}${MANDIR}/man${_src:T:E}${MANSUBDIR}/${_src}${MANSUFFIX}
|
|
|
|
_t:=${DESTDIR}${MANDIR}/man${_dst:T:E}${MANSUBDIR}/${_dst}${MANSUFFIX}
|
|
|
|
|
|
|
|
# Handle case conflicts carefully, when _dst occurs
|
|
|
|
# more than once after case flattening
|
2014-12-20 01:25:39 +03:00
|
|
|
.if ${MKUPDATE} == "no" || ${MLINKS:${_FLATTEN}M${_dst:${_FLATTEN}Q}:[\#]} > 1
|
2006-09-12 02:24:09 +04:00
|
|
|
${_t}! ${_l} __linkinstallpage
|
|
|
|
.else
|
|
|
|
${_t}: ${_l} __linkinstallpage
|
1993-03-21 12:45:37 +03:00
|
|
|
.endif
|
2006-09-12 02:24:09 +04:00
|
|
|
|
|
|
|
manlinks:: ${_t}
|
|
|
|
.PRECIOUS: ${_t}
|
|
|
|
.endfor
|
2001-11-02 08:21:47 +03:00
|
|
|
.endif # ${MKMAN} != "no"
|
|
|
|
|
|
|
|
##### Build and install rules (plaintext pages)
|
|
|
|
|
|
|
|
.if (${MKCATPAGES} != "no") && (${MKMAN} != "no")
|
2006-09-12 02:24:09 +04:00
|
|
|
catinstall: catpages catlinks
|
2001-11-02 08:21:47 +03:00
|
|
|
catpages:: # ensure target exists
|
2013-10-26 02:16:29 +04:00
|
|
|
CATPAGES= ${MAN:C/\.(${_MSECTIONREGEX})\$/.cat\1${MANSUFFIX}/}
|
2001-11-02 08:21:47 +03:00
|
|
|
|
|
|
|
realall: ${CATPAGES}
|
|
|
|
.NOPATH: ${CATPAGES}
|
2013-10-26 02:16:29 +04:00
|
|
|
.SUFFIXES: ${_MSECTIONS:@N@.cat$N${MANSUFFIX}@}
|
2002-02-04 20:25:44 +03:00
|
|
|
.MADE: ${CATDEPS}
|
2001-11-02 08:21:47 +03:00
|
|
|
|
2013-10-26 02:16:29 +04:00
|
|
|
${_MSECTIONS:@N@.$N.cat$N${MANSUFFIX}@}: ${CATDEPS} # build rule
|
2003-10-21 14:01:19 +04:00
|
|
|
${_MKTARGET_FORMAT}
|
2011-01-13 02:03:24 +03:00
|
|
|
.if ${MKMANDOC} == yes && !defined(NOMANDOC)
|
2009-10-24 02:14:37 +04:00
|
|
|
if test ""${NOMANDOC.${.IMPSRC:T}:tl:Q} != "yes"; then \
|
|
|
|
${TOOL_MANDOC_ASCII} ${.IMPSRC} ${MANCOMPRESS} \
|
|
|
|
> ${.TARGET}.tmp && mv ${.TARGET}.tmp ${.TARGET}; \
|
|
|
|
else \
|
|
|
|
${TOOL_ROFF_ASCII} -mandoc ${.IMPSRC} ${MANCOMPRESS} \
|
|
|
|
> ${.TARGET}.tmp && mv ${.TARGET}.tmp ${.TARGET}; \
|
|
|
|
fi
|
2011-01-13 02:03:24 +03:00
|
|
|
.elif defined(USETBL)
|
|
|
|
${TOOL_TBL} ${.IMPSRC} | ${TOOL_ROFF_ASCII} -mandoc ${MANCOMPRESS} \
|
|
|
|
> ${.TARGET}.tmp && mv ${.TARGET}.tmp ${.TARGET}
|
1999-02-12 04:10:06 +03:00
|
|
|
.else
|
2003-07-10 14:33:58 +04:00
|
|
|
${TOOL_ROFF_ASCII} -mandoc ${.IMPSRC} ${MANCOMPRESS} \
|
|
|
|
> ${.TARGET}.tmp && mv ${.TARGET}.tmp ${.TARGET}
|
2001-11-02 08:21:47 +03:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.for F in ${CATPAGES:S/${MANSUFFIX}$//:O:u}
|
|
|
|
_F:= ${DESTDIR}${MANDIR}/${F:T:E}${MANSUBDIR}/${F:R}.0${MANSUFFIX}
|
2002-02-12 00:14:58 +03:00
|
|
|
|
2003-07-18 12:26:01 +04:00
|
|
|
.if ${MKUPDATE} == "no"
|
2002-02-12 00:14:58 +03:00
|
|
|
${_F}! ${F}${MANSUFFIX} __installpage # install rule
|
|
|
|
.if !defined(BUILD) && !make(all) && !make(${F})
|
|
|
|
${_F}! .MADE # no build at install
|
|
|
|
.endif
|
|
|
|
.else
|
2001-11-02 08:21:47 +03:00
|
|
|
${_F}: ${F}${MANSUFFIX} __installpage # install rule
|
|
|
|
.if !defined(BUILD) && !make(all) && !make(${F})
|
|
|
|
${_F}: .MADE # no build at install
|
1999-02-12 04:10:06 +03:00
|
|
|
.endif
|
2002-02-12 00:14:58 +03:00
|
|
|
.endif
|
|
|
|
|
|
|
|
catpages:: ${_F}
|
|
|
|
.PRECIOUS: ${_F} # keep if install fails
|
2001-11-02 08:21:47 +03:00
|
|
|
.endfor
|
1993-08-16 00:42:39 +04:00
|
|
|
|
2006-09-12 02:24:09 +04:00
|
|
|
catlinks:: # link install
|
|
|
|
|
|
|
|
.for _src _dst in ${MLINKS}
|
|
|
|
_l:=${DESTDIR}${MANDIR}/cat${_src:T:E}${MANSUBDIR}/${_src:R}.0${MANSUFFIX}
|
|
|
|
_t:=${DESTDIR}${MANDIR}/cat${_dst:T:E}${MANSUBDIR}/${_dst:R}.0${MANSUFFIX}
|
|
|
|
|
|
|
|
# Handle case conflicts carefully, when _dst occurs
|
|
|
|
# more than once after case flattening
|
2014-12-20 01:25:39 +03:00
|
|
|
.if ${MKUPDATE} == "no" || ${MLINKS:${_FLATTEN}M${_dst:${_FLATTEN}Q}:[\#]} > 1
|
2006-09-12 02:24:09 +04:00
|
|
|
${_t}! ${_l} __linkinstallpage
|
|
|
|
.else
|
|
|
|
${_t}: ${_l} __linkinstallpage
|
1997-03-25 00:54:12 +03:00
|
|
|
.endif
|
2006-09-12 02:24:09 +04:00
|
|
|
|
|
|
|
catlinks:: ${_t}
|
|
|
|
.PRECIOUS: ${_t}
|
|
|
|
.endfor
|
2001-11-02 08:21:47 +03:00
|
|
|
.endif # (${MKCATPAGES} != "no") && (${MKMAN} != "no")
|
1997-05-07 20:45:40 +04:00
|
|
|
|
2001-11-02 08:21:47 +03:00
|
|
|
##### Build and install rules (HTML pages)
|
2000-09-22 09:37:57 +04:00
|
|
|
|
2008-08-27 06:28:34 +04:00
|
|
|
.if (${MKHTML} != "no") && (${MKMAN} != "no") # {
|
|
|
|
htmlinstall: htmlpages htmllinks
|
2001-11-02 08:21:47 +03:00
|
|
|
htmlpages:: # ensure target exists
|
2013-10-26 02:16:29 +04:00
|
|
|
HTMLPAGES= ${MAN:C/\.(${_MSECTIONREGEX})\$/.html\1/}
|
2001-11-02 08:21:47 +03:00
|
|
|
|
2011-03-08 15:20:17 +03:00
|
|
|
HTMLLINKS= ${MANSUBDIR:?../:}../html%S/%N.html
|
|
|
|
HTMLSTYLE= ${MANSUBDIR:?../:}../style.css
|
|
|
|
|
2008-08-27 06:28:34 +04:00
|
|
|
realall: ${HTMLPAGES}
|
2001-11-02 08:21:47 +03:00
|
|
|
.NOPATH: ${HTMLPAGES}
|
2013-10-26 02:16:29 +04:00
|
|
|
.SUFFIXES: ${_MSECTIONS:@N@.html$N@}
|
2001-11-02 08:21:47 +03:00
|
|
|
|
2013-10-26 02:16:29 +04:00
|
|
|
${_MSECTIONS:@N@.$N.html$N@}: # build rule
|
2003-10-21 14:01:19 +04:00
|
|
|
${_MKTARGET_FORMAT}
|
2013-03-21 05:48:14 +04:00
|
|
|
.if ${MKMANDOC} == yes && !defined(NOMANDOC)
|
|
|
|
if test ""${NOMANDOC.${.IMPSRC:T}:tl:Q} != "yes"; then \
|
|
|
|
${TOOL_MANDOC_HTML} -Oman=${HTMLLINKS} -Ostyle=${HTMLSTYLE} \
|
|
|
|
${.IMPSRC} > ${.TARGET}.tmp && \
|
|
|
|
mv ${.TARGET}.tmp ${.TARGET}; \
|
|
|
|
else \
|
2013-03-21 06:04:17 +04:00
|
|
|
${TOOL_ROFF_HTML} ${.IMPSRC} ${MANCOMPRESS} \
|
2013-03-21 05:48:14 +04:00
|
|
|
> ${.TARGET}.tmp && mv ${.TARGET}.tmp ${.TARGET}; \
|
|
|
|
fi
|
|
|
|
.elif defined(USETBL)
|
2013-03-21 06:04:17 +04:00
|
|
|
${TOOL_TBL} ${.IMPSRC} | ${TOOL_ROFF_HTML} ${MANCOMPRESS} \
|
2013-03-21 05:48:14 +04:00
|
|
|
> ${.TARGET}.tmp && mv ${.TARGET}.tmp ${.TARGET}
|
|
|
|
.else
|
2013-03-21 06:04:17 +04:00
|
|
|
${TOOL_ROFF_HTML} ${.IMPSRC} ${MANCOMPRESS} \
|
2013-03-21 05:48:14 +04:00
|
|
|
> ${.TARGET}.tmp && mv ${.TARGET}.tmp ${.TARGET}
|
|
|
|
.endif
|
2001-11-02 08:21:47 +03:00
|
|
|
|
|
|
|
.for F in ${HTMLPAGES:O:u}
|
2002-02-07 04:56:02 +03:00
|
|
|
# construct installed path
|
|
|
|
_F:= ${HTMLDIR}/${F:T:E}${MANSUBDIR}/${F:R:S-/index$-/x&-}.html
|
2002-02-12 00:14:58 +03:00
|
|
|
|
2003-07-18 12:26:01 +04:00
|
|
|
.if ${MKUPDATE} == "no"
|
2002-02-12 00:14:58 +03:00
|
|
|
${_F}! ${F} __installpage # install rule
|
|
|
|
.if !defined(BUILD) && !make(all) && !make(${F})
|
|
|
|
${_F}! .MADE # no build at install
|
|
|
|
.endif
|
|
|
|
.else
|
2001-11-02 08:21:47 +03:00
|
|
|
${_F}: ${F} __installpage # install rule
|
|
|
|
.if !defined(BUILD) && !make(all) && !make(${F})
|
|
|
|
${_F}: .MADE # no build at install
|
2000-09-22 09:37:57 +04:00
|
|
|
.endif
|
2002-02-12 00:14:58 +03:00
|
|
|
.endif
|
|
|
|
|
|
|
|
htmlpages:: ${_F}
|
|
|
|
.PRECIOUS: ${_F} # keep if install fails
|
2001-11-02 08:21:47 +03:00
|
|
|
.endfor
|
2000-09-22 09:37:57 +04:00
|
|
|
|
2008-08-27 06:28:34 +04:00
|
|
|
htmllinks:: # link install
|
|
|
|
|
|
|
|
.for _src _dst in ${MLINKS}
|
|
|
|
_l:=${HTMLDIR}/html${_src:T:E}${MANSUBDIR}/${_src:R:S-/index$-/x&-}.html
|
|
|
|
_t:=${HTMLDIR}/html${_dst:T:E}${MANSUBDIR}/${_dst:R:S-/index$-/x&-}.html
|
|
|
|
|
|
|
|
# Handle case conflicts carefully, when _dst occurs
|
|
|
|
# more than once after case flattening
|
2014-12-20 01:25:39 +03:00
|
|
|
.if ${MKUPDATE} == "no" || ${MLINKS:${_FLATTEN}M${_dst:${_FLATTEN}Q}:[\#]} > 1
|
2008-08-27 06:28:34 +04:00
|
|
|
${_t}! ${_l} __linkinstallpage
|
|
|
|
.else
|
|
|
|
${_t}: ${_l} __linkinstallpage
|
|
|
|
.endif
|
|
|
|
|
|
|
|
htmllinks:: ${_t}
|
|
|
|
.PRECIOUS: ${_t}
|
|
|
|
.endfor
|
|
|
|
|
2003-07-18 06:52:51 +04:00
|
|
|
.endif # }
|
2000-09-22 09:37:57 +04:00
|
|
|
|
2001-11-02 08:21:47 +03:00
|
|
|
##### Clean rules
|
|
|
|
.undef _F
|
1993-08-16 00:42:39 +04:00
|
|
|
|
2001-11-02 08:21:47 +03:00
|
|
|
.if !empty(MAN) && (${MKMAN} != "no")
|
|
|
|
.if (${MKCATPAGES} != "no")
|
2011-09-10 20:57:35 +04:00
|
|
|
CLEANDIRFILES+= ${CATPAGES}
|
1993-08-16 00:42:39 +04:00
|
|
|
.endif
|
2001-11-02 08:21:47 +03:00
|
|
|
.if !empty(MANSUFFIX)
|
2011-09-10 20:57:35 +04:00
|
|
|
CLEANDIRFILES+= ${MANPAGES} ${CATPAGES:S/${MANSUFFIX}$//}
|
2001-11-02 08:21:47 +03:00
|
|
|
.endif
|
2008-08-27 06:28:34 +04:00
|
|
|
.if ${MKHTML} != "no"
|
2011-09-10 20:57:35 +04:00
|
|
|
CLEANDIRFILES+= ${HTMLPAGES}
|
2008-08-27 06:28:34 +04:00
|
|
|
.endif
|
2001-11-02 08:21:47 +03:00
|
|
|
.endif
|
|
|
|
# (XXX ${CATPAGES:S...} cleans up old .catN files where .catN.gz now used)
|
|
|
|
|
2010-03-02 01:00:07 +03:00
|
|
|
.if !empty(MANPAGES)
|
2009-10-24 02:14:37 +04:00
|
|
|
lintmanpages: ${MANPAGES}
|
2011-01-13 02:03:24 +03:00
|
|
|
${TOOL_MANDOC_LINT} -Tlint -fstrict -Wall,stop ${.ALLSRC}
|
2009-10-24 02:14:37 +04:00
|
|
|
.endif
|
|
|
|
|
2001-11-02 08:21:47 +03:00
|
|
|
##### Pull in related .mk logic
|
|
|
|
.include <bsd.obj.mk>
|
2003-09-03 09:40:12 +04:00
|
|
|
.include <bsd.files.mk>
|
2001-11-17 23:38:45 +03:00
|
|
|
.include <bsd.sys.mk>
|
2011-09-10 20:57:35 +04:00
|
|
|
.include <bsd.clean.mk>
|
1997-10-11 12:16:24 +04:00
|
|
|
|
2008-08-27 06:28:34 +04:00
|
|
|
${TARGETS} catinstall maninstall htmlinstall: # ensure existence
|