1# $Id: bsd.man.mk,v 1.10 1996/04/09 23:10:19 wosch Exp $ |
2 3.if exists(${.CURDIR}/../Makefile.inc) 4.include "${.CURDIR}/../Makefile.inc" 5.endif 6 7MANSRC?= ${.CURDIR} 8MINSTALL= ${INSTALL} ${COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} 9 --- 46 unchanged lines hidden (view full) --- 56.else 57 ${MINSTALL} ${.ALLSRC:T:S/$/${ZEXTENSION}/g} \ 58 ${DESTDIR}${MANDIR}${sect}${MANSUBDIR} 59.endif 60.endif 61.endfor 62 63.if defined(MLINKS) && !empty(MLINKS) |
64 @set `echo ${MLINKS} " " | sed 's/\.\([^.]*\) /.\1 \1 /g'`; \ 65 while : ; do \ 66 case $$# in \ 67 0) break;; \ 68 [123]) echo "warn: empty MLINK: $$1 $$2 $$3"; break;; \ 69 esac; \ 70 name=$$1; shift; sect=$$1; shift; \ 71 l=${DESTDIR}${MANDIR}$${sect}${MANSUBDIR}/$$name; \ 72 name=$$1; shift; sect=$$1; shift; \ 73 t=${DESTDIR}${MANDIR}$${sect}${MANSUBDIR}/$$name; \ |
74 ${ECHO} $${t}${ZEXT} -\> $${l}${ZEXT}; \ 75 rm -f $${t} $${t}${ZEXTENSION}; \ 76 ln $${l}${ZEXT} $${t}${ZEXT}; \ |
77 done |
78.endif |