1993-08-15 23:37:04 +04:00
|
|
|
# from: @(#)bsd.man.mk 5.2 (Berkeley) 5/11/90
|
1993-08-16 01:27:26 +04:00
|
|
|
# $Id: bsd.man.mk,v 1.10 1993/08/15 21:27:26 mycroft Exp $
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1993-08-16 00:59:36 +04:00
|
|
|
.if !target(.MAIN)
|
1993-03-21 12:45:37 +03:00
|
|
|
.if exists(${.CURDIR}/../Makefile.inc)
|
|
|
|
.include "${.CURDIR}/../Makefile.inc"
|
|
|
|
.endif
|
|
|
|
|
1993-08-16 00:59:36 +04:00
|
|
|
.MAIN: all
|
|
|
|
.endif
|
|
|
|
|
1993-04-10 00:05:56 +04:00
|
|
|
MINSTALL= install ${COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE}
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
maninstall:
|
|
|
|
.if defined(MAN1) && !empty(MAN1)
|
1993-08-16 00:42:39 +04:00
|
|
|
MANALL+=${MAN1}
|
1993-08-16 01:27:26 +04:00
|
|
|
maninstall: man1install
|
|
|
|
man1install:
|
1993-08-15 23:26:05 +04:00
|
|
|
@install -d -o root -g wheel -m 755 ${DESTDIR}${MANDIR}1${MANSUBDIR}
|
1993-03-21 12:45:37 +03:00
|
|
|
${MINSTALL} ${MAN1} ${DESTDIR}${MANDIR}1${MANSUBDIR}
|
|
|
|
.endif
|
|
|
|
.if defined(MAN2) && !empty(MAN2)
|
1993-08-16 00:42:39 +04:00
|
|
|
MANALL+=${MAN2}
|
1993-08-16 01:27:26 +04:00
|
|
|
maninstall: man2install
|
|
|
|
man2install:
|
1993-08-15 23:26:05 +04:00
|
|
|
@install -d -o root -g wheel -m 755 ${DESTDIR}${MANDIR}2${MANSUBDIR}
|
1993-03-21 12:45:37 +03:00
|
|
|
${MINSTALL} ${MAN2} ${DESTDIR}${MANDIR}2${MANSUBDIR}
|
|
|
|
.endif
|
|
|
|
.if defined(MAN3) && !empty(MAN3)
|
1993-08-16 00:42:39 +04:00
|
|
|
MANALL+=${MAN3}
|
1993-08-16 01:27:26 +04:00
|
|
|
maninstall: man3install
|
|
|
|
man3install:
|
1993-08-15 23:26:05 +04:00
|
|
|
@install -d -o root -g wheel -m 755 ${DESTDIR}${MANDIR}3${MANSUBDIR}
|
1993-03-21 12:45:37 +03:00
|
|
|
${MINSTALL} ${MAN3} ${DESTDIR}${MANDIR}3${MANSUBDIR}
|
|
|
|
.endif
|
|
|
|
.if defined(MAN3F) && !empty(MAN3F)
|
1993-08-16 00:42:39 +04:00
|
|
|
MANALL+=${MAN3F}
|
1993-08-16 01:27:26 +04:00
|
|
|
maninstall: man3finstall
|
|
|
|
man3finstall:
|
1993-08-15 23:26:05 +04:00
|
|
|
@install -d -o root -g wheel -m 755 ${DESTDIR}${MANDIR}3f${MANSUBDIR}
|
1993-03-21 12:45:37 +03:00
|
|
|
${MINSTALL} ${MAN3F} ${DESTDIR}${MANDIR}3f${MANSUBDIR}
|
|
|
|
.endif
|
|
|
|
.if defined(MAN4) && !empty(MAN4)
|
1993-08-16 00:42:39 +04:00
|
|
|
MANALL+=${MAN4}
|
1993-08-16 01:27:26 +04:00
|
|
|
maninstall: man4install
|
|
|
|
man4install:
|
1993-08-15 23:26:05 +04:00
|
|
|
@install -d -o root -g wheel -m 755 ${DESTDIR}${MANDIR}4${MANSUBDIR}
|
1993-03-21 12:45:37 +03:00
|
|
|
${MINSTALL} ${MAN4} ${DESTDIR}${MANDIR}4${MANSUBDIR}
|
|
|
|
.endif
|
|
|
|
.if defined(MAN5) && !empty(MAN5)
|
1993-08-16 00:42:39 +04:00
|
|
|
MANALL+=${MAN5}
|
1993-08-16 01:27:26 +04:00
|
|
|
maninstall: man5install
|
|
|
|
man5install:
|
1993-08-15 23:26:05 +04:00
|
|
|
@install -d -o root -g wheel -m 755 ${DESTDIR}${MANDIR}5${MANSUBDIR}
|
1993-03-21 12:45:37 +03:00
|
|
|
${MINSTALL} ${MAN5} ${DESTDIR}${MANDIR}5${MANSUBDIR}
|
|
|
|
.endif
|
|
|
|
.if defined(MAN6) && !empty(MAN6)
|
1993-08-16 00:42:39 +04:00
|
|
|
MANALL+=${MAN6}
|
1993-08-16 01:27:26 +04:00
|
|
|
maninstall: man6install
|
|
|
|
man6install:
|
1993-08-15 23:26:05 +04:00
|
|
|
@install -d -o root -g wheel -m 755 ${DESTDIR}${MANDIR}6${MANSUBDIR}
|
1993-03-21 12:45:37 +03:00
|
|
|
${MINSTALL} ${MAN6} ${DESTDIR}${MANDIR}6${MANSUBDIR}
|
|
|
|
.endif
|
|
|
|
.if defined(MAN7) && !empty(MAN7)
|
1993-08-16 00:42:39 +04:00
|
|
|
MANALL+=${MAN7}
|
1993-08-16 01:27:26 +04:00
|
|
|
maninstall: man7install
|
|
|
|
man7install:
|
1993-08-15 23:26:05 +04:00
|
|
|
@install -d -o root -g wheel -m 755 ${DESTDIR}${MANDIR}7${MANSUBDIR}
|
1993-03-21 12:45:37 +03:00
|
|
|
${MINSTALL} ${MAN7} ${DESTDIR}${MANDIR}7${MANSUBDIR}
|
|
|
|
.endif
|
|
|
|
.if defined(MAN8) && !empty(MAN8)
|
1993-08-16 00:42:39 +04:00
|
|
|
MANALL+=${MAN8}
|
1993-08-16 01:27:26 +04:00
|
|
|
maninstall: man8install
|
|
|
|
man8install:
|
1993-08-15 23:26:05 +04:00
|
|
|
@install -d -o root -g wheel -m 755 ${DESTDIR}${MANDIR}8${MANSUBDIR}
|
1993-03-21 12:45:37 +03:00
|
|
|
${MINSTALL} ${MAN8} ${DESTDIR}${MANDIR}8${MANSUBDIR}
|
|
|
|
.endif
|
|
|
|
.if defined(MLINKS) && !empty(MLINKS)
|
1993-08-16 01:27:26 +04:00
|
|
|
maninstall: manlinkinstall
|
|
|
|
manlinkinstall:
|
1993-03-21 12:45:37 +03:00
|
|
|
@set ${MLINKS}; \
|
|
|
|
while test $$# -ge 2; do \
|
|
|
|
name=$$1; \
|
|
|
|
shift; \
|
|
|
|
dir=${DESTDIR}${MANDIR}`expr $$name : '[^\.]*\.\(.*\)'`; \
|
|
|
|
l=$${dir}${MANSUBDIR}/`expr $$name : '\([^\.]*\)'`.0; \
|
|
|
|
name=$$1; \
|
|
|
|
shift; \
|
|
|
|
dir=${DESTDIR}${MANDIR}`expr $$name : '[^\.]*\.\(.*\)'`; \
|
|
|
|
t=$${dir}${MANSUBDIR}/`expr $$name : '\([^\.]*\)'`.0; \
|
|
|
|
echo $$t -\> $$l; \
|
|
|
|
rm -f $$t; \
|
|
|
|
ln $$l $$t; \
|
|
|
|
done; true
|
|
|
|
.endif
|
1993-08-16 00:42:39 +04:00
|
|
|
|
|
|
|
.if defined(MANALL)
|
|
|
|
all: ${MANALL}
|
|
|
|
|
|
|
|
cleandir: cleanman
|
|
|
|
cleanman:
|
|
|
|
rm -f ${MANALL}
|
|
|
|
.endif
|