NetBSD/share/mk/bsd.doc.mk
cgd 8619bdc913 try to do the right thing, in terms making directories before we
install into them, and get the manpage cleans _OUT_ of "clean".
they don't belong there, only in cleandir, WFJ be damned.
1993-04-08 17:18:42 +00:00

55 lines
1.2 KiB
Makefile

# @(#)bsd.doc.mk 5.3 (Berkeley) 1/2/91
PRINTER=ps
# Why d'command'?
#EQN?= deqn -P${PRINTER}
#TBL?= dtbl -P${PRINTER}
#ROFF?= ditroff -t ${MACROS} ${PAGES} -P${PRINTER}
BIB?= bib
EQN?= eqn -P${PRINTER}
GREMLIN?= grn -P${PRINTER}
GRIND?= vgrind -f
INDXBIB?= indxbib
PIC?= pic -P${PRINTER}
REFER?= refer
ROFF?= ntroff -t ${MACROS} ${PAGES} -P${PRINTER}
SOELIM?= soelim
TBL?= tbl -P${PRINTER}
.PATH: ${.CURDIR}
.if !target(print)
print: paper.${PRINTER}
lpr -P${PRINTER} paper.${PRINTER}
.endif
.if !target(obj)
obj:
.endif
clean cleandir:
rm -f paper.* [eE]rrs mklog ${CLEANFILES}
FILES?= ${SRCS}
install:
@if [ ! -d "${DESTDIR}${BINDIR}/${DIR}" ]; then \
/bin/rm -f ${DESTDIR}${BINDIR}/${DIR} ; \
mkdir -p ${DESTDIR}${BINDIR}/${DIR} ; \
chown root.wheel ${DESTDIR}${BINDIR}/${DIR} ; \
chmod 755 ${DESTDIR}${BINDIR}/${DIR} ; \
else \
true ; \
fi
install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
Makefile ${FILES} ${EXTRA} ${DESTDIR}${BINDIR}/${DIR}
spell: ${SRCS}
spell ${SRCS} | sort | comm -23 - spell.ok > paper.spell
BINDIR?= /usr/share/doc
BINGRP?= bin
BINOWN?= bin
BINMODE?= 444