NetBSD/share/mk/bsd.doc.mk

44 lines
867 B
Makefile
Raw Normal View History

# from: @(#)bsd.doc.mk 5.3 (Berkeley) 1/2/91
# $Id: bsd.doc.mk,v 1.16 1994/01/24 22:30:32 cgd Exp $
1993-03-21 12:45:37 +03:00
PRINTER_TYPE?= ps
1993-03-21 12:45:37 +03:00
BIB?= bib
EQN?= eqn
GREMLIN?= grn
1993-03-21 12:45:37 +03:00
GRIND?= vgrind -f
INDXBIB?= indxbib
PIC?= pic
1993-03-21 12:45:37 +03:00
REFER?= refer
ROFF?= groff -T${PRINTER_TYPE} ${MACROS} ${PAGES}
1993-03-21 12:45:37 +03:00
SOELIM?= soelim
TBL?= tbl
1993-03-21 12:45:37 +03:00
.PATH: ${.CURDIR}
all: ${DOC}.${PRINTER_TYPE}
1993-03-21 12:45:37 +03:00
.if !target(print)
print: ${DOC}.${PRINTER_TYPE}
lpr ${DOC}.${PRINTER_TYPE}
1993-03-21 12:45:37 +03:00
.endif
clean:
rm -f ${DOC}.* [eE]rrs mklog ${CLEANFILES}
1993-03-21 12:45:37 +03:00
cleandir: clean
1993-03-21 12:45:37 +03:00
FILES?= ${SRCS}
install:
@install -d -o root -g wheel -m 755 ${DESTDIR}${DOCDIR}/${DIR}
(cd ${.CURDIR}; install ${COPY} -o ${DOCOWN} -g ${DOCGRP} -m 444 \
Makefile ${FILES} ${EXTRA} ${DESTDIR}${DOCDIR}/${DIR} )
1993-03-21 12:45:37 +03:00
spell: ${SRCS}
(cd ${.CURDIR}; spell ${SRCS}) | sort | \
comm -23 - ${.CURDIR}/spell.ok > ${DOC}.spell
1993-03-21 12:45:37 +03:00
depend tags lint:
.include <bsd.obj.mk>