1*62611Sbostic# @(#)bsd.man.mk 8.1 (Berkeley) 06/08/93 241561Sbostic 341561Sbostic.if exists(${.CURDIR}/../Makefile.inc) 441561Sbostic.include "${.CURDIR}/../Makefile.inc" 541561Sbostic.endif 641561Sbostic 741561SbosticMANGRP?= bin 841561SbosticMANOWN?= bin 941561SbosticMANMODE?= 444 1041561Sbostic 1141601SbosticMANDIR?= /usr/share/man/cat 1241561Sbostic 1341561SbosticMINSTALL= install -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} 1441561Sbostic 1541561Sbosticmaninstall: 1641561Sbostic.if defined(MAN1) && !empty(MAN1) 1741561Sbostic ${MINSTALL} ${MAN1} ${DESTDIR}${MANDIR}1${MANSUBDIR} 1841561Sbostic.endif 1941561Sbostic.if defined(MAN2) && !empty(MAN2) 2041561Sbostic ${MINSTALL} ${MAN2} ${DESTDIR}${MANDIR}2${MANSUBDIR} 2141561Sbostic.endif 2241561Sbostic.if defined(MAN3) && !empty(MAN3) 2341561Sbostic ${MINSTALL} ${MAN3} ${DESTDIR}${MANDIR}3${MANSUBDIR} 2441561Sbostic.endif 2541561Sbostic.if defined(MAN3F) && !empty(MAN3F) 2641561Sbostic ${MINSTALL} ${MAN3F} ${DESTDIR}${MANDIR}3f${MANSUBDIR} 2741561Sbostic.endif 2841561Sbostic.if defined(MAN4) && !empty(MAN4) 2941561Sbostic ${MINSTALL} ${MAN4} ${DESTDIR}${MANDIR}4${MANSUBDIR} 3041561Sbostic.endif 3141561Sbostic.if defined(MAN5) && !empty(MAN5) 3241561Sbostic ${MINSTALL} ${MAN5} ${DESTDIR}${MANDIR}5${MANSUBDIR} 3341561Sbostic.endif 3441561Sbostic.if defined(MAN6) && !empty(MAN6) 3541561Sbostic ${MINSTALL} ${MAN6} ${DESTDIR}${MANDIR}6${MANSUBDIR} 3641561Sbostic.endif 3741561Sbostic.if defined(MAN7) && !empty(MAN7) 3841561Sbostic ${MINSTALL} ${MAN7} ${DESTDIR}${MANDIR}7${MANSUBDIR} 3941561Sbostic.endif 4041561Sbostic.if defined(MAN8) && !empty(MAN8) 4141561Sbostic ${MINSTALL} ${MAN8} ${DESTDIR}${MANDIR}8${MANSUBDIR} 4241561Sbostic.endif 4341561Sbostic.if defined(MLINKS) && !empty(MLINKS) 4441561Sbostic @set ${MLINKS}; \ 4541561Sbostic while test $$# -ge 2; do \ 4641561Sbostic name=$$1; \ 4741561Sbostic shift; \ 4841561Sbostic dir=${DESTDIR}${MANDIR}`expr $$name : '[^\.]*\.\(.*\)'`; \ 4941561Sbostic l=$${dir}${MANSUBDIR}/`expr $$name : '\([^\.]*\)'`.0; \ 5041561Sbostic name=$$1; \ 5141561Sbostic shift; \ 5241561Sbostic dir=${DESTDIR}${MANDIR}`expr $$name : '[^\.]*\.\(.*\)'`; \ 5341561Sbostic t=$${dir}${MANSUBDIR}/`expr $$name : '\([^\.]*\)'`.0; \ 5441561Sbostic echo $$t -\> $$l; \ 5541561Sbostic rm -f $$t; \ 5641561Sbostic ln $$l $$t; \ 5741561Sbostic done; true 5841561Sbostic.endif 59