Home | History | Annotate | Line # | Download | only in mk
bsd.doc.mk revision 1.41
      1  1.41     lukem #	$NetBSD: bsd.doc.mk,v 1.41 1999/02/12 01:10:06 lukem Exp $
      2  1.19       cgd #	@(#)bsd.doc.mk	8.1 (Berkeley) 8/14/93
      3   1.1       cgd 
      4  1.34   mycroft .if !target(__initialized__)
      5  1.34   mycroft __initialized__:
      6  1.34   mycroft .if exists(${.CURDIR}/../Makefile.inc)
      7  1.34   mycroft .include "${.CURDIR}/../Makefile.inc"
      8  1.34   mycroft .endif
      9  1.28   mycroft .include <bsd.own.mk>
     10  1.34   mycroft .MAIN:		all
     11  1.34   mycroft .endif
     12  1.28   mycroft 
     13  1.29   mycroft .PHONY:		cleandoc docinstall print spell
     14  1.41     lukem .if ${MKSHARE} != "no"
     15  1.32   mycroft realinstall:	docinstall
     16  1.38     lukem .endif
     17  1.37     lukem clean cleandir distclean: cleandoc
     18  1.26   mycroft 
     19   1.1       cgd BIB?=		bib
     20   1.8       cgd EQN?=		eqn
     21   1.8       cgd GREMLIN?=	grn
     22   1.1       cgd GRIND?=		vgrind -f
     23   1.1       cgd INDXBIB?=	indxbib
     24   1.8       cgd PIC?=		pic
     25   1.1       cgd REFER?=		refer
     26  1.19       cgd ROFF?=		groff -M/usr/share/tmac ${MACROS} ${PAGES}
     27   1.1       cgd SOELIM?=	soelim
     28   1.8       cgd TBL?=		tbl
     29   1.1       cgd 
     30  1.18       cgd .if !target(all)
     31  1.41     lukem .if ${MKSHARE} != "no"
     32  1.18       cgd all: paper.ps
     33  1.38     lukem .else
     34  1.38     lukem all:
     35  1.38     lukem .endif
     36  1.18       cgd .endif
     37  1.18       cgd 
     38  1.18       cgd .if !target(paper.ps)
     39  1.18       cgd paper.ps: ${SRCS}
     40  1.36  christos 	${ROFF} ${.ALLSRC} > ${.TARGET}
     41  1.18       cgd .endif
     42   1.8       cgd 
     43   1.1       cgd .if !target(print)
     44  1.18       cgd print: paper.ps
     45  1.36  christos 	lpr -P${PRINTER} ${.ALLSRC}
     46   1.1       cgd .endif
     47   1.1       cgd 
     48  1.29   mycroft cleandoc:
     49  1.18       cgd 	rm -f paper.* [eE]rrs mklog ${CLEANFILES}
     50  1.14   mycroft 
     51  1.41     lukem .if ${MKDOC} != "no"
     52  1.23  christos FILES?=	${SRCS}
     53  1.23  christos .for F in ${FILES} ${EXTRA} Makefile
     54  1.33  christos docinstall:: ${DESTDIR}${DOCDIR}/${DIR}/${F}
     55  1.23  christos .if !defined(UPDATE)
     56  1.33  christos .PHONY: ${DESTDIR}${DOCDIR}/${DIR}/${F}
     57  1.23  christos .endif
     58  1.23  christos .if !defined(BUILD)
     59  1.33  christos ${DESTDIR}${DOCDIR}/${DIR}/${F}: .MADE
     60  1.23  christos .endif
     61  1.23  christos 
     62  1.33  christos .PRECIOUS: ${DESTDIR}${DOCDIR}/${DIR}/${F}
     63  1.33  christos ${DESTDIR}${DOCDIR}/${DIR}/${F}: ${F}
     64  1.40  christos 	${INSTALL} ${RENAME} ${PRESERVE} -c -o ${DOCOWN} -g ${DOCGRP} \
     65  1.40  christos 		-m ${DOCMODE} ${.ALLSRC} ${.TARGET}
     66  1.23  christos .endfor
     67  1.28   mycroft .endif
     68  1.28   mycroft 
     69  1.28   mycroft .if !target(docinstall)
     70  1.23  christos docinstall::
     71  1.22     perry .endif
     72   1.1       cgd 
     73   1.1       cgd spell: ${SRCS}
     74  1.36  christos 	spell ${.ALLSRC} | sort | comm -23 - spell.ok > paper.spell
     75  1.31   mycroft 
     76  1.31   mycroft depend includes lint obj tags:
     77  1.36  christos 
     78  1.36  christos .include <bsd.obj.mk>
     79