Home | History | Annotate | Line # | Download | only in mk
bsd.doc.mk revision 1.30
      1  1.30   mycroft #	$NetBSD: bsd.doc.mk,v 1.30 1997/05/07 17:06:18 mycroft Exp $
      2  1.19       cgd #	@(#)bsd.doc.mk	8.1 (Berkeley) 8/14/93
      3   1.1       cgd 
      4  1.28   mycroft .include <bsd.own.mk>
      5  1.28   mycroft 
      6  1.26   mycroft .MAIN:		all
      7  1.29   mycroft .PHONY:		cleandoc docinstall print spell
      8  1.28   mycroft install:	docinstall
      9  1.30   mycroft clean cleandir:	cleandoc
     10  1.26   mycroft 
     11   1.1       cgd BIB?=		bib
     12   1.8       cgd EQN?=		eqn
     13   1.8       cgd GREMLIN?=	grn
     14   1.1       cgd GRIND?=		vgrind -f
     15   1.1       cgd INDXBIB?=	indxbib
     16   1.8       cgd PIC?=		pic
     17   1.1       cgd REFER?=		refer
     18  1.19       cgd ROFF?=		groff -M/usr/share/tmac ${MACROS} ${PAGES}
     19   1.1       cgd SOELIM?=	soelim
     20   1.8       cgd TBL?=		tbl
     21   1.1       cgd 
     22  1.23  christos BINDIR?=	/usr/share/doc
     23  1.23  christos BINGRP?=	bin
     24  1.23  christos BINOWN?=	bin
     25  1.23  christos BINMODE?=	444
     26  1.23  christos 
     27  1.18       cgd .if !target(all)
     28  1.18       cgd all: paper.ps
     29  1.18       cgd .endif
     30  1.18       cgd 
     31  1.18       cgd .if !target(paper.ps)
     32  1.18       cgd paper.ps: ${SRCS}
     33  1.18       cgd 	${ROFF} ${SRCS} > ${.TARGET}
     34  1.18       cgd .endif
     35   1.8       cgd 
     36   1.1       cgd .if !target(print)
     37  1.18       cgd print: paper.ps
     38  1.18       cgd 	lpr -P${PRINTER} paper.ps
     39   1.1       cgd .endif
     40   1.1       cgd 
     41  1.29   mycroft cleandoc:
     42  1.18       cgd 	rm -f paper.* [eE]rrs mklog ${CLEANFILES}
     43  1.14   mycroft 
     44  1.23  christos .if !defined(NODOC)
     45  1.23  christos FILES?=	${SRCS}
     46  1.23  christos .for F in ${FILES} ${EXTRA} Makefile
     47  1.23  christos docinstall:: ${DESTDIR}${BINDIR}/${DIR}/${F}
     48  1.23  christos .if !defined(UPDATE)
     49  1.23  christos .PHONY: ${DESTDIR}${BINDIR}/${DIR}/${F}
     50  1.23  christos .endif
     51  1.23  christos .if !defined(BUILD)
     52  1.23  christos ${DESTDIR}${BINDIR}/${DIR}/${F}: .MADE
     53  1.23  christos .endif
     54  1.23  christos 
     55  1.27   mycroft .PRECIOUS: ${DESTDIR}${BINDIR}/${DIR}/${F}
     56  1.23  christos ${DESTDIR}${BINDIR}/${DIR}/${F}: ${F}
     57  1.23  christos 	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} ${.ALLSRC} \
     58  1.23  christos 		${.TARGET}
     59  1.23  christos .endfor
     60  1.28   mycroft .endif
     61  1.28   mycroft 
     62  1.28   mycroft .if !target(docinstall)
     63  1.23  christos docinstall::
     64  1.22     perry .endif
     65   1.1       cgd 
     66   1.1       cgd spell: ${SRCS}
     67  1.18       cgd 	spell ${SRCS} | sort | comm -23 - spell.ok > paper.spell
     68