diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2013-03-14 15:18:20 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2013-03-14 15:18:20 +0000 |
commit | 9ff343a0f1e2bfefb7537ceb0f01f0f8da37dd66 (patch) | |
tree | e3ad3bbd652aaa1e2a80559fb93a87af8c2e4823 | |
parent | afbb31f242f1101fb90a902e3fde56b79c5bd72d (diff) |
allow groff users to build these docs; from J??r??mie Courr??ges-Anglas
ok millert
-rw-r--r-- | gnu/usr.sbin/sendmail/doc/op/Makefile | 44 |
1 files changed, 34 insertions, 10 deletions
diff --git a/gnu/usr.sbin/sendmail/doc/op/Makefile b/gnu/usr.sbin/sendmail/doc/op/Makefile index 10512e48fc0..d2a42a2e90f 100644 --- a/gnu/usr.sbin/sendmail/doc/op/Makefile +++ b/gnu/usr.sbin/sendmail/doc/op/Makefile @@ -1,17 +1,41 @@ +# $OpenBSD: Makefile,v 1.5 2013/03/14 15:18:19 jmc Exp $ # $Sendmail: Makefile,v 8.16 2006/01/05 22:03:31 ca Exp $ -DIR= smm/08.sendmailop -SRCS= op.me -MACROS= -me +SRCS= op.me +OBJS= op.ps +MACROS= -me +ROFF_CMD= groff +PIC_CMD= pic +EQN_CMD= eqn +UL_CMD= ul +PS2PDF_CMD= ps2pdf +PIC= ${PIC_CMD} -C +EQNASCII= ${EQN_CMD} -C -Tascii +EQNPS= ${EQN_CMD} -C -Tps +ROFFASCII= ${ROFF_CMD} -Tascii ${MACROS} +ROFFPS= ${ROFF_CMD} -Tps -mps ${MACROS} +ULASCII= ${UL_CMD} -t dumb +PS2PDF= ${PS2PDF_CMD} -all: op.ps +all: ${OBJS} op.ps: ${SRCS} - rm -f ${.TARGET} - ${PIC} ${SRCS} | ${EQN} | ${ROFF} > ${.TARGET} + rm -f $@ + ${PIC} ${SRCS} | ${EQNPS} | ${ROFFPS} > $@ + test -s $@ || ${ROFFPS} -p -e ${SRCS} > $@ -paper.txt: ${SRCS} - rm -f ${.TARGET} - ${PIC} ${SRCS} | ${EQN} -Tascii | ${ROFF} -Tascii > ${.TARGET} +op.txt: ${SRCS} + rm -f $@ + @echo "Note: see README file in case of errors." + ${PIC} ${SRCS} | ${EQNASCII} | \ + env GROFF_NO_SGR=NoThanks ${ROFFASCII} | \ + ${ULASCII} > $@ -.include <bsd.doc.mk> +op.pdf: op.ps + rm -f $@ + ${PS2PDF} op.ps op.pdf + +clean: + rm -f op.ps op.txt op.pdf + +install: ${OBJS} |