Changeset View
Changeset View
Standalone View
Standalone View
share/mk/bsd.man.mk
Show First 20 Lines • Show All 220 Lines • ▼ Show 20 Lines | |||||
.if defined(MANBUILDCAT) && !empty(MANBUILDCAT) | .if defined(MANBUILDCAT) && !empty(MANBUILDCAT) | ||||
${MINSTALL} ${__page:T:S/$/${CATEXT}${MCOMPRESS_EXT}/g} \ | ${MINSTALL} ${__page:T:S/$/${CATEXT}${MCOMPRESS_EXT}/g} \ | ||||
${DESTDIR}${CATDIR}${__page:E}${MANSUBDIR}/${__page:T:S/$/${MCOMPRESS_EXT}/} | ${DESTDIR}${CATDIR}${__page:E}${MANSUBDIR}/${__page:T:S/$/${MCOMPRESS_EXT}/} | ||||
.endif | .endif | ||||
.endfor | .endfor | ||||
.endif # ${MK_MANCOMPRESS} == "no" | .endif # ${MK_MANCOMPRESS} == "no" | ||||
.endif | .endif | ||||
.for l t in ${_MANLINKS} | .for l t in ${_MANLINKS} | ||||
.if ${l:tl} == ${t:tl} | |||||
# If the source and destination file are the same file (e.g. Mail/mail | |||||
# on a case-insensitive file-system) we have to pass -S to install to avoid | |||||
# deleting the source file. | |||||
if test "${DESTDIR}${l}${ZEXT}" -ef "${DESTDIR}${t}${ZEXT}"; then \ | |||||
echo "Note: requested man link from ${t} to ${s} on case-insensitive file system."; \ | |||||
else \ | |||||
rm -f ${DESTDIR}${t} ${DESTDIR}${t}${MCOMPRESS_EXT}; \ | rm -f ${DESTDIR}${t} ${DESTDIR}${t}${MCOMPRESS_EXT}; \ | ||||
fi | |||||
${INSTALL_MANLINK} -S ${TAG_ARGS} ${DESTDIR}${l}${ZEXT} ${DESTDIR}${t}${ZEXT} | |||||
.else | |||||
rm -f ${DESTDIR}${t} ${DESTDIR}${t}${MCOMPRESS_EXT}; \ | |||||
${INSTALL_MANLINK} ${TAG_ARGS} ${DESTDIR}${l}${ZEXT} ${DESTDIR}${t}${ZEXT} | ${INSTALL_MANLINK} ${TAG_ARGS} ${DESTDIR}${l}${ZEXT} ${DESTDIR}${t}${ZEXT} | ||||
.endif | |||||
.endfor | .endfor | ||||
manlint: | manlint: | ||||
.if defined(MAN) && !empty(MAN) | .if defined(MAN) && !empty(MAN) | ||||
.for __page in ${MAN} | .for __page in ${MAN} | ||||
manlint: ${__page}lint | manlint: ${__page}lint | ||||
${__page}lint: ${__page} | ${__page}lint: ${__page} | ||||
.if defined(MANFILTER) | .if defined(MANFILTER) | ||||
${MANFILTER} < ${.ALLSRC} | ${MANDOC_CMD} -Tlint | ${MANFILTER} < ${.ALLSRC} | ${MANDOC_CMD} -Tlint | ||||
.else | .else | ||||
${MANDOC_CMD} -Tlint ${.ALLSRC} | ${MANDOC_CMD} -Tlint ${.ALLSRC} | ||||
.endif | .endif | ||||
.endfor | .endfor | ||||
.endif | .endif |