Scsi update from Julian
[unix-history] / share / mk / bsd.man.mk
... / ...
CommitLineData
1# @(#)bsd.man.mk 5.2 (Berkeley) 5/11/90
2
3.if exists(${.CURDIR}/../Makefile.inc)
4.include "${.CURDIR}/../Makefile.inc"
5.endif
6
7MANGRP?= bin
8MANOWN?= bin
9MANMODE?= 444
10
11MANDIR?= /usr/share/man/man
12MANSRC?= ${.CURDIR}
13MINSTALL= install ${COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE}
14
15maninstall:
16.if defined(MAN1) && !empty(MAN1)
17 (cd ${MANSRC}; ${MINSTALL} ${MAN1} ${DESTDIR}${MANDIR}1${MANSUBDIR})
18.endif
19.if defined(MAN2) && !empty(MAN2)
20 (cd ${MANSRC}; ${MINSTALL} ${MAN2} ${DESTDIR}${MANDIR}2${MANSUBDIR})
21.endif
22.if defined(MAN3) && !empty(MAN3)
23 (cd ${MANSRC}; ${MINSTALL} ${MAN3} ${DESTDIR}${MANDIR}3${MANSUBDIR})
24.endif
25.if defined(MAN3F) && !empty(MAN3F)
26 (cd ${MANSRC}; ${MINSTALL} ${MAN3F} ${DESTDIR}${MANDIR}3f${MANSUBDIR})
27.endif
28.if defined(MAN4) && !empty(MAN4)
29 (cd ${MANSRC}; ${MINSTALL} ${MAN4} ${DESTDIR}${MANDIR}4${MANSUBDIR})
30.endif
31.if defined(MAN5) && !empty(MAN5)
32 (cd ${MANSRC}; ${MINSTALL} ${MAN5} ${DESTDIR}${MANDIR}5${MANSUBDIR})
33.endif
34.if defined(MAN6) && !empty(MAN6)
35 (cd ${MANSRC}; ${MINSTALL} ${MAN6} ${DESTDIR}${MANDIR}6${MANSUBDIR})
36.endif
37.if defined(MAN7) && !empty(MAN7)
38 (cd ${MANSRC}; ${MINSTALL} ${MAN7} ${DESTDIR}${MANDIR}7${MANSUBDIR})
39.endif
40.if defined(MAN8) && !empty(MAN8)
41 (cd ${MANSRC}; ${MINSTALL} ${MAN8} ${DESTDIR}${MANDIR}8${MANSUBDIR})
42.endif
43.if defined(MLINKS) && !empty(MLINKS)
44 @set ${MLINKS}; \
45 while test $$# -ge 2; do \
46 name=$$1; \
47 shift; \
48 sect=`expr $$name : '.*\.\([^.]*\)'`; \
49 dir=${DESTDIR}${MANDIR}$$sect; \
50 l=$${dir}${MANSUBDIR}/$$name; \
51 name=$$1; \
52 shift; \
53 sect=`expr $$name : '.*\.\([^.]*\)'`; \
54 dir=${DESTDIR}${MANDIR}$$sect; \
55 t=$${dir}${MANSUBDIR}/$$name; \
56 echo $$t -\> $$l; \
57 rm -f $$t; \
58 ln $$l $$t; \
59 done; true
60.endif