Home | History | Annotate | Line # | Download | only in mk
bsd.doc.mk revision 1.3
      1 #	@(#)bsd.doc.mk	5.3 (Berkeley) 1/2/91
      2 
      3 PRINTER=ps
      4 
      5 # Why d'command'?
      6 #EQN?=		deqn -P${PRINTER}
      7 #TBL?=		dtbl -P${PRINTER}
      8 #ROFF?=		ditroff -t ${MACROS} ${PAGES} -P${PRINTER}
      9 
     10 BIB?=		bib
     11 EQN?=		eqn -P${PRINTER}
     12 GREMLIN?=	grn -P${PRINTER}
     13 GRIND?=		vgrind -f
     14 INDXBIB?=	indxbib
     15 PIC?=		pic -P${PRINTER}
     16 REFER?=		refer
     17 ROFF?=		ntroff -t ${MACROS} ${PAGES} -P${PRINTER}
     18 SOELIM?=	soelim
     19 TBL?=		tbl -P${PRINTER}
     20 
     21 .PATH: ${.CURDIR}
     22 
     23 .if !target(print)
     24 print: paper.${PRINTER}
     25 	lpr -P${PRINTER} paper.${PRINTER}
     26 .endif
     27 
     28 .if !target(obj)
     29 obj:
     30 .endif
     31 
     32 clean cleandir:
     33 	rm -f paper.* [eE]rrs mklog ${CLEANFILES}
     34 
     35 FILES?=	${SRCS}
     36 install:
     37 	install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
     38 	    Makefile ${FILES} ${EXTRA} ${DESTDIR}${BINDIR}/${DIR}
     39 
     40 spell: ${SRCS}
     41 	spell ${SRCS} | sort | comm -23 - spell.ok > paper.spell
     42 
     43 BINDIR?=	/usr/share/doc
     44 BINGRP?=	bin
     45 BINOWN?=	bin
     46 BINMODE?=	444
     47