1# $Id: bsd.man.mk,v 1.9 1996/03/24 00:08:02 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 ${MLINKS}; \
65 while test $$# -ge 2; do \
66 name=$$1; \
67 shift; \
68 sect=`expr $$name : '.*\.\([^.]*\)'`; \
69 dir=${DESTDIR}${MANDIR}$$sect; \
70 l=$${dir}${MANSUBDIR}/$$name; \
71 name=$$1; \
72 shift; \
73 sect=`expr $$name : '.*\.\([^.]*\)'`; \
74 dir=${DESTDIR}${MANDIR}$$sect; \
75 t=$${dir}${MANSUBDIR}/$$name; \
76 ${ECHO} $${t}${ZEXT} -\> $${l}${ZEXT}; \
77 rm -f $${t} $${t}${ZEXTENSION}; \
78 ln $${l}${ZEXT} $${t}${ZEXT}; \
79 done; true
80.endif
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 ${MLINKS}; \
65 while test $$# -ge 2; do \
66 name=$$1; \
67 shift; \
68 sect=`expr $$name : '.*\.\([^.]*\)'`; \
69 dir=${DESTDIR}${MANDIR}$$sect; \
70 l=$${dir}${MANSUBDIR}/$$name; \
71 name=$$1; \
72 shift; \
73 sect=`expr $$name : '.*\.\([^.]*\)'`; \
74 dir=${DESTDIR}${MANDIR}$$sect; \
75 t=$${dir}${MANSUBDIR}/$$name; \
76 ${ECHO} $${t}${ZEXT} -\> $${l}${ZEXT}; \
77 rm -f $${t} $${t}${ZEXTENSION}; \
78 ln $${l}${ZEXT} $${t}${ZEXT}; \
79 done; true
80.endif