NetBSD/share/doc/standards/xopen/Makefile

44 lines
842 B
Makefile
Raw Normal View History

1999-06-01 22:22:52 +04:00
# $NetBSD: Makefile,v 1.2 1999/06/01 18:22:52 ross Exp $
DOCS= xcu5
.for i in ${DOCS}
TARGS+= ${i}.ps ${i}.txt ${i}.html ${i}.more
.endfor
POST_PLAIN= -P-b -P-u -P-o -Tascii
ARGS_PS= ${GFLAGS} -dformat=PostScript
ARGS_TXT= ${GFLAGS} -dformat=ASCII ${POST_PLAIN}
ARGS_HTML= ${GFLAGS} -dformat=HTML ${POST_PLAIN} -ww
ARGS_MORE= ${GFLAGS} -dformat=more -P-h -Tascii
CLEANFILES+=${TARGS}
all: ${TARGS}
.for i in ${DOCS}
${i}.ps: ${i}
1999-06-01 22:22:52 +04:00
groff ${ARGS_PS} -mdoc ${.ALLSRC} > $@
${i}.txt: ${i}
1999-06-01 22:22:52 +04:00
groff ${ARGS_TXT} -mdoc ${.ALLSRC} > $@
${i}.html: ${i}
1999-06-01 22:22:52 +04:00
groff ${ARGS_HTML} -mdoc2html ${.ALLSRC} > $@
${i}.more: ${i}
1999-06-01 22:22:52 +04:00
groff ${ARGS_MORE} -mdoc ${.ALLSRC} > $@
.endfor
echosrcs! ${SRCS}
@echo ${.ALLSRC}
echomore!
@echo ${.OBJDIR}/${TARG}.more
# make the "afterdepend" rule happy
.depend:
@touch $@
.include <bsd.doc.mk>