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