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