1994-08-04 21:09:27 +00:00
|
|
|
# from: @(#)bsd.doc.mk 5.3 (Berkeley) 1/2/91
|
1995-01-04 22:43:52 +00:00
|
|
|
# $Id: bsd.doc.mk,v 1.6 1995/01/04 21:34:13 ache Exp $
|
1994-08-04 21:09:27 +00:00
|
|
|
|
|
|
|
PRINTER?= ps
|
1994-05-30 19:09:18 +00:00
|
|
|
|
|
|
|
BIB?= bib
|
1994-08-04 21:09:27 +00:00
|
|
|
EQN?= eqn -T${PRINTER}
|
1994-05-30 19:09:18 +00:00
|
|
|
GREMLIN?= grn
|
|
|
|
GRIND?= vgrind -f
|
|
|
|
INDXBIB?= indxbib
|
|
|
|
PIC?= pic
|
|
|
|
REFER?= refer
|
1994-08-04 21:09:27 +00:00
|
|
|
ROFF?= groff -T${PRINTER} ${MACROS} -o${PAGES}
|
1994-05-30 19:09:18 +00:00
|
|
|
SOELIM?= soelim
|
|
|
|
TBL?= tbl
|
|
|
|
|
1994-08-04 21:09:27 +00:00
|
|
|
PAGES?= 1-
|
1994-05-30 19:09:18 +00:00
|
|
|
|
1994-08-04 21:09:27 +00:00
|
|
|
# Compatibility mode flag for groff. Use this when formatting documents with
|
|
|
|
# Berkeley me macros.
|
|
|
|
COMPAT?= -C
|
1994-05-30 19:09:18 +00:00
|
|
|
|
1994-08-04 21:09:27 +00:00
|
|
|
.PATH: ${.CURDIR}
|
1994-05-30 19:09:18 +00:00
|
|
|
|
1994-08-04 21:09:27 +00:00
|
|
|
all: ${DOC}.${PRINTER}
|
1994-05-30 19:09:18 +00:00
|
|
|
|
1994-08-04 21:09:27 +00:00
|
|
|
.if !target(print)
|
|
|
|
print: ${DOC}.${PRINTER}
|
|
|
|
lpr -P${PRINTER} ${DOC}.${PRINTER}
|
1994-05-30 19:09:18 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !target(obj)
|
1994-08-04 21:09:27 +00:00
|
|
|
.if defined(NOOBJ)
|
|
|
|
obj:
|
|
|
|
.else
|
1994-05-30 19:09:18 +00:00
|
|
|
obj:
|
1994-08-04 21:09:27 +00:00
|
|
|
@cd ${.CURDIR}; rm -f obj > /dev/null 2>&1 || true; \
|
|
|
|
here=`pwd`; subdir=`echo $$here | sed 's,^/usr/src/,,'`; \
|
|
|
|
if test $$here != $$subdir ; then \
|
|
|
|
dest=/usr/obj/$$subdir ; \
|
1994-08-28 15:37:40 +00:00
|
|
|
${ECHO} "$$here -> $$dest"; ln -s $$dest obj; \
|
1994-08-04 21:09:27 +00:00
|
|
|
if test -d /usr/obj -a ! -d $$dest; then \
|
|
|
|
mkdir -p $$dest; \
|
|
|
|
else \
|
|
|
|
true; \
|
|
|
|
fi; \
|
|
|
|
else \
|
|
|
|
true ; \
|
|
|
|
dest=$$here/obj ; \
|
1994-08-28 15:37:40 +00:00
|
|
|
${ECHO} "making $$here/obj" ; \
|
1994-08-04 21:09:27 +00:00
|
|
|
if test ! -d obj ; then \
|
|
|
|
mkdir $$here/obj; \
|
|
|
|
fi ; \
|
|
|
|
fi;
|
1994-05-30 19:09:18 +00:00
|
|
|
.endif
|
1994-08-04 21:09:27 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
clean:
|
1995-01-04 21:34:13 +00:00
|
|
|
rm -f ${DOC}.${PRINTER} [eE]rrs mklog ${CLEANFILES}
|
1994-05-30 19:09:18 +00:00
|
|
|
|
1995-01-04 21:34:13 +00:00
|
|
|
cleandir: clean
|
1994-08-04 21:09:27 +00:00
|
|
|
cd ${.CURDIR}; rm -rf obj
|
1994-05-30 19:09:18 +00:00
|
|
|
|
|
|
|
FILES?= ${SRCS}
|
|
|
|
install:
|
1994-08-04 21:09:27 +00:00
|
|
|
@if [ ! -d "${DESTDIR}${BINDIR}/${VOLUME}" ]; then \
|
|
|
|
/bin/rm -f ${DESTDIR}${BINDIR}/${VOLUME} ; \
|
|
|
|
mkdir -p ${DESTDIR}${BINDIR}/${VOLUME} ; \
|
|
|
|
chown root.wheel ${DESTDIR}${BINDIR}/${VOLUME} ; \
|
|
|
|
chmod 755 ${DESTDIR}${BINDIR}/${VOLUME} ; \
|
|
|
|
else \
|
|
|
|
true ; \
|
|
|
|
fi
|
1995-01-04 22:43:52 +00:00
|
|
|
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
|
|
|
${DOC}.${PRINTER} ${DESTDIR}${BINDIR}/${VOLUME}
|
1994-05-30 19:09:18 +00:00
|
|
|
|
1994-11-13 21:05:28 +00:00
|
|
|
DISTRIBUTION?= bindist
|
|
|
|
.if !target(distribute)
|
|
|
|
distribute:
|
|
|
|
cd ${.CURDIR} ; $(MAKE) install DESTDIR=${RELEASEDIR}/${DISTRIBUTION} SHARED=copies
|
|
|
|
.endif
|
|
|
|
|
1994-05-30 19:09:18 +00:00
|
|
|
spell: ${SRCS}
|
1994-08-04 21:09:27 +00:00
|
|
|
(cd ${.CURDIR}; spell ${SRCS} ) | sort | \
|
|
|
|
comm -23 - ${.CURDIR}/spell.ok > ${DOC}.spell
|
1994-05-30 19:09:18 +00:00
|
|
|
|
|
|
|
BINDIR?= /usr/share/doc
|
1995-01-04 22:43:52 +00:00
|
|
|
BINMODE= 444
|