Home | History | Annotate | Line # | Download | only in xopen
      1 #	$NetBSD: Makefile,v 1.6 2024/04/05 23:06:32 christos Exp $
      2 
      3 DOCS=	xcu5
      4 .for i in ${DOCS}
      5 TARGS+=	${i}.ps ${i}.txt ${i}.html ${i}.more
      6 .endfor
      7 
      8 POST_PLAIN= -P-b -P-u -P-o -Tascii
      9 
     10 ARGS_PS=	${GFLAGS} -dformat=PostScript ${ROFF_PAGESIZE}
     11 ARGS_TXT=	${GFLAGS} -dformat=ASCII ${POST_PLAIN}
     12 ARGS_HTML=	${GFLAGS} -dformat=HTML  ${POST_PLAIN} -ww
     13 ARGS_MORE=	${GFLAGS} -dformat=more -P-h -Tascii
     14 
     15 CLEANFILES+=${TARGS}
     16 
     17 all: ${TARGS}
     18 
     19 .for i in ${DOCS}
     20 ${i}.ps: ${i}
     21 	${TOOL_GROFF} ${ARGS_PS}   -mdoc      ${.ALLSRC} > $@
     22 
     23 ${i}.txt: ${i}
     24 	${TOOL_GROFF} ${ARGS_TXT}  -mdoc      ${.ALLSRC} > $@
     25 
     26 ${i}.html: ${i}
     27 	${TOOL_GROFF} ${ARGS_HTML} -mdoc2html ${.ALLSRC} > $@
     28 
     29 ${i}.more: ${i}
     30 	${TOOL_GROFF} ${ARGS_MORE} -mdoc      ${.ALLSRC} > $@
     31 .endfor
     32 
     33 echosrcs! ${SRCS}
     34 	@echo ${.ALLSRC}
     35 
     36 echomore!
     37 	@echo ${.OBJDIR}/${TARG}.more
     38 
     39 .include <bsd.doc.mk>
     40