diff options
Diffstat (limited to 'gnu/usr.sbin/sendmail/doc/op/Makefile')
-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} |